Generate Data Declarations Automatically for FM and Method Call
Whenever we call a Function Module or call a Method of a Class, the data decleration needs to be done for the parameter value passing. It is annoying for developer to copy paste the data declerations from Function Module header or method parameters to the calling program.
But not anymore, since ABAP release 731 and above, SAP have introduce the complete implementation enabling the data declerations to be generated automatically at the time of pattern calling.
There is quite a time-saving ABAP Editor setting that enables data declaration of actual parameters when calling a function module (FM) or class method.
After enabling this setting, call pattern for Function Modules would look like this:
and call pattern for Class Methods would look like this:
The settings can be found and enabled at following location in ABAP Editor -> Utilities -> Settings -> ABAP Editor -> Editor -> Pattern.