cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while inserting extra line item in XVBAP

former_member217000
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sameer,

i think, you have added the line in XVBAP - not in XVBAK.

And what's about VBEP - without an entry in VBEP, there will be no delivery note. There are also several indexes for the delivery.

I hav'n dared to put an extra Line into the oder while Save_prepare.

Perhaps try the bapi for order changing.

You can get the new order-number while userexit Save. Save the need of change in an extra teble and change is via bapi with a background - job.

Hans

Answers (0)