10-30-2008 7:59 AM
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...
10-30-2008 8:54 AM
Hi,
Any one help on this any User-exits or BADI's for MIR4..
Thanks,
sriii..
10-30-2008 8:54 AM
Hi,
Any one help on this any User-exits or BADI's for MIR4..
Thanks,
sriii..
10-30-2008 10:01 AM
10-31-2008 5:28 AM
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..
10-31-2008 5:39 AM
hi,
i think your basis people can help you in solving this security issue.
10-31-2008 7:02 AM
okey..Thanks Gowtham. i will discuss with Basis people..
..thanks,
srriii..
10-31-2008 6:50 PM
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