2006 May 31 8:50 AM
Hi
I am having one internal table with one row. I know the column number. I want to read that particular column value. What should I add with the below statement.
Read table itab index 1.
This will give me the whole row. I want only the particular column.
Please help me to solve this issue
Thanks.
2006 May 31 8:52 AM
2006 May 31 8:53 AM
Hi subsar,
You might use Fieldsymbols for this.
READ TABLE itab INDEX 1.
ASSIGN COMPONENT col_num OF STRUCTURE itab TO <fs>.
2006 May 31 8:53 AM
Hi
FIELD-SYMBOLS: <FS_COLUNM> TYPE ANY.
Read table itab index 1.
ASSIGN COMPONENT <NUMBER OF COLUNM> OF SCTRUCTURE ITAB TO <FS_COLUNM>.
Max
2006 May 31 8:54 AM
Hi,
FIELD-SYMBOLS <FS_ANY>
ASSIGN COMPONENT N OF STRCUTURE OF WORKAREA TO <FS_ANY>
WRITE <FS_ANY>
Where n is the column number and workarea is the row of the internal table.
Rgards,
Ravi
Note : Please mark the helpful answers