‎2007 Dec 13 10:49 PM
HI all.
I would like to display a value after a message.
message i000(zm) with 'message', p_message.
it is not working. can somebody tell me how i can write this code. i would like the parameter value along with the message text.
Thanks.
‎2007 Dec 13 10:51 PM
Hi,
Have you defined this message class ZM in your report header?
Regards,
Satish
‎2007 Dec 13 10:53 PM
‎2007 Dec 13 10:57 PM
Remove Comma <b>,</b>
This is the syntax
MESSAGE I000(MESSAGE CLASS NAME) WITH TEXT-002 <VARIABLE>.
Regards,
Satish
‎2007 Dec 13 10:55 PM
HI,
follow the below examples....
concatenate "Sales order"
v_sales -
(consider 0000010010)
"Created successfuly"
into lv_string.
message i(000) with lv_string.
Note: message number 000 should contain "& & & &" in the message class.
Addition 1
... WITH f1 ... f4
Effect
Inserts the contents of a field fi in the message instead of in the placeholder &i. If unnumbered variables (&) are used in a message text, these are replaced consecutively by the fields f1 to f4.
To aid compilation, only numbered variables (&1 to &4) are to be used in future if several fields are involved.
If a "&" is supposed to appear in the message at runtime, you must enter &&.
In the long text of a message, the symbol &Vi& is replaced by the field contents of fi.
After WITH, you can specify 1 to 4 fields.
Note
You can output up to 50 characters per field. If the field contains more characters, these are ignored.
Example
MESSAGE E0004 WITH 'Hugo'.
Note
When executing the statement, the contents of the fields f1 to f4 are assigned to the system fields SY-MSGV1, SY-MSGV2, SY-MSGV3 and SY-MSGV4.
Regards,
Vara
Message was edited by:
varaprasad bhagavatula
‎2007 Dec 13 10:56 PM
In ZM message class, for message 000, type "&" at the end of the message.
When you write the message in the program, write it as
message i000(zm) with p_message .
Here p_message is the value you want to display after the message.
‎2007 Dec 14 1:25 AM
hi
Do u have place holders defined in the message i000(zm) .
regards,
Praveen
‎2007 Dec 14 3:40 AM
in your message class ZM
for the message id 000....
in the message text....
givel like below...for example...
Please give the value above &
Then call this message from your program like this...
In your report program header line...
REPORT <yourreport> MESSAGE-ID ZM.
Inside the program...
MESSAGE i000 with var1.
‎2007 Dec 14 4:42 AM
Hi,
try this one.
message e888(sabapdocu) with text-005.
in ur message class keep & & & at ur message number and give that class near sabapdocu then it will come.
plzz reward points if it is useful.
‎2007 Dec 14 4:45 AM
Hi,
Declare variable n concatanate both the value n then display
data : lv_message type string
concatanate message p_message into lv_message separated by space.
message i000(zm) with lv_message.
Regards,
Prashant