10-17-2006 4:16 AM
what is the purpose of describe stmt.
1. for field
2. for table
what does it returns or describes?
10-17-2006 4:21 AM
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
10-17-2006 4:21 AM
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
10-17-2006 4:25 AM
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
10-17-2006 4:34 AM
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