‎2006 Jan 25 1:52 PM
hi,
i am using MOVE-CORRESPONDING WA_TAB_RBCO INTO I_FINALTAB.
but while moving i don't want to move one field alone how to give that.
I_FINALTAB has got many fields like belnr, buzei but while giving MOVE-CORRESPONDING I need to remove buzei how should i give it using MOVE-CORRESPONDING.
Regards,
anitha
‎2006 Jan 25 1:54 PM
Hi,
clear the field before moving..
clear WA_TAB_RBCO-BUZEI.
MOVE-CORRESPONDING WA_TAB_RBCO INTO I_FINALTAB.
Regards,
Suresh Datti
‎2006 Jan 25 1:55 PM
why dont you clear the field after move-corresponding ?
data :
wa_finaltab like line of ifinaltab.
clear wa_finaltab-buzei
modify ifinalab
from wa_finaltab
transporting buzei where buzei ne space.Just an idea.
‎2006 Jan 25 1:58 PM
If you want to keep old value...
data : l_tmp_buzei type bizei.
loop at tab.
l_tmp_buzei = l_new-buzei.
move-corr...
l_new-buzei = l_tmp_buzei.
endloop.<b>thx for reward</b>
‎2006 Jan 25 1:57 PM
Hi anitha,
Here you can do 3 things,if it is only one field you
dont want to move data then
After move-corresponding clear that field before append
clear I_FINALTAB-buzei.
or
You can declare that particular field with different
name in the I_FINALTAB.
or
Clear the workarea field before moving.
Hope this will help you.
Thanks&Regards,
Siri.
Message was edited by: Srilatha T
‎2006 Jan 25 1:59 PM
Hi Anitha,
Before move-corresponding clear that field alone.
that will solve the problem.
regards
vijay
‎2006 Jan 25 2:04 PM
Don't declare that field itself if you don't need it.If you still need it for some other purpose,
Have that field under a different name in I_Finaltab.
‎2006 Jan 25 2:25 PM
Hi Anitha,
1. If nothing works, then
do in 2 steps.
2. Declare ONE More work area,
similar to I_FINALTAB.
(say ITAB) (for temporary backup/copy purpose)
3. Then everytime (for eg. in a loop)
use this :
ITAB = I_FINALTAB.
MOVE-CORRESPONDING WA_TAB_RBCO INTO I_FINALTAB.
I_FINALTAB-BUZEI = ITAB-BUZEI.
regards,
amit m.