Application Development 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: 

locking master table while in 'Change' mode for screen program

Former Member
0 Kudos

Hi I have built a custom screen, I have change/display buttons on my screen. While in 'Change' mode in the screen, I need the tables used in the program to be locked from any changes made to them. How can I do this?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Search for lock objects of those tables

i.e. ENQUEUE_lockobject and DEQUEUE_lockobject for locking and unlocking respectively

and use them accordingly in your code

4 REPLIES 4

Former Member
0 Kudos

Search for lock objects of those tables

i.e. ENQUEUE_lockobject and DEQUEUE_lockobject for locking and unlocking respectively

and use them accordingly in your code

0 Kudos

Alright I've created the lock object but it doesnt seem to be working... I created the lock 'EZLOCK' and have called the function module in my user_command input like so:

CALL FUNCTION 'ENQUEUE_EZLOCK'

EXPORTING

MODE_ZDSTATS_COPY = 'E'

MANDT = SY-MANDT

ZYEAR = zdstats_copy-zyear

ZTEAM = zdstats_copy-zteam

  • X_ZDPLAYER_ID = ' '

  • X_ZYEAR = ' '

  • X_ZTEAM = ' '

  • _SCOPE = '2'

  • _WAIT = ' '

  • _COLLECT = ' '

EXCEPTIONS

FOREIGN_LOCK = 1

SYSTEM_FAILURE = 2

OTHERS = 3.

Nothing unfortunately is locking, am i doing something wrong?

0 Kudos

Please post more information in your first post (to show that you have searched) and your code problem as well, other wise such posts will typically be deleted without warning.

Cheers,

Julius

Former Member
0 Kudos

Please search the forum. This question has been asked and answered many times before.

Rob