<?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 Problems with update, material_maintain_dark in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-update-material-maintain-dark/m-p/2914802#M686120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;i have a minor Problem with the FM mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to update the MBEW (ZPLP2 and ZPLD2)&lt;/P&gt;&lt;P&gt;in the end i  get the return-code '0', but the material (price in MBEW) is still not changed.&lt;/P&gt;&lt;P&gt;Pleas have a look at the following code, maybe you have an answer for me &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT xl_marc INTO wa_marc WHERE nplpr  GT '0.00' AND hknpr NE space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_mara-matnr = wa_marc-matnr.&lt;/P&gt;&lt;P&gt;    wa_mara-pstat = 'G'.&lt;/P&gt;&lt;P&gt;    wa_mara-tranc = 0000000001.&lt;/P&gt;&lt;P&gt;    wa_mara-tcode = 'MM02'.&lt;/P&gt;&lt;P&gt;    APPEND wa_mara TO xl_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_marc1-matnr = wa_marc-matnr.&lt;/P&gt;&lt;P&gt;    wa_marc1-werks = xs_00002-low.&lt;/P&gt;&lt;P&gt;    wa_marc1-tranc = 0000000001.&lt;/P&gt;&lt;P&gt;    APPEND wa_marc1 TO xl_marc1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_mbew-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;    wa_mbew-matnr = wa_marc-matnr.&lt;/P&gt;&lt;P&gt;    wa_mbew-zplp2 = wa_marc-nplpr.&lt;/P&gt;&lt;P&gt;    wa_mbew-bwkey = xs_00002-low.&lt;/P&gt;&lt;P&gt;    wa_mbew-zpld2 = sy-datum.&lt;/P&gt;&lt;P&gt;    wa_mbew-tranc = 0000000001.&lt;/P&gt;&lt;P&gt;    APPEND wa_mbew TO xl_mbew.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'MATERIAL_MAINTAIN_DARK'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;       flag_muss_pruefen               = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      sperrmodus                      = 'E'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       max_errors                      = 9999&lt;/P&gt;&lt;P&gt;        p_kz_no_warn                    = 'N'&lt;/P&gt;&lt;P&gt;        kz_prf                          = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  KZ_VERW                         = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   kz_aend                         = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  KZ_DISPO                        = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  KZ_TEST                         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   NO_DATABASE_UPDATE              = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL_MODE                       = ' '&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;/UL&gt;&lt;P&gt;        user                            = sy-uname&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SUPPRESS_ARRAY_READ             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FLG_MASS                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;       matnr_last                      = wa_marc-matnr&lt;/P&gt;&lt;P&gt;       number_errors_transaction       = numerror&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;        amara_ueb                       = xl_mara&lt;/P&gt;&lt;P&gt;        amarc_ueb                       = xl_marc1&lt;/P&gt;&lt;P&gt;        ambew_ueb                       =   xl_mbew&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       kstatus_empty                   = 1&lt;/P&gt;&lt;P&gt;       tkstatus_empty                  = 2&lt;/P&gt;&lt;P&gt;       t130m_error                     = 3&lt;/P&gt;&lt;P&gt;       internal_error                  = 4&lt;/P&gt;&lt;P&gt;       too_many_errors                 = 5&lt;/P&gt;&lt;P&gt;       update_error                    = 6&lt;/P&gt;&lt;P&gt;       OTHERS                          = 7&lt;/P&gt;&lt;P&gt;              .&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;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2007 09:18:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-18T09:18:39Z</dc:date>
    <item>
      <title>Problems with update, material_maintain_dark</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-update-material-maintain-dark/m-p/2914802#M686120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;i have a minor Problem with the FM mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to update the MBEW (ZPLP2 and ZPLD2)&lt;/P&gt;&lt;P&gt;in the end i  get the return-code '0', but the material (price in MBEW) is still not changed.&lt;/P&gt;&lt;P&gt;Pleas have a look at the following code, maybe you have an answer for me &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT xl_marc INTO wa_marc WHERE nplpr  GT '0.00' AND hknpr NE space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_mara-matnr = wa_marc-matnr.&lt;/P&gt;&lt;P&gt;    wa_mara-pstat = 'G'.&lt;/P&gt;&lt;P&gt;    wa_mara-tranc = 0000000001.&lt;/P&gt;&lt;P&gt;    wa_mara-tcode = 'MM02'.&lt;/P&gt;&lt;P&gt;    APPEND wa_mara TO xl_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_marc1-matnr = wa_marc-matnr.&lt;/P&gt;&lt;P&gt;    wa_marc1-werks = xs_00002-low.&lt;/P&gt;&lt;P&gt;    wa_marc1-tranc = 0000000001.&lt;/P&gt;&lt;P&gt;    APPEND wa_marc1 TO xl_marc1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_mbew-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;    wa_mbew-matnr = wa_marc-matnr.&lt;/P&gt;&lt;P&gt;    wa_mbew-zplp2 = wa_marc-nplpr.&lt;/P&gt;&lt;P&gt;    wa_mbew-bwkey = xs_00002-low.&lt;/P&gt;&lt;P&gt;    wa_mbew-zpld2 = sy-datum.&lt;/P&gt;&lt;P&gt;    wa_mbew-tranc = 0000000001.&lt;/P&gt;&lt;P&gt;    APPEND wa_mbew TO xl_mbew.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'MATERIAL_MAINTAIN_DARK'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;       flag_muss_pruefen               = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      sperrmodus                      = 'E'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       max_errors                      = 9999&lt;/P&gt;&lt;P&gt;        p_kz_no_warn                    = 'N'&lt;/P&gt;&lt;P&gt;        kz_prf                          = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  KZ_VERW                         = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   kz_aend                         = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  KZ_DISPO                        = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  KZ_TEST                         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   NO_DATABASE_UPDATE              = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL_MODE                       = ' '&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;/UL&gt;&lt;P&gt;        user                            = sy-uname&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SUPPRESS_ARRAY_READ             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FLG_MASS                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;       matnr_last                      = wa_marc-matnr&lt;/P&gt;&lt;P&gt;       number_errors_transaction       = numerror&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;        amara_ueb                       = xl_mara&lt;/P&gt;&lt;P&gt;        amarc_ueb                       = xl_marc1&lt;/P&gt;&lt;P&gt;        ambew_ueb                       =   xl_mbew&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       kstatus_empty                   = 1&lt;/P&gt;&lt;P&gt;       tkstatus_empty                  = 2&lt;/P&gt;&lt;P&gt;       t130m_error                     = 3&lt;/P&gt;&lt;P&gt;       internal_error                  = 4&lt;/P&gt;&lt;P&gt;       too_many_errors                 = 5&lt;/P&gt;&lt;P&gt;       update_error                    = 6&lt;/P&gt;&lt;P&gt;       OTHERS                          = 7&lt;/P&gt;&lt;P&gt;              .&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;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 09:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-update-material-maintain-dark/m-p/2914802#M686120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T09:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with update, material_maintain_dark</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-update-material-maintain-dark/m-p/2914803#M686121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to commit the work explicitely using the BAPI. BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will commit your changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 09:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-update-material-maintain-dark/m-p/2914803#M686121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T09:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with update, material_maintain_dark</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-update-material-maintain-dark/m-p/2914804#M686122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to bother you again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;okay i implemented this bapi. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the MBEW is still not updated &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solutions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 09:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-update-material-maintain-dark/m-p/2914804#M686122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T09:38:09Z</dc:date>
    </item>
  </channel>
</rss>

