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.

Index
© SAP AG 1996