DESCRIBE - determine distance between two fields
Basic form
DESCRIBE DISTANCE BETWEEN f1 AND f2 INTO f3.
Effect
Determines the distance between the fields f1 and f2 and places the result (in bytes) in f3 .
Example
Determine the distance between two components of the demo table SBOOK in the flight reservation system:
TABLES SBOOK.
DATA DIST TYPE I.
DESCRIBE DISTANCE BETWEEN SBOOK-CARRID
AND SBOOK-BOOKID
INTO DIST.
Result: DIST contains the value 15 because exactly two fields, SFLIGHT-CONNID (4 bytes) and SBOOK-FLDATE (8 bytes), lie between the SBOOK components CARRID and BOOKID ; also, SBOOK-CARRID is itself 3 bytes long. The sum of these values gives the distance between the two components in bytes. DESCRIBE - Supply attributes of a field
Basic form
DESCRIBE FIELD f.
Effect
Supplies the attributes of the field f . You must specify at least one of the additions:
Additions
1. ... LENGTH len
2. ... TYPE typ
3. ... TYPE typ COMPONENTS n
4. ... OUTPUT-LENGTH len
5. ... DECIMALS n
6. ... EDIT MASK mask
2. ... TYPE typ
3. ... TYPE typ COMPONENTS n
4. ... OUTPUT-LENGTH len
5. ... DECIMALS n
6. ... EDIT MASK mask
Addition 1
... LENGTH len
Effect
Returns the length of the field f in the field
len .
len .
Example
DATA: FLD(8),
LEN TYPE P.
DESCRIBE FIELD FLD LENGTH LEN.
Result: LEN contains the value 8. RELATED POST SAP ABAP SYNTAX FOR DELETE PROGRAM MySAP sales and distribution strategies SAP definition,full form,over veiw and introduction What is SAP Full form and its definition part one
No comments :
Post a Comment