<?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 BAPI_MATERIAL_SAVEDATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-material-savedata/m-p/4654720#M1095191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using BAPI_MATERIAL_SAVEDATA in order to change the 'cross-plant material status'. Below the relevant code lines: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lst_headdata    TYPE bapimathead,&lt;/P&gt;&lt;P&gt;             lst_clientdata  TYPE bapi_mara,&lt;/P&gt;&lt;P&gt;             lst_clientdatax TYPE bapi_marax,&lt;/P&gt;&lt;P&gt;             lst_return      TYPE bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lit_return_msg  TYPE TABLE OF bapi_matreturn2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lst_headdata-material = i_matnr.&lt;/P&gt;&lt;P&gt;  lst_headdata-basic_view = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lst_clientdata-pur_status = i_new_mstae.     " NEW cross-plant material status&lt;/P&gt;&lt;P&gt;  lst_clientdatax-pur_status = 'X'.&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                   = lst_headdata&lt;/P&gt;&lt;P&gt;        clientdata                 = lst_clientdata&lt;/P&gt;&lt;P&gt;        clientdatax                = lst_clientdatax&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        return                     = lst_return&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        returnmessages             = lit_return_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error table 'lit_return_msg' of type bapi_matreturn2 contains the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H MK 102 trying to create: 6000191 ____ ____ ____ __________ ____ __ ___ ___&lt;/P&gt;&lt;P&gt;S MG 160 The material cannot be maintained since no maintainable data transferred&lt;/P&gt;&lt;P&gt;H MK 103 Trying to change: 6000191 ____ ____ ____ __________ ____ __ ___ ___&lt;/P&gt;&lt;P&gt;E 00   001 Falsche Aktivität!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to test BAPI_MATERIAL_SAVEDATA with transaction SE37 - the same result (in our development system)! Now comes the strange: In our test system the test in SE37 (with an identically created material!) works without an error message - although the two systems are supposed to be identical!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has somebody any advice? Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Oct 2008 07:10:14 GMT</pubDate>
    <dc:creator>wolfgang_brunneder</dc:creator>
    <dc:date>2008-10-17T07:10:14Z</dc:date>
    <item>
      <title>Problem with BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-material-savedata/m-p/4654720#M1095191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using BAPI_MATERIAL_SAVEDATA in order to change the 'cross-plant material status'. Below the relevant code lines: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lst_headdata    TYPE bapimathead,&lt;/P&gt;&lt;P&gt;             lst_clientdata  TYPE bapi_mara,&lt;/P&gt;&lt;P&gt;             lst_clientdatax TYPE bapi_marax,&lt;/P&gt;&lt;P&gt;             lst_return      TYPE bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lit_return_msg  TYPE TABLE OF bapi_matreturn2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lst_headdata-material = i_matnr.&lt;/P&gt;&lt;P&gt;  lst_headdata-basic_view = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lst_clientdata-pur_status = i_new_mstae.     " NEW cross-plant material status&lt;/P&gt;&lt;P&gt;  lst_clientdatax-pur_status = 'X'.&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                   = lst_headdata&lt;/P&gt;&lt;P&gt;        clientdata                 = lst_clientdata&lt;/P&gt;&lt;P&gt;        clientdatax                = lst_clientdatax&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        return                     = lst_return&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        returnmessages             = lit_return_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error table 'lit_return_msg' of type bapi_matreturn2 contains the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H MK 102 trying to create: 6000191 ____ ____ ____ __________ ____ __ ___ ___&lt;/P&gt;&lt;P&gt;S MG 160 The material cannot be maintained since no maintainable data transferred&lt;/P&gt;&lt;P&gt;H MK 103 Trying to change: 6000191 ____ ____ ____ __________ ____ __ ___ ___&lt;/P&gt;&lt;P&gt;E 00   001 Falsche Aktivität!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to test BAPI_MATERIAL_SAVEDATA with transaction SE37 - the same result (in our development system)! Now comes the strange: In our test system the test in SE37 (with an identically created material!) works without an error message - although the two systems are supposed to be identical!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has somebody any advice? Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 07:10:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-material-savedata/m-p/4654720#M1095191</guid>
      <dc:creator>wolfgang_brunneder</dc:creator>
      <dc:date>2008-10-17T07:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-material-savedata/m-p/4654721#M1095192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this logic you may find any solution.&lt;/P&gt;&lt;P&gt;See how to pass the values to the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE&lt;/P&gt;&lt;P&gt;         mtart&lt;/P&gt;&lt;P&gt;         FROM mara&lt;/P&gt;&lt;P&gt;         INTO y_lv_mtart&lt;/P&gt;&lt;P&gt;         WHERE matnr EQ y_wa_yrevlev-mat_ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ y_k_zero.&lt;/P&gt;&lt;P&gt;    y_wa_bapi_header-material  = y_wa_yrevlev-mat_ref.&lt;/P&gt;&lt;P&gt;    y_wa_bapi_header-matl_type = y_lv_mtart.&lt;/P&gt;&lt;P&gt;    y_wa_bapi_header-mrp_view  = y_lk_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    y_wa_extin-structure        = 'BAPI_TE_MARC'.&lt;/P&gt;&lt;P&gt;    y_wa_extin-valuepart1+0(4)  = y_wa_yrevlev-werks.&lt;/P&gt;&lt;P&gt;    y_wa_extin-valuepart1+17(2) = y_wa_yrevlev-rev_lev.&lt;/P&gt;&lt;P&gt;    APPEND y_wa_extin TO y_i_extin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    y_wa_extinx-structure        = 'BAPI_TE_MARCX'.&lt;/P&gt;&lt;P&gt;    y_wa_extin-valuepart1+0(4)   = y_wa_yrevlev-werks.&lt;/P&gt;&lt;P&gt;    y_wa_extinx-valuepart1+17(2) = y_lk_x.&lt;/P&gt;&lt;P&gt;    APPEND y_wa_extinx TO y_i_extinx.&lt;/P&gt;&lt;P&gt;&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     = y_wa_bapi_header&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        return       = y_wa_return&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        extensionin  = y_i_extin&lt;/P&gt;&lt;P&gt;        extensioninx = y_i_extinx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND y_wa_return TO y_i_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 08:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-material-savedata/m-p/4654721#M1095192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T08:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-material-savedata/m-p/4654722#M1095193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer, but unfortunately your hint does not solve my problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the solution depends on the fact why the FM-test with SE37 works in our test-system BUT NOT in our development system. I created to identical material records (in test- and development-system) in order to test the status change with the BAPI in SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have to perform any customizing in order to get the BAPI work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 06:36:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-material-savedata/m-p/4654722#M1095193</guid>
      <dc:creator>wolfgang_brunneder</dc:creator>
      <dc:date>2008-10-20T06:36:29Z</dc:date>
    </item>
  </channel>
</rss>

