Ansicht
Dokumentation

ABENABAP_OBJECTS_DIFF_OFFSET - ABAP OBJECTS DIFF OFFSET

ABENABAP_OBJECTS_DIFF_OFFSET - ABAP OBJECTS DIFF OFFSET

TXBHW - Original Tax Base Amount in Local Currency   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Syntax Revisions for Offset/Length Specifications

Cannot Enter Length Less Than or Equal to Zero when Accessing Fields,,,,,,

When you access a field of fixed length using offset/length addressing, you cannot enter a length less than or equal to zero.

In ABAP Objects, and as of release 7.0 also outside of classes, the following statements cause an error message:

MOVE f+off(0) TO g.
MOVE f+5(-2) TO g.

Cause:

The length of the field section is always a positive value. Fields with a fixed length of zero are not supported in ABAP. Fields of fixed length must always have a length of at least 1.

Note:

Since Release 4.6A, the data types string and xstring have existed for byte or character sequences of variable length. Empty byte or character sequences have a length of zero. Offset/length addressing with a length of zero has not been implemented as yet for byte or character sequences.






TXBHW - Original Tax Base Amount in Local Currency   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 1162 Date: 20240419 Time: 042713     sap01-206 ( 29 ms )