<?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: Change Material master throu BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892339#M53623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to get really slick, you can write a program using the following function module.  Works good for us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

call function 'MATERIAL_MAINTAIN_DARK'
         exporting
              sperrmodus                = ' '
              kz_prf                    = 'W'
              max_errors                = ' '
              p_kz_no_warn              = 'X'
              kz_verw                   = 'X'
              kz_aend                   = 'X'
              kz_dispo                  = 'X'
              kz_test                   = ' '
              flag_muss_pruefen         = ' '
              call_mode                 = 'ACT'
         importing
              number_errors_transaction = numerror
              matnr_last     = last_matnr
         tables
             amara_ueb      = i_mara    "Basic Data
             amakt_ueb      = i_makt    "Descriptions
             amarc_ueb      = i_marc    "Plant
             amard_ueb      = i_mard    "Storage Location
*            AMFHM_UEB      = I_MFHM    "Production Tools
             amarm_ueb      = i_marm    "Units of Measure
*            AMEA1_UEB      = I_MEA1    "Internal Mangagement -  EANs
             ambew_ueb      = i_mbew    "Accounting/Costing
             asteu_ueb      = i_steu    "Tax Data
             astmm_ueb      = i_steumm  "Tax Data
*            AMLGN_UEB      = I_MLGN    "Warehouse Data
*            AMLGT_UEB      = I_MLGT    "Storage Type Data
*            AMPGD_UEB      = I_MPGD    "Change Documents
*            AMPOP_UEB      = I_MPOP    "Forcast Parameters
*            AMVEG_UEB      = I_MVEG    "Total Consumption Data
*            AMVEU_UEB      = I_MVEU    "Unplanned Consumption Data
             amvke_ueb      = i_mvke    "Sales Data
             altx1_ueb      = i_ltx1    "Sales Text
*            AMPRW_UEB      = I_MPRW    "Forcast Values
             amfieldres     = i_delfields
             amerrdat       = i_errors
         exceptions
              kstatus_empty             = 01
              tkstatus_empty            = 02
              t130m_error               = 03
              internal_error            = 04
              update_error              = 05
              too_many_errors           = 06.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2005 13:04:03 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-06-08T13:04:03Z</dc:date>
    <item>
      <title>Change Material master throu BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892333#M53617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	I have a requirement in BDC.. Say a material is created with just Basic data 1 and Basic data 2 . Through BDC i need to fill in the details for Accounting tabs of this material. Is it possible?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful answers will be rewarded.&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;Tamilarasan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 12:08:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892333#M53617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-08T12:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change Material master throu BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892334#M53618</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;LSMW DI Prg 0020/0000/RMDATIND would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murugesh AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 12:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892334#M53618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-08T12:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change Material master throu BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892335#M53619</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;  It is possible using either call transaction or session method, you can call the tcode MM02(change material transaction) to update the accounting information for a particular material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Get back for any further information on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 12:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892335#M53619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-08T12:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change Material master throu BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892336#M53620</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;  Thanks for your prompt reply. In a change material transaction (MM02) we usually get to see only the views that we have entered values. Even if you click the 'Select Views' Button u get only those views for which you keyed in datas.Right?.. Correct me if iam wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also like to thank Murugesh for his prompt response. I will check this out..&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;Tamilarasan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 12:23:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892336#M53620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-08T12:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change Material master throu BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892337#M53621</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 beleive views are displayed based on the material type assigned to that material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swagatika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 12:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892337#M53621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-08T12:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change Material master throu BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892338#M53622</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 would suggest you not to use BDC for material master because the views depend on Material Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are creating a additional views in a Material Master, Use 'MM01' as Tx. code in your DI program. Remember to check field BMM00-XEIB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, Murugesh AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 12:58:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892338#M53622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-08T12:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Change Material master throu BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892339#M53623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to get really slick, you can write a program using the following function module.  Works good for us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

call function 'MATERIAL_MAINTAIN_DARK'
         exporting
              sperrmodus                = ' '
              kz_prf                    = 'W'
              max_errors                = ' '
              p_kz_no_warn              = 'X'
              kz_verw                   = 'X'
              kz_aend                   = 'X'
              kz_dispo                  = 'X'
              kz_test                   = ' '
              flag_muss_pruefen         = ' '
              call_mode                 = 'ACT'
         importing
              number_errors_transaction = numerror
              matnr_last     = last_matnr
         tables
             amara_ueb      = i_mara    "Basic Data
             amakt_ueb      = i_makt    "Descriptions
             amarc_ueb      = i_marc    "Plant
             amard_ueb      = i_mard    "Storage Location
*            AMFHM_UEB      = I_MFHM    "Production Tools
             amarm_ueb      = i_marm    "Units of Measure
*            AMEA1_UEB      = I_MEA1    "Internal Mangagement -  EANs
             ambew_ueb      = i_mbew    "Accounting/Costing
             asteu_ueb      = i_steu    "Tax Data
             astmm_ueb      = i_steumm  "Tax Data
*            AMLGN_UEB      = I_MLGN    "Warehouse Data
*            AMLGT_UEB      = I_MLGT    "Storage Type Data
*            AMPGD_UEB      = I_MPGD    "Change Documents
*            AMPOP_UEB      = I_MPOP    "Forcast Parameters
*            AMVEG_UEB      = I_MVEG    "Total Consumption Data
*            AMVEU_UEB      = I_MVEU    "Unplanned Consumption Data
             amvke_ueb      = i_mvke    "Sales Data
             altx1_ueb      = i_ltx1    "Sales Text
*            AMPRW_UEB      = I_MPRW    "Forcast Values
             amfieldres     = i_delfields
             amerrdat       = i_errors
         exceptions
              kstatus_empty             = 01
              tkstatus_empty            = 02
              t130m_error               = 03
              internal_error            = 04
              update_error              = 05
              too_many_errors           = 06.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2005 13:04:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892339#M53623</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-08T13:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change Material master throu BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892340#M53624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich Heliman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my report I am using ALV and displaying fields, which some of the fields user can change through MATERIAL_MAINTAIN_DARK' function module (it will call through user_command in the alv_grid_display fm). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above scenario, suppose once user execute the program, it will display loading group, picking area and gross weight fields in editable mode. If I modify the value and press the save button program is working fine and material is updating with updated value, however if I remove the value, FM is not changing the value and if I see in the material only old values are appearing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose initially for material 'A' loading group is '0001', if I modify it as '0002', FM is working fine and in the material also I am able to see the changed value '0002'. But if I remove the value means space, FM is returning sy-subrc '0' only but material value is not changing means value is showing only '0002'. Not only this field any field when I modify it is working fine, but if I remove the value it is not accepting only old values are appearing but FM returning sy-subrc value '0'. Please let me know the solution for this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Naveen Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 15:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892340#M53624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T15:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change Material master throu BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892341#M53625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the FM documentation---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Fields that are to be reset to their initial value are transferred &lt;/P&gt;&lt;P&gt;using exception table AMFIELDRES.&amp;lt;/i&amp;gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, there is BAPI_MATERIAL_SAVEDATA. Possibly the COOLEST of the BAPIs i have seen so far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 17:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-material-master-throu-bdc/m-p/892341#M53625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T17:27:29Z</dc:date>
    </item>
  </channel>
</rss>

