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

VA02 - Saving - Item data

Former Member
0 Likes
1,514

Hello Friends,

I am facing some issue in SO change - Va02.

I have added a line item and have saved it earlier. I select the line item go to the Dispaly Sold to Party details, Go to Sales area Data - Select the Shipping tab.

Here we use the delivery priority for raising few rejections and stop the processign of the line item.

But in the Usetr Exit MV45AFZZ - Under document save and Prepare I have written the code for reason for rejection and update ZVBPA structure with valid data as per requirements.

This works fine when I do any change in SO at ITem level details and hit save button every thing works fine.

But when I change some thing in header and without touching the Line item, the XVBPA Sturture though has values populated as per my code. It is not getting popluated in Update VBPA in the Std program.

The structure that is finally getting passed to this update is empy (blank).

How do we make sure that The Line ITems also gets updated along with the header data for every change we do in the User Exit?

This is very Critical.

Regards

Ramesh

7 REPLIES 7
Read only

Former Member
0 Likes
1,082

check where exactly you are writing your code. may be after yur code the XVBAP structure has been changed. you can put a break point on your code and check

Read only

0 Likes
1,082

It is getting updated in XVBAP but further when it gets updated and carried forwards update VBPA the structure turn out to be blank as the Item data was never changed.

Read only

0 Likes
1,082

MV45AFZZ is a PBO include. so wont help much for you i guess.

try some BADI

Read only

Former Member
0 Likes
1,082

HI,

If u change any line item then that particular line item only validated in MV45AFZB exit.

Try to use this exit to validate only changed line item.

Read only

Former Member
0 Likes
1,082

Hi,

If you want to make sure partner function/item changes should trigger the user-exit write your logic under

FORM userexit_move_field_to_vbap.

Also validate header changes through FORM userexit_move_field_to_vbak..

Always modify the structure prefixed 'X'.

For eg: XVBAK, XVBAP, XVBPA, etc.

Also check include ZXV09U02 in user exit LXV09U02.

Regards,

Amit

Edited by: Amit Iyer on Aug 31, 2009 5:33 PM

Read only

0 Likes
1,082

FORM userexit_move_field_to_vbap.

this gets triggered only when the value in Line item is changed. I am not touching the line item but I am updating the Header. Plus the sold to party details by selecting the line item.

Read only

Former Member
0 Likes
1,082

Done.