‎2007 Jul 10 8:22 AM
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.
‎2007 Jul 10 8:23 AM
hi,
check the sy-subrc condition after calling the function module.
if sy-subrc<>0.
message emsg.
endif.
‎2007 Jul 10 8:24 AM
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
‎2007 Jul 10 8:24 AM
after uathority check
if sy-subrc <> 0
message e333(s1) with 'you are not authorised'.
endif.
reward points if helpful
‎2007 Jul 10 8:26 AM
Hi,
Please check this link , it may help........
http://help.sap.com/saphelp_nw2004s/helpdata/en/79/34a246d9b511d1950e0000e8353423/content.htm
http://www.sap-img.com/abap/value-request-for-parameter.htm
***do rewards if usefull
vijay
‎2007 Jul 10 8:26 AM
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
‎2007 Jul 10 11:54 AM