Ansicht
Dokumentation

Gen. error "Offset or length entry not allowed" <br />Tip-No.: 417 ( INFO417 ) Tip-No.: 417 ( INFO417 )" /> Tip-No.: 417 ( INFO417 )" />

Gen. error "Offset or length entry not allowed"
Tip-No.: 417 ( INFO417 )

Vendor Master (General Section)   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Short text

Gen. error "Offset or length entry not allowed"
Tip-No.: 417

Symptom

When generating an ABAP program , an abend occurs with

Syntax- error in program
Offset or length entry not allowed.

The syntay check for program does not find any errors.

Cause

The generation terminates with the above syntax error message if data
type and desired length for a data declaration do not fit together,
but the syntax check does not recognize this error.

Examples of instructions (declarations or instructions that displace
declaractions internally) that lead to such a syntax error during the
generation:

DATA FLOAT1 TYPE F.
DATA FLOAT2 LIKE FLOAT1(3). " <== leads to error
PARAMETERS: FLOAT3 LIKE FLOAT1(3). " <== leads to error
ON CHANGE OF FLOAT1(3). " <== leads to error, as internal
... " help field LIKE FLOAT1(3)
ENDON. " is created

If the field length specified in parenthesis (3 in the above example)
is smaller than the length of the reference field, the generation
terminates. If it is larger, generation does not terminate.

This effect occurs with numerical types I, F, and P.

Solution

Do not use any instructions that lead to impermissible data
declarations.






Fill RESBD Structure from EBP Component Structure   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 1549 Date: 20240427 Time: 060240     sap01-206 ( 17 ms )