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

VA01 - user exit to do field modification

Former Member
0 Likes
1,598

I have need in VA01, where in I need to

1. Move a z field into vbap-ntgew (shipping tab) on the line item. this should happen during create. user tabs to shipping tab from additional data b in line item

2. move the z field value to vbap-ntgew during save. i am able to do this for va02 in user_save_document_prepare. But in VA01, i tried modifying xvbap and giving the updkz field as 'U' and 'I', still does not work.

any pointers will be appreciated.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,051

Hi

Could you please tell where is NTWEG in Additional data B in VA02.I could not find the field there?

Thanks and Regards

Davinder Singh

I have need in VA01, where in I need to

1. Move a z field into vbap-ntgew (shipping tab) on the line item. this should happen during create. user tabs to shipping tab from additional data b in line item

2. move the z field value to vbap-ntgew during save. i am able to do this for va02 in user_save_document_prepare. But in VA01, i tried modifying xvbap and giving the updkz field as 'U' and 'I', still does not work.

any pointers will be appreciated.

4 REPLIES 4
Read only

Former Member
0 Likes
1,051

Hi,

You can write the code in subroutine USEREXIT_MOVE_FIELDS_TO_VBAP in MV45AFZZ.

  vbap-ntgew = ztable-field.  

It works for both VA01 and VA02.

Regards

Sailaja.

Read only

0 Likes
1,051

It did not work for me. I had tried that. For VA02 as I had said, it works for me. I have the code in save doc prepare.

thanks anyways for ur time

Read only

0 Likes
1,051

Hi Swaroop,

I did the same requirement in my project.

I have written code in USEREXIT_MOVE_FIELDS_TO_<b>VBAP</b>.

Check if the select on Z table is fetching data or not.

Regards

Sailaja.

Read only

Former Member
0 Likes
1,052

Hi

Could you please tell where is NTWEG in Additional data B in VA02.I could not find the field there?

Thanks and Regards

Davinder Singh