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

VL10H - collective delivery processing using background option

Former Member
0 Likes
5,319

Hi All,

In VL10H screen I select a sales order line items to create the deliveries using abckground option.

But I want to comapre the sales order schedule line qty (confirmed qty) Vs delivery qty (LFIMG) before save the delivery.

(Please note: some time after saving the sales order, there is a possibility where another sales order could have use that stock), then the first sales order may not have enough stock to create delivery (ie partial delivery)

if the delivery qty is different to confirmed qty, then I want to write an error into the VL10H error log and stop saving the delivery for that sales order line.

if the schedule line qty is same as delivery qty (LIPS-LFIMG), then VL10h should save the delivery without error.


How can I handle that checking in VL10h... what is the user-exit/Routine/BAdi should use for that..

is there a flag to stop creating delivery ?

if you can send me the samlpe ABAP code that would be help full.

Thanks,
Ken

Hi All,

In VL10H screen I select a sales order line items to create the deliveries using abckground option.

But I want to comapre the sales order schedule line qty (confirmed qty) Vs delivery qty (LFIMG) before save the delivery.

(Please note: some time after saving the sales order, there is a possibility where another sales order could have use that stock), then the first sales order may not have enough stock to create delivery (ie partial delivery)

if the delivery qty is different to confirmed qty, then I want to write an error into the VL10H error log and stop saving the delivery for that sales order line.

if the schedule line qty is same as delivery qty (LIPS-LFIMG), then VL10h should save the delivery without error.


How can I handle that checking in VL10h... what is the user-exit/Routine/BAdi should use for that..

is there a flag to stop creating delivery ?

if you can send me the samlpe ABAP code that would be help full.

Thanks,
Ken

3 REPLIES 3
Read only

former_member184675
Active Participant
0 Likes
3,064

Hi,

This issue is solved by correctly configuring the ATP check at sales order level.

I think this entire problem should be discussed with a functional person, because it sounds like a customizing task.

But fyi if you still want to enhance vl10h, check the following notes and user exists

include:

V50R_USEREXITS

V50R*


sap note:

198137

-

Andrei

Read only

0 Likes
3,064

Thanks !!

I still need to use VL10h user-exit to check the confirmed qty VS delivery qty..

reason we don't want to use the complete delivery indicator in the sales order.

I use these indiators and issue an error to the delivery log..But still save the delivery despite error.

       XLIPS_LOESCHEN = 'X'.
     XLIPS_LOESCHEN_MENGE_0 = 'X'.

I applied those checking under

   FORM USEREXIT_MOVE_FIELD_TO_LIPS.

also

   FORM USEREXIT_SAVE_DOCUMENT_PREPARE.

how to stop the delivery being saved, if there is an error in the log.

Thanks,

Ken

Read only

0 Likes
3,064

Hi,

Check BADI LE_SHP_DELIVERY_PROC with method DELIVERY_FINAL_CHECK.

-

Andrei