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: 

Question about SCC1 - Client Copy by Transport Request in ABAP

Former Member
0 Kudos

I have a problem about SCC1, I created program for copying Request No. to another client by using SCC1.

But SCC1 can use only one user and another can not use it at the same time. So I want to know how can I check status or something that SCC1 is used by other user.

Thanks in advance for your kindly help.

5 REPLIES 5

Former Member
0 Kudos

Use SM04 (User List) to know, who is using SCC1.

Former Member
0 Kudos

Thank you for your answer but I want to know how can I check or know the status when SCC1 locked by another user in ABAP. Thanks in advance.

Message was edited by: Chai Chai

0 Kudos

Hi Chai Chai,

Try the following code (I ripped it out of the standard code that performs the check):


  DATA : ENQTABLE_ID   LIKE RSTABLE-TABNAME,
         ENQKEY        LIKE RSTABLE-VARKEY.

  ENQTABLE_ID = 'RSCLICOPY'.
  ENQKEY(3)   = SY-MANDT.

  CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
      TABNAME        = ENQTABLE_ID
      VARKEY         = ENQKEY
    EXCEPTIONS
      FOREIGN_LOCK   = 4
      SYSTEM_FAILURE = 8.
  IF SY-SUBRC <> 0.
*   Then SCC1 is locked in this client!!!!!
  ENDIF.

Hope that helps.

Cheers,

Brad

Message was edited by: Brad Williams (added the variable declarations)

Former Member
0 Kudos

Hi Mr.Brad Williams ,

Thank you very much for your help, I add your code to my program, it's work!! .

Regards,

Chai

0 Kudos

Hi Chai Chai,

No problem.

Its nice when someone has helped you, to acknowledge that help by awarding some points. The following blog talks about the points system at SDN /people/mark.finnern/blog/2004/08/10/spread-the-love

If you are so inclined then please set this post as a question, and then set it as answered against my response.

Thanks,

Brad