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: 
Read only

Module and Perform usage

Former Member
0 Likes
1,261

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
Read only

Former Member
0 Likes
997

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
Read only

naimesh_patel
Active Contributor
0 Likes
997

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

Read only

0 Likes
997

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

Read only

Former Member
0 Likes
998

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

Read only

Former Member
0 Likes
997

@ Fun

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

Regards

Karthik D

Read only

Former Member
0 Likes
997

Hi Amit,

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

Thanks & regards,

Dileep .C