09-23-2008 3:29 PM
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?
09-23-2008 3:45 PM
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
09-23-2008 3:30 PM
09-23-2008 3:36 PM
vijay i did F1 but u know there is no any syntax for DESCRIBE FILED-SYMBOL.
do u have any idea abt it?
Is there any limitation for field symbols in DESCRIBE querry?
09-23-2008 3:39 PM
>
> vijay i did F1 but u know there is no any syntax for DESCRIBE FILED-SYMBOL.
>
> do u have any idea abt it?
> Is there any limitation for field symbols in DESCRIBE querry?
if you faced an ayntax error than sinmply we cannot use field-symbols with discribe.
Amit.
09-23-2008 3:43 PM
Hi Amit,
I am migrating programs from 4.6 to ECC 6.0 The querry in 4.6 is as describe field <a> type typ
but the same querry in ECC 6.0 unicode conversion asking for mode whaether it is in charcater mode or in byte mode.
i wrote it as describe field <a> type typ length in character mode. But giving error type should not be there. if i took out type not giving result.
09-23-2008 3:48 PM
09-23-2008 3:45 PM
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
09-23-2008 3:45 PM