<?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 to create batch/Classify and make GR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-create-batch-classify-and-make-gr/m-p/1481154#M225076</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;As per the BAPI rule if you are calling BAPI(1) first and then BAPI(2) after that and your BAPI(1) depends on BAPI(2), you have to call the COMMIT work before the second BAPI call for the LUW ro complete and the Database to hold the changed values for the 2nd BAPI to work on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope That Helps&lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2006 06:57:51 GMT</pubDate>
    <dc:creator>former_member480923</dc:creator>
    <dc:date>2006-07-26T06:57:51Z</dc:date>
    <item>
      <title>BAPI to create batch/Classify and make GR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-create-batch-classify-and-make-gr/m-p/1481153#M225075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a interface from an external PP system that has to make a GR into SAP.&lt;/P&gt;&lt;P&gt;Today in 4.0B we do a batch input on MB31. After a upgrade to ERP2005 I have changed the interface to do a number of BAPI calls. I call the following BAPI's :&lt;/P&gt;&lt;P&gt;BAPI_BATCH_CREATE - to create a new batch&lt;/P&gt;&lt;P&gt;BAPI_OBJCL_GETCLASSES - to get the classes assigned to the batch&lt;/P&gt;&lt;P&gt;BAPI_OBJCL_GET_KEY_OF_OBJECT - get a INOB/AUSP key&lt;/P&gt;&lt;P&gt;BAPI_OBJCL_CREATE_KEY - classify batch&lt;/P&gt;&lt;P&gt;BAPI_GOODSMVT_CREATE - create GR&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT - Commit.&lt;/P&gt;&lt;P&gt;As you can se we have to classify the batch.&lt;/P&gt;&lt;P&gt;The problem is that the characteristics that I have updated are cleared by BAPI_GOODSMVT_CREATE if I don't do a commit before calling BAPI_GOODSMVT_CREATE. Possibly because the expiry date are copied into classification by the BAPI.&lt;/P&gt;&lt;P&gt;I would like to avoid making a commit before the GR has retunr with a OK.&lt;/P&gt;&lt;P&gt;Has anybody expirience with this ?&lt;/P&gt;&lt;P&gt;A solution could be to classify the batch as the last step.&lt;/P&gt;&lt;P&gt;PS. is it possible to call BAPI_GOODSMVT_CREATE 2 times before commiting ? In some cases I would like to do a GR and afterwards a Transfere posting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 06:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-create-batch-classify-and-make-gr/m-p/1481153#M225075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T06:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI to create batch/Classify and make GR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-create-batch-classify-and-make-gr/m-p/1481154#M225076</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;As per the BAPI rule if you are calling BAPI(1) first and then BAPI(2) after that and your BAPI(1) depends on BAPI(2), you have to call the COMMIT work before the second BAPI call for the LUW ro complete and the Database to hold the changed values for the 2nd BAPI to work on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope That Helps&lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 06:57:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-create-batch-classify-and-make-gr/m-p/1481154#M225076</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2006-07-26T06:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI to create batch/Classify and make GR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-create-batch-classify-and-make-gr/m-p/1481155#M225077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no problem when calling BAPI_BATCH_CREATE and BAPI_GOODSMVT_CREATE without doing a commit. And the GR depends on the batch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 07:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-create-batch-classify-and-make-gr/m-p/1481155#M225077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T07:03:34Z</dc:date>
    </item>
  </channel>
</rss>

