19.1.11

SAP Note 18155 - Variants: TVARV variable / conversion exits

Symptom:

When starting a report with a variant, only the first line of an interval is correct. The other lines are (apparently) interpreted incorrectly or not at all. The problem does not occur if the continuation lines are displayed on the value set screen before the report is executed.
The values for the interval are in this case defined by a TVARV variable and the correponding Dictionary field has a conversion routine.

() ABAPNOTE ABAPRESERR selection screen variant TVARV

Cause and prerequisites

When copying the values from TVARV, the conversion exit is ignored and a simple MOVE is carried out. If the conversion exit places, for example, leading zeros in front of numeric entries, the entries, however, are stored in TVARV without leading zeros, the SELECT-OPTION entry is '8 ' instead of '00000008'. This results in an incorrect selection.

Solution
Up to Release 3.0:
The values in TVARV must be stored in their entire length (with leading zeros, if required).
From Release 3.0A the conversion exit will be taken into account when
the variable is copied.

No comments:

Post a Comment