09-25-2008 5:34 PM
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?
09-25-2008 5:41 PM
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
09-25-2008 5:41 PM
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
09-25-2008 6:17 PM
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?
09-26-2008 2:36 AM
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
09-25-2008 5:42 PM
Please search the forum. This question has been asked and answered many times before.
Rob