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

CATT Message Variables

Former Member
0 Likes
657

Hi All

I have created a CATT test procedure, which creates a Sales Document. A number of messages are created as the Transaction runs and I need to access the data in the messages. I can get to the data from the last message that is created but I also need to get data from a previous message. Is there any way that I can do this?

Thanks

Andy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
623

Hi.

We did that once, we selected the value right out of the database.

Table CATJ for CATT run data

-> errorcodes from CATL

In errorcodes you can then select the messages you want

MSID1 '<MessageClass>'

MSNR1 '<MessageNr>'

And cause you know the expected message you can easily use offset(length) to get the desired value out of the message.

Regards,

Timo.

5 REPLIES 5
Read only

Former Member
0 Likes
624

Hi.

We did that once, we selected the value right out of the database.

Table CATJ for CATT run data

-> errorcodes from CATL

In errorcodes you can then select the messages you want

MSID1 '<MessageClass>'

MSNR1 '<MessageNr>'

And cause you know the expected message you can easily use offset(length) to get the desired value out of the message.

Regards,

Timo.

Read only

0 Likes
623

Hi Timo

Thanks for your reply, I will bear it in mind, however,I've managed to find the following SAP Help document that details how to do it:

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/d7/e21503408e11d1896b0000e8322d00/frameset.htm">CHEERR - Check system message</a>

Kind regards

Andy

Read only

Former Member
0 Likes
623

Hello,

Do you need more than the four lat ones?

If a transaction sends more than one system message, the message variables &M01 to &M04 contain the variable parts of the last message issued.

Regards,

Walter

Read only

0 Likes
623

Hi Walter

As you will be aware, each message can contain upto 4 variables - I was looking for access to the variables of messages prior to the last one. As in my reply to Timo, there is a way of doing this which is explained within the above document.

Thanks for your reply.

Kind regards

Andy

Read only

0 Likes
623

OOps, typo error.

But I was looking at the same page in the docu 😃