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.
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 above.
Pattern content will be inserted in the program.
Nice.....
Nice Document, so far I maintained format in a word and used copy paste every time. Now this was resolved. Thank you.
simple but helpful...
In New ABAP Editor, Code Templates can be used.
This method is faster because action is handled on presentation server.
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
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
Helpfull Document...!!!!
Hi Pranali,
Thank u....
it is most useful
Hi Sravan,
Thank you
Nice document..
Hi Zafar,
thank u...
Its very helpful..
Thanks for sharing.
Regards,
Gurunath
Hi gurunath,
Thank u....
Check this discussion "
Regard's
Smruti