‎2006 Nov 21 12:40 PM
Hello,
Is it possible to lock a function module similar to that of locking a table.
Please let me know.
Thanks in advance.
Regards,
Siva.
‎2006 Nov 21 12:45 PM
Hi sivaprakash,
1. No its not possible.
2. FM is global and anybody can use it.
We cannot lock anybody from using that FM.
3. However, if we edit that FM in se37,
the system won't allow other user/session, to edit the same FM, at the same time.
regards,
amit m.
‎2006 Nov 21 12:42 PM
u can set locks for function modules also. check the below links for better understanding..
help.sap.com/saphelp_nw04s/helpdata/en/cf/21eebf446011d189700000e8322d00/content.htm
help.sap.com/saphelp_nw04s/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm
Function Modules for Lock Requests
Activating a lock object in the ABAP Dictionary automatically creates function modules for setting (ENQUEUE_
DDENQ_LIKE-XPARFLAG
_WAIT
DDENQ_LIKE-WAITFLAG
_SCOPE
DDENQ_LIKE-SCOPE
_SYNCHRON
DDENQ_LIKE-SYNCHRON
Message was edited by:
Ramesh Babu Chirumamilla
‎2006 Nov 21 12:45 PM
Hi sivaprakash,
1. No its not possible.
2. FM is global and anybody can use it.
We cannot lock anybody from using that FM.
3. However, if we edit that FM in se37,
the system won't allow other user/session, to edit the same FM, at the same time.
regards,
amit m.
‎2006 Nov 21 12:55 PM
hi,
yes we can lock the function module
in attributes we have to specify the editlock option as checked
the main purpose of this option is for
Enables an individual user to lock the program. Also facilitates locking of the program source for PC download purposes.
The editor lock flag prevents other users from making changes to the program. This includes attributes, documentation and text elements, as well as the functions "Rename" and "Delete".
Only the last person to change the program can remove the flag.
award points if found useful
regards
srinivas