There are times when we want to reuse a snippet of code or some text in our ABAP programs. A very common case would be to add a program header to every program module. Instead of copying and pasting the program header from an older program and then editing it, we can use dynamic patterns to automatically generate the program header pre-filled with pertinent information. We can write more complex patterns involving multiple input screens as well.
Example usage:
- Generating program header
- Generating full program templates following company naming conventions and standards
- Generate get and set methods based on DDIC structures for a local class
We will generate a simple one line pattern with the user ID dynamically populated.
Step 1: Create a Pattern
Go to SE38 and create a program. |