2024 Jan 03 1:42 PM
Hi Gurus!
Need your help.
READ TABLE GT_INTERN INTO LS_INTERN_BASE WITH KEY VALUE = 'CHARGE FOR: CON'.
LOOP AT GT_INTERN INTO GWA_INTERN
ENDLOOP.
Is there a way to use the value from internal table ?
Loop at T_FRT_VLD ASSIGNING FIELD-SYMBOL(<FS01>).
READ TABLE GT_INTERN INTO LS_ROW1 WITH KEY VALUE = (<FS01>-Z_Header for row 1)
READ TABLE GT_INTERN INTO LS_ROW2 WITH KEY VALUE = (<FS01>-Z_Header for row 2)
READ TABLE GT_INTERN INTO LS_ROW3 WITH KEY VALUE = (<FS01>-Z_Header for row 3)
READ TABLE GT_INTERN INTO LS_ROW4 WITH KEY VALUE = (<FS01>-Z_Header for row 4).
ENDLOOP.
like this?
2024 Jan 03 4:15 PM
Hello,
If i understand what you want to do correctly, something like this should work.
LOOP AT t_frt_vld ASSIGNING FIELD-SYMBOL(<fs01>).
READ TABLE gt_intern ASSIGNING FIELD-SYMBOL(<ls_row1>) WITH KEY z_header = <fs01>-z_header.
......
ENDLOOP.
You could also use the new ABAP syntax instead of a READ TABLE if your system supports it.
Thanks.
2024 Jan 04 8:31 AM
You have asked lots of questions last month about the exact same topic, and it seems you are still stuck, so probably you don't ask well, so I think the only solution to ask the question is to:
2024 Jan 04 8:44 AM
I understand that you want to read a line of a global table variable, using a local table column value as key.
You can use table expressions as follows:
DATA(ls_row) = gt_intern[ z_header = t_frt_vld[ 1 ]-z_header ].