‎2006 Feb 10 11:10 PM
Hi Guys,
I have developed a functionality in RF in order to perform packing in a delivery.
I am using FM WS_DELIVERY_UPDATE to perform packing in a HU. However, when a user tries to pack a material which has a volume greater than allowed volume in the HU (VEKP-MAVOL) the FM deletes the HU which is already packed with some other material.
I am only interested in the message related to volume error but existing HU should not be deleted.
I am passing following parameters to WS_DELIVERY_UPDATE
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = lw_vbkok
synchron = 'X'
NO_MESSAGES_UPDATE = ' '
commit = 'X'
delivery = w_9000-vbeln
UPDATE_PICKING = ' '
NICHT_SPERREN = ' '
IF_CONFIRM_CENTRAL = ' '
IF_WMPP = ' '
IF_GET_DELIVERY_BUFFERED = ' '
IF_NO_GENERIC_SYSTEM_SERVICE = ' '
IF_DATABASE_UPDATE = '1'
IF_NO_INIT = ' '
IF_NO_READ = ' '
IF_ERROR_MESSAGES_SEND_0 = 'X'
if_no_buffer_refresh = ' '
IF_NO_MES_UPD_PACK = ' '
IMPORTING
EF_ERROR_ANY_0 =
EF_ERROR_IN_ITEM_DELETION_0 =
EF_ERROR_IN_POD_UPDATE_0 =
EF_ERROR_IN_INTERFACE_0 =
EF_ERROR_IN_GOODS_ISSUE_0 =
EF_ERROR_IN_FINAL_CHECK_0 =
TABLES
VBPOK_TAB =
PROT =
verko_tab = lit_verko[]
verpo_tab = lit_verpo[]
VBSUPCON_TAB =
IT_VERPO_SERNR =
IT_PACKING =
IT_PACKING_SERNR =
IT_REPACK =
it_handling_units = lit_hu[]
ET_CREATED_HUS =
TVPOD_TAB =
EXCEPTIONS
error_message = 99.
IF sy-subrc <> 0.
call_message_screen sy-msgid sy-msgno sy-msgv1
sy-msgv2 sy-msgv3 sy-msgv4
c_message_screen w_ans.
lw_retcode = 4. "Error
ENDIF.
FYI: I debugged WS_DELIVERY_UPDATE and found that deletion occurs in FM V51F_PACKING_CREATE within routine ROLLBACK_HU_CREATION. Rollback simply deletes the HU when the error occurs.
If this doesn't work only hope for me is to do all such validations in my code before passing to this FM.
However, I may not aware of all the scenarios in advance.
Any help would be appreciated.
Thanks
Yogi
‎2006 Feb 10 11:26 PM
‎2006 Feb 10 11:26 PM
‎2006 Feb 14 3:13 PM
I am aware of this OSS note.
But the fact is there is no other interface available to perform packing operations realted to a delivery.
BAPIs provided by SAP for HU are no good for packing in a delivery.
Anyways thanks for your reply I was able to resolve my issue.
May be we should suggest SAP to come with new interface in this area.
Thanks
Yogi
‎2007 Aug 09 9:16 AM
Hi Yogi,
I am also facing the similar issue.
I would request you to post the solution which you found to resolve the issue.
Thanks in Advance
Ankit Gupta