<?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: Automatic GR while PGI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-gr-while-pgi/m-p/8155439#M1621692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the error coming at creation of delivery or in change delivery mode? If it is at creation then in DELIVERY_PUBLISH~PUBLISH_AFTER_SAVE you will get the delivery number but it will not be commited to database&lt;/P&gt;&lt;P&gt;at this time hence BAPI_GOODSMVT_CREATE wii give error as the delivery does not exist. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To overcome this you can bundle your entire code written in for Posting GR in a function odule and then call this FM in background task in the BADI.Please refer syntax of calling FM in background task if you are not aware of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And dont forget to make this FM as Remote Enabled in FM properties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pawan Gore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Sep 2011 10:01:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-07T10:01:12Z</dc:date>
    <item>
      <title>Automatic GR while PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-gr-while-pgi/m-p/8155438#M1621691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to Post GR at PGI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Badi DELIVERY_PUBLISH~PUBLISH_AFTER_SAVE for writin gthe code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There i am calling BAPI - BAPI_GOODSMVT_CREATE for movement type 101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am getting a dump for as Delivery does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System is successfully create the std  Mat.doc for PGI but while creating Mat.doc. from my code it is throwing a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLease suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;P&gt;RK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 08:21:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-gr-while-pgi/m-p/8155438#M1621691</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2011-09-07T08:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic GR while PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-gr-while-pgi/m-p/8155439#M1621692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the error coming at creation of delivery or in change delivery mode? If it is at creation then in DELIVERY_PUBLISH~PUBLISH_AFTER_SAVE you will get the delivery number but it will not be commited to database&lt;/P&gt;&lt;P&gt;at this time hence BAPI_GOODSMVT_CREATE wii give error as the delivery does not exist. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To overcome this you can bundle your entire code written in for Posting GR in a function odule and then call this FM in background task in the BADI.Please refer syntax of calling FM in background task if you are not aware of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And dont forget to make this FM as Remote Enabled in FM properties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pawan Gore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 10:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-gr-while-pgi/m-p/8155439#M1621692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-07T10:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic GR while PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-gr-while-pgi/m-p/8155440#M1621693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing PGI from VL02n.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 10:09:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-gr-while-pgi/m-p/8155440#M1621693</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2011-09-07T10:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic GR while PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-gr-while-pgi/m-p/8155441#M1621694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not working......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System is giving dump....as&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Short text
    The current application triggered a termination with a short dump.

Short text of error message:
Delivery   does not exist

Long text of error message:
 Diagnosis
     The delivery you specified does not exist.
     This document may have been archived.
 Procedure
     Check the delivery number you entered.
     If the delivery has only just been added, it is possible that it
     has not yet been posted. If this is the case, repeat the
     transaction again later. If the error message still appears, inform
     your programming team or system administrator.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with Background..but code didnt work...couldnt debug as background process...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 10:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-gr-while-pgi/m-p/8155441#M1621694</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2011-09-12T10:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic GR while PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-gr-while-pgi/m-p/8155442#M1621695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suggested by Pawan, I wrote all the code in a ZFM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i called my ZFM in the same badi DELIVERY_PUBLISH in method PUBLISH_AFTER_SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats it.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Pankaj and all for there useful reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rahul Keshav on Sep 21, 2011 6:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 09:18:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-gr-while-pgi/m-p/8155442#M1621695</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2011-09-15T09:18:33Z</dc:date>
    </item>
  </channel>
</rss>

