Application Development and Automation 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: 
Read only

authorization to cs02

Former Member
0 Likes
1,003

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

5 REPLIES 5
Read only

Former Member
0 Likes
844

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

Read only

Former Member
0 Likes
844

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

Read only

Former Member
0 Likes
844

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.

Read only

Former Member
0 Likes
844

hi all,

i need alternate way such as 'BAPI' or direct input for this transaction cs02 which will bypass the Authoriy check

Read only

0 Likes
844

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