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

MV45AFZZ query

Former Member
0 Likes
791

Hello,

I am adding some bespoke logic to routime USEREXIT_SAVE_DOCUMENT in MV45AFZZ.

While testing, I have noticed that when I change the Ship To party at the item level, the xvbak structure is not populated.

This is causing some of my checks to fail when they should in fact be true.

Can anyone advise why this is the case?

In all other test cases, xvbak is always populated as I would expect.

Thanks,

Ruby

Hello,

I am adding some bespoke logic to routime USEREXIT_SAVE_DOCUMENT in MV45AFZZ.

While testing, I have noticed that when I change the Ship To party at the item level, the xvbak structure is not populated.

This is causing some of my checks to fail when they should in fact be true.

Can anyone advise why this is the case?

In all other test cases, xvbak is always populated as I would expect.

Thanks,

Ruby

2 REPLIES 2
Read only

Former Member
0 Likes
645

Hello,

I think you are changing Ship To Party at header level...

please check you are using the conversion_exit_alpha_input before adding customer number to ship tio part field...

if it is not solved, please elaborate us with the exact problem....may be you can give code reference...

thanks

Krish

Read only

0 Likes
645

Hello,

Perhaps I did not explain the problem very well. Here are some more details.

The changes I am making include adding entries into a bespoke table when various changes occur on a sales order.

One of these things is the change to the Ship To at header or item level.

My changes are only applicable to a particular sales org / order type so I have a check along the following lines:-

If xvbak-vkorg = 1000 and xvbak-auart = OR

...

...

endif.

This works fine except when I change the ship to at the line item level in which case xvbak is initial and hence this check fails!

In these cases, vbak is available with the correct entries but I am not sure whether I should be using vbak as my understanding was that the xvbak structure holds the new data.

Any thoughts on this would be appreciated.