‎2007 May 15 1:01 PM
Hi all,
I want to display the error message in the report as "You are not authorize to view PO # " and next to it i want to display the PO number also...how can i write
MESSAGE E007 P_OBJ_ID.???
giving the syntax error...
(here P_OBJ_ID is the PO number )
‎2007 May 15 1:19 PM
Hi,
Just give standard message E999, it have 4 &&&& value ther u can give ur message text & PO number. 1 & have text 2nd & have PO Number for 3rd ,4th & values u have to give SPACE SPACE . then it will display ur text as well as ur value.
If it is solve ur problem give me points.
‎2007 May 15 1:04 PM
‎2007 May 15 1:05 PM
Hi
Give like this.
MESSAGE E007 with P_OBJ_ID.
Regards
Haritha.
‎2007 May 15 1:06 PM
Hi Srikanth,
Try use this.
DATA: mid TYPE sy-msgid VALUE 'SABAPDOCU',
mtype TYPE sy-msgty VALUE 'I',
num TYPE sy-msgno VALUE '014'.
MESSAGE ID mid TYPE mtype NUMBER num.
Regds,
Younus
<b>Reward Helpful Answers!!!</b>
‎2007 May 15 1:06 PM
In message classs give your error message with & symbol.
Use MESSAGE E007 with (variable name of PO# value).
‎2007 May 15 1:07 PM
message no 007 need to have a place holder & to do that
what is the content in message number 007??
choose a message number in that message class with place holders like & &
and use
MESSAGE E007 with 'You are not authorize to view PO ' P_OBJ_ID.
‎2007 May 15 1:09 PM
You have not mentioned the message class, are you using a custom (Z) message class... As long as your message has a placeholder <b>'You are not authorized to view PO # &1'</b>, when it is maintained in the message class... you can use the following statement:
MESSAGE E007 with P_OBJ_ID.Regards,
Dushyant Shetty
<i>P.S. Also, since you do not mention the message class in the MESSAGE statement, I assume you have set it globally using the MESSAGE-ID addition to the REPORT statement.</i>
‎2007 May 15 1:09 PM
Hi Srikanth,
Refer this code :
if sy-subrc <> 0.
MESSAGE E007 WITH P_OBJ_ID.
endif.
E007 : 'You are not authorize to view PO # "
Regards,
Hemant
‎2007 May 15 1:14 PM
Thanks for u reply...
But MESSAGE E007 WITH P_OBJ_ID.
is not working..it is showing only...'You are not authorize to view PO # '
PO number is not shown...
Pls help
‎2007 May 15 1:19 PM
Hi,
Just give standard message E999, it have 4 &&&& value ther u can give ur message text & PO number. 1 & have text 2nd & have PO Number for 3rd ,4th & values u have to give SPACE SPACE . then it will display ur text as well as ur value.
If it is solve ur problem give me points.
‎2007 May 15 1:45 PM
what is the message class for E999???
How to write it...pls help.
‎2007 Jun 08 9:35 AM
u create a message as & & & in the zmessage classs..
In the program u mention as error messages indiviually...by using some concatenate statement....