<?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_MATERIAL_MAINTAINDATA_RT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-maintaindata-rt/m-p/2400795#M534798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;             insted of this BAPI_MATERIAL_MAINTAINDATA_RT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm" target="test_blank"&gt;http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the bapi BAPI_MATERIAL_SAVEDATA does it for you.&lt;/P&gt;&lt;P&gt;why can't you use BAPI_MATERIAL_SAVEDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT z_temp_13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: zheaddata TYPE bapie1mathead.&lt;/P&gt;&lt;P&gt;DATA: wa_mvkert TYPE bapie1mvkert.&lt;/P&gt;&lt;P&gt;DATA: it_mvkert TYPE TABLE OF bapie1mvkert.&lt;/P&gt;&lt;P&gt;DATA: wa_mvkertx TYPE bapie1mvkertx.&lt;/P&gt;&lt;P&gt;DATA: it_mvkertx TYPE TABLE OF bapie1mvkertx.&lt;/P&gt;&lt;P&gt;DATA: zbapiret1 LIKE bapiret1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;p_matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;p_vkorg LIKE mvke-vkorg,&lt;/P&gt;&lt;P&gt;p_vtweg LIKE mvke-vtweg,&lt;/P&gt;&lt;P&gt;p_vmsta LIKE mvke-vmsta,&lt;/P&gt;&lt;P&gt;p_vmstd LIKE mvke-vmstd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;zheaddata-material = p_matnr.&lt;/P&gt;&lt;P&gt;zheaddata-sales_view = 'X'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;wa_mvkert-material = p_matnr.&lt;/P&gt;&lt;P&gt;wa_mvkert-sales_org = p_vkorg.&lt;/P&gt;&lt;P&gt;wa_mvkert-distr_chan = p_vtweg.&lt;/P&gt;&lt;P&gt;wa_mvkert-sal_status = p_vmsta.&lt;/P&gt;&lt;P&gt;wa_mvkert-valid_from = p_vmstd.&lt;/P&gt;&lt;P&gt;APPEND wa_mvkert TO it_mvkert.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;wa_mvkertx-material = p_matnr.&lt;/P&gt;&lt;P&gt;wa_mvkertx-sales_org = p_vkorg.&lt;/P&gt;&lt;P&gt;wa_mvkertx-distr_chan = p_vtweg.&lt;/P&gt;&lt;P&gt;wa_mvkertx-sal_status = 'X'.&lt;/P&gt;&lt;P&gt;wa_mvkertx-valid_from = 'X'.&lt;/P&gt;&lt;P&gt;APPEND wa_mvkertx TO it_mvkertx.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;headdata = zheaddata&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;return = zbapiret1&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;salesdata = it_mvkert&lt;/P&gt;&lt;P&gt;salesdatax = it_mvkertx.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;WRITE : /&lt;/P&gt;&lt;P&gt;zbapiret1-type&lt;/P&gt;&lt;P&gt;, zbapiret1-id&lt;/P&gt;&lt;P&gt;, zbapiret1-number&lt;/P&gt;&lt;P&gt;, zbapiret1-message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the program&amp;lt;b&amp;gt; SAPRWMCA&amp;lt;/b&amp;gt; to populate the internal tables for BAPI..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2007 09:41:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-15T09:41:28Z</dc:date>
    <item>
      <title>BAPI_MATERIAL_MAINTAINDATA_RT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-maintaindata-rt/m-p/2400793#M534796</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;I have problem with function BAPI_MATERIAL_MAINTAINDATA_RT. I use it for mass changing on material.&lt;/P&gt;&lt;P&gt;All modifications work fine, but I cannot make work tbl_LAYOUTMODULEASSGMT (add or modifiy lines in MALG). No error messages in return table. I don't understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is like :&lt;/P&gt;&lt;P&gt;    MOVE : '004'              to tbl_layoutmoduleassgmt-function,&lt;/P&gt;&lt;P&gt;           tbl_articles-matnr TO tbl_layoutmoduleassgmt-material,&lt;/P&gt;&lt;P&gt;           'PCE'            TO tbl_layoutmoduleassgmt-unit,&lt;/P&gt;&lt;P&gt;           'PCE'            to tbl_layoutmoduleassgmt-unit_iso,&lt;/P&gt;&lt;P&gt;           p_laygr            TO tbl_layoutmoduleassgmt-layout_mod,&lt;/P&gt;&lt;P&gt;           '1'                to tbl_layoutmoduleassgmt-SHELF_QUANTITY_MAX,&lt;/P&gt;&lt;P&gt;           '004'              to tbl_layoutmoduleassgmtx-function,&lt;/P&gt;&lt;P&gt;           tbl_articles-matnr TO tbl_layoutmoduleassgmtx-material,&lt;/P&gt;&lt;P&gt;           p_meinh            TO tbl_layoutmoduleassgmtx-unit,&lt;/P&gt;&lt;P&gt;           p_meinh            to tbl_layoutmoduleassgmtx-unit_iso,&lt;/P&gt;&lt;P&gt;           p_laygr            TO tbl_layoutmoduleassgmtx-layout_mod,&lt;/P&gt;&lt;P&gt;           'X'                to tbl_layoutmoduleassgmtx-SHELF_QUANTITY_MAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND : tbl_layoutmoduleassgmt,&lt;/P&gt;&lt;P&gt;             tbl_layoutmoduleassgmtx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping me &lt;/P&gt;&lt;P&gt;Marie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 16:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-maintaindata-rt/m-p/2400793#M534796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T16:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_MAINTAINDATA_RT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-maintaindata-rt/m-p/2400794#M534797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Someone has an idea ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 09:12:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-maintaindata-rt/m-p/2400794#M534797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T09:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_MAINTAINDATA_RT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-maintaindata-rt/m-p/2400795#M534798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;             insted of this BAPI_MATERIAL_MAINTAINDATA_RT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm" target="test_blank"&gt;http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the bapi BAPI_MATERIAL_SAVEDATA does it for you.&lt;/P&gt;&lt;P&gt;why can't you use BAPI_MATERIAL_SAVEDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT z_temp_13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: zheaddata TYPE bapie1mathead.&lt;/P&gt;&lt;P&gt;DATA: wa_mvkert TYPE bapie1mvkert.&lt;/P&gt;&lt;P&gt;DATA: it_mvkert TYPE TABLE OF bapie1mvkert.&lt;/P&gt;&lt;P&gt;DATA: wa_mvkertx TYPE bapie1mvkertx.&lt;/P&gt;&lt;P&gt;DATA: it_mvkertx TYPE TABLE OF bapie1mvkertx.&lt;/P&gt;&lt;P&gt;DATA: zbapiret1 LIKE bapiret1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;p_matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;p_vkorg LIKE mvke-vkorg,&lt;/P&gt;&lt;P&gt;p_vtweg LIKE mvke-vtweg,&lt;/P&gt;&lt;P&gt;p_vmsta LIKE mvke-vmsta,&lt;/P&gt;&lt;P&gt;p_vmstd LIKE mvke-vmstd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;zheaddata-material = p_matnr.&lt;/P&gt;&lt;P&gt;zheaddata-sales_view = 'X'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;wa_mvkert-material = p_matnr.&lt;/P&gt;&lt;P&gt;wa_mvkert-sales_org = p_vkorg.&lt;/P&gt;&lt;P&gt;wa_mvkert-distr_chan = p_vtweg.&lt;/P&gt;&lt;P&gt;wa_mvkert-sal_status = p_vmsta.&lt;/P&gt;&lt;P&gt;wa_mvkert-valid_from = p_vmstd.&lt;/P&gt;&lt;P&gt;APPEND wa_mvkert TO it_mvkert.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;wa_mvkertx-material = p_matnr.&lt;/P&gt;&lt;P&gt;wa_mvkertx-sales_org = p_vkorg.&lt;/P&gt;&lt;P&gt;wa_mvkertx-distr_chan = p_vtweg.&lt;/P&gt;&lt;P&gt;wa_mvkertx-sal_status = 'X'.&lt;/P&gt;&lt;P&gt;wa_mvkertx-valid_from = 'X'.&lt;/P&gt;&lt;P&gt;APPEND wa_mvkertx TO it_mvkertx.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;headdata = zheaddata&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;return = zbapiret1&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;salesdata = it_mvkert&lt;/P&gt;&lt;P&gt;salesdatax = it_mvkertx.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;WRITE : /&lt;/P&gt;&lt;P&gt;zbapiret1-type&lt;/P&gt;&lt;P&gt;, zbapiret1-id&lt;/P&gt;&lt;P&gt;, zbapiret1-number&lt;/P&gt;&lt;P&gt;, zbapiret1-message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the program&amp;lt;b&amp;gt; SAPRWMCA&amp;lt;/b&amp;gt; to populate the internal tables for BAPI..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 09:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-maintaindata-rt/m-p/2400795#M534798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T09:41:28Z</dc:date>
    </item>
  </channel>
</rss>

