Skip to Content

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

problem with DESCRIBE field-symbol statement?

Hi

I havw written following querry but it's showing error. My doubt is there any resctriction field symbols in DESCRIBE query.

i wrote

describe field <a> type typ length in character mode.

Is that syntax correct?

Tags:
replied

When you use the Describe statement with the field symbols, it will do the describe on the field which was assigned to it.

Like:

FIELD-SYMBOLS: <fs> TYPE ANY.

DATA: l_char TYPE char10.
l_char = 'TEST'.

ASSIGN l_char TO <fs>.

DATA: l_len TYPE i.
DESCRIBE FIELD <fs> LENGTH l_len IN CHARACTER MODE.
write: / '<fs>:', <fs>.
WRITE: / 'Length', l_len.

Here descirbe gives the property of the L_CHAR because it was assigned to field symbol <FS>.

Regards,

Naimesh Patel

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