Application Development and Automation 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: 
Read only

describe statement

Former Member
0 Likes
626

what is the purpose of describe stmt.

1. for field

2. for table

what does it returns or describes?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
533

Hi,

Describe for field..The gives you attributes of the field..

Ex..

DATA: FLD(8),

LEN TYPE I.

DESCRIBE FIELD FLD LENGTH LEN.

Describe for table..This gives you number of rows in the internal table.

Ex.

DESCRIBE TABLE ITAB.

WRITE: / ' Number of rows in ITAB', SY-TFILL.

Thanks,

Naren

3 REPLIES 3
Read only

Former Member
0 Likes
534

Hi,

Describe for field..The gives you attributes of the field..

Ex..

DATA: FLD(8),

LEN TYPE I.

DESCRIBE FIELD FLD LENGTH LEN.

Describe for table..This gives you number of rows in the internal table.

Ex.

DESCRIBE TABLE ITAB.

WRITE: / ' Number of rows in ITAB', SY-TFILL.

Thanks,

Naren

Read only

gopi_narendra
Active Contributor
0 Likes
533

describe statement for field gives the field attributes.

DESCRIBE FIELD dobj

[TYPE typ [COMPONENTS com]]

[LENGTH ilen IN {BYTE|CHARACTER} MODE]

[DECIMALS dec]

[OUTPUT-LENGTH olen]

[HELP-ID hlp]

[EDIT MASK mask].

describe statement for table gives the number of rows in the table.

DESCRIBE TABLE itab [KIND knd] [LINES lin] [OCCURS n].

Regards

- Gopi

Read only

Former Member
0 Likes
533

hi Uma,

in addition to the above points

describe field has many other feature they are ..

DESCRIBE FIELD f.

Extras:

1. ... LENGTH len

2. ... IN CHARACTER MODE

3. ... IN BYTE MODE

4. ... TYPE type

5. ... TYPE type COMPONENTS n

6. ... OUTPUT-LENGTH len

7. ... DECIMALS n

8. ... EDIT MASK mask

9. ... HELP-ID hlp

Regards,

Santosh