<?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: Goods Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088180#M99996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I have multiple line items in gmove_line. But I am calling FM only once for posting all materials. If few have wrong data other line items are not posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shall I loop gmove_line and for every item call the FM and commit transaction. So which ever items have correct data, those will get posted one by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pratibha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2005 04:52:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-25T04:52:10Z</dc:date>
    <item>
      <title>Goods Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088176#M99992</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 have written a code for posting multiple materials for goods issue for Movement type 201 (tcode MIGO_GI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using FM &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 = gmove_header&lt;/P&gt;&lt;P&gt;      GOODSMVT_CODE = gmove_code&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      GOODSMVT_HEADRET = headret&lt;/P&gt;&lt;P&gt;      MATERIALDOCUMENT = matdoc&lt;/P&gt;&lt;P&gt;      MATDOCUMENTYEAR = docyear&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      GOODSMVT_ITEM = gmove_line&lt;/P&gt;&lt;P&gt;      RETURN = return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if few materials have errors in details, other materials with correct data are not posted.&lt;/P&gt;&lt;P&gt;Please suggest what could be the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pratibha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2005 10:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088176#M99992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-24T10:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088177#M99993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratibha,&lt;/P&gt;&lt;P&gt;  Its not due to that reason.&lt;/P&gt;&lt;P&gt;  Its better you use the BAPI BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;  Its better if you check the return code in the debug mode. And instead of commit work and wait use the above said FM. But it is due to some other problem. And could you please mention the exception that is throwing in the BAPI.&lt;/P&gt;&lt;P&gt;  regards,&lt;/P&gt;&lt;P&gt;  Sampath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2005 11:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088177#M99993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-24T11:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088178#M99994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sanjay Sinha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestions for this query?&lt;/P&gt;&lt;P&gt;Please reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pratibha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 04:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088178#M99994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T04:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088179#M99995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Waht do you mean by  "materials have errors in details, other materials with correct data are not posted".  Is it that you are having multiple line items in gmove_line and some are incorrect and some correct and this BAPI call is failing . If this is the case then it is okay as you will see same behaviour in online mode. You cannot post a transaction with one incorrect item &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is it that due to failure of one call of BAPI , subsequent BAPI calls are failing. Are you calling BAPI in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In you code can you use write statement to write the return parameters in table RETURN . It will help analyze the error .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 04:45:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088179#M99995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T04:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088180#M99996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I have multiple line items in gmove_line. But I am calling FM only once for posting all materials. If few have wrong data other line items are not posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shall I loop gmove_line and for every item call the FM and commit transaction. So which ever items have correct data, those will get posted one by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pratibha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 04:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088180#M99996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T04:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088181#M99997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes loop is correct way if you expect to have faulty line items . As I said earlier also that it behaves similar to an online transaction. i.e. you cannot save with a faulty line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better would be if you can analyze the errors and put the check before calling the BAPI itself. &lt;/P&gt;&lt;P&gt;What are the errors , can you check using write statement or in debugging by seeing the contents of table return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 04:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088181#M99997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T04:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Goods Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088182#M99998</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;what kind of error you got in gt_return. Is any material with batch manager/serial managed.  In that case we need to populate those details also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 04:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/goods-issue/m-p/1088182#M99998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T04:57:28Z</dc:date>
    </item>
  </channel>
</rss>

