<?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: material_maintain_dark in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-maintain-dark/m-p/2325521#M511000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   The fields 'TRANC' and 'D_IND' which appear in the amfieldres table of the function module have a key role to play in updating the material master.&lt;/P&gt;&lt;P&gt;While assigning values to each field make sure that TRANC is incremented for each assignment of a new field. That means TRANC value should be unique for each field update, other wise one of the fields having a common TRANC number would be deleted and henceforth would not be updated.&lt;/P&gt;&lt;P&gt;In brief the combination of 'field-name' and 'TRANC' in the amfieldres table should be unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;Archana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2007 06:46:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-06T06:46:58Z</dc:date>
    <item>
      <title>material_maintain_dark</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-maintain-dark/m-p/2325517#M510996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do any one know how to use FM material_maintain_dark ?&lt;/P&gt;&lt;P&gt;I have problem related to TRANC and D_IND fields passed in tables.&lt;/P&gt;&lt;P&gt;can anyone tell me relation between them?&lt;/P&gt;&lt;P&gt;Also how does different tables are linked?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be very thankful if anyone can guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks And Regards,&lt;/P&gt;&lt;P&gt;Kaushal N. Shah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 12:20:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-maintain-dark/m-p/2325517#M510996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T12:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: material_maintain_dark</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-maintain-dark/m-p/2325518#M510997</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;refer to the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT Z_VENDOR_PART_UPLOAD &lt;/P&gt;&lt;P&gt;message-id zkwm &lt;/P&gt;&lt;P&gt;line-count 64 &lt;/P&gt;&lt;P&gt;LINE-SIZE 500. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: tmara_ueb like mara_ueb occurs 100 with header line. &lt;/P&gt;&lt;P&gt;data: tmakt_ueb like makt_ueb occurs 100 with header line. &lt;/P&gt;&lt;P&gt;data: tamerrdat like merrdat occurs 100 with header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection. &lt;/P&gt;&lt;P&gt;tmara_ueb-mandt = '500'. &lt;/P&gt;&lt;P&gt;tmara_ueb-matnr = 'XISCO2610'. &lt;/P&gt;&lt;P&gt;tmara_ueb-tcode = 'MM02'. &lt;/P&gt;&lt;P&gt;tmara_ueb-tranc = 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmakt_ueb-mandt = '500'. &lt;/P&gt;&lt;P&gt;tmakt_ueb-matnr = 'XISCO2610'. &lt;/P&gt;&lt;P&gt;tmakt_ueb-spras = 'EN'. &lt;/P&gt;&lt;P&gt;tmakt_ueb-maktx = 'test description dark'. &lt;/P&gt;&lt;P&gt;tmakt_ueb-maktg = 'TEST DESCRIPTION DARK'. &lt;/P&gt;&lt;P&gt;tmakt_ueb-tranc = 1. &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;P&gt;SPERRMODUS = 'E' &lt;/P&gt;&lt;P&gt;MAX_ERRORS = 0 &lt;/P&gt;&lt;P&gt;P_KZ_NO_WARN = 'N' &lt;/P&gt;&lt;P&gt;KZ_PRF = 'S' &lt;/P&gt;&lt;P&gt;KZ_VERW = 'X' &lt;/P&gt;&lt;P&gt;KZ_AEND = 'X' &lt;/P&gt;&lt;P&gt;KZ_DISPO = 'X' &lt;/P&gt;&lt;P&gt;KZ_TEST = ' ' &lt;/P&gt;&lt;P&gt;NO_DATABASE_UPDATE = ' ' &lt;/P&gt;&lt;P&gt;CALL_MODE = ' ' &lt;/P&gt;&lt;P&gt;CALL_MODE2 = ' ' &lt;/P&gt;&lt;P&gt;USER = SY-UNAME &lt;/P&gt;&lt;P&gt;SUPPRESS_ARRAY_READ = ' ' &lt;/P&gt;&lt;P&gt;FLG_MASS = ' ' &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;AMARA_UEB = TMARA_UEB &lt;/P&gt;&lt;P&gt;AMAKT_UEB = TMAKT_UEB &lt;/P&gt;&lt;P&gt;AMERRDAT = TAMERRDAT &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;ERROR_MESSAGE = 8 &lt;/P&gt;&lt;P&gt;OTHERS = 7. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*TMERRDAT-TRANC = INIT_TRANC. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TMERRDAT-MATNR = HEADDATA-MATERIAL. &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TMERRDAT-MSGTY = MESSAGE_ERROR. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TAMERRDAT-MSGID = SY-MSGID. &lt;/P&gt;&lt;P&gt;TAMERRDAT-MSGNO = SY-MSGNO. &lt;/P&gt;&lt;P&gt;TAMERRDAT-MSGV1 = SY-MSGV1. &lt;/P&gt;&lt;P&gt;TAMERRDAT-MSGV2 = SY-MSGV2. &lt;/P&gt;&lt;P&gt;TAMERRDAT-MSGV3 = SY-MSGV3. &lt;/P&gt;&lt;P&gt;TAMERRDAT-MSGV4 = SY-MSGV4. &lt;/P&gt;&lt;P&gt;APPEND TAMERRDAT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0. &lt;/P&gt;&lt;P&gt;ROLLBACK WORK. &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DB_COMMIT'. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;dont forget to reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 12:25:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-maintain-dark/m-p/2325518#M510997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T12:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: material_maintain_dark</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-maintain-dark/m-p/2325519#M510998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;     DATA: H_ANZFEHLER LIKE TBIST-NUMERROR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF T_MARA_UEB OCCURS 1.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE MARA_UEB.&lt;/P&gt;&lt;P&gt;DATA: END OF T_MARA_UEB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF T_MBEW_UEB OCCURS 1.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE MBEW_UEB.&lt;/P&gt;&lt;P&gt;DATA: END OF T_MBEW_UEB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_MERRDAT TYPE MERRDAT OCCURS 0 WITH HEADER LINE.&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;p_kz_no_warn = 'N'&lt;/P&gt;&lt;P&gt;kz_prf = 'E'&lt;/P&gt;&lt;P&gt;kz_aend = 'X'&lt;/P&gt;&lt;P&gt;kz_dispo = ' '&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;number_errors_transaction = h_anzfehler&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;amara_ueb = t_mara_ueb&lt;/P&gt;&lt;P&gt;ambew_ueb = t_mbew_ueb&lt;/P&gt;&lt;P&gt;amerrdat = t_merrdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 12:29:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-maintain-dark/m-p/2325519#M510998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T12:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: material_maintain_dark</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-maintain-dark/m-p/2325520#M510999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No thats not what I am looking for.&lt;/P&gt;&lt;P&gt;I want to create materials and change them too.&lt;/P&gt;&lt;P&gt;I have various maintenance level data.&lt;/P&gt;&lt;P&gt;When I pass all this it doesn't always create material and if it does so it sometimes doesn't create maintainance level data.&lt;/P&gt;&lt;P&gt;Now in documentation for material_maintain_dark there is a mention of these two fields : TRANC n D_IND which is req for making this FM work properly.&lt;/P&gt;&lt;P&gt;I don't exactly know how to set this value and how does one table is related to other (like I think MARC n MPOP are related) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do anyone know this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kaushal Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 12:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-maintain-dark/m-p/2325520#M510999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T12:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: material_maintain_dark</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-maintain-dark/m-p/2325521#M511000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   The fields 'TRANC' and 'D_IND' which appear in the amfieldres table of the function module have a key role to play in updating the material master.&lt;/P&gt;&lt;P&gt;While assigning values to each field make sure that TRANC is incremented for each assignment of a new field. That means TRANC value should be unique for each field update, other wise one of the fields having a common TRANC number would be deleted and henceforth would not be updated.&lt;/P&gt;&lt;P&gt;In brief the combination of 'field-name' and 'TRANC' in the amfieldres table should be unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;Archana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 06:46:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-maintain-dark/m-p/2325521#M511000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T06:46:58Z</dc:date>
    </item>
  </channel>
</rss>

