2008 Mar 09 6:44 AM
hi,
how to find message class (hich e.g. is in report zname message-id zmsg) by program name???
any ideas???
thanks in advance!
hi,
how to find message class (hich e.g. is in report zname message-id zmsg) by program name???
any ideas???
thanks in advance!
2008 Mar 09 6:49 AM
hi,
In Zreports we generally write
on top of the report itself
REPORT <report name> MESSAGE-ID <msg class name> NO STANDARD PAGE HEADING LINE-SIZE 1023.
REPORT ZVR00010 MESSAGE-ID ZA0 NO STANDARD PAGE HEADING LINE-SIZE 180.
report name - ZVR00010
Msg Class - ZA0
reward points if useful.... mark answered
2008 Mar 09 6:52 AM
REPORT <name> MESSAGE-ID <message class>.
report zname message-id zmsg
zmsg- message class.
Creating Message Classes
Procedure
To create a new message class from the ABAP Editor:
1.In the initial statement (for example, REPORT) or directly in the statement MESSAGE ID <id> enter a parameter value of up to 20 characters as a message ID, for example:
REPORT <name> MESSAGE-ID <message class>.
Messages are stored system-wide. The chosen message ID (message class) must not already exist in the system.
2.Double-click the message ID.
If you enter an ID that already exists in the system, the system calls up Message maintenance. In this case, enter a different ID. Once you have done this, the system asks you whether you want to create a new message class.
3.Choose Yes.
The system calls up Message maintenance.
4.Enter a brief description of the class in Short text.
Choose Save.
2008 Mar 09 7:01 AM
Hi,
You can create message class based on your requirement.
If you want to create new one.
Just give the message class name starting with z.And enter the message class name for e.g ZMSG_CLASS.
REPORT <name> MESSAGE-ID ZMSG_CLASS.
Then double click the ZMSG_CLASS and you will to create a new message class.Just create by giving valid values.
Else try to use it already declared message class.
For e.g the message class can be used like this,
REPORT ZTEST
NO STANDARD PAGE HEADING
LINE-COUNT 65
LINE-SIZE 256 MESSAGE-ID ZMSG_CLASS.
Thanks,
Sakthi
2008 Mar 09 8:06 AM
HI,
logicially you should be able to use READ REPORT and then do a search for the REPORT line. You should be able to SPLIT it at MESSAGE-ID into 2 variables, capturing the MSG-ID.
Cheers,
Chandra Sekhar.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |