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

Message ID

Former Member
0 Likes
1,012

Hi all,

I'm using the following code to send a message ( inside a user exit in VA01 😞

MESSAGE ID 'SABAPDOCU' TYPE message_type NUMBER '888' DISPLAY LIKE 'E'

WITH l_message l_message2 l_message3.

It's working Fine, although i'm using the ID SABAPDOCU.

If i create a message class, for example " Z_SD" and do the same CODE when the message is sent to the screen it appears like :

Z_SD : " my text "

1º question : How can i take the "Z_SD" from the message in the screen ?

2º question : i have to use a message class "Z_SD" because i want to write more extra information after o double click, like "what to do", " procedure", etc, can i use standard ID SABAPDOCU to do that ?

Thanks in advance,

Mário

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
937

While you create your own message class then define below code at the top of the program :

PROGRAM TEST MESSAGE-ID Z_SD.

after that you can use your message custom messages anywhere in the program.

4 REPLIES 4
Read only

Former Member
0 Likes
938

While you create your own message class then define below code at the top of the program :

PROGRAM TEST MESSAGE-ID Z_SD.

after that you can use your message custom messages anywhere in the program.

Read only

former_member194669
Active Contributor
0 Likes
937

I suggest to use fm POPUP_TO_INFORM

a®

Read only

Former Member
0 Likes
937

hi see this ..

you can trigger a message with out creating the message id.

report ztest message-id zmsg. .

message i000 with 'this is message'.

it will triggers.

but if you had created the same one in the se91...it will take the message from class se91..even though you will give it in the program dynamically...

Read only

former_member194669
Active Contributor
0 Likes
937

otherwise try to use fm

POPUP_DISPLAY_MESSAGE by passing Z_SD message class and message number ......

a®