Skip to Content
0
Former Member
Dec 01, 2008 at 04:49 PM

divide one internal table to two diff

12 Views

HI,

i have internal table with to types of data and i want to separate it to to diff tables ,

what is the best way to do that?

i do like that:

loop at it_h assigning <fs_h>.
    if <fs_hier>-report = 'B_AP' .
      assign <fs_hier> to <bsp>.
      append <bsp> to it_bsp.
    elseif <fs_hier>-report = 'W_AP'.
      assign <fs_hier> to <wd_app>.
      append <wd_app> to it_wd.
    endif.
  endloop.

Regards