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: 

at selecton screen on value request

Former Member
0 Kudos
93

hi all ,

in normal report i am using at selection screen on value request and i m doing the authority check and after that i have to display the error message ...but i m not able to do ...could u please tell me how to raise the message.

6 REPLIES 6

Former Member
0 Kudos
59

hi,

check the sy-subrc condition after calling the function module.

if sy-subrc<>0.

message emsg.

endif.

Former Member
0 Kudos
59

refer below

  • Message-You do not have authorization to run this report

MESSAGE e014.

where 014 is the text element having message as "You do not have authorization to run this report"

Reward points if helpful

Former Member
0 Kudos
59

after uathority check

if sy-subrc <> 0

message e333(s1) with 'you are not authorised'.

endif.

reward points if helpful

Former Member

Former Member
0 Kudos
59

Hi,

try like this short example:

AUTHORITY-CHECK OBJECT 'Z_REPORT'

ID 'PROGRAM' FIELD SY-REPID

ID 'ACTVT' FIELD '16'.

IF SY-SUBRC <> 0.

MESSAGE E010 WITH 'Sie haben keine Berechtigung!'.

ENDIF.

regards, Dieter

Former Member
0 Kudos
59

Hi kusum,

problem solved?

Regards, Dieter