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: 

Authorizations for transactions MIR6/MIR4

Former Member
0 Kudos

Hi All,

Need help to setup a security rights for transactions MIR6/MIR4.

Here is the situation:

We have setup an user profiles which allow the users to access

transaction mir6 (provide a list of Invoide Documents(BELNR)which will

lead into transaction MIR4, but we only want this group of users have

the ability to Held the document NO POSTING RIGHTS. I have set user with role:

MM_RELEASE_INVOICE users can access

Please advice on how to go around with this security problem.

Thanks in advance.

Srii...

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Any one help on this any User-exits or BADI's for MIR4..

Thanks,

sriii..

6 REPLIES 6

Former Member
0 Kudos

Hi,

Any one help on this any User-exits or BADI's for MIR4..

Thanks,

sriii..

0 Kudos

Any suggestions plz.

Thanks,

sriii.

0 Kudos

Can any body help on this..

Need help to setup a security rights for transactions MIR6/MIR4.

Here is the situation:

We have setup an user profiles which allow the users to access

transaction mir6 (provide a list of Invoide Documents(BELNR)which will

lead into transaction MIR4, but we only want this group of users have

the ability to Held the document NO POSTING RIGHTS. I have set user with role:

MM_RELEASE_INVOICE users can access

Please advice on how to go around with this security problem.

Thanks in advance.

Sriii..

0 Kudos

hi,

i think your basis people can help you in solving this security issue.

0 Kudos

okey..Thanks Gowtham. i will discuss with Basis people..

..thanks,

srriii..

0 Kudos

Hi,

one possible solution (though not tested personally) is via

badi INVOICE_UPDATE and method CHANGE_AT_SAVE.

Within this method you can do something like:

 
    CHECK sy-tcode = 'MIR4' OR sy-tcode = 'MIR6'. 

*----------------------------------------------------------------------* 
* Get OK-CODE of the main window 
*----------------------------------------------------------------------* 
    CONSTANTS: c_okcode(17) TYPE c VALUE '(SAPLMR1M)OK-CODE'. 
    FIELD-SYMBOLS: <fs_okcode> TYPE ANY. 
    ASSIGN (c_okcode) TO <fs_okcode>. 
    DATA: l_okcode LIKE sy-ucomm. 
    CLEAR l_okcode. 
    l_okcode = <fs_okcode>. 

* Read user authorizations with FM 
* SUSR_USER_AUTH_FOR_OBJ_GET 

IF USER NOT ALLOWED. 

*----------------------------------------------------------------------* 
* Do not allow posting 
*----------------------------------------------------------------------* 
      CASE sy-ucomm. 
        WHEN 'BU'. 
          CLEAR <fs_okcode>. 
          MESSAGE e061(zxxx) RAISING error_with_message. 
      ENDCASE. 

ENDIF. 

Best regards.

Edited by: Pablo Casamayor on Oct 31, 2008 7:51 PM