Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to avoid a field while using MOVE-CORRESPONDING

Former Member
0 Likes
5,325

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

7 REPLIES 7
Read only

suresh_datti
Active Contributor
0 Likes
2,750

Hi,

clear the field before moving..

clear WA_TAB_RBCO-BUZEI.

MOVE-CORRESPONDING WA_TAB_RBCO INTO I_FINALTAB.

Regards,

Suresh Datti

Read only

Former Member
0 Likes
2,750

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.

Read only

0 Likes
2,750

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>

Read only

Former Member
0 Likes
2,750

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

Read only

Former Member
0 Likes
2,750

Hi Anitha,

Before move-corresponding clear that field alone.

that will solve the problem.

regards

vijay

Read only

Former Member
0 Likes
2,750

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.

Read only

Former Member
0 Likes
2,750

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.