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: 

reg. Authority-check stmt....have ur point.s

Former Member
0 Kudos

Hi all,

Suppose I have a Z..table haing name ZSTUDENT with fields ROLLNO, NAME, ADDRESS. I want to use authority-check stmt in my report which is using zstudent table..

Pleas clarify me with a complete example....

<b>Have ur ponts.</b>

Regards,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check the below PDF Document and it has complete document

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a...

Thanks

Seshu

3 REPLIES 3

Former Member
0 Kudos

Hello Pradeep,

Do you want to have an authority-check on the table itself or the fields of the table?

By the way to create authority object refer to tcode use SU21.

Best regards,

Former Member
0 Kudos

Check the below PDF Document and it has complete document

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a...

Thanks

Seshu

Former Member
0 Kudos

Hi Pradeep..

I feel that you want to check that the user executing the report has access to read or write data to this table or not..

Do one thing.. Ask the basis guys to create an authority object for your table..

Now in your code, before the SELECT statement on this table, check the authority object.

CHECK authority-object 'xxxx'

ID 'yyyy' FIELD 'zzzz'. etc

ID 'ACTVT' FIELD '03'.

And before the INSERT, UPDATE, MODIFY statements, add the same check but with ACTVT value '02' or '01'.

Thanks and Best Regards,

Vikas Bittera.