2011 Jul 25 8:31 AM
Hi ABAPers,
Need help,
LOOP AT i_final_r1 INTO w_final_r1.
READ TABLE i_text1 INTO w_text1 WITH KEY w_final_r1-text1.
IF sy-subrc eq 0.
w_region1-werks = w_final_r1-werks.
w_region1-sy-tabix = w_final_r1-netwr. " Sy-tabix = 6. (for example)
append w_region1 to i_region1.
ENDIF.
ENDLOOP.In the above code I want to input value to the column( 1 or 2 ..or 6..) based on the sy-tabix obtained from above read statement.
How do I acheive this in ABAP coding.
Regards,
Dep
2011 Jul 25 8:38 AM
Hi Dep,
I think what you need is:
ASSIGN COMPONENT sy-tabix of w_region1 to <fs>.
<fs> = w_final_r1-netwr.
Best regards,
Oliver
Hi ABAPers,
Need help,
LOOP AT i_final_r1 INTO w_final_r1.
READ TABLE i_text1 INTO w_text1 WITH KEY w_final_r1-text1.
IF sy-subrc eq 0.
w_region1-werks = w_final_r1-werks.
w_region1-sy-tabix = w_final_r1-netwr. " Sy-tabix = 6. (for example)
append w_region1 to i_region1.
ENDIF.
ENDLOOP.In the above code I want to input value to the column( 1 or 2 ..or 6..) based on the sy-tabix obtained from above read statement.
How do I acheive this in ABAP coding.
Regards,
Dep
2011 Jul 25 8:38 AM
Hi Dep,
I think what you need is:
ASSIGN COMPONENT sy-tabix of w_region1 to <fs>.
<fs> = w_final_r1-netwr.
Best regards,
Oliver
2011 Jul 25 9:40 AM
2011 Jul 25 9:54 AM