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: 

pop-up window to display error message

Former Member
0 Kudos

hi all,

how can i show error messages in pop-up window keeping its status as 'e'?

plz help.

rgds,

avijit

8 REPLIES 8

santhosh_patil
Contributor
0 Kudos

Hi,

try with FM <b>POPUP_DISPLAY_MESSAGE</b>

---Patil

0 Kudos

hi

but using this fm...

if we check some condition as if parameter is initial...

then it displays message but does not place cursor in the error field

it just leaves to list.....

could u explain this

Former Member
0 Kudos

hi

POPUP_DISPLAY_MESSAGE

POPUP_WITH_TABLE_DISPLAY_OK

if helpful, reward

Sathish.R

Message was edited by:

Sathish R

0 Kudos

Hi Avjit,

You have to create a pop up on ur own as error messages are displayed only on the bottom of the screen. You can try something like this.

CALL FUNCTION 'POPUP_TO_INFORM'

EXPORTING

titel = 'ERROR'

txt1 = ' Error message'.

Thanks!

Anusha

Former Member
0 Kudos

Hi,

Check this FMs

POPUP_IMC_MESSAGE

POPUP_DISPLAY_MESSAGE

Regards,

Ranjit Thakur.

<b>Please Mark The Helpful Answer.</b>

former_member196280
Active Contributor
0 Kudos

Function Module will solve your problem.

Regards,

SaiRam

former_member196299
Active Contributor
0 Kudos

hi ,

there are two function modules you need to use :

BALW_BAPIRETURN_GET2 <-- this is to convert the internal table filled with messages to BAPIRET structure .

and

FB_MESSAGES_DISPLAY_POPUP <-- This is to display a popup with all the messages ( error type / info type , etc )

Reward if helpful !

Regards,

Ranjita

0 Kudos

Hi

Use this Class [CL14Z_MESSAGES_SHOW_AS_POPUP]to display the Pop-Up Window where ever its required.

You need to pass few parameters to get this work. sample code is given below.

CALL FUNCTION 'C14Z_MESSAGES_SHOW_AS_POPUP'
  EXPORTING
    i_msgid  = 'ZCL_MSG'  "Message Class from which you want to display the message
    i_msgty  = 'E'   " Type of the message
    i_msgno  = '001' " Message number in message Class
    i_msgv1  = 'ZTest'  " Dynamic value to be displayed in Message
    i_lineno = 1.

Here the output will look some thing like as follows:

message-popup-2

Regards

Ram