Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

assign a field to symbol.


I am trying to assign a field to a symbol but not able to get the proper syntax.Please let me know the correct syntax.




Hi Manish,

You can use the below syntax.


[CASTING [TYPE <t>|LIKE <f>] [DECIMALS <d>]] [RANGE <r>].

Data object <f> is assigned to field symbol <FS>. <FS> now points to the data object. After the addition INCREMENT <n>, the storage area that is offset <n> times by a length of <f> starting with <f> is assigned to the field symbol. Pointed brackets are part of the syntax for field symbol names. The CASTING addition permits you to cast data objects when assigning field symbols. The RANGE addition defines the storage area in which either offset/length accesses or the INCREMENT addition are allowed. In Unicode programs, standard access is only allowed within the field limits of <f>, but this can be extended with RANGE. In non-Unicode programs, standard access is possible up to the boundary of the data segment and can be limited with RANGE.

Hope this will solve yuor problem.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question