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

Check Authorisation object in CS01

Former Member
0 Likes
1,325


Hi All,

I want to check Customize authorization object into transaction code CS01 ,i have used Exit PCSD0007

and my check code is

if ( headerdata-stlal <> '01') and sy-tcode = 'CS01'.

Check Authorization object here.

Endif.

but when the check is not successful the transaction jumps to this header instead of staying on the start-screen.

is there any other user exit which i can use for this Authorization check.

Thanks,

Mahipal


Hi All,

I want to check Customize authorization object into transaction code CS01 ,i have used Exit PCSD0007

and my check code is

if ( headerdata-stlal <> '01') and sy-tcode = 'CS01'.

Check Authorization object here.

Endif.

but when the check is not successful the transaction jumps to this header instead of staying on the start-screen.

is there any other user exit which i can use for this Authorization check.

Thanks,

Mahipal

5 REPLIES 5
Read only

Former Member
0 Likes
1,155

Please try this,

   IF ( headerdata-stlan <> '01') AND sy-tcode = 'CS01'.

* *****Authorization object here****
  IF sy-subrc <> 0.
    MESSAGE E001(zmm).    "create message like "You do not have authorization"
  ENDIF.

ENDIF.

Read only

0 Likes
1,155

hi ,

Thanks, but problem is not with authorization check when check is unsuccessful at time of headerdata-atlal .

means if headerdata-stlal = 01 then it goes to header screen instead of staying Start Screen.

Read only

Former Member
0 Likes
1,155

Dear Mahipalsinh Parmar ,

U can use the keyword

AUTHORITY-CHECK OBJECT <authorization object>

ID <authority field 1> FIELD <field value 1>.

ID <authority field 2> FIELD <field value 2>.

Thanks & Regrads

Kranthi

Read only

0 Likes
1,155

hi,

i know how to check authority object ,but my question is, is there any exit which we can use at the time of CS01 initial screen.?

Read only

Former Member
0 Likes
1,155

User Exit/BADI for CS01 Input Checking ?