Skip to Content

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






To report this post you need to login first.

15 Comments

You must be Logged on to comment or reply to a post.

    1. 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

      (0) 

Leave a Reply