hi
I want to fetch the value of a table's field-name into another variable, can you tell me how to do this..
Something like this
LOOP AT itab INTO wa_itab.
CASE ITAB-COL.
WHEN '0001'.
WA_RECORD-MANDT = ITAB-VALUE.
WHEN '0002'.
WA_RECORD-NAME2 = ITAB-VALUE.
ENDCASE.
AT END OF row.
APPEND wa TO itab_sflight.
w_col = 1.
ENDAT.
ENDLOOP.
In the above code if COL value is 2 then I want to fetch the second fieldname from SFLIGHT table... so my answer should be CARRID..