‎2009 Nov 13 10:21 AM
Hi All,
We are using a function module ws_delivery_update to delete the delivery.
In 4.6 this function module is first used to delete the line item of delivery first and then this function module deletes the entire delivery from the database.
However in ECC6 this function module is not behaving in the same way.
Please let me know if there is any note available for the same.
This is how F.M. is being used:
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = ls_vbkok_wa
synchron = 'X'
commit = 'X'
delivery = pd_vbeln
if_error_messages_send = ' ' " $01_upg
if_error_messages_send_0 = ' ' " $01_upg
TABLES
vbpok_tab = lt_vbpok.
ls_vbkok_wa is blank.
pd_vbeln is delivery number
lt_vbpok has one entry in which delivery no. , item no. and lips_del = 'X' is filled.
Thanks and Regards,
aman
‎2009 Nov 13 10:26 AM
Hi,
Have a look at the documentation for the FM
Changes in supply
With this function module delivery are subject to change. The device can perform updates from picking on Kommissionierbelegflüsse (volumes & weights) when sitting UPDATE_PICKING parameters and quantities, weight and volume updates without Kommissionierflüsse if UPDATE_PICKING sits on SPACE. In this case, there is only one Einmalrückmeldung at any position. In VBPOK and VBKOK there are control parameters do, what changes will be implemented. Kommimengenänderungen are always in base unit number, quantity changes are always conducted in unit sales volume of the delivery position.
When not working on Kommissionierrückmeldung, all information must be given to a delivery position in the call, subsets and weight returns are not possible.
In the case of batches can be returned several records with different batches of VBPOK-POSNR_VL. The fields in the Include VBPOKKOMMI within the structure VBPOK) are only for the case of Kommissionierrückmeldung with the use of Kommissionierbelegflüssen relevant (eg WM transfer order confirmation.
The caller must evaluate both the log table PROT as well as the EXCEPTIONS OTHERS ERROR_MESSAHE and intercept.
Regards,
Lakshman.
‎2009 Nov 13 10:29 AM
Hi,
Some enhancement is removed in ECC6.
Have a look at this note.
Note 334794 - DELU via new function module
Regards,
Lakshman.