‎2015 Mar 02 10:23 AM
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
‎2015 Mar 02 10:30 AM
Hi,
what is the reason behind putting a function module on inactive?
What are you trying to prevent?
Kind regards, Rob Dielemans
‎2015 Mar 02 10:26 AM
I believe there is no option to deactivate the function module. But you can make it obsolete
‎2015 Mar 02 10:34 AM
Hi,
We have several functions inactive. it's our procedure where this functions should no longer used.
Thanks.
Regards,
Maria João Rocha
‎2015 Mar 02 10:30 AM
Hi,
what is the reason behind putting a function module on inactive?
What are you trying to prevent?
Kind regards, Rob Dielemans
‎2015 Mar 02 10:36 AM
Hi,
It is our software management policy.
thanks,
Regards,
Maria João Rocha
‎2015 Mar 02 10:57 AM
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.
‎2015 Mar 02 11:09 AM
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
‎2015 Mar 02 11:21 AM
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
‎2015 Mar 02 11:22 AM
‎2015 Mar 02 11:40 AM
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.
‎2015 Mar 02 12:03 PM
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
‎2015 Mar 02 12:13 PM
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
‎2015 Mar 02 12:17 PM
Hi,
Pick one function on table ENLFIR where column active = space.
Thanks,
Maria João Rocha
‎2015 Mar 02 12:18 PM
‎2015 Mar 02 12:31 PM
Have you seen the long text of message FL 152?
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.
‎2015 Mar 02 12:32 PM
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
‎2015 Mar 02 12:37 PM
Hi,
I don't see the realease information on the long text!
Thanks!
Regards,
Maria João Rocha
‎2015 Mar 02 12:39 PM
What is the version of your ABAP stack? I see your text in 46C, but Karsten's in 702.