2009 Feb 17 4:08 AM
Hello,
My Requirement is I want to do PGI using BAPI.
I Need assign Picking Quantity and assign serialnumbers for the same.
I found one BAPI "BAPI_OUTB_DELIVERY_CONFIRM_DEC" But i cant able to pass picking qauntity and assign serialnumbers for the Items in the Delivery Number.
Please Help me on this.
If u give me example with BAPI It would be greatful .
Regards,
Mahendar.G
Hello,
My Requirement is I want to do PGI using BAPI.
I Need assign Picking Quantity and assign serialnumbers for the same.
I found one BAPI "BAPI_OUTB_DELIVERY_CONFIRM_DEC" But i cant able to pass picking qauntity and assign serialnumbers for the Items in the Delivery Number.
Please Help me on this.
If u give me example with BAPI It would be greatful .
Regards,
Mahendar.G
2009 Feb 17 4:15 AM
2009 Feb 17 4:16 AM
Hi,
Try this link
[https://forums.sdn.sap.com/click.jspa?searchID=22374464&messageID=6613081]
Regards,
Surinder
2009 Feb 17 4:35 AM
Hi,
Use this code to do the PGI
Data Declaration Part for Post Goods Issue
DATA: l_vbeln LIKE likp-vbeln,
l_vbkok LIKE vbkok,
i_prot TYPE STANDARD TABLE OF prott WITH HEADER LINE,
v_er_any TYPE c,
v_er_itm TYPE c,
v_er_upd TYPE c,
v_er_inf TYPE c,
v_er_gss TYPE c,
v_er_fch TYPE c,
d_return LIKE bapireturn1.
carry out goods issue
l_vbeln = p_v_vbeln.
l_vbkok-vbeln_vl = l_vbeln.
l_vbkok-wadat_ist = pa_pdt.
l_vbkok-wabuc = 'X'.
gv_subrc = 0.
SET UPDATE TASK LOCAL.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = l_vbkok
synchron = 'X'
update_picking = 'X'
commit = 'X'
delivery = l_vbeln
nicht_sperren = 'X'
if_error_messages_send_0 = space
IMPORTING
ef_error_any_0 = v_er_any
ef_error_in_item_deletion_0 = v_er_itm
ef_error_in_pod_update_0 = v_er_upd
ef_error_in_interface_0 = v_er_inf
ef_error_in_goods_issue_0 = v_er_gss
ef_error_in_final_check_0 = v_er_fch
TABLES
prot = i_prot
EXCEPTIONS
error_message = 1
OTHERS = 2.
IF sy-subrc <> 0.
gv_subrc = sy-subrc.
s_output-order = p_order.
s_output-posnr = l_vbeln.
s_output-message = 'Error !! PGI Not Done'.
s_output-message_type = 'E'.
APPEND s_output TO t_output.
CLEAR : s_output.
ENDIF.
2009 Feb 17 4:52 AM
Hi Mahendra,
As suggested, we can use WS_DELIVERY_UPDATE for PGI of delivery , updating the picking qty and serial numbers. This FM will do large functions and sometimes you have no clue. Suggest you to test first by updating Picking qty & serial number update and secondly calling again for PGI of delivery.
Test only if all the three functionalities doesn't work at a single shot.
Also hope the updating pick qty is equal to the delivery qty, so that delivery is completely picked and ready for PGI.
Correct me if I am wrong.
Let us the know the status....
Thanks
Reddy
| User | Count |
|---|---|
| 8 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |