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 include multiple message class in a report?

Former Member
0 Likes
1,993

Hi All,

I want to include multiple message class in my report.

Presently I am wrtiting it as:

Report ztest message-id zi1 zi2.

where zi1 and zi2 are message classes.But I am receiving an error message Unable to interpret "zi2". Possible causes: Incorrect spelling or comma.'

Kindly help me in this regard.

Thanks and Regards,

Ati

4 REPLIES 4
Read only

matt
Active Contributor
0 Likes
1,175

Did you read the syntax definition for REPORT? If you had, you would have seen that it doesn't allow more than one message class for a program (or any other ABAP entitiy for that matter.

Read the ABAP help on MESSAGE while you're at it.

If you specify the message class in the MESSAGE statement, you don't need it in the REPORT statement.

Read only

Former Member
0 Likes
1,175

We can't use the multiple message id's with REPORT like:extension but we can use multiple message classes directly  i hope (not sure ) .

Regards

Mahesh .

Read only

matt
Active Contributor
0 Likes
1,175

We can't use the multiple message id's with REPORT like:extension but we can use multiple message classes directly  i hope (not sure ) .

Of course we can. Read the syntax description of MESSAGE and become sure.

Read only

uppu_narayan
Active Participant
0 Likes
1,175

Hi Ati,

     we too had the same question in our mind when we started learning abap initially but then like the syntax says that you cannot have multiple message id with Report header but you can use different message class at the codding level.

syntax at report header:: REPORT zmessages MESSAGE-ID <message-class>.

and at codding level

MESSAGE ID (id) TYPE (mtype) NUMBER (n).

where id:         message class in our case ZEXERCISE1 or ZEXERCISE2mtype

         mtype:  message type (A,E,I,S,W,X)  and

          number: message number......

thanks and regards,

narayan