<?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: PGI for Delivery in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076810#M1614188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same goes with that FM since WS_DELIVERY_UPDATE_2 is being used inside FM WS_DELIVERY_UPDATE. Both of them successfully perform PGI when testing them in SE37, but when it is in code, error message is being retrieved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Aug 2011 16:28:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-08T16:28:16Z</dc:date>
    <item>
      <title>PGI for Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076804#M1614182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have coded the following successfully.&lt;/P&gt;&lt;P&gt; 1. Create a delivery from a production order&lt;/P&gt;&lt;P&gt; 2. Create TO from delivery created&lt;/P&gt;&lt;P&gt; 3. Pick/Pack and Confirm TO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I need to create a PGI based from the delivery i created. I used FM BAPI_GOODSMVT_CREATE, however it only creates another delivery. Code is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_itemhu INTO wa_itemhu.&lt;/P&gt;&lt;P&gt;    wa_goodsmvt_item-plant      = wa_itemhu-plant.&lt;/P&gt;&lt;P&gt;    wa_goodsmvt_item-stge_loc   = wa_itemhu-stge_loc.&lt;/P&gt;&lt;P&gt;    wa_goodsmvt_item-batch      = wa_itemhu-batch.&lt;/P&gt;&lt;P&gt;    wa_goodsmvt_item-move_type  = '261'.&lt;/P&gt;&lt;P&gt;    wa_goodsmvt_item-entry_qnt  = wa_itemhu-entry_qnt.&lt;/P&gt;&lt;P&gt;    wa_goodsmvt_item-entry_uom  = wa_itemhu-entry_uom.&lt;/P&gt;&lt;P&gt;    wa_goodsmvt_item-orderid    = wa_itemhu-orderid.&lt;/P&gt;&lt;P&gt;    wa_goodsmvt_item-deliv_numb = wa_itemhu-deliv_numb.&lt;/P&gt;&lt;P&gt;    wa_goodsmvt_item-deliv_item = wa_itemhu-deliv_item.&lt;/P&gt;&lt;P&gt;    APPEND wa_goodsmvt_item TO i_goodsmvt_item.&lt;/P&gt;&lt;P&gt;    CLEAR wa_goodsmvt_item.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      goodsmvt_header  = wa_header&lt;/P&gt;&lt;P&gt;      goodsmvt_code    = '03'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      materialdocument = ws_doc_gihu&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      goodsmvt_item    = i_goodsmvt_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it really possible to do PGI using this FM? If yes, please help in coding.. Many many thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2011 17:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076804#M1614182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-06T17:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: PGI for Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076805#M1614183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 10:38:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076805#M1614183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-07T10:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: PGI for Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076806#M1614184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For doing PGI, BAPI_GOODSMVT_CREATE will not be appropriate. Instead, use either of the FMs WS_DELIVERY_UPDATE or WS_DELIVERY_UPDATE_2. This will help you do the PGI for the given delivery.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkata Phani Prasad K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 10:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076806#M1614184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-08T10:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: PGI for Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076807#M1614185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do a coding as this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

      call function 'BAPI_GOODSMVT_CREATE'
        exporting
          goodsmvt_header  = l_goodsmvt_header
          goodsmvt_code    = l_goodsmvt_code
          testrun          = ' '
        importing
          goodsmvt_headret = l_goodsmvt_headret
          materialdocument = l_mblnr
          matdocumentyear  = l_mjahr
        tables
          goodsmvt_item    = i_goodsmvt_item
          return           = i_return.

      call function 'BAPI_TRANSACTION_COMMIT'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the data in I_RETURN to know the origin of troubles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also SAP Note 520813 - FAQ: BAPIs for goods movements, it will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 11:04:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076807#M1614185</guid>
      <dc:creator>eduardo_hinojosa</dc:creator>
      <dc:date>2011-08-08T11:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: PGI for Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076808#M1614186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using WS_DELIVERY_UPDATE to perform PGI of delivery. I am testing first the FM by in SE37 and PGI is correctly done for a delivery, however, when I had coded it (same way as the testing) I am getting error Delivery XXXXXXXXXX created. On which the delivery XXXXXXXXXX is the delivery I want to perform PGI. I am also trying do some changes in my code like passing the items to vbpok_tab; enabling synchon FM parameter; enabling nicht_sperren; etc., but still same error is being produced. My code is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wa_vbkok-vbeln_vl     = ws_delivery_doc.&lt;/P&gt;&lt;P&gt;  wa_vbkok-vbtyp_vl     = 'J'.&lt;/P&gt;&lt;P&gt;  wa_vbkok-wabuc        = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_DELIVERY_UPDATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      vbkok_wa                  = wa_vbkok&lt;/P&gt;&lt;P&gt;      commit                    = 'X'&lt;/P&gt;&lt;P&gt;      delivery                  = ws_delivery_doc&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      ef_error_any_0            = ws_xfeld&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      prot                 = wa_prot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 16:03:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076808#M1614186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-08T16:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: PGI for Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076809#M1614187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try WS_DELIVERY_UPDATE_2? Does it give the same error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkata Phani Prasad K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 16:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076809#M1614187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-08T16:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: PGI for Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076810#M1614188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same goes with that FM since WS_DELIVERY_UPDATE_2 is being used inside FM WS_DELIVERY_UPDATE. Both of them successfully perform PGI when testing them in SE37, but when it is in code, error message is being retrieved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 16:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076810#M1614188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-08T16:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: PGI for Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076811#M1614189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am now getting error No status object is available for HU &amp;amp;. I already called FMs below that would refresh standard data before executing FM 'WS_DELIVERY_UPDATE', however the still error is getting retrieved.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'QAAT_HUMO_REFRESH'.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'MB_MOVEMENTS_REFRESH'.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'STATUS_BUFFER_REFRESH'.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HU_STATUS_REFRESH'.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'MB_MOVEMENTS_REFRESH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am planning to talk with the Functional team and Basis team implement SAP Note 614179. I hope this would solve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076811#M1614189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-09T13:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: PGI for Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076812#M1614190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used FM BAPI_GOODSMVT_CREATE, however it only creates another delivery.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function you mentioned does not create a delivery. I have used the same fm for create PGI and it worked fine. Unfortunately i donot have the code with me now.Please check it once again. When doing it through standard transaction is there any new delivery created ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 15:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076812#M1614190</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-08-09T15:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: PGI for Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076813#M1614191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved by using BDC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 18:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pgi-for-delivery/m-p/8076813#M1614191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-10T18:52:58Z</dc:date>
    </item>
  </channel>
</rss>

