26.12.10

SAP Note 15992 - ASSIGN_LENGTH_NEGATIVE with line items RFEPOS00

Symptom:

RFEPOS00:
1. A long additional field (example: SGTXT) is displayed far to the right in the list (starting column + field length > 132).
2. When displaying subtotals, ASSIGN_LENGTH_0 or ASSIGN_LENGTH_NEGATIVE can occur (in ZWISCHENSUMMEN_AUSGEBEN).
FBL1 FBL2 FBL3 FBL4 FBL5 FBL6

Cause and prerequisites

Error.

Solution

Interim correction:
/NSE38 - RFPOSFD0 (in the standard system for Release 2.2C)

FORM DYNAMISCHES_WINDOW_VORBEREITEN

SPALTERECHTS = SPALTELINKS + FELDTAB-OUTPUTLEN +
REFE1 = SPALTELINKS + FELDTAB-OUTPUTLEN + 1.
REFE2 = 132 - REFE1.
IF REFE2 <= 0. <-- insert
REFE2 = 1. <-- insert
ENDIF. <-- insert
ASSIGN ZEILE+REFE1(REFE2) TO .
NDFORM.

/NSE38 - RFPOSFZ0 (in the standard system for Release 2.2H)
FORM ZWISCHENSUMMEN_AUSGEBEN
...
REFE2 = 132 - REFE1.
IF REFE2 < 1. <-- insert
REFE2 = 1. <-- insert
ENDIF. <-- insert
ASSIGN ZWZEILE(REFE1) TO .
ASSIGN ZWZEILE+REFE1(REFE2) TO .

/NSE38 - RFPOSFL0 (in the standard system for Release 3.0D)
FIND LISTINFO_HOLEN_EP

FORM LISTINFO_HOLEN_EP.
...
IF LS-ZSUMM = 'X'.
REFRESH SORTAB. <-- delete
LOOP AT SUMTAB. <-- delete
SORTAB = SUMTAB. <-- delete
APPEND SORTAB. <-- delete
ENDLOOP. <-- delete
ENDIF.
ENDFORM.

No comments:

Post a Comment