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

Dynamic actions

Former Member
0 Likes
414

Hi,

Can Function module be used instead of Subroutines in Dynamic Actions?

Please suggest answers.

Thanks in advance,

Saipriya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
395

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.

2 REPLIES 2
Read only

Former Member
0 Likes
395

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

Read only

Former Member
0 Likes
396

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.