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: 

Lock the file when user set check box?

Former Member
0 Kudos

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?

1 REPLY 1

former_member184958
Active Participant
0 Kudos

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.