Skip to Content
avatar image
Former Member

BAPI For Post Goods Issue like VL02N

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Feb 17, 2009 at 04:15 AM

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

    Refer below thread

    PGI using BAPI_OUTB_DELIVERY_CHANGE

    Hope this helps...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 17, 2009 at 04:16 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Feb 17, 2009 at 04: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

    Add comment
    10|10000 characters needed characters exceeded