Skip to Content
0
Mar 01, 2009 at 11:16 PM

ABAP loop inside eCATT

173 Views

Hello Colleagues,

I want to read multiple values from a table and display for which i going thru an loop .

But to display it is becoming an problem can you kindly see the code below .

Am trying to store the table fields in an table as mentioend below in the ABAP ENDABAP code.

V_C3[]-TABLE_LINE = <fs_field>.

But i am getting an error while compiling the code.

Can you suggest the solution for the same ?

loop at <fs_itab> assigning <fs_wa>.

assign component 'CLIENT' of structure <fs_wa> to <fs_field>.

V_CLIENT = <fs_field>.

assign component 'C0' of structure <fs_wa> to <fs_field>.

V_C0 = <fs_field>.

assign component 'C1' of structure <fs_wa> to <fs_field>.

V_C1 = <fs_field>.

assign component 'C2' of structure <fs_wa> to <fs_field>.

V_C2 = <fs_field>.

assign component 'C3' of structure <fs_wa> to <fs_field>.

V_C3[]-TABLE_LINE = <fs_field>.

assign component 'C4' of structure <fs_wa> to <fs_field>.

V_C4 = <fs_field>.

assign component 'C5' of structure <fs_wa> to <fs_field>.

V_C5 = <fs_field>.

assign component 'C6' of structure <fs_wa> to <fs_field>.

V_C6 = <fs_field>.

assign component 'C7' of structure <fs_wa> to <fs_field>.

V_C7 = <fs_field>.

assign component 'C8' of structure <fs_wa> to <fs_field>.

V_C8 = <fs_field>.

assign component 'MESSAGE_ID' of structure <fs_wa> to <fs_field>.

V_MESSAGE_ID = <fs_field>.

assign component 'TIMESTAMP' of structure <fs_wa> to <fs_field>.

V_TIMESTAMP = <fs_field>.

assign component 'EXTRACTKEY' of structure <fs_wa> to <fs_field>.

V_EXTRACTKEY = <fs_field>.

assign component 'STATEID' of structure <fs_wa> to <fs_field>.

V_STATEID = <fs_field>.

assign component 'DEVICE_ID' of structure <fs_wa> to <fs_field>.

V_DEVICE_ID = <fs_field>.

ENDLOOP.

regards

harsha