<?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: Problem in BAPI_MATERIAL_SAVEDATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-material-savedata/m-p/2205785#M471767</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;You have to check the table T_RETURN after, you called the BAPI, but before the commit.&lt;/P&gt;&lt;P&gt;&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;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 11:41:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-09T11:41:10Z</dc:date>
    <item>
      <title>Problem in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-material-savedata/m-p/2205784#M471766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helo Friends.&lt;/P&gt;&lt;P&gt;I am updating MM02 using BAPI_MATERIAL_SAVEDATA.&lt;/P&gt;&lt;P&gt;I am passing all the correct parameters, but still its not updating.&lt;/P&gt;&lt;P&gt;Kindly find sample code below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    headdata                   = T_HEAD&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CLIENTDATA                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CLIENTDATAX                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   PLANTDATA                  = T_MARC&lt;/P&gt;&lt;P&gt;   PLANTDATAX                 = T_MARCX&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORECASTPARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORECASTPARAMETERSX        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PLANNINGDATA               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PLANNINGDATAX              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   STORAGELOCATIONDATA        = T_MARD&lt;/P&gt;&lt;P&gt;   STORAGELOCATIONDATAX       = T_MARDX&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VALUATIONDATA              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VALUATIONDATAX             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WAREHOUSENUMBERDATA        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WAREHOUSENUMBERDATAX       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SALESDATA                  = T_MVKE&lt;/P&gt;&lt;P&gt;   SALESDATAX                 = T_MVKEX&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STORAGETYPEDATA            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STORAGETYPEDATAX           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FLAG_ONLINE                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FLAG_CAD_CALL              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_DEQUEUE                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;    RETURN                     = T_RETURN&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MATERIALDESCRIPTION        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNITSOFMEASURE             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNITSOFMEASUREX            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INTERNATIONALARTNOS        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MATERIALLONGTEXT           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TAXCLASSIFICATIONS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURNMESSAGES             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PRTDATA                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PRTDATAX                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTENSIONIN                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTENSIONINX               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   WAIT          = 'X'&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  RETURN        = T_RETURN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 11:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-material-savedata/m-p/2205784#M471766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T11:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-material-savedata/m-p/2205785#M471767</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;You have to check the table T_RETURN after, you called the BAPI, but before the commit.&lt;/P&gt;&lt;P&gt;&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;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 11:41:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-material-savedata/m-p/2205785#M471767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T11:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-material-savedata/m-p/2205786#M471768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Thanks for your reply.&lt;/P&gt;&lt;P&gt;But, can you please explain in brief how to check that table t_return?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 11:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-material-savedata/m-p/2205786#M471768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T11:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-material-savedata/m-p/2205787#M471769</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;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;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 11:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-material-savedata/m-p/2205787#M471769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T11:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-material-savedata/m-p/2205788#M471770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;here is what i got while debugging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF WAIT EQ SPACE.&lt;/P&gt;&lt;P&gt;  COMMIT WORK.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BALW_BAPIRETURN_GET2'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              TYPE       = 'E'&lt;/P&gt;&lt;P&gt;              CL         = 'S&amp;amp;'&lt;/P&gt;&lt;P&gt;              NUMBER     = '150'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              RETURN     = RETURN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 11:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-material-savedata/m-p/2205788#M471770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T11:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-material-savedata/m-p/2205789#M471771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pansee&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;PRE&gt;&lt;CODE&gt;
DATA:
  ls_return                TYPE bapi_matreturn2.
  lt_returnmessages  TYPE STANDADRD TABLE OF bapi_matreturn2.

" Retrieve the return messages into lt_returnmessages

  LOOP AT lt_returnmessages into ls_return
                                             WHERE ( type CA 'AEX' ). " abort, error, dump
"   debug here and check the error details
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 12:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-material-savedata/m-p/2205789#M471771</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-05-09T12:08:42Z</dc:date>
    </item>
  </channel>
</rss>

