2008 Oct 15 2:02 AM
I have a message class Z1049493.
How will i include it in my program?
Can I have a sample code for calling the error message?
2008 Oct 15 2:15 AM
Hi,
Here is an example:
Report ZTEST message-id Z1049493. " To include in program.
To raise messages:
Message E000 with text SOME_TEXT " For error
Message I000 with text SOME_TEXT " For Info
Message A000 with text SOME_TEXT " For Abbend
Alternative way is to raise like this,
Message E000(Z1049493).
Regards,
Pramod
Hi,
Your message class is 'Z1049498'. But you gave as 'Z10493498'.
Its mismatched.
Check it out!
Regards,
R.Nagarajan.
-
We can -
2008 Oct 15 2:15 AM
Hi,
Here is an example:
Report ZTEST message-id Z1049493. " To include in program.
To raise messages:
Message E000 with text SOME_TEXT " For error
Message I000 with text SOME_TEXT " For Info
Message A000 with text SOME_TEXT " For Abbend
Alternative way is to raise like this,
Message E000(Z1049493).
Regards,
Pramod
2008 Oct 15 2:22 AM
Hi
Just refer the program 'DEMO_MESSAGES_SIMPLE'.
Here, 'sabapdocu' is the message class used.
For better understanding refer 'DEMO_MESSAGES'.
Regards,
R.Nagarajan.
-
We can -
2008 Oct 15 2:23 AM
Hi,
Declare the message class in your Report statement as message-id (message class).
Then you can use it..
MESSAGE E053(message_class).
message types are - A , E, I , S, W....
You can also use it like - Message 'TEXT' type 'E' . ( or any type)...
And also '&' as place holder can be used...
Regads,
Madan...
2008 Oct 15 2:44 AM
2008 Oct 15 2:52 AM
Follow up question.
Instead of the message text, the message box displays the message id. what might cause this problem?
2008 Oct 15 2:56 AM
Hi,
If there no such MESSAGE CLASS or MESSAGE NUMBER,
then it will so like that.
Check it out.
Regards,
R.Nagarajan.
-
We can -
2008 Oct 15 3:08 AM
Hi,
I created message class Z1049498.
I included it in my program like this,
REPORT zisd_archiveods_npsg message-id Z10493498.
I tried to display the message like this,
message i001.
Instead of displaying this,
"No delivery exist for the customer"
my program displays,
I:Z10493498:001.
What might cause this problem?
2008 Oct 15 3:18 AM
Hi,
Your message class is 'Z1049498'. But you gave as 'Z10493498'.
Its mismatched.
Check it out!
Regards,
R.Nagarajan.
-
We can -
2008 Oct 15 3:26 AM
Hi Nagarajan Ramamoorthy,
How about if I would like to include a variable.
Is this syntax correct?
message i001 with v_name.
Thanks!
2008 Oct 15 3:18 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |