Application Development 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: 

What are different ways of using message of message class

Former Member
0 Kudos
113

Hi,

when we do 'where-used' operation on messages in se91, we get result for following two types of usage

MESSAGE ID 'ZBBP' TYPE 'E' NUMBER '074'

INTO ls_error_message

WITH e_bbp_usr01-userid.

MESSAGE i074(zbbp) WITH gs_forward.

is there any other way in which message is used that dont show in where used ?

this is for back tracing from the message received by the end user to reach the abap code.

thanks

b

4 REPLIES 4

MarcinPciak
Active Contributor
0 Kudos
69

Hi,

Also:


MESSAGE 'text' TYPE 'E'.

...but this is custom one, for using message class only given by you are possible.

Regards

Marcin

Former Member
0 Kudos
69

Hi B,

Message usage in generally are

message E999(msg_id) or

MESSAGE ID 'ZBBP' TYPE 'E' NUMBER '074'

In addition you can use the following additions.

1. ... DISPLAY LIKE dtype

2. ... RAISING exception

3. ... INTO text

4. ... WITH dobj1 ... dobj4

In the above cases you can do a where use to find where the message is used in the code.

There are cases where the message are filled into to log before being displayed. In such cases the above syntax is used but with a dynamic approach (may be in a macro), and in this case it is difficult to find out if the message of the message class is used by doing a where used. Generally a to find these messages we debug in the code to find out where is raised.

Regards,

George

0 Kudos
69

hi,

debug is not possible because issue cannot be replicated in non production.

reading the code is only way. and this syntax is not found anywhere in the code at all.

closing the thread

thank you

B

bhakti2
Active Participant
0 Kudos
69

.