Packing in WS_DELIVERY_UPDATE
I am updating the packing for an existing delivery using WS_DELIVERY_UPDATE.
The HU's are being updated with no problem, but the the Packing Status is not being updated (VBUK-PKSTK).
Sorry I forgot a very imortant thing in the earlier post which might be your problem.
Comment and executable statements prior to the FM call:
*-- WARNING - Save the no_commit and restore after FM run.
dg_no_commit = v50agl-no_commit.
If you execute the FM within the userexit with commit = ' ' then the userexit's no_commit value is 'X' and it will not complete the changes like status updating etc. After the FM run I have the statement:
v50agl-no_commit = dg_no_commit.
That restores the value the original userexit had.
Jim Shupe, Eastman Chemical Co.
Similar Messages
-
Packing using WS_DELIVERY_UPDATE Error
Hi Experts,
I've been browsing the forums, and, despite the many examples available I can't put this FM(WS_DELIVERY_UPDATE) to work.
I want to do Packing of outbound Delivery using VL02N.I am using below Code ,But it's not Working.
it's not giving any error (Sy-subrc 0 & i_prot is empty )but it's not create any HU or Updating Delivery Document no.I also tried some BAPI for Create HU but still not woring.
->BAPI_HU_CREATE
->BAPI_HU_PACK
DATA:
wa_vbkok TYPE vbkok,
wa_hus TYPE TABLE OF vekpvb,
wa_pack TYPE REPACK_HU_WM OCCURS 0 WITH HEADER LINE,
i_prot LIKE STANDARD TABLE OF prott WITH HEADER LINE.
data : VERKO type VERKO occurs 0 with header line.
wa_vbkok-vbeln = pvbeln.
wa_vbkok-vbeln_vl = pvbeln.
**wa_pack-desthu = exidv.
wa_pack-quantity = pqty.
wa_pack-meins = pmeins.
wa_pack-matnr = pmatnr.
**wa_pack-charg = pcharg.
wa_pack-werks = pwerks.
wa_pack-lgort = plgort.
wa_pack-vbeln_vl = pvbeln.
wa_pack-posnr_vl = pposnr.
wa_pack-object = '01'.
wa_pack-objkey = pvbeln.
APPEND wa_pack.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
VBKOK_WA = wa_vbkok
SYNCHRON = 'X'
COMMIT = 'X'
DELIVERY = wa_vbkok-vbeln
TABLES
prot = i_prot
VERKO_TAB = VERKO
IT_PACKING = wa_pack
ET_CREATED_HUS = wa_hus
EXCEPTIONS
ERROR_MESSAGE = 1
OTHERS = 2.
COMMIT WORK AND WAIT.
Thanks,
Nehal.The BAPIs for HU create/change work when HU management is switched on in your system. I had a similar requirement where packing was required without HU management. I got it working using Fm -BAPI_OUTB_DELIVERY_CONFIRM_DEC. Below is relevant code.
ls_headerdata-deliv_numb = lv_delivery.
ls_control-deliv_numb = lv_delivery.
ls_bapidlvhdunhdr-hdl_unit_exid = <fs_hdunhdr>-hdl_unit_exid.
ls_bapidlvhdunhdr-hdl_unit_exid_ty = 'F'. "External identifier
ls_bapidlvhdunhdr-plant = <fs_hdunhdr>-plant.
ls_bapidlvhdunhdr-ship_mat = <fs_hdunhdr>-ship_mat.
ls_bapidlvhdunhdr-sh_mat_typ = <fs_hdunhdr>-sh_mat_typ.
append ls_bapidlvhdunhdr to lt_hdunhdr.
ls_bapidlvhdunitm-hdl_unit_exid_into = <fs_hdunitm>-hdl_unit_exid_into.
ls_bapidlvhdunitm-batch = <fs_hdunitm>-batch.
ls_bapidlvhdunitm-pack_qty = <fs_hdunitm>-pack_qty_base.
ls_bapidlvhdunitm-deliv_item = <fs_hdunitm>-deliv_item.
ls_bapidlvhdunitm-deliv_numb = iv_delivery.
append ls_bapidlvhdunitm to lt_hdunitm.
call function 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
exporting
header_data = ls_headerdata
header_control = ls_control
delivery = lv_delivery
tables
item_data = lt_bapiobdlvitemcon
item_control = lt_bapiobdlvitemctrlcon
item_data_spl = lt_bapiobdlvitemdataspl
handling_unit_header = lt_hdunhdr
handling_unit_item = lt_hdunitm
return = lt_return.
I hope it helps. -
Bapi for Picking, Packing and Post goods issue (WS_DELIVERY_UPDATE)
Hi,
I have a requirement to update the outbound delivery. In that, I need to update the picking, Packing details and have to complete the PGI for the particular delivery. I got the suitable function module for the same is : WS_DELIVERY_UPDATE.
Can anyone tell me what parameters should I need to pass to perform my above requirements.
Thanks in advance.
Regards
Ramesh mavilla.I can Update picking and PGI using the above BAPI. But I am unable to create the Handling Units properly with the above mentioned BAPI befor PGI. Can any one help me ASAP.
Thanks
Ramesh mavilla. -
WS_DELIVERY_UPDATE packing update weight
Hello,
I tried to update the weight of a existing HU in an outbound delivery with function module WS_DELIVERY_UPDATE. To achieve this I filled the corresponding fields of table VERKO_TAB (e.g. BRGEW, ...). But it didn't work. After processing the function module the weights had not changed.
Hope anyone could help me.
Andreas KutherDATA: L_VBKOK LIKE VBKOK,
L_VBPOK TYPE STANDARD TABLE OF VBPOK WITH HEADER LINE.
CLEAR : L_VBKOK, L_VBPOK[].
*-Assigning delivery and line item
L_VBKOK-VBELN_VL = P_VHILM_KU+0(10).
L_VBPOK-VBELN_VL = P_VHILM_KU+0(10).
L_VBPOK-POSNR_VL = P_VHILM_KU+10(6).
APPEND L_VBPOK.
CLEAR L_VBPOK.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
VBKOK_WA = L_VBKOK
SYNCHRON = ' '
NO_MESSAGES_UPDATE = ' '
COMMIT = ' '
DELIVERY = L_VBKOK-VBELN_VL
NICHT_SPERREN = 'X'
TABLES
VBPOK_TAB = L_VBPOK.
COMMIT WORK.
Use<b> Commit WORK</b>
vijay -
HU Creation using WS_DELIVERY_UPDATE
Hi All,
I am using FM WS_DELIVERY_UPDATE to create HU and update the inbound delivery. This works good if my delivery has one line item.
But when my delivery has more than one line item I want to create those many number of HUs for that delivery. But when i try this it still creates one HU even though I am passing multiple entries (depending on number of line items in delivery) in table VERKO_TAB
For example: Delivery 80001234 has 2 line items. So I am appending two entries with same packaging material in VERKO_TAB.
Since this delivery has 2 line items I am expecting 2 HUs created for this delivery.
My question is can we create multiple HUs for this delivery? If so, what parameter I should pass to create multiple HUs.
I do not want to loop through the line items of the delivery and call up this FM to create one HU at a time since it is not efficient. I want to call this FM only once per delivery and create those many HUs depending on the number of line items in delivery.
Any idea in this regard would be greatly appreciated.
Thanks,
sandeepHi Keshav
The FM mentioned by you creates one HU at a time. Also it can be used to pack multiple items into the created HU.
But my requirement is like this.
If a delivery has 10 delivery line items, we should create 10 HUs for that delivery. I am not concerned about the packing at this moment as it can be achived easily using WS_DELIVERY_UPDATE.
Any ides?
Thanks,
Sandeep -
HU_PACKING_AND_UNPACKING not working after WS_DELIVERY_UPDATE
Hello,
I have noticed strange behaviour of WS_DELIVERY_UPDATE ... please take a look at that:
1. I am packing items to delivery using HU_PACKING_AND_UNPACKING (and HU_POST) ... items are added/updated to vepo and are visible in VL33n.
2. After all the packing is done I am calling WS_DELIVERY_UPDATE and relevant information are updated in VL33n.
3. When (wihout closing my program) I pack another materials (or add new quantities to existing) using HU_PACKING_AND_UNPACKING (and HU_POST) ... data is not updated in vepo and VL33N ...
4. After closing the program and starting it again I can perform step 3. without problem, but again only until WS_DELIVERY_UPDATE is called for the first time.
The idea of the program is to pack different materials to different HU without restarting the program after each WS_DELIVERY_UPDATE ... I guess that it sets some global variables or other stuff I cannot find. Have you faced sth like that? Any ideas how to solve it? Maybe there is an easy way to "clear" user buffer from abap program? Or maybe there is FM that "resets HU global variables" to initial status ...
Looking forward to any tips ...
FSI have tried HU_PACKING_REFRESH ... but it is not working as supposed
-
WS_DELIVERY_UPDATE
Hi,
I need to change the inbound delivery by packing(VL32N) it with the handling unit and save the delivery .
will the ws_delivery_update work in this scenario?if yes, pls advice the relevant parameters that needs to be passed as its not updating the transaction VL32N.
Regards
GunjanHi,
I need to change the inbound delivery by packing(VL32N) it with the handling unit and save the delivery .
will the ws_delivery_update work in this scenario?if yes, pls advice the relevant parameters that needs to be passed as its not updating the transaction VL32N.
Regards
Gunjan -
Packing using function modules in outbound delivery
Hi All,
I am creating a outbound delivery using BDC. I am trying to Create HUs, Pack and assign serial numbers. I wish to do it using standard FMs.
Please advise.
Step # 1. I was able to create HUs using BAPI_HU_CREATE .
I was not sure on the HU_EXID_TYPE though. I created with
'F' -No. rnge obj. HU_VEKP external interval - SSCC18 before GI.
Step #2 I assigned the HU to my Outbound delivery by updating VPOBJKEY and VPOBJ field of VEKP table. QUERY.
This also successful. I am now able to see the HU attached to the Outbound delivery.:)
Step #3 But I am not sure how to do the packing/ Assign Serial numbers. Need help?
I am working with FM WS_DELIVERY_UPDATE...... Pls advice.
Not sure on the values that I need to pass. Please help!
Thanks!hi sridhar,
i have the same requirement as yours....
but i m facing some problems with it....can u please share u r solution ?
thanks and regards,
Omkar -
Handling Unit packing into shipment
Hi experts,
At our client, we are developing a new packing function similar to HUPAST, but which is capable of packing at the shipment level.
Our requirement is that, packing will be done directly at the shipment level. Products are NOT packed into deliveries first. For this, we made packing not mandatory in the configuration which allows us to pack directly at the shipment without packing at the delivery. We tried using VT02N and pack the materials of different deliveries into different HUs. But this VT02N screen is not user-friendly (scanner friendly) and we want to develop something similar to HUPAST, but at the shipment level.
Is there a FM which will create HU and associate it with the shipment? BAPI_HU_CREATE will create HU, but can we link that to shipment using BAPI_HU_CHANGE_HEADER or is there any FM for this
Please help me
Thanks
ChallaHi,
I hope you can use below FM's for packing.
BAPI_HU_CREATE
HU_PACKING_AND_UNPACKING
HU_GET_HUS
HU_POST
WS_DELIVERY_UPDATE
Hope this helps you....
Rgds,
Kris. -
BAPI for Packing proposal in Sale order
Hi,
I am currently using BAPI_HU_CREATE, BAPI_HU_PACK and WS_DELIVERY_UPDATE_2 to update packing in delivery.
Is there any BAPI to do packing proposal in sale order ? BAPI_SALESORDER_CHANGE does not have any tables for packing
ThanksHi,
I have already used the same BAPIs for packing and i am able to update packing in delivery using WS_DELIVERY_UPDATE.
But in case of sale orders, i can use BAPI_HU_CREATE and BAPI_HU_PACK....to pack
But what BAPI i should use to update the sale order ??? BAPI_SALESORDER_CHANGE does not have any tables to pass packing proposal data !!
Thanks -
Update/change packing info VL02
We are running on a 4.0B system.
We want to use the packing functinality to pack materials onto pallet and pack the pallets onto trailers.
I have found IDoc DELVRY01 and function module WS_DELIVERY_UPDATE. The problem is that they can only be use to create/pack items.
We also need to unpack and delete items. And even change items.
When looking at the transaction VL02 I think there could be a problem running a batch input because you don't can "positionate" the cursor on the correct line/position in the table control.
Any input on how ??
Regards,
KimHi Rishi,
Transaction VL02N is not in 4.0B !
User command POPO is not usable on screen 2500. The packing functionality is more or less an "add-on" to the normal delivery transaction - unfortunaly without it's own transaction. Data is displayed in 1 or 2 tablecontrols - only option is to "select all" or "deselect all". And i need to select a specific Shipping unit.
I think in version 4.0 a lot of functinality is missing compared to version 4.5 and higher. All BAPI's BAPI_HU_* and funktionmodules HU_* are missing -
Hi All,
I am using FM WS_DELIVERY_UPDATE for picking, packing and post goods issue of outbound delivery. I am able to achieve picking and goods issue and not packing.
I am using BAPI_HU_CREATE and BAPI_HU_CHANGE_HEADER to create HU and then assign it to outbound delivery. But the handling unit is not actually getting created. I am getting the message 'HU functions outside of the delivery only'.
Any help on this greatly appreciated. More so, if any one can give me the exact process flow of calling and the key parameters to pass to these function modules.
Thanks,
SudeepHere is the code
vbkok_wa-vbeln = '0187000063'.
vbkok_wa-wabuc = 'X'.
vbkok_wa-vbeln_vl = '0187000063'.
vbkok_wa-vbtyp_vl = 'J'.
i_verko-vstel = 'PE01'.
i_verko-vhilm = p_matnr.
i_verko-exida = 'E'.
i_verko-brgew = p_weight.
i_verko-werks = p_werks.
i_verko-lgort = p_lgort.
i_verko-object = '01'.
i_verko-objkey = '0187000063'.
APPEND i_verko.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = vbkok_wa
synchron = 'X'
NO_MESSAGES_UPDATE = ' '
commit = 'X'
delivery = '0187000063'
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 = i_prott
verko_tab = i_verko
VERPO_TAB =
VBSUPCON_TAB =
IT_VERPO_SERNR =
IT_PACKING =
IT_PACKING_SERNR =
IT_REPACK =
IT_HANDLING_UNITS =
et_created_hus = i_hus.
I hope this example will be useful for you.
Regards -
WS_DELIVERY_UPDATE error
Hi,
When i execute FM WS_DELIVERY_UPDATE , i get error "cannot be processed with this transaction."
Pls help to resolve.
My source code is as below :
refresh : gt_inb_delivery_detail,gt_return.
clear :is_inb_delivery_header,ef_delivery.
clear gv_po.
read table ret with key type = 'S'.
if sy-subrc = 0.
gv_po = ret-message_v2.
endif.
condense gv_po.
clear gs_ekpo.
select single * from ekpo
into gs_ekpo
where ebeln = gv_po.
clear gs_inb_delivery_detail.
gs_inb_delivery_detail-material = gs_ekpo-matnr.
gs_inb_delivery_detail-matl_desc = gs_ekpo-txz01.
gs_inb_delivery_detail-deliv_qty = gs_ekpo-menge.
gs_inb_delivery_detail-unit = gs_ekpo-meins.
gs_inb_delivery_detail-po_number = gs_ekpo-ebeln.
gs_inb_delivery_detail-po_item = gs_ekpo-ebelp.
append gs_inb_delivery_detail to gt_inb_delivery_detail.
is_inb_delivery_header-deliv_date = sy-datum.
is_inb_delivery_header-deliv_time = sy-uzeit.
call function 'BBP_INB_DELIVERY_CREATE'
exporting
is_inb_delivery_header = is_inb_delivery_header
importing
ef_delivery = ef_delivery
tables
it_inb_delivery_detail = gt_inb_delivery_detail
return = gt_return.
call function 'BAPI_TRANSACTION_COMMIT'.
if ef_delivery is not initial.
clear : gs_headerproposal.
is_vekp-vhilm = 'PACK_BOX'.
call function 'V51P_FIND_HEADER'
exporting
is_vekp = is_vekp
importing
es_header = es_header
exceptions
not_found = 1
no_shp_mat = 2
error_on_exidv = 3
fatal_error = 4
others = 5.
gs_headerproposal-pack_mat = 'PACK_BOX'. " packaging material
gs_headerproposal-plant = gs_ekpo-werks. " plant
gs_headerproposal-stge_loc = gs_ekpo-lgort. " storage location
gs_headerproposal-hu_exid_type = 'A'.
gs_headerproposal-hu_exid = es_header-exidv.
call function 'BAPI_HU_CREATE'
exporting
headerproposal = gs_headerproposal
importing
huheader = gs_huheader
hukey = gs_hukey
tables
itemsproposal = gt_itemsproposal
itemsserialno = gt_itemsserialno
return = gt_return1
huitem = gt_huitem.
call function 'BAPI_TRANSACTION_COMMIT'.
*-Get all the line items from delivery
select * from lips
into table gt_lips
where vbeln = ef_delivery.
*-populate required fields to perform pgi
* Assign Header Data
ls_vbkok-vbeln_vl = ef_delivery. " Delivery Number
ls_vbkok-vbtyp_vl = 'J'. " Delivery Type
ls_vbkok-wabuc = 'X'. " Post good issue automatically
ls_vbkok-komue = 'X'. " update delivery qty with picking qty
* Detail
loop at gt_lips assigning <fs_lips>.
clear wa_vbpok.
wa_vbpok-vbeln_vl = <fs_lips>-vbeln. " Delivery No
wa_vbpok-posnr_vl = <fs_lips>-posnr. " Delivery Item
wa_vbpok-vbeln = <fs_lips>-vgbel. " Sales order - Ref Doc
wa_vbpok-posnn = <fs_lips>-vgpos. " SO Line item - Ref doc item
wa_vbpok-matnr = <fs_lips>-matnr. " Material No
wa_vbpok-werks = <fs_lips>-werks. " Plant
wa_vbpok-pikmg = <fs_lips>-lfimg. " Delivery Qty
append wa_vbpok to gt_vbpok.
clear wa_vbpok.
endloop.
*-Do Picking and PGI
call function 'WS_DELIVERY_UPDATE'
exporting
vbkok_wa = ls_vbkok
synchron = space
no_messages_update = space
commit = space
delivery = ef_delivery
* update_picking = 'X'
nicht_sperren = 'X'
* if_database_update = '1'
* if_error_messages_send_0 = 'X'
importing
ef_error_any_0 = ef_error_any_0
ef_error_in_item_deletion_0 = ef_error_in_item_deletion_0
ef_error_in_pod_update_0 = ef_error_in_pod_update_0
ef_error_in_interface_0 = ef_error_in_interface_0
ef_error_in_goods_issue_0 = ef_error_in_goods_issue_0
ef_error_in_final_check_0 = ef_error_in_final_check_0
tables
vbpok_tab = gt_vbpok.
* prot = lt_prot
* verko_tab = lt_verko
* verpo_tab = lt_verpo
* vbsupcon_tab = lt_vbsupcon.
commit work.The BAPIs for HU create/change work when HU management is switched on in your system. I had a similar requirement where packing was required without HU management. I got it working using Fm -BAPI_OUTB_DELIVERY_CONFIRM_DEC. Below is relevant code.
ls_headerdata-deliv_numb = lv_delivery.
ls_control-deliv_numb = lv_delivery.
ls_bapidlvhdunhdr-hdl_unit_exid = <fs_hdunhdr>-hdl_unit_exid.
ls_bapidlvhdunhdr-hdl_unit_exid_ty = 'F'. "External identifier
ls_bapidlvhdunhdr-plant = <fs_hdunhdr>-plant.
ls_bapidlvhdunhdr-ship_mat = <fs_hdunhdr>-ship_mat.
ls_bapidlvhdunhdr-sh_mat_typ = <fs_hdunhdr>-sh_mat_typ.
append ls_bapidlvhdunhdr to lt_hdunhdr.
ls_bapidlvhdunitm-hdl_unit_exid_into = <fs_hdunitm>-hdl_unit_exid_into.
ls_bapidlvhdunitm-batch = <fs_hdunitm>-batch.
ls_bapidlvhdunitm-pack_qty = <fs_hdunitm>-pack_qty_base.
ls_bapidlvhdunitm-deliv_item = <fs_hdunitm>-deliv_item.
ls_bapidlvhdunitm-deliv_numb = iv_delivery.
append ls_bapidlvhdunitm to lt_hdunitm.
call function 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
exporting
header_data = ls_headerdata
header_control = ls_control
delivery = lv_delivery
tables
item_data = lt_bapiobdlvitemcon
item_control = lt_bapiobdlvitemctrlcon
item_data_spl = lt_bapiobdlvitemdataspl
handling_unit_header = lt_hdunhdr
handling_unit_item = lt_hdunitm
return = lt_return.
I hope it helps. -
Packing the Materials in Outbound delivary
Hi All,
I used FM's WS_DELIVERY_UPDATE and SD_DELIVERY_UPDATE_PACKING for packing two different materials in a Delivary document. I made a loop for each line item coming from app server and tried to pack separately each time. But second material line item is not being packed in either case. I am unable to know the problem. I tried packing manually in vl02n transaction , they are getting packed.
CALL FUNCTION 'SD_DELIVERY_UPDATE_PACKING'
EXPORTING
DELIVERY = v_vbeln
COMMIT = 'X'
SYNCHRON = 'X'
TABLES
VERKO_TAB = VERKO_TAB1
VERPO_TAB = VERPO_TAB1
PROT = PROT1
EXCEPTIONS
ERROR_MESSAGE = 99
OTHERS = 01.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
VBKOK_WA = VBKOK_WA1
SYNCHRON = 'X'
NO_MESSAGES_UPDATE = ' '
COMMIT = 'X'
DELIVERY = V_VBELN
UPDATE_PICKING = 'X'
NICHT_SPERREN = 'SPACE'
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 = ' '
IT_PARTNER_UPDATE =
IT_SERNR_UPDATE =
IF_NO_REMOTE_CHG = ' '
IF_NO_MES_UPD_PACK = ' '
IF_LATE_DELIVERY_UPD = ' '
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 =
EF_ERROR_PARTNER_UPDATE =
EF_ERROR_SERNR_UPDATE =
TABLES
VBPOK_TAB =
PROT =
VERKO_TAB = VERKO_TAB1
VERPO_TAB = VERPO_TAB1
VBSUPCON_TAB =
IT_VERPO_SERNR =
IT_PACKING =
IT_PACKING_SERNR =
IT_REPACK =
IT_HANDLING_UNITS =
IT_OBJECTS =
ET_CREATED_HUS =
TVPOD_TAB =
IT_TMSTMP =
IT_BAPIADDR1 =Hi,
Can you share how you solved this?
Thanks -
WS_DELIVERY_UPDATE Function Module is not updating the Handling unit
Hi Experts,
I am using the Function Module WS_DELIVERY_UPDATE for PGI and packing outbond delivery . I am getting the PGI date , Route.
but i am not getting the time in delivery field-WAUHR and i am getting the message 'Reqiured HU could not be found'.
Please find the attach code below:
FORM update_packing USING wa_index.
wa_index = wa_index + 1.
w_track = int_delivery_data-zn12+0(20).
itaverko-exidv = w_track.
ltahus-exidv = w_track.
itaverko-vhilm = p_shpmtl. " from screen select parm
ltahus-vhilm = p_shpmtl.
w_brgew = int_delivery_data-brgew.
SHIFT w_brgew LEFT DELETING LEADING ' '.
itaverko-brgew = w_brgew.
ltahus-brgew = w_brgew.
SHIFT int_delivery_data-inhalt LEFT DELETING LEADING ' '.
w_fcosts = int_delivery_data-inhalt.
SHIFT w_fcosts LEFT DELETING LEADING ' '.
itaverko-inhalt = w_fcosts.
ltahus-inhalt = w_fcosts.
itaverko-gewfx = int_delivery_data-gewfx.
ltahus-gewfx = int_delivery_data-gewfx.
INSERT itaverko INDEX wa_index.
INSERT ltahus INDEX wa_index.
ENDFORM. " UPDATE_PACKING
FORM update_delivery .
CLEAR : i_vbkok,ita_prot.
REFRESH : i_vbpok,ita_prot.
CLEAR: d_return.
CLEAR: 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 .
READ TABLE int_delivery_data INDEX wa_index.
IF sy-subrc = 0.
carry out goods issue
i_vbkok-vbeln_vl = int_delivery_data-vbeln. " Delivery nbr
i_vbkok-vbeln = int_delivery_data-vbeln. " Pick Order
i_vbkok-vbtyp_vl = int_delivery_data-vbtyp.
i_vbkok-wabuc = 'X'. " post goods movement automatically
L_VBKOK-KOMUE = 'X'. " overwrite delvry qty with picking qty
CONCATENATE 'US' INT_DELIVERY_DATA-ZN13 INTO W_ROUTE.
i_vbkok-route = int_delivery_data-route.
i_vbkok-kzroute = 'X'.
i_vbkok-spe_kzgeoroute = 'X'.
i_vbkok-packing_final = 'X'.
i_vbkok-wabuc = 'X'.
w_in_date = int_delivery_data-dattm+0(8).
i_vbkok-wadat = w_in_date.
L_VBKOK-WADAT_IST = W_in_DATE.
w_gi_time = int_delivery_data-dattm+8(6).
i_vbkok-wauhr = w_gi_time.
w_track = int_delivery_data-zn12+0(20).
t_sernr = w_track.
SET UPDATE TASK LOCAL and Perform PGI.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = i_vbkok
synchron = 'X'
no_messages_update = ' '
update_picking = 'X'
commit = 'X'
delivery = int_delivery_data-vbeln
nicht_sperren = 'X'
if_error_messages_send_0 = space
IT_SERNR_UPDATE = T_SERNR
IMPORTING
ef_error_any_0 = ef_error_any_0
ef_error_in_item_deletion_0 = ef_error_in_item_deletion_0
ef_error_in_pod_update_0 = ef_error_in_pod_update_0
ef_error_in_interface_0 = ef_error_in_interface_0
ef_error_in_goods_issue_0 = ef_error_in_goods_issue_0
ef_error_in_final_check_0 = ef_error_in_final_check_0
ef_error_sernr_update = ef_error_sernr_update
TABLES
*" VBPOK_TAB STRUCTURE VBPOK OPTIONAL
prot = ita_prot
verko_tab = itaverko " STRUCT VERKO
*" VERPO_TAB STRUCTURE VERPO OPTIONAL
*" VBSUPCON_TAB STRUCTURE VBSUPCON OPTIONAL
IT_VERPO_SERNR = T_VERPO_SERNR
*" IT_PACKING STRUCTURE REPACK_HU_WM OPTIONAL
*" IT_PACKING_SERNR STRUCTURE HUM_REP_SERNR OPTIONAL
*" IT_REPACK STRUCTURE HUM_REPACK OPTIONAL
*" IT_HANDLING_UNITS STRUCTURE HUM_REHANG_HU OPTIONAL
*" IT_OBJECTS STRUCTURE PGR_OBJECTS OPTIONAL
et_created_hus = ltahus "STRUCTURE VEKPVB
EXCEPTIONS
error_message = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
ENDIF.
ENDFORM. " UPDATE_DELIVERY
Could please help on this.
Thanks,
Rohit
Edited by: Rohit Sharma on Jul 24, 2009 3:25 PM
Edited by: Rohit Sharma on Jul 24, 2009 3:29 PMHi Joao,
I have the same problem. I tried to find the FM SD_OUTB_DELIVERY_CHANGE but couldn't find it. Have you by any change specified the incorrect FM name here? If yes, can you please communicate the correct FM name?
Regards,
Divyaman
Maybe you are looking for
-
Hi all I'm reading about Document Structure and I have a question. I wanna create a Structure (1) for user and they only base on this structure to create new Document Structure themself I mean Structure (1) is something like the process and user just
-
HT201335 how to stream web content to apple tv
how do you stream web content over apple tv?
-
Rebate Agreement's final settlement includes invoices already processed
Hello, I've been testing rebate agreement functionality and I'm facing this issue: If I define a rebate agreement for a customer just for this day and post two invoices, this invoices are referred to the agreement. After this I do the final settlemen
-
Freezing- Will not load page unless Minimize than re-maximize.
It started yesterday, (7/29/13). I would open a page and it wouldn't load unless I minimized the window, then re-opened it and the page would be fully loaded. Resetting Firefox works while I'm on, but shut my laptop (Hibernation, Sleep, or turning of
-
Ungroup text in Illustrator?
What is the purpose of ungrouping text in Illustrator? Once the text has been ungrouped, can it be reverted back to text? Thanks.