Skip to Content
Author's profile photo Former Member

Maintain our own pattern during code

Hi,

We generally have certain pattern to be followed in our company while coding.

Each time typing all these text at certain position is just headache…….SAP has provided creating pattern functionality.

Here you go:-

From transaction SE38 follow the menu path as shown in the screen shot and click on Create pattern submenu

Note: You can change, display or delete a pattern from the same menu path as shown here.

Mainta1.jpg

Next enter the pattern name.

Mainta2.jpg

Now in the next screen enter the pattern content that you want to define and press save button.

Mainta3 (1).jpg

Now go back to the program editor and press pattern button for inserting the newly created pattern in the program.

Mainta4.jpg

In the next popup screen choose the Other pattern radio button and press enter.

Mainta5.jpg

Now from the generated list double click on the pattern that we have created above.

Mainta6 (1).jpg

Pattern content will be inserted in the program.

Mainta7.jpg






Assigned Tags

      15 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Nice.....

      Author's profile photo VIJAYKRISHNA GUDALA
      VIJAYKRISHNA GUDALA

      Nice Document, so far I maintained format in a word and used copy paste every time. Now this was resolved. Thank you.

      Author's profile photo Former Member
      Former Member

      simple but helpful...

      Author's profile photo Former Member
      Former Member

      In New ABAP Editor, Code Templates can be used.

      This method is faster because action is handled on presentation server.

      Author's profile photo Mehmet Metin
      Mehmet Metin

      In addition, it is also possible to have a dynamic pattern. For instance, if you want the data to be pre-filled. http://wiki.sdn.sap.com/wiki/display/HOME/DYNAMIC+PATTERN+-+Custom+Create+Pattern+in+ABAP+Editor

      Author's profile photo Rüdiger Plantiko
      Rüdiger Plantiko

      Mehmet, I would like to point out that your link requires a dot at the end of the URL:

      http://wiki.sdn.sap.com/wiki/display/HOME/DYNAMIC+PATTERN+-+Custom+Create+Pattern+in+ABAP+Editor.

      The idea is as simple as useful: For a pattern named Z_MY_PATTERN, a function module Z_MY_PATTERN_EDITOR_EXIT (i.e. with suffix _EDITOR_EXIT) will be called which can be used to query user input and generate code on base of this input.

      Here another example (generate class implementation from class definition), where I exploited the technique which I came to know from your Wiki:

      http://wiki.sdn.sap.com/wiki/display/ABAP/Tool+to+generate+a+class+implementation+from+its+definition

      Kind regards,

      Rüdiger

      Author's profile photo Former Member
      Former Member

      Helpfull Document...!!!!

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi Pranali,

      Thank u....

      Author's profile photo Former Member
      Former Member

      it is most useful

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi Sravan,

      Thank you

      Author's profile photo zafar karnalkar
      zafar karnalkar

      Nice document.. 

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi Zafar,

      thank u...

      Author's profile photo Gurunath Kumar Dadamu
      Gurunath Kumar Dadamu

      Its very helpful..

      Thanks for sharing.

      Regards,

      Gurunath

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi gurunath,

      Thank u....

      Author's profile photo Former Member
      Former Member

      Check this discussion "Template for SE38 | SCN

      Regard's

      Smruti