<?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 How to modify custom pattern? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-custom-pattern/m-p/4073299#M973935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frdz,&lt;/P&gt;&lt;P&gt;Can any one tell me how to change the pattern that we use while creating new objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: ZZMODLOG- When we call this pattern it will give one template of commented text like TR number, User ID, Date etc.&lt;/P&gt;&lt;P&gt;If i want to modify this where does the code exist for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried in this path but of no use.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SE38-&amp;gt;Enterinto some program-&amp;gt;utilities-&amp;gt;more utilities-&amp;gt;Edit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pattern-&amp;gt;Change pattern&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it is showing some thing like *$&amp;amp;$MUSTER(commented).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me to solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jun 2008 06:33:39 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2008-06-25T06:33:39Z</dc:date>
    <item>
      <title>How to modify custom pattern?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-custom-pattern/m-p/4073299#M973935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frdz,&lt;/P&gt;&lt;P&gt;Can any one tell me how to change the pattern that we use while creating new objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: ZZMODLOG- When we call this pattern it will give one template of commented text like TR number, User ID, Date etc.&lt;/P&gt;&lt;P&gt;If i want to modify this where does the code exist for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried in this path but of no use.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SE38-&amp;gt;Enterinto some program-&amp;gt;utilities-&amp;gt;more utilities-&amp;gt;Edit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pattern-&amp;gt;Change pattern&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it is showing some thing like *$&amp;amp;$MUSTER(commented).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me to solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 06:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-custom-pattern/m-p/4073299#M973935</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-06-25T06:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify custom pattern?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-custom-pattern/m-p/4073300#M973936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;Via transaction SE37, open Function Module: ZZMODLOG_EDITOR_EXIT and do your modifications.
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 06:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-custom-pattern/m-p/4073300#M973936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T06:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify custom pattern?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-custom-pattern/m-p/4073301#M973937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is nothing but dynamic pattern.&lt;/P&gt;&lt;P&gt;Here is an example of making a dynamic pattern in SAP. This is quite useful for standard headers in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you have to create a pattern which contains only one line:&lt;/P&gt;&lt;P&gt;*$&amp;amp;$MUSTER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a function module with the name of the pattern followed by '_editor_exit'&lt;/P&gt;&lt;P&gt;Then add a tables parameter.&lt;/P&gt;&lt;P&gt;parameter name: BUFFER&lt;/P&gt;&lt;P&gt;type spec.: LIKE&lt;/P&gt;&lt;P&gt;reference type: ABAPSOURCE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the source you can add anything you like tot the buffer table, upon executing the pattern in your ABAP, it copies everything you put in it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the result of the pattern I use: &lt;/P&gt;&lt;P&gt;*#######################################################################&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Report   :&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Version  : 1.00&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Author   : &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Function : Developer   Department :ABAP&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Date     : 05.05.2003&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Title    :&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Purpose  :&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Details  :&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*=======================================================================&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Change History&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Correction on version : 1.00&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;New version : 1.01&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Author      :&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Date        :&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reason      :&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Change      :&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*#######################################################################&lt;/P&gt;&lt;P&gt;The code was written in R/3 4.6D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code&lt;/P&gt;&lt;P&gt;FUNCTION zips_model_header_editor_exit .&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Lokale interface:&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      BUFFER STRUCTURE  ABAPSOURCE&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;DATA&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: l_commentline1 LIKE LINE OF buffer,&lt;/P&gt;&lt;P&gt;        l_commentline2 LIKE LINE OF buffer,&lt;/P&gt;&lt;P&gt;        l_commentline3 LIKE LINE OF buffer,&lt;/P&gt;&lt;P&gt;        l_firstname LIKE adrp-name_first,&lt;/P&gt;&lt;P&gt;        l_lastname LIKE adrp-name_last,&lt;/P&gt;&lt;P&gt;        l_function LIKE adcp-function,&lt;/P&gt;&lt;P&gt;        l_department LIKE adcp-department,&lt;/P&gt;&lt;P&gt;        l_datum(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;TABLES&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES: usr21,    "Assign user name address key&lt;/P&gt;&lt;P&gt;          adrp,     "Persons (central address administration)&lt;/P&gt;&lt;P&gt;          adcp.     "Person/Address assignment (central address administration)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*additional:, although using the comment charater '"', the system &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;converts it to '*' &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONCATENATE '"##############################'&lt;/P&gt;&lt;P&gt;        '#########################################' INTO l_commentline1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE '"----&lt;/P&gt;&lt;HR originaltext="-------------------------------" /&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;              '----&lt;/P&gt;&lt;HR originaltext="------------------------------" /&gt;&lt;P&gt;' INTO l_commentline2.&lt;/P&gt;&lt;P&gt;  CONCATENATE '"=================================='&lt;/P&gt;&lt;P&gt;            '=====================================' INTO l_commentline3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = l_commentline1.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = '* Report   : '.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = '* Version  : 1.00'.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;initialize first and last name, if not found in database&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  l_firstname = 'first name'.&lt;/P&gt;&lt;P&gt;  l_lastname = 'last name'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;retrieval of first and last name in database&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT SINGLE * FROM usr21 WHERE bname = sy-uname.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM adrp WHERE persnumber = usr21-persnumber.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      l_firstname = adrp-name_first.&lt;/P&gt;&lt;P&gt;      l_lastname = adrp-name_last.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;retrtieval of function and department of user&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      SELECT SINGLE * FROM adcp WHERE persnumber = usr21-persnumber.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        l_function = adcp-function.&lt;/P&gt;&lt;P&gt;        l_department = adcp-department.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE '* Author   :' sy-uname' -' l_firstname l_lastname INTO&lt;/P&gt;&lt;P&gt;  buffer SEPARATED BY space.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE '* Function :' l_function&lt;/P&gt;&lt;P&gt;              '  Department :' l_department&lt;/P&gt;&lt;P&gt;  INTO buffer SEPARATED BY space.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE sy-datum DD/MM/YYYY TO l_datum.&lt;/P&gt;&lt;P&gt;  CONCATENATE '* Date     : ' l_datum INTO buffer SEPARATED BY space.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = l_commentline2.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = '* Title    : '.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = '* Purpose  : '.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = '* Details  : '.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = l_commentline3.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = '* Change History'.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = l_commentline2.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = '* Correction on version : 1.00'.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = '* New version : 1.01'.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = '* Author      :'.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = '* Date        :'.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = '* Reason      :'.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = '* Change      :'.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  buffer = l_commentline1.&lt;/P&gt;&lt;P&gt;  APPEND buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 06:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-custom-pattern/m-p/4073301#M973937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T06:43:03Z</dc:date>
    </item>
  </channel>
</rss>

