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

Problem with the SD user exit

Former Member
0 Likes
688

Hi Experts,

I have to add extra line item in the Sale order through user exit.

So i added new line item in the internal table XVBAK of the subroutine USEREXIT_SAVE_DOCUMENT_PREPARE (MV45AFZZ). Its working fine with the sales order. But when I create delivery of the same new iserted line item is not going to the delivery.

Please give me solution...

Thanks

Sameer

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
651

Hi,

delivery is an other program.

MF50AFZZ or MF50AFZB

Regards

Nicole

6 REPLIES 6
Read only

Former Member
0 Likes
652

Hi,

delivery is an other program.

MF50AFZZ or MF50AFZB

Regards

Nicole

Read only

0 Likes
651

Thanks nicole.

Do i need to write code there to add item in the delivery???

Does std program is not picking delivery from there??

Sameer

Read only

Former Member
0 Likes
651

Hi ,

You need to implement the same logic for deliveris also through user exit.

write your code in USEREXIT_SAVE_DOCUEMNT_PREPARE, MV50AFZ1.

Regards,

Vishvesh

if helpful, rewards it.

Read only

0 Likes
651

Hi,

you need to implement the same logic as MV45AFZZ.

The routine is

MV50AFZ1 (USEREXIT_SAVE_DOCUMENT_PREPARE)

This is the routine, SAP works before the delivery is saved.

Points if helpfull

Nicole

Read only

0 Likes
651

Thanks.

Do I need to do same for billing also??

Points are rewarded...

Sameer

Read only

0 Likes
651

HI,

sure.

MV60AF0B_BELEG_SICHERN