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

pbm in displaying message as 'Error' message in module pool

Former Member
0 Likes
738

Hi experts,

I have created a message class and used this in my module pool pgm. Then i used the following statement to display error message..

if wa_vbuk-WBSTK = 'C'.

MESSAGE e099.

endif.

The above statement displays the message in a popup window instead of displaying the message in the task bar.

Can anyone tell me the reason for this issue?

Regards,

Shanthi

1 ACCEPTED SOLUTION
Read only

former_member217544
Active Contributor
0 Likes
603

Hi Shanthi,

If you write this message in PBO of screen then it will display as pop-up message.

Check the program DEMO_MESSAGES for behavious of messages in different cases.

Regards,

Swarna Munukoti

Hi experts,

I have created a message class and used this in my module pool pgm. Then i used the following statement to display error message..

if wa_vbuk-WBSTK = 'C'.

MESSAGE e099.

endif.

The above statement displays the message in a popup window instead of displaying the message in the task bar.

Can anyone tell me the reason for this issue?

Regards,

Shanthi

2 REPLIES 2
Read only

former_member217544
Active Contributor
0 Likes
604

Hi Shanthi,

If you write this message in PBO of screen then it will display as pop-up message.

Check the program DEMO_MESSAGES for behavious of messages in different cases.

Regards,

Swarna Munukoti

Read only

Former Member
0 Likes
603

Hi,

Try this..


    if sy-subrc is not initial.
      message e000(zmdm) with 'Enter valide Request Number!'.
    endif.

Regards

Arbind