<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/5858414#M1320948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi chin Huan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to check the table T_RETURN after, you called the BAPI, but before the commit.&lt;/P&gt;&lt;P&gt;If you see "E" or "A" TYPE messages in it, you have to solve these errors. After this, your material will be saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set a break point into your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA' ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK-POINT. "or BREAK username.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When your program has stopped at the breakpoint, you can check the vaues, what the T_RETURN table contains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use transaction SE37, enter BAPI_MATERIAL_SAVEDATA in function module and click on Display. All parameters imported and exported, tables etc are shown. You can see there which are optional or not. Also, useful is the function module documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for more information about the code you can refer to the below wiki link as reference &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/sandbox/Program" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/sandbox/Program&lt;/A&gt;&lt;EM&gt;for&lt;/EM&gt;creating+&lt;EM&gt;material&lt;/EM&gt;using++BAPI_MATERIAL_SAVEDATA&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;Saurabh Goel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2009 06:10:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-24T06:10:11Z</dc:date>
    <item>
      <title>BAPI problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/5858411#M1320945</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;in bapi BAPI_MATERIAL_SAVEDATA &lt;/P&gt;&lt;P&gt;iam getting allthe views with correct data except mrp view ,&lt;/P&gt;&lt;P&gt; costview , accountingview can anyone tell me why its happening.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 11:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/5858411#M1320945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-23T11:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/5858412#M1320946</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;The BAPI returns two types of messages:&lt;/P&gt;&lt;P&gt;- EXPORTING parameter RETURN (holds last message of RETURNMESSAGES)&lt;/P&gt;&lt;P&gt;- TABLES parameter RETURNMESSAGES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now check the RETURNMESSAGES for details about the problems:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  ls_return                TYPE bapi_matreturn2.&lt;/P&gt;&lt;P&gt;  lt_returnmessages  TYPE STANDADRD TABLE OF bapi_matreturn2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;" Retrieve the return messages into lt_returnmessages&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  LOOP AT lt_returnmessages into ls_return&lt;/P&gt;&lt;P&gt;                                             WHERE ( type CA 'AEX' ). " abort, error, dump&lt;/P&gt;&lt;P&gt;"   debug here and check the error details&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know the message in return table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ShreeMohan Pugalia on Jul 23, 2009 1:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 11:23:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/5858412#M1320946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-23T11:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/5858413#M1320947</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;Try to put break-point in the function module &amp;amp; check out once.u ll get where exaclty problem is.&lt;/P&gt;&lt;P&gt;For mrp view,........etc is there data? if yes ,debug it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;pravin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 11:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/5858413#M1320947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-23T11:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/5858414#M1320948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi chin Huan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to check the table T_RETURN after, you called the BAPI, but before the commit.&lt;/P&gt;&lt;P&gt;If you see "E" or "A" TYPE messages in it, you have to solve these errors. After this, your material will be saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set a break point into your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA' ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK-POINT. "or BREAK username.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When your program has stopped at the breakpoint, you can check the vaues, what the T_RETURN table contains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use transaction SE37, enter BAPI_MATERIAL_SAVEDATA in function module and click on Display. All parameters imported and exported, tables etc are shown. You can see there which are optional or not. Also, useful is the function module documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for more information about the code you can refer to the below wiki link as reference &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/sandbox/Program" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/sandbox/Program&lt;/A&gt;&lt;EM&gt;for&lt;/EM&gt;creating+&lt;EM&gt;material&lt;/EM&gt;using++BAPI_MATERIAL_SAVEDATA&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;Saurabh Goel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 06:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-problem/m-p/5858414#M1320948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T06:10:11Z</dc:date>
    </item>
  </channel>
</rss>

