Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

problem with DESCRIBE field-symbol statement?

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

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

7 REPLIES 7

former_member188685
Active Contributor
0 Kudos

Just do an F1 on Describe.

0 Kudos

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?

0 Kudos

>

> 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.

0 Kudos

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.

0 Kudos

i am getting the Help if i press the F1 on

DESCRIBE

naimesh_patel
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Whats the error message its showing during syntax check?