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

create lock object with fun command

Former Member
0 Likes
331

Hallo,

Is it possible to create a lock object with the fun command? I tried to use:

FUN ( ENQUEUE _<lockobject> , <interface> ).


When I fill the importing parameters, execute the script and afterwards refresh the interace than the import parameters are empty. Is there a way to create a lock object with the fun command or at least with inline abap?


regards,

Wolfgang

1 REPLY 1
Read only

Former Member
0 Likes
298

Hi Wolfgang,

in general your way of including the FUN command was correct.

The loss of import parameter values must have been caused by some other reason, not related to the invoke of enqueue. Maybe try it again.

If, for any reason, using FUN is not possible, it's always an alternative to use ABAP. .... ENDABAP. with correct ABAP coding inbetween (e.g. CALL FUNCTION ...).

Nevertheless regarding enqueue you need to consider, that the lock you set by running eCATT test scripts in this way, will last (only) as long as the session in which the function was called is active. Means, it lasts as long as you do not close the SECATT transaction (/n or similar) and not use commands like RESCON in your test script. Check your locks with transaction sm12.

Be aware, that interfering with an applications lock handling and strategy might also harm running transactions or the data processed by this transactions. Usually there is no need to call the enqueue modules from a test.

Best Regards

Jens