cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Order User Exit update INCO1 & VSBED

srinivas_rao100
Explorer
0 Kudos

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

0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Jelena
Active Contributor
0 Kudos

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.

jignesh_mehta3
Active Contributor
0 Kudos

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