Posts

Showing posts with the label sap field symbols

Field Symbols - Syntax & Sample Program (SAP ABAP Keyword).

- In SAP, A field symbol can point to any data object. - Field symbols can be created without any attributes or with a type specification . If a field symbol is created without attributes, it takes on the attributes of the field to which it is assigned. If a field symbol is assigned a type specification, the system verifies that the types of the field and field symbol are compatible. - To declare a field symbol in SAP ABAP, use the statement FIELD-SYMBOLS <FS>  [ <type> | STRUCTURE <S>  DEFAULT <WA> ]. Angle brackets (<>) are part of the syntax, which basically allows to distinguish the field symbols from the normal fields in the programs. - The <type>  addition is used to specify the type of a field symbol. If there is no type specification it means the field symbol adopts all of the attributes of the data object. TYPE ANY - Field symbol adopts all of the attributes of the data object. TYPE C, N, P, or X - The ...