problem with DESCRIBE field-symbol statement?
I havw written following querry but it's showing error. My doubt is there any resctriction field symbols in DESCRIBE query.
describe field <a> type typ length in character mode.
Is that syntax correct?
Naimesh Patel replied
When you use the Describe statement with the field symbols, it will do the describe on the field which was assigned to it.
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>.