<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: BAPI for PGI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039396#M86048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I am creating a Delivery with GN_DELIVERY_CREATE...The delivery is created, but the picking quantity is still blank in the Delivery document. When I am using the 'WS_UPDATE_DELIVERY' with the above mentioned code..it is returning with an error message - 'Picking is not done for the line item'. The BAPI works if I update the pciking quantity manualy using VL02N. Is there a way I can directly do both the picking as well as the PGI with this BAPI. Am I missing any import parameters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2007 20:19:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-19T20:19:30Z</dc:date>
    <item>
      <title>BAPI for PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039393#M86045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys&lt;/P&gt;&lt;P&gt;does someone know of a BAPI which i can call and pass the delivery number and it will do a PGI for me?&lt;/P&gt;&lt;P&gt;i tried BAPI_GOODSMVT_CREATE but its not working well for me.&lt;/P&gt;&lt;P&gt;please let me know if there is such a BAPI&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2005 19:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039393#M86045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-10T19:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039394#M86046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanket,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA:
    L_VBELN LIKE LIKP-VBELN,
    L_VBKOK LIKE VBKOK,
    L_PROTT LIKE PROTT OCCURS 0 WITH HEADER LINE.

* carry out goods issue
  L_VBKOK-VBELN_VL = L_VBELN.&amp;lt;-- fill this field with your delivery number
  L_VBKOK-WABUC    = 'X'.

  CALL FUNCTION 'WS_DELIVERY_UPDATE'
       EXPORTING
            VBKOK_WA           = L_VBKOK
            SYNCHRON           = 'X'
            NO_MESSAGES_UPDATE = ' '
            UPDATE_PICKING     = 'X'
            COMMIT             = ' '
            DELIVERY           = L_VBELN
            NICHT_SPERREN      = 'X'
       TABLES
            PROT               = L_PROTT
       EXCEPTIONS
            OTHERS             = 0.
  COMMIT WORK AND WAIT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward and close if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2005 19:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039394#M86046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-10T19:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039395#M86047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi srinivas&lt;/P&gt;&lt;P&gt;thanks for the code.it worked.i will take care of making it RFC enabled.&lt;/P&gt;&lt;P&gt;thanks once again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2005 22:49:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039395#M86047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-10T22:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039396#M86048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I am creating a Delivery with GN_DELIVERY_CREATE...The delivery is created, but the picking quantity is still blank in the Delivery document. When I am using the 'WS_UPDATE_DELIVERY' with the above mentioned code..it is returning with an error message - 'Picking is not done for the line item'. The BAPI works if I update the pciking quantity manualy using VL02N. Is there a way I can directly do both the picking as well as the PGI with this BAPI. Am I missing any import parameters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 20:19:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039396#M86048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T20:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039397#M86049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The picking qty can be specified in the vbpok table&lt;/P&gt;&lt;P&gt;please refer to the code given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populating the item data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lx_sales_item-ref_doc     = l_vbeln.&lt;/P&gt;&lt;P&gt;  lx_sales_item-ref_item    = c_000010.&lt;/P&gt;&lt;P&gt;  lx_sales_item-dlv_qty     = fp_l_quantity.&lt;/P&gt;&lt;P&gt;  lx_sales_item-sales_unit  = fp_afpo-meins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND lx_sales_item TO li_sales_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Function Module to create delivery&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_OUTB_DELIVERY_CREATE_SLS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      ship_point        = l_vstel&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      delivery          = fp_l_delivery&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      sales_order_items = li_sales_item&lt;/P&gt;&lt;P&gt;      return            = li_return1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF fp_l_delivery IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Error message Delivery not created&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MESSAGE e049&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lx_vbkok-vbeln_vl = fp_l_delivery.&lt;/P&gt;&lt;P&gt;  lx_vbkok-vbtyp_vl = c_vbtype_j .&lt;/P&gt;&lt;P&gt;  lx_vbkok-vbeln    = fp_l_delivery.&lt;/P&gt;&lt;P&gt;  lx_vbkok-wabuc    = c_wabuc_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lx_vbpok-vbeln_vl = fp_l_delivery.&lt;/P&gt;&lt;P&gt;  lx_vbpok-posnr_vl = c_posnr.&lt;/P&gt;&lt;P&gt;  lx_vbpok-vbeln    = fp_l_delivery.&lt;/P&gt;&lt;P&gt;  lx_vbpok-posnn    = c_posnr.&lt;/P&gt;&lt;P&gt;  lx_vbpok-matnr    = fp_afpo-matnr.&lt;/P&gt;&lt;P&gt;  lx_vbpok-charg    = fp_afpo-charg.&lt;/P&gt;&lt;P&gt;  lx_vbpok-werks    = fp_afpo-dwerk.&lt;/P&gt;&lt;P&gt;  lx_vbpok-taqui    = c_wabuc_x.&lt;/P&gt;&lt;P&gt;  lx_vbpok-pikmg    = fp_l_quantity.&lt;/P&gt;&lt;P&gt;  APPEND lx_vbpok TO li_vbpok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Clearing the implicit lock that mb_create_goods_mvt has. That&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  prevents it from bieng called more then once within same LUW.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM clear_xcommit IN PROGRAM saplmbwl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FM to perform picking,confirmation W-M status and PGI.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'WS_DELIVERY_UPDATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      vbkok_wa                 = lx_vbkok&lt;/P&gt;&lt;P&gt;      synchron                 = c_xfeld_x&lt;/P&gt;&lt;P&gt;      delivery                 = fp_l_delivery&lt;/P&gt;&lt;P&gt;      update_picking           = c_xfeld_x&lt;/P&gt;&lt;P&gt;      nicht_sperren            = c_no_sp_x&lt;/P&gt;&lt;P&gt;      if_database_update       = c_data_1&lt;/P&gt;&lt;P&gt;      if_error_messages_send_0 = c_xfeld_x&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      vbpok_tab                = li_vbpok&lt;/P&gt;&lt;P&gt;      prot                     = li_prott.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Checking if any error in PGI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  READ TABLE li_prott WITH KEY MSGTY = c_e TRANSPORTING NO FIELDS.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e046 WITH fp_l_delivery.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  READ TABLE li_prott WITH KEY MSGTY = c_a TRANSPORTING NO FIELDS.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e046 WITH fp_l_delivery.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 07:47:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039397#M86049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T07:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039398#M86050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your posting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2009 21:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039398#M86050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-23T21:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039399#M86051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bansal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My quiry is suppose  there is a batch splitting for a line item  than is it works or we have to write some other code or use other Fm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2009 06:58:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039399#M86051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-24T06:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039400#M86052</link>
      <description>&lt;P&gt;An other option is to use the FM 'SD_SHIPMENT_POST_GOODS_ISSUE'.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 22:24:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-pgi/m-p/1039400#M86052</guid>
      <dc:creator>tiago_silva118</dc:creator>
      <dc:date>2019-11-13T22:24:18Z</dc:date>
    </item>
  </channel>
</rss>

