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: 

describe statement

Former Member
0 Kudos

what is the purpose of describe stmt.

1. for field

2. for table

what does it returns or describes?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

Former Member
0 Kudos

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

gopi_narendra
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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