Skip to Content
0

Sales Order User Exit update INCO1 & VSBED

Oct 25, 2016 at 08:38 PM

159

avatar image

Hi Team,

I am looking for a way through MV45AFZZ to update the Sales Order field VBAK-VSBED if VBKD-INCO1 has a certain value. This is required vice-versa too meaning, if VBKD-INCO1 has a value then a corresponding desired value in VBAK-VSBED.

It should work in VA01 & VA02.

The values are stored / read from a table.

I looked at the following MV45AFZZ_Move_fields but these do not touch both fields VSBED as well as INCO1.

Does anyone have any suggestions ?

MV45AFZZ_MOVE_FIELD_TO_VBAK_03

MV45AFZZ_MOVE_FIELD_TO_VBAK_09C

MV45AFZZ_MOVE_FIELD_TO_VBKD_05

Thanks in advance

10 |10000 characters needed characters left characters exceeded
Former Member

Hi Srinivas: Maybe you can try add code to 'USEREXIT_SAVE_DOCUMENT_PREPARE', Like follows:

so.jpg (43.9 kB)
0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jignesh Mehta Oct 26, 2016 at 09:18 AM
0

Hello,

I would suggest you to explore inserting Custom Code in Include - MV45AFZB. We have some Customer specific developments done here and they are working fine.

Thanks,

Jignesh Mehta

Share
10 |10000 characters needed characters left characters exceeded
Jelena Perfiljeva
Oct 26, 2016 at 08:01 PM
0

Almost exactly the same question has been asked before: https://archive.sap.com/discussions/thread/392355

If you simply google vbak-vsbed site:sap.com you'll find a few more posts. There seems to be no answer though and I'm afraid asking yet again won't help. I suspect that VSBED is not supposed to be changed in the user exits. Especially I would not recommend using SAVE_DOCUMENT... for this. This field is part of the route determination and if you just brutally force another value then the respective process change won't take place.

Why do you need to do this exactly? Based on the specific business case, you might want to look for other alternatives.

Share
10 |10000 characters needed characters left characters exceeded