10-16-2006 8:13 PM
Hi there,
Is there any generic enqueue function module which will lock the program? I do not want to create a custom Enqueue FM.
Shylesh
10-16-2006 8:16 PM
Yes, there is.....
call function 'ENQUEUE_E_TRDIR'
EXPORTING
* MODE_TRDIR = 'X'
NAME = <report_name>
* X_NAME = ' '
* _SCOPE = '2'
* _WAIT = ' '
* _COLLECT = ' '
* EXCEPTIONS
* FOREIGN_LOCK = 1
* SYSTEM_FAILURE = 2
* OTHERS = 3
.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Regards,
Rich Heilman
10-16-2006 8:16 PM
Yes, there is.....
call function 'ENQUEUE_E_TRDIR'
EXPORTING
* MODE_TRDIR = 'X'
NAME = <report_name>
* X_NAME = ' '
* _SCOPE = '2'
* _WAIT = ' '
* _COLLECT = ' '
* EXCEPTIONS
* FOREIGN_LOCK = 1
* SYSTEM_FAILURE = 2
* OTHERS = 3
.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Regards,
Rich Heilman
10-16-2006 8:28 PM
Hi Rich,
Do we have same kind of Function Module in BW systems also?
10-16-2006 8:38 PM