cancel
Showing results for 
Search instead for 
Did you mean: 

Block creating deliveries in VL04/ VL10*

KrisKanth
Explorer
0 Kudos

Hi,

I have a requirement to split the delivery based on weight, volume and other conditions using t.codes VL04/ VL10*.

For this, I am using one of the enhancement point in routine 301 and passing running sequence number to LIKP-ZUKRL field.

I am able to successfully split the delivery, but I need to know how to delete the deliveries if a delivery is not having sufficient weight. I am trying to use USEREXIT_SAVE_DOCUMENT_PREPARE to delete the deliveries which were not having required weight. I am partially succeeded here, but the deleted delivery line items were still blocking the stock. I can see the deleted deliveries having dollar sign ($) like $  3 blocking the stock in t.code MD04.

Please let me know if you have an idea or solution to resolve this issue.

Regards

Krishna

Accepted Solutions (1)

Accepted Solutions (1)

KrisKanth
Explorer
0 Kudos

Resolved myself.

Need to remove the entries from VBUP, VBPA, VBUK, VBLS, VBBE runtime tables along with entries from LIKP and LIPS. All these tables will be built before creating the deliveries and will have the temporary delivery number prefixed with '$' sign.

Answers (1)

Answers (1)

Shiva_Ram
Active Contributor
0 Kudos

Instead of using the user exit, why don't you try to control in the copy control requirements routine itself? Check the t.code VTLA ->item level ->requirements field. Copy the existing routine in t.code VOFM and create new one with additional logic to check the weight of the items. If there is no item, don't create delivery for that item.

Regards,

KrisKanth
Explorer
0 Kudos

Shiva,

Thanks for your response.

My scenario is to create outbound deliveries from stock transport orders not from the sales orders using t.code: VL04/ VL10*.

Regards

Krishna