09-03-2013 1:22 PM
Hi, My requirement is when user set check box on selection scrren the file will be created in application server. at the same time when user set check box file should be locked. how to lock the file when user set the check box?
09-03-2013 2:36 PM
Hi,
ENQUEUE_E_TXW_FILE
DEQUEUE_E_TXW_FILE
For Ex:
call function 'ENQUEUE_E_TXW_FILE'
exporting * MODE_TXW_LOCK2 = 'X'
voldir_set = <path>
tax_file = <filename>
* X_VOLDIR_SET = ' '
* X_TAX_FILE = ' '
* _SCOPE = '2'
* _WAIT = ' '
* _COLLECT = ' '
exceptions
foreign_lock = 1
system_failure = 2
others = 3.
Try to use this function module. It may helpful to you.
or else go through the following links,
http://wiki.sdn.sap.com/wiki/display/SI/Enqueue
http://docs.oracle.com/cd/E19787-01/819-2983/behhiccf/index.html
Regards,
John.