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

Function Module Lock

Former Member
0 Likes
1,199

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
704

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.

3 REPLIES 3
Read only

Former Member
0 Likes
704

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

Read only

Former Member
0 Likes
705

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.

Read only

Former Member
0 Likes
704

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