Generate Data Declarations Automatically for FM and Method Call

1
2700

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:

Automatic Decleration01
Automatic Decleration01

and call pattern for Class Methods would look like this:

Automatic Decleration2
Automatic Decleration2

The settings can be found and enabled at following location in ABAP Editor -> Utilities -> Settings -> ABAP Editor -> Editor -> Pattern.

Automatic Decleration3
Automatic Decleration3

1 COMMENT

  1. I read a lot of interesting posts here. Probably you spend a lot of time writing, i know
    how to save you a lot of time, there is an online tool
    that creates unique, google friendly articles in minutes, just search in google – laranitas
    free content source

LEAVE A REPLY

Please enter your comment!
Please enter your name here