2009 Sep 02 5:25 AM
Dear Experts,
I hv two internal table i_Bseg and i_faglflexa. And both contains some common fields.
Now I want to append i_faglflexa table with i_bseg fields which is common in both.
How can i do this ?
shall my loop look something like this?
loop at i_bseg.
append corresponding i_bseg to i_faglflexa.
endloop.
Need ur suggestion.
Regards
Maverick
you could have solved it on your own with a little more effort
Edited by: Suresh Datti on Sep 2, 2009 11:55 AM
2009 Sep 02 5:29 AM
Hi,
Try like this,
loop at i_bseg.
move-corresponding i_bseg to i_faglflexa.
append i_faglflexa.
clear i_faglflexa.
endloop.
Regards,
Vikranth
2009 Sep 02 5:31 AM
Keep both table fields in same order then
append lines of i_bseg into i_faglflexa.
Then no need of loop
a®
2009 Sep 02 5:33 AM
Dear ,
Use this.
loop at i_bseg into wa_bseg.
move-corresponding wa_bseg to wa_faglflexa.
append wa_faglflexa to i_falflexa.
clear: wa_faglflexa, wa_bseg.
endloop.
Regards,
Vijay
2009 Sep 02 5:34 AM
HI, I would suggest to use the existing program logic to move the similar fields from one internal table to other, rather than writing seperate logic for the same.
Try to understand the existing logic , you will be able to reduce unnecessary statements for move.
Hope it helps you.