Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create statement templates in ABAP?

Former Member
0 Kudos
1,668

In ABAP editor, when I go to pattern-> Other pattern and specify zpattern, then the following statements should be inserted in my code

************************************************************************

  • Changed by .......: Your Name

  • Date..............: Current Date

  • Requested By......:

  • Reference Document: SR......

  • Description.......: .................................................

  • .................................................

************************************************************************

Basically, my question is how do I create zpattern and insert these statements?

1 ACCEPTED SOLUTION

bpawanchand
Active Contributor
0 Kudos
266

Hi

check out this link it has a example

for Dynamic Patterns

http://searchsap.techtarget.com/tip/0,289483,sid21_gci1086690,00.html

if you want to create a new patter n

SE38-> Name of the program-> change/Display->UTILITIES>

MORE UTILITIES-->EDIT PATTERN>CREATE PATTERN

And define your pattern style

Regards

Pavan

Edited by: Pavan Bhamidipati on Jul 16, 2008 8:25 AM

7 REPLIES 7

Former Member
0 Kudos
266

Hi,

1>create your template as structure in SE11.

2> Go to your code in SE38

3> goto Pattern--> check Other pattern radio button

4> put the name of your structure

5>Click continue or ENTER.

Regards,

Anirban

bpawanchand
Active Contributor
0 Kudos
267

Hi

check out this link it has a example

for Dynamic Patterns

http://searchsap.techtarget.com/tip/0,289483,sid21_gci1086690,00.html

if you want to create a new patter n

SE38-> Name of the program-> change/Display->UTILITIES>

MORE UTILITIES-->EDIT PATTERN>CREATE PATTERN

And define your pattern style

Regards

Pavan

Edited by: Pavan Bhamidipati on Jul 16, 2008 8:25 AM

Former Member
0 Kudos
266

hi,

Create new Pattern using SE38.

UtilitiesMore UtilitiesEdit Pattern---Create Pattern.

Create and Save your pattern here.

Goto SE38 again and click on Pattern. Select the name of Your pattern and cick OK.

Hope this will help.

Regards

Sumit Agarwal

Former Member
0 Kudos
266

Hi,

check out the below link ..which helps you in identifying customer/menu/screen/field exits

http://www.sap-img.com/abap/what-is-user-exits.htm

Regards,

Harish

Former Member
0 Kudos
266

Hi Amit,

Step 1. Create a pattern in ABAP Editor.

Menu: Utilities > More utilities > Edit Pattern > Create pattern

Step 2. Create dynamic pattern.

In the pattern editor, go to dynamic. Menu: Pattern > dynamic.

Change the word EXIT for MUSTER. This means you are going to use a function where you are going to program the logic of the pattern.

Step 3. Create the function <PATTERN>_EDITOR_EXIT

In this example (pattern is called ZFUNCTION), a pattern that creates automatically the data declaration of the import, export, changing and table parameters of a function.

Regards,

Sravanthi

Former Member
0 Kudos
266

From transaction SE38 follow the menu path utilities->more utilities->edit pattern and click on Create pattern submenu.

Next enter the pattern name.

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

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

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

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

Pattern content will be inserted in the program.

Regards,

Joy.

Former Member
0 Kudos
266

Hi Amit.

I would like to suggest you a couple of references, those are quite similar to your issue,

[SDN Weblogs - Reference for creating dynamic patterns|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5715] [original link is broken] [original link is broken] [original link is broken];

[SAP HELP - Standard Reference for Inserting Statement patterns|http://help.sap.com/saphelp_nw04/helpdata/en/d1/801aaf454211d189710000e8322d00/frameset.htm]

GoTo->SE38-->In program-->Pattern--


>OTHER

Hope that's usefull.

Good Luck & Regards.

Harsh Dave