2012 Nov 09 4:29 AM
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
2012 Nov 09 8:28 AM
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
2012 Nov 14 1:20 AM
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
2012 Nov 15 11:21 AM
Hi,
Check BADI LE_SHP_DELIVERY_PROC with method DELIVERY_FINAL_CHECK.
-
Andrei
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |