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: 

Module and Perform usage

Former Member
0 Kudos
569

Dear Experts,

What is the difference b/w the usage of Module & Endmodule-- and Perform &Form.

Does it make any performance difference in using one or the other interchangeably

Plase advide.

-Amit

1 ACCEPTED SOLUTION

Former Member
0 Kudos
305

Hi Amit,

Modules are used in Dialog's or Module Pool Programs,,,,! It is used to navigate through the Screens for PAI & PBO events.

Where as Performs are the Blocks of Code used to reuse within the same program.. It consists of Formal & Actual parameters which you can declare as Global or Local...! Aslos dependng upon the requirement we can pass the data to Performs in thre ways,, call/pass by value , call/pass by value & return, call/pass by reference...!

Thanks & regards,

Dileep .C

5 REPLIES 5

naimesh_patel
Active Contributor
0 Kudos
305

You would not be able to call MODULE other than Dynpros (Screens) Flow logic.

The data declared in the MODULE would be considered as the GLOBAL data, so, better to use the Subroutines (FORM.. ENDFORM) because in the Subroutine, you can declare local data.

Regards,

Naimesh Patel

0 Kudos
305

in PAI and PBO as u have seen we use modules... and in general abap flow we use performs and forms.

Former Member
0 Kudos
306

Hi Amit,

Modules are used in Dialog's or Module Pool Programs,,,,! It is used to navigate through the Screens for PAI & PBO events.

Where as Performs are the Blocks of Code used to reuse within the same program.. It consists of Formal & Actual parameters which you can declare as Global or Local...! Aslos dependng upon the requirement we can pass the data to Performs in thre ways,, call/pass by value , call/pass by value & return, call/pass by reference...!

Thanks & regards,

Dileep .C

Former Member
0 Kudos
305

@ Fun

The only performance difference it makes is the time you wasted in thinking the performance difference between Module and perform.

Regards

Karthik D

Former Member
0 Kudos
305

Hi Amit,

If you problem solved & clear, please do close the thread as well...!

Thanks & regards,

Dileep .C