You are on page 1of 1

Splitting the row in internal table

TYPES : BEGIN OF TY_PA30, LGA01 TYPE PA0008-LGA01, BET01 TYPE PA0008-BET01, END OF TY_PA30. APPEND WA_PA0008 TO LT_PA0008. assign wa_pa0008 to <fs>. while sy-subrc eq 0. assign component sy-index of structure wa_PA0008 to <fs>. int = int + 1. int = int mod 2. if int ne 0.

wa_pa30-lga01 =

<fs>.

else. wa_pa30-bet01 =

<fs>.

if wa_pa30-lga01 is not initial and wa_pa30-bet01 is

initial.

append wa_pa30 to lt_pa30. clear wa_pa30. endif. endif. if wa_pa30-lga01 is not initial and wa_pa30-bet01 is not initial. append wa_pa30 to lt_pa30. clear wa_pa30. endif. endwhile. APPEND WA_PA00081 TO LT_PA0008.

You might also like