‎2013 Mar 29 12:45 PM
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
‎2013 Mar 29 1:31 PM
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.
‎2013 Mar 29 2:22 PM
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 .
‎2013 Mar 29 3:04 PM
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.
‎2013 Mar 29 7:21 PM
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