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

How to activate Function module programatically ?

ankur_sharma16
Active Participant
0 Likes
1,445

Hello All,

I want to Activate the FM programatically without showing any screen or sub-screen that is like Activation is done in background.

I tried to debug the SAP's functionality but not getting much. All i know is class CL_FUNCTION_BUILDER is used. But throught it am not being able to achieve my goal.

Please suggest.

Regards,

Ankur Sharma.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,310

Use FM FUNC_OBJECT_ACTIVATE or RS_FUNCTION_ACTIVATE.

Thanks,

Shambu

6 REPLIES 6
Read only

Former Member
0 Likes
1,310

Dear Ankur,

You can write a BDC for SE37, just pass the name of FM & use mode "N" in you piece of code.

It may work for your case as you don't want to display any pop-up or any screen while going for activation.

With Regards,

Akshay

Read only

0 Likes
1,310

Hello Former Member,

Thanks for suggestion. But anyother way ? like any FM or any method to get this ?

Read only

0 Likes
1,310

Dear Ankur,

May I know what exactly your requirement is..?

With Regards,

Akshay

Read only

0 Likes
1,310

Hi Former Member

My requirement is to activate FM without using BDC. During activation no screen should come. So only way is to use some Function module or method which does activation. I tried few but no success.

Regards,

Ankur Sharma

Read only

Former Member
0 Likes
1,311

Use FM FUNC_OBJECT_ACTIVATE or RS_FUNCTION_ACTIVATE.

Thanks,

Shambu

Read only

0 Likes
1,310

Thanks Shambu VS and Former Member