Application Development 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: 

Blocking Delivery Creation in VL10a

Former Member
0 Kudos

I want to prevent the creation of more than one delivery from a sales order during background processing using transaction VL10A

If an order has multiple delivery dates on it VL10a (or the clients version of it ZVL10a) is creating multiple deliveries one for each date

I want to prevent it from creating the second delivery and output an appropriate message to the collective log.

Within the save document prepare exit in MV50AFZ1 I can detect on the second item that there is already a delivery against the order by checking the header delivery status in XVBUK for the sales order.

I have looked at copy requirements but the data needed to detect this is not available at this point. XVBUK has not been updated.

Any advice gratefully recieved!!!!

2 REPLIES 2

madhu_vadlamani
Active Contributor
0 Kudos

Hi Tim,

Did you check with functional people for this.

Regards,

Madhu.

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

See Note 198137 - VL10: Customer-specific enhancements / user exits. You have this suggestion:


Use LV50R_VIEWG02 for a document list,
LV50R_VIEWG03 for an index list for orders, LV50R_VIEWG06 or
LV50R_VIEWG13 for an index list for purchase orders and
LV50R_VIEWG07 or LV50R_VIEWG12 for deliveries.You can suppress a
list line by returning cf_subrc <> 0.

I hope this helps you

Regards

Eduardo