2009 Mar 10 9:08 AM
Hi all,
I'm trying to do a PGI with Serial Numbers. When I execute VL32N is working fine, but when I use my Z program with WS_DELIVERY_UPDATE is not updating table SER03.
I've populated internal table IT_SERNR_UPDATE with the delivery, item and serial number, but no result.
Help appreciated.
Regards.
2009 Mar 10 9:37 AM
Hi,
Try using commit after your processing .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = WAIT.
.
Hope this helsp .
Regards,
Amit Teja
2009 Mar 10 9:49 AM
Hi Amit,
thank you for your quick answer but it does not work.
Regards.
2009 Mar 10 9:52 AM
2009 Mar 10 9:53 AM
2009 Mar 10 9:56 AM
l_vbkok-vbeln_vl = p_vbeln.
l_vbkok-vbeln = p_vbeln.
l_vbkok-wabuc = 'X'.
l_vbkok-packing_refresh = 'X'.
l_delivery = p_vbeln.
s_sernr-rfbel = lw_lips-vbeln.
s_sernr-rfpos = lw_lips-posnr.
s_sernr-sernr = gw_serialno-serialno.
APPEND s_sernr TO t_sernr.
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
vbkok_wa = l_vbkok
delivery = l_delivery
update_picking = 'X'
it_sernr_update = t_sernr
IMPORTING
ef_error_any = l_ef_error_any
ef_error_in_item_deletion = l_ef_error_in_item_deletion
ef_error_in_pod_update = l_ef_error_in_pod_update
ef_error_in_interface = l_ef_error_in_interface
ef_error_in_goods_issue = l_ef_error_in_goods_issue
ef_error_in_final_check = l_ef_error_in_final_check
ef_error_partner_update = l_ef_error_partner_update
ef_error_sernr_update = l_ef_error_sernr_update
TABLES
vbpok_tab = pt_vbpok
prot = lt_prott
verko_tab = lt_verko
verpo_tab = lt_verpo.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Regards.
2009 Mar 10 10:11 AM
Hi,
In Exporting put "x' fro Commit.
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
vbkok_wa = l_vbkok
commit = 'X'
delivery = l_delivery
update_picking = 'X'
it_sernr_update = t_sernr
IMPORTING
ef_error_any = l_ef_error_any
ef_error_in_item_deletion = l_ef_error_in_item_deletion
ef_error_in_pod_update = l_ef_error_in_pod_update
ef_error_in_interface = l_ef_error_in_interface
ef_error_in_goods_issue = l_ef_error_in_goods_issue
ef_error_in_final_check = l_ef_error_in_final_check
ef_error_partner_update = l_ef_error_partner_update
ef_error_sernr_update = l_ef_error_sernr_update
TABLES
vbpok_tab = pt_vbpok
prot = lt_prott
verko_tab = lt_verko
verpo_tab = lt_verpo.
Hope this works.
Regards,
Amit Teja
2009 Mar 10 11:37 AM