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

Run a z program when activate a certain FM.

Former Member
0 Likes
1,668

Hi experts,

I have requirment that when developer activating a certain FM in SE37, meanwhile need execute a z program in background job(In this z program, importing the FM name and TR name).

Then i need do a implicit enhancement(Or other enhancement) under 'ACTIVATE' button.

This is make sence? where to do this implicit enhancement?

And how to capture the TR name of that developer using change the FM.

Thanks for sharing your opinion, which point i need pay more attention.

Regards,
Archer

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,621

Hi Archer,

I think you could look to making an enhancement at the end of function FUNC_OBJECT_ACTIVATE.

Jim

Hi experts,

I have requirment that when developer activating a certain FM in SE37, meanwhile need execute a z program in background job(In this z program, importing the FM name and TR name).

Then i need do a implicit enhancement(Or other enhancement) under 'ACTIVATE' button.

This is make sence? where to do this implicit enhancement?

And how to capture the TR name of that developer using change the FM.

Thanks for sharing your opinion, which point i need pay more attention.

Regards,
Archer

9 REPLIES 9
Read only

Former Member
0 Likes
1,622

Hi Archer,

I think you could look to making an enhancement at the end of function FUNC_OBJECT_ACTIVATE.

Jim

Read only

0 Likes
1,621

Quickly tested it. looks cool. At the end of function, i can do my implicit enhancement.

And it will still works after system upgrade, right?

Read only

0 Likes
1,621

Hi Archer, sorry for slow response - I've been away....   Yes, implicit enhancement will still be fine after upgrade.

Jim

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,621

Hello

You can use BADI CTS_CURRENT_PROJECT and implement your checks.

thanks

Nabheet

Read only

0 Likes
1,621

I have not try this BADI, Maybe tomorrow, i`ll try it.

thank you, Nabheet. Long time no see you.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,621

Usually I don't check those events (a developper can activate multiple times a single object, or wait a long time during development) I prefer to detect transport events with BAdI CTS_REQUEST_CHECK in methods CHECK_BEFORE_ADD_OBJECTS and CHECK_BEFORE_RELEASE and BAdI CTS_EXPORT_FEEDBACK method FEEDBACK_AFTER_EXPORT, so catching the whole duration of the development.

What's your purpose in tracking activation of some objects?

Regards,

Raymond

Read only

0 Likes
1,621

Hi Raymond,

What i wanted is, when developer activate FM, in z program will generate a flat structure according paramters in 'IMPORT' of FM and including the generated structure to the same transport request.

If developer activate FM again, then update the structure.


The z program i mostly done.


Regards,

Archer

Read only

0 Likes
1,621

So, in my case, BADI CTS_REQUEST_CHECK in methods CHECK_BEFORE_ADD_OBJECTS and CHECK_BEFORE_RELEASE. This two methods seems not works.


Regards,

Archer

Read only

0 Likes
1,621

So what's the purpose of this? How does it help?