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

Urgent

Former Member
0 Likes
836

Hi,

Iam Developed One Report : ZMMPOR.

For that report, I create a T-code : ZMPO

The transaction will be inserted into the autorization role ZMM_PO_TEAM.

I Developed Code

At Selection-Screen.

authority-check object 'ZMM_PO_TEAM'

id 'TCD'

field 'ZMPO'.

if sy-subrc ne 0.

  • User does not have authority for transaction ZMPO!!!

endif.

Any problem above mention code, if any problem plz send the modification

I look forward to your reply

Award Points if helpful answer

Thanks & Regards

SEK

Hi,

Iam Developed One Report : ZMMPOR.

For that report, I create a T-code : ZMPO

The transaction will be inserted into the autorization role ZMM_PO_TEAM.

I Developed Code

At Selection-Screen.

authority-check object 'ZMM_PO_TEAM'

id 'TCD'

field 'ZMPO'.

if sy-subrc ne 0.

  • User does not have authority for transaction ZMPO!!!

endif.

Any problem above mention code, if any problem plz send the modification

I look forward to your reply

Award Points if helpful answer

Thanks & Regards

SEK

4 REPLIES 4
Read only

Manohar2u
Active Contributor
0 Likes
736

i think you should try this way

replace

authority-check object 'ZMM_PO_TEAM'

with

authority-check object 'S_TCODE'

Read only

Former Member
0 Likes
736

Hi,

I want some clarity

Plz reply me,

I look forward to your reply

Thanks & Regards

SEK

Read only

Former Member
0 Likes
736

try this

AUTHORITY-CHECK OBJECT 'ZMM_PO_TEAM'
                  ID 'ACTVT' FIELD '03'.          

field --03 --> display  access
         02 ---> change access
         01 ---> create access

Read only

Former Member
0 Likes
736

Hi ,

I dont think there is an issue with the code , but i feel the event where is is put is not correct , beacuse AT Selection-screen is executed after the selection screen is already displayed , so what you can do it put this in the event

LOAD-OF-PROGRAM or INITIALIZATION.

As these two events are triggered before the selection screen is displayed

Regards

Arun