Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to find message-id (message class) by program name?

Former Member
0 Likes
3,008

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!

4 REPLIES 4
Read only

Former Member
0 Likes
1,396

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

Read only

Former Member
0 Likes
1,396

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.

Read only

Former Member
0 Likes
1,396

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

Read only

Former Member
0 Likes
1,396

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.