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

at selecton screen on value request

Former Member
0 Likes
677

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
Read only

Former Member
0 Likes
643

hi,

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

if sy-subrc<>0.

message emsg.

endif.

Read only

Former Member
0 Likes
643

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

Read only

Former Member
0 Likes
643

after uathority check

if sy-subrc <> 0

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

endif.

reward points if helpful

Read only

Former Member
Read only

Former Member
0 Likes
643

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

Read only

Former Member
0 Likes
643

Hi kusum,

problem solved?

Regards, Dieter