Skip to Content
avatar image
Former Member

SM50 Authorization

Hi gurus,

We are using SAP NetWeaver 2004s. There is a new user that I need to create, I have created a role for it as well. However, in this role, I want the user to execute the transaction SM50, but the user shouldn't be able to cancel any of the work processes. How can I do it? Any help would be greatly appreciated.

Regards,

Sree

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Feb 05, 2009 at 12:49 PM

    Does the trace not work in your system?

    Anyway, forget about the tcode....

    What you are looking for is:

    FORM AUTH_CHECK USING UCOMM AUTH_ERR.
      AUTH_ERR = 0.
    
      IF ( UCOMM <> 'END' ) AND
         ( UCOMM <> 'BACK' ) AND
         ( UCOMM <> 'ABBR' ) AND
         ( UCOMM <> 'WPDI' ) AND
         ( UCOMM <> 'CPU' ) AND
         ( UCOMM <> 'USER' ) AND
         ( UCOMM <> 'REFR' ).
        AUTHORITY-CHECK OBJECT 'S_ADMI_FCD'
          ID 'S_ADMI_FCD' FIELD 'PADM'.
        IF SY-SUBRC <> 0.
          MESSAGE S433.
          AUTH_ERR = 1.
        ENDIF.
      ENDIF.
    ENDFORM.                    "AUTH_CHECK

    Cheers,

    Julius

    Add comment
    10|10000 characters needed characters exceeded