Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI For Post Goods Issue like VL02N

Former Member
0 Likes
15,115

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

4 REPLIES 4
Read only

Former Member
0 Likes
5,270

Use FM WS_DELIVERY_UPDATE . Pass Picking Qty in UPDATE_PICKING and Serial number in IT_SERNR_UPDATE.

Refer below thread

Hope this helps...

Read only

Former Member
0 Likes
5,270

Hi,

Try this link

[https://forums.sdn.sap.com/click.jspa?searchID=22374464&messageID=6613081]

Regards,

Surinder

Read only

0 Likes
5,270

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.

Read only

Former Member
0 Likes
5,270

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