Ansicht
Dokumentation

ABAPDESCRIBE_DISTANC - DESCRIBE DISTANC

ABAPDESCRIBE_DISTANC - DESCRIBE DISTANC

PERFORM Short Reference   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

DESCRIBE DISTANCE BETWEEN f1 AND f2 INTO f3

Effect

Returns the distance between the fields f1 and f2 in f3.

Example

TABLES LFA1.
DATA DIS TYPE P.
DESCRIBE DISTANCE BETWEEN LFA1-LAND1
                  AND     LFA1-NAME1
                  INTO    DIS.

Result: DIS contains the value 14, since exactly two fields lie between LAND1 and NAME1, namely LNRZA (10 bytes) and LOEVM (1 byte); additionally, the sub-field LAND1 is 3 bytes long. Therefore, the start of the sub-field LAND1 is exactly 14 bytes from the start of the sub-field NAME1.






BAL Application Log Documentation   General Material Data  
This documentation is copyright by SAP AG.

Length: 938 Date: 20240424 Time: 141232     sap01-206 ( 17 ms )