2009 Jun 17 9:17 PM
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
2009 Jun 18 3:09 AM
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
2009 Jun 17 9:36 PM
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
2009 Jun 17 9:39 PM
in PAI and PBO as u have seen we use modules... and in general abap flow we use performs and forms.
2009 Jun 18 3:09 AM
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
2009 Jun 18 4:21 AM
@ Fun
The only performance difference it makes is the time you wasted in thinking the performance difference between Module and perform.
Regards
Karthik D
2009 Jun 19 1:47 AM
Hi Amit,
If you problem solved & clear, please do close the thread as well...!
Thanks & regards,
Dileep .C