‎2008 Dec 01 4:49 PM
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
‎2008 Dec 01 5:14 PM
‎2008 Dec 01 4:56 PM
Hi
For me this looks fine. Are you facing any performance problem due to this?
Cheers,
Hakim
‎2008 Dec 01 5:09 PM
HI Abdul,
Thanks,
no i just want to now that i am in the right way.
Regards
‎2008 Dec 01 5:12 PM
‎2008 Dec 01 4:59 PM
‎2008 Dec 01 5:14 PM
‎2008 Dec 03 7:31 AM
If hyou have for sure only B_AP and W_AP entries in your table, you can save some CPU seconds by eliminating the elseif to else avoiding an unnecessary comparison.