2009 Jun 11 5:57 AM
i have below declarations
FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE,
<fs_table1> TYPE STANDARD TABLE.
now i want to do below things.
loop at <fs_table>.
endloop.
it gives error "The internal table <fs_table> has no header line.
i also want to do below once above is error is solved.
loop at <fs_table>.
read table <fs_table1> with key ...........
endloop.
Pls help.
i have below declarations
FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE,
<fs_table1> TYPE STANDARD TABLE.
now i want to do below things.
loop at <fs_table>.
endloop.
it gives error "The internal table <fs_table> has no header line.
i also want to do below once above is error is solved.
loop at <fs_table>.
read table <fs_table1> with key ...........
endloop.
Pls help.
2009 Jun 11 5:58 AM
2009 Jun 11 7:41 AM
2009 Jun 11 7:42 AM
2009 Jun 11 7:24 AM
declare a work area field symbol and do as:
<wa> type any.
loop at <fs> into <ws>.
endloop.
And <fs> is dynamic, how can u know the key fields of this dynamic table to use a read statement?
Are the fields for key unique?
Edited by: Veeranji Reddy on Jun 11, 2009 11:54 AM
2009 Jun 11 7:27 AM
Hi santosh,
Try this...
FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
<DYN_WA>,
<DYN_FIELD>,
<Y_FLD> TYPE ANY.
Regards,
Kittu
2009 Jun 11 7:32 AM
Hi,
Create a Field symbol with TYPE ANY.
Then
LOOP AT <FS_TABLE> assigning/into <FS_WA>.
your logic.....
ENDLOOP.
you can use ASSIGN COMPONENT statement to move the value from <FS_WA> into another field symbol <FS_VAL> of TYPE ANY. nnow this <FS_VAL> will contain the value of the field you want to pick.
Thanks,
Prashanth
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |