<?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: Transaction MM02 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-mm02/m-p/1048093#M88478</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;  Welcome to SDN !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can still achieve what you want with MATERIAL_MAINTAIN_DIALOGUE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following test program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zsritest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lv_bilds LIKE t133a-bilds,&lt;/P&gt;&lt;P&gt;      ls_t130m LIKE t130m,&lt;/P&gt;&lt;P&gt;      ls_rmmg1 LIKE rmmg1,&lt;/P&gt;&lt;P&gt;      lwa_view TYPE mbildtab,&lt;/P&gt;&lt;P&gt;      lwa_auswg TYPE mgauswg,&lt;/P&gt;&lt;P&gt;      lt_views TYPE STANDARD TABLE OF mbildtab INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;      lt_auswg TYPE STANDARD TABLE OF mgauswg INITIAL SIZE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;            p_werks LIKE marc-werks,&lt;/P&gt;&lt;P&gt;            p_dytxt LIKE mbildtab-dytxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM mara WHERE matnr EQ p_matnr.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'T130M_SINGLE_READ'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          tcode      = 'MM03'&lt;/P&gt;&lt;P&gt;          kzrfb      = 'X'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          wt130m     = ls_t130m&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          not_found  = 1&lt;/P&gt;&lt;P&gt;          wrong_call = 2&lt;/P&gt;&lt;P&gt;          OTHERS     = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BILDSEQUENZ_IDENTIFY'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   branche                = mara-mbrsh&lt;/P&gt;&lt;P&gt;   materialart            = mara-mtart&lt;/P&gt;&lt;P&gt;   tcode_ref              = ls_t130m-trref&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  KZRFB                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   bildsequenz            = lv_bilds&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  KZ_BILDS_CHANGED       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   wrong_call             = 1&lt;/P&gt;&lt;P&gt;   not_found              = 2&lt;/P&gt;&lt;P&gt;   OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SELECTION_VIEWS_FIND'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          bildsequenz     = lv_bilds&lt;/P&gt;&lt;P&gt;          pflegestatus    = mara-pstat&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          bildtab         = lt_views[]&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          call_wrong      = 1&lt;/P&gt;&lt;P&gt;          empty_selection = 2&lt;/P&gt;&lt;P&gt;          OTHERS          = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_rmmg1-matnr = mara-matnr.&lt;/P&gt;&lt;P&gt;ls_rmmg1-werks = p_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE lt_views INTO lwa_view WITH KEY dytxt = p_dytxt.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;lwa_auswg-auswg = lwa_view-auswg.&lt;/P&gt;&lt;P&gt;APPEND lwa_auswg TO lt_auswg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MATERIAL_MAINTAIN_DIALOGUE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   irmmg1              = ls_rmmg1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IRMMG1_REF          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   KZ_EIN_DARK         = 'X'&lt;/P&gt;&lt;P&gt;    t_tcode             = 'MM03'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FLG_MATNR_RES       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   p_pstat             = mara-pstat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FLG_STAT_ALL        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL_MODE2          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MATERIAL_NO         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UPDATE_OK           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;   iauswg              = lt_auswg[]&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   no_authority        = 1&lt;/P&gt;&lt;P&gt;   OTHERS              = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with a material, plant and "MRP 2" as p_dytxt. Use this code as reference to arrive at your own logic based on the data you have at hand at the time of call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2005 13:12:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-01T13:12:21Z</dc:date>
    <item>
      <title>Transaction MM02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-mm02/m-p/1048092#M88477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	In one of our program it is required to navigate to the particular view of MM02 transaction. The view selection depends upon the type of error for the material.&lt;/P&gt;&lt;P&gt;I tried with the FM MATERIAL_MAINTAIN_DIALOGUE but using this I can only enter all the basic views such as basic data 1, MRP1, Costing1, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to enter the other views also (MRP2, Costing2, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought of BDC but it will make a big code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another simple way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has worked on such requirement then please get back to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 12:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-mm02/m-p/1048092#M88477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T12:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction MM02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-mm02/m-p/1048093#M88478</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;  Welcome to SDN !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can still achieve what you want with MATERIAL_MAINTAIN_DIALOGUE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following test program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zsritest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lv_bilds LIKE t133a-bilds,&lt;/P&gt;&lt;P&gt;      ls_t130m LIKE t130m,&lt;/P&gt;&lt;P&gt;      ls_rmmg1 LIKE rmmg1,&lt;/P&gt;&lt;P&gt;      lwa_view TYPE mbildtab,&lt;/P&gt;&lt;P&gt;      lwa_auswg TYPE mgauswg,&lt;/P&gt;&lt;P&gt;      lt_views TYPE STANDARD TABLE OF mbildtab INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;      lt_auswg TYPE STANDARD TABLE OF mgauswg INITIAL SIZE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;            p_werks LIKE marc-werks,&lt;/P&gt;&lt;P&gt;            p_dytxt LIKE mbildtab-dytxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM mara WHERE matnr EQ p_matnr.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'T130M_SINGLE_READ'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          tcode      = 'MM03'&lt;/P&gt;&lt;P&gt;          kzrfb      = 'X'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          wt130m     = ls_t130m&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          not_found  = 1&lt;/P&gt;&lt;P&gt;          wrong_call = 2&lt;/P&gt;&lt;P&gt;          OTHERS     = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BILDSEQUENZ_IDENTIFY'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   branche                = mara-mbrsh&lt;/P&gt;&lt;P&gt;   materialart            = mara-mtart&lt;/P&gt;&lt;P&gt;   tcode_ref              = ls_t130m-trref&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  KZRFB                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   bildsequenz            = lv_bilds&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  KZ_BILDS_CHANGED       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   wrong_call             = 1&lt;/P&gt;&lt;P&gt;   not_found              = 2&lt;/P&gt;&lt;P&gt;   OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SELECTION_VIEWS_FIND'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          bildsequenz     = lv_bilds&lt;/P&gt;&lt;P&gt;          pflegestatus    = mara-pstat&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          bildtab         = lt_views[]&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          call_wrong      = 1&lt;/P&gt;&lt;P&gt;          empty_selection = 2&lt;/P&gt;&lt;P&gt;          OTHERS          = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_rmmg1-matnr = mara-matnr.&lt;/P&gt;&lt;P&gt;ls_rmmg1-werks = p_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE lt_views INTO lwa_view WITH KEY dytxt = p_dytxt.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;lwa_auswg-auswg = lwa_view-auswg.&lt;/P&gt;&lt;P&gt;APPEND lwa_auswg TO lt_auswg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MATERIAL_MAINTAIN_DIALOGUE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   irmmg1              = ls_rmmg1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IRMMG1_REF          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   KZ_EIN_DARK         = 'X'&lt;/P&gt;&lt;P&gt;    t_tcode             = 'MM03'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FLG_MATNR_RES       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   p_pstat             = mara-pstat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FLG_STAT_ALL        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL_MODE2          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MATERIAL_NO         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UPDATE_OK           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;   iauswg              = lt_auswg[]&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   no_authority        = 1&lt;/P&gt;&lt;P&gt;   OTHERS              = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with a material, plant and "MRP 2" as p_dytxt. Use this code as reference to arrive at your own logic based on the data you have at hand at the time of call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 13:12:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-mm02/m-p/1048093#M88478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T13:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction MM02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-mm02/m-p/1048094#M88479</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 am using FM MATERIAL_MAINTAIN_DIALOGUE with tcode as MM02, but when I am changing data it gives message that material data changed and saved but it is not reflecting in the actual material master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell what may be the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 06:12:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-mm02/m-p/1048094#M88479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T06:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction MM02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-mm02/m-p/1048095#M88480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to Use Commit.&lt;/P&gt;&lt;P&gt;after calling this FM.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 06:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-mm02/m-p/1048095#M88480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T06:24:55Z</dc:date>
    </item>
  </channel>
</rss>

