<?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: Add a material to Change Master function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-material-to-change-master-function-module/m-p/3190875#M760107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the function module  'CCAP_ECN_MAINTAIN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CCAP_ECN_HEADER_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CHANGE_NO = ECN_NUMBER&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt; CHANGE_HEADER = ls_aennr_head_output&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt; NO_RECORD_FOUND = 1&lt;/P&gt;&lt;P&gt; ERROR = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3 .&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;-&amp;gt; Systemlog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR ls_aennr_head_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MOVE-CORRESPONDING ls_aennr_head_output TO ls_aennr_head_input.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CLEAR ls_aennr_head_input-INDATE_RULE.&lt;/P&gt;&lt;P&gt; CLEAR ls_aennr_head_input-OUTDATE_RULE.&lt;/P&gt;&lt;P&gt;objetct_mat-ACTIVE = 'X'.&lt;/P&gt;&lt;P&gt; objetct_mat-MGTREC_GEN = 'X'.&lt;/P&gt;&lt;P&gt; objetct_mat-OBJ_REQU = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CALO_INIT_API'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;data_reset_sign = '!'&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;log_object_not_found = 1&lt;/P&gt;&lt;P&gt; log_sub_object_not_found = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&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;-&amp;gt; Systemlog ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ls_object_for_aennr-chg_objtyp = '4'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_CCMAT_OUTPUT'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; INPUT = MATERIAL&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;  OUTPUT = ls_object_for_aennr-material .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_object_for_aennr-material = MATERIAL.&lt;/P&gt;&lt;P&gt; REFRESH lt_object_for_aennr.&lt;/P&gt;&lt;P&gt;APPEND ls_object_for_aennr TO lt_object_for_aennr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CCAP_ECN_MAINTAIN'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt; CHANGE_HEADER = ls_aennr_head_input&lt;/P&gt;&lt;P&gt; OBJECT_MAT = objetct_mat&lt;/P&gt;&lt;P&gt; FL_COMMIT_AND_WAIT = 'X'&lt;/P&gt;&lt;P&gt; FL_SYNCH           = ' '&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;OBJMGREC = lt_object_for_aennr&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt; ERROR = 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;-&amp;gt; Systemlog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2010 14:10:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-21T14:10:19Z</dc:date>
    <item>
      <title>Add a material to Change Master function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-material-to-change-master-function-module/m-p/3190874#M760106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know of a function module that will add a material to a change master?. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm refering to the type of document you create/change with transaction CC01/CC02. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table reference AEOI-AENNR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 13:19:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-material-to-change-master-function-module/m-p/3190874#M760106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T13:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Add a material to Change Master function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-material-to-change-master-function-module/m-p/3190875#M760107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the function module  'CCAP_ECN_MAINTAIN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CCAP_ECN_HEADER_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CHANGE_NO = ECN_NUMBER&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt; CHANGE_HEADER = ls_aennr_head_output&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt; NO_RECORD_FOUND = 1&lt;/P&gt;&lt;P&gt; ERROR = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3 .&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;-&amp;gt; Systemlog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR ls_aennr_head_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MOVE-CORRESPONDING ls_aennr_head_output TO ls_aennr_head_input.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CLEAR ls_aennr_head_input-INDATE_RULE.&lt;/P&gt;&lt;P&gt; CLEAR ls_aennr_head_input-OUTDATE_RULE.&lt;/P&gt;&lt;P&gt;objetct_mat-ACTIVE = 'X'.&lt;/P&gt;&lt;P&gt; objetct_mat-MGTREC_GEN = 'X'.&lt;/P&gt;&lt;P&gt; objetct_mat-OBJ_REQU = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CALO_INIT_API'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;data_reset_sign = '!'&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;log_object_not_found = 1&lt;/P&gt;&lt;P&gt; log_sub_object_not_found = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&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;-&amp;gt; Systemlog ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ls_object_for_aennr-chg_objtyp = '4'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_CCMAT_OUTPUT'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; INPUT = MATERIAL&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;  OUTPUT = ls_object_for_aennr-material .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_object_for_aennr-material = MATERIAL.&lt;/P&gt;&lt;P&gt; REFRESH lt_object_for_aennr.&lt;/P&gt;&lt;P&gt;APPEND ls_object_for_aennr TO lt_object_for_aennr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CCAP_ECN_MAINTAIN'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt; CHANGE_HEADER = ls_aennr_head_input&lt;/P&gt;&lt;P&gt; OBJECT_MAT = objetct_mat&lt;/P&gt;&lt;P&gt; FL_COMMIT_AND_WAIT = 'X'&lt;/P&gt;&lt;P&gt; FL_SYNCH           = ' '&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;OBJMGREC = lt_object_for_aennr&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt; ERROR = 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;-&amp;gt; Systemlog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 14:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-material-to-change-master-function-module/m-p/3190875#M760107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T14:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Add a material to Change Master function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-material-to-change-master-function-module/m-p/3190876#M760108</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I tried these codes and activated the program after correcting the errors but it does not add the material to the ECN. What could be the problem? I debug but t cannot see the fault. Please help. &lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 05:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-material-to-change-master-function-module/m-p/3190876#M760108</guid>
      <dc:creator>former_member806293</dc:creator>
      <dc:date>2022-04-11T05:50:54Z</dc:date>
    </item>
  </channel>
</rss>

