2006 Jul 24 7:30 AM
Hi,
I am calling transaction cs02 in a report. After developing i observed that few users don't have authorization to this transaction cs02. Now i should make this report to work for all without any authorization problems. I need to do it programatically without creating or adding authorization objects.
jaffer
Hi,
I am calling transaction cs02 in a report. After developing i observed that few users don't have authorization to this transaction cs02. Now i should make this report to work for all without any authorization problems. I need to do it programatically without creating or adding authorization objects.
jaffer
2006 Jul 24 7:31 AM
Hi Vali ,
try like this.
call function 'AUTHORITY_CHECK_TCODE'
exporting
tcode = 'YSCC'
exceptions
ok = 0
not_ok = 2.
if sy-subrc eq 2.
message e077(s#) with 'YSCC'. " No authorization to transaction
else.
call transaction 'YSCC'.
endif.
PS : U cannt skip SAP Authorization Checks, Users are able to see the Screen of CS02,but they cannt Do the transactions in that Screen.
<b>BAPI also do the same thing ?</b>
Regards
Prabhu
Message was edited by: Prabhu Peram
2006 Jul 24 7:33 AM
You will need to have the required authorization object for CS02 assigned to the users. It is not possible to have users execute a transaction when they dont have access to the same.
To find the required authorization object, have the user run cs02, and once the error message appears, type /nSU53 in the command box. This should give you a list of the missing authorizations.
Hope this helps.
Sudha
2006 Jul 24 8:00 AM
Hi,
U have to create authorization object using TXN-SU21 and then assign this to the profile in TXN-SU03 with authorizations... then assign the profile in TXN-SU01 in change mode section profiles u have to do this its not possible without creating all these!!!
Hope this helps u.
Regards,
Seema.
2006 Jul 24 9:57 AM
hi all,
i need alternate way such as 'BAPI' or direct input for this transaction cs02 which will bypass the Authoriy check
2006 Jul 24 10:28 AM
You will have to play around with these FMs:
CSAP_MAT_BOM_CREATE
CSAP_MAT_BOM_MAINTAIN
BAPI_BOM_UPLOAD_SAVE
Hope this helps.
Sudha
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |