Application Development and Automation 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: 
Read only

Custom Pattern Statements

Former Member
0 Likes
544

Hi everyone

Does anybody know if it is possible (and if so how) to create statements for the 'Other' option in the dialog displayed by the 'Pattern' button in the Object Navigator? I hope the question makes sense!

Kind regards

Andy

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
519

Yes, it does make sense! You can create patterns by clicking the following menu path in SE80

Utitlies

-


> More Utilities

-


> Edit Patturn

Once you create it there, you should be able to enter in the "Other Pattern" field.

Regards,

RIch Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
520

Yes, it does make sense! You can create patterns by clicking the following menu path in SE80

Utitlies

-


> More Utilities

-


> Edit Patturn

Once you create it there, you should be able to enter in the "Other Pattern" field.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
519

Hi

click the pattern button in the

ABAP editor (menu path edit --> insert statement...). In the popup, click

the "other pattern" radio button and then the drop-down for a list of

patterns. The first 20 or so in the list are references to the other

patterns in the popup, but the last few are the custom ones:

<u><b>DOCU_BLOCK</b></u> - this copies a blank beginning documentation block into your

program.

<u><b>FIND MESSAGE</b></u> - this calls the find message routine which allows you to find

a message easily and copy it into your program.

<u><b>SELSCREEN_BLOCK</b></u> - This copies a block of selection screen code into your

program.

I find these patterns useful when I write code.

If you want to create your own patterns, here's how:

menu utilities --> more utilities --> edit pattern --> create pattern.

Type in the code you want to use as a pattern.

Save it and back out. That's it! One word of caution - don't create

patterns with the same name as one in the list - they'll both be there and

you won't know which is which.

Thanks

Sudheer

Read only

Former Member
0 Likes
519

Thanks guys - that should help to alleviate some of the tedium!

Andy