‎2008 Jan 29 4:00 AM
Hi,
Can Function module be used instead of Subroutines in Dynamic Actions?
Please suggest answers.
Thanks in advance,
Saipriya
‎2008 Jan 29 4:14 AM
Hi,
You can use function modules also like you use subroutines. The difference is that the function module is globally available.
So if u do some modules which can be reused in other programs alo then go for function modules.
Regards,
Renjith Michael.
‎2008 Jan 29 4:13 AM
Hi Saipriya
You cannot have Function Modules to be called instead of sub-routines in a dynamic action. These are the possible values of Steps you can have while creating dynamic actions,
P: Plausibility checks, which allow you to check certain conditions.
I: Calls an infotype for processing
W: Called after the I statement and used to assign values to screen fields while creating or copying another infotype record through the I statement
F: Calls a FORM routine (subroutines in ABAP) during your action. The routine may reside in or out the module pool MPNNNN00.
V: Lets you treat collectively a number of fields for which you want to define a common dynamic action
M: Sends SAP Office mail
Anyother values than mentioned above, the dynamic action won't be executed. Let me know if you need more information.
Regards
Ranganath
‎2008 Jan 29 4:14 AM
Hi,
You can use function modules also like you use subroutines. The difference is that the function module is globally available.
So if u do some modules which can be reused in other programs alo then go for function modules.
Regards,
Renjith Michael.