<?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 problem with a bapi fm... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-bapi-fm/m-p/2841437#M665505</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;i have a problem with Bapi_goodmvt_create. &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  = gt_header&lt;/P&gt;&lt;P&gt;        goodsmvt_code    = gt_bapigm_code&lt;/P&gt;&lt;P&gt;        testrun                 = 'X'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        goodsmvt_headret = gs_headret&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        goodsmvt_item    = gt_item&lt;/P&gt;&lt;P&gt;        return                 = gt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF gt_return-type &amp;lt;&amp;gt; 'E'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the error table gt_return iam getting,&lt;/P&gt;&lt;P&gt;while running in the test run mode no errors are comming. but while running test run mode immediately iam getting the below error, but i havent opened the plant or material anywhere,&lt;/P&gt;&lt;P&gt;"The plant data of the material 801187 is locked by the user PREM."&lt;/P&gt;&lt;P&gt; help me in this issue,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Sep 2007 11:54:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-22T11:54:51Z</dc:date>
    <item>
      <title>problem with a bapi fm...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-bapi-fm/m-p/2841437#M665505</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;i have a problem with Bapi_goodmvt_create. &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  = gt_header&lt;/P&gt;&lt;P&gt;        goodsmvt_code    = gt_bapigm_code&lt;/P&gt;&lt;P&gt;        testrun                 = 'X'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        goodsmvt_headret = gs_headret&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        goodsmvt_item    = gt_item&lt;/P&gt;&lt;P&gt;        return                 = gt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF gt_return-type &amp;lt;&amp;gt; 'E'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the error table gt_return iam getting,&lt;/P&gt;&lt;P&gt;while running in the test run mode no errors are comming. but while running test run mode immediately iam getting the below error, but i havent opened the plant or material anywhere,&lt;/P&gt;&lt;P&gt;"The plant data of the material 801187 is locked by the user PREM."&lt;/P&gt;&lt;P&gt; help me in this issue,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2007 11:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-bapi-fm/m-p/2841437#M665505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-22T11:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a bapi fm...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-bapi-fm/m-p/2841438#M665506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use WAIT for 5 seconds before COMMIT. It may work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2007 13:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-bapi-fm/m-p/2841438#M665506</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-09-22T13:44:50Z</dc:date>
    </item>
  </channel>
</rss>

