Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8581

Re: Any function module or method to get the users list who are all currently running the same tcode

$
0
0

Try this. Used standard lock functionality.

 

FORM CHECK_MULTIPLE_RUN.

 

  DATA: LV_PROGRAM LIKE INDX-SRTFD.

 

  LV_PROGRAM = SY-REPID.

 

  CALL FUNCTION 'ENQUEUE_ESINDX'

    EXPORTING

      SRTFD          = LV_PROGRAM

      SRTF2          = 0

    EXCEPTIONS

      FOREIGN_LOCK   = 1                                    " _WAIT = 2

      SYSTEM_FAILURE = 2.

 

  IF SY-SUBRC NE 0.

    MESSAGE  E012(ZBHR) WITH SY-MSGV1.

  ENDIF.

 

ENDFORM.                  


Viewing all articles
Browse latest Browse all 8581

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>