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

Inactive function module

MariaJooRocha
Contributor
0 Likes
3,923

Hi SDN,

How can I inactivate function module. In the past we use to do, on the SE37 main screen + right mouse click: inactivate.

This indicator ( Active) is visible on table ENLFDIR.

Thanks.

Regards,

Maria João Rocha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,344

Hi,

what is the reason behind putting a function module on inactive?

What are you trying to prevent?

Kind regards, Rob Dielemans

17 REPLIES 17
Read only

aakash_neelaperumal2
Active Participant
0 Likes
3,344

I believe there is no option to deactivate the function module. But you can make it obsolete

Read only

0 Likes
3,344

Hi,

We have several functions inactive. it's our procedure where this functions should no longer used.

Thanks.

Regards,

Maria João Rocha

Read only

Former Member
0 Likes
3,345

Hi,

what is the reason behind putting a function module on inactive?

What are you trying to prevent?

Kind regards, Rob Dielemans

Read only

0 Likes
3,344

Hi,

It is our software management policy.

thanks,

Regards,

Maria João Rocha

Read only

0 Likes
3,344

Maria,

I read it as, your coding standards would like to restrict the Developers from using Obsolete function modules.

1.Read the code looking for call FM

2.Get the FM name and check if the released date is not 00/00/0000 by using TFDIR table

3.Based on sy-subrc check display an error message accordingly.

Only doubt I have in this approach is if using TFDIR tables release date will help us differentating the obsolete,internally released and released on FMs ? May be there should be an better approach on how to identify Obsolete FM's programatically.

K.Kiran.

Read only

0 Likes
3,344

Hi,

Obsolete is one thing, inactive is other.

We can execute obsolete FM but not the inactive ones.

We use both.

When inactive FM is executed, the message (FL 152) Function module & is not active, is raised.

Thanks.

Regards,

Maria João Rocha

Read only

0 Likes
3,344

If you save the FM without doing any changes, it goes to "inactive". Might ask for a transport request though.

How do you prevent people from activating again if they feel so?

Thomas

Read only

0 Likes
3,344

Thomas, I like you approach

Read only

kheth
Active Participant
0 Likes
3,344

Disabling a function module by setting it inactive seems to be the wrong way. I can think of several problems that will be caused by this appoach.

A transport request can not be released as long as one of the objects is inactive. So you would have to keep a special transport request for all these inactive function modules. That will be a source of errors.

And additionaly, all these inactive objects keep in the list of the developers' inactive objects. Who can keep track of such a list?

By the way: I could call an inactive function module within a program without any error messages. The last active version will be executed.

Read only

0 Likes
3,344

Hi,

The FM remains active with (Ctrl+F3), but, how can I say.... in other level is inactive. In the TC SE80 the color of this itens is blue.

See , for exemple, standard function accumulation_init_hr.

Thanks,

Regards,

Maria João Rocha

Read only

0 Likes
3,344

I cannot find an FM with this name (ECC 6.0 Ehp 6). What system type and version are you working in?

Better paste a screenshot of what you are seeing, otherwise it will remain a guessing game.


Thomas

Read only

0 Likes
3,344

Hi,

Pick one function on table ENLFIR where column active = space.

Thanks,

Maria João Rocha

Read only

0 Likes
3,344

Sorry

forgot the screen shot

Regards,

Maria João Rocha

Read only

kheth
Active Participant
0 Likes
3,344

Have you seen the long text of message FL 152?

Procedure


The function module must be activated before it can be called.

If this does not give you the required success, it could be that an old
function module exists that is based on the inactive procedure for function
modules prior to Release 4.5. This procedure was made obsolete with Release 4.6.
For activating this module, use the report RS_FUNCTION_ACTIVATE_OLD.

Seems as if your procedure is unfortunately no longer working.

Read only

0 Likes
3,344

Hi,

It is a very weird software  management policy.

You can't prevent the users from copying the inactive function module to a custom function module and just use that one, then they fully comply to the policy but in detail it is exactly the same.

If you find out that in your company a lot of people are using obsolete function modules, then you should make it part of the acceptance criteria before a custom code is accepted to Quality (system/unit test) or to Production (acceptance test).

Kind regards, Rob Dielemans

Read only

0 Likes
3,344

Hi,

I don't see the realease information on the long text!

Thanks!

Regards,

Maria João Rocha

Read only

matt
Active Contributor
0 Likes
3,344

What is the version of your ABAP stack? I see your text in 46C, but Karsten's in 702.