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: 

Problems with message type w and double-click

Former Member
0 Kudos
686

Hi,

I have to show a warning message (type w) and also I have to fill (with data) the window that appears when the user double-click on the message.

Also the text that fills the window is dinamic (it depends on the application's data) so, how can I do this?

My question is, how can I customize the window that appears when the user clicks twice on a warning message?

thanks in advance

4 REPLIES 4

former_member223537
Active Contributor
0 Kudos
172

Hi,

You can use a message class for this.

In the report program where the declaration of report is done, use the following :

Report ZXXXXXXX MESSAGE-ID ZFI_001.

Then use the following condition :

create a message either by Goto Messages. Type & in the Message Short text & assign a number(say 10) to that message.

Place the cursor on the text & click on long text. Now enter the long text here, which you want to be displayed when the user double clicks the short message.

Now in the report program, use the following statement.

concatenate sy-uzeit

sy-datum

into l_message.

Message i010 with l_message.

Best regards,

Prashant

0 Kudos
172

Thanks,

but now my problem is that I have to show an internal table inside the windows, but I don't know how to put these into the long text section.

Looking at the long text screen I see that it looks like the sapscript form.

thanks

0 Kudos
172

Use the FM popup_to_decide_list, this will allow u to display a message as well as table contents. POPUP_WITH_TABLE_DISPLAY can also be used.

For getting user inputs check the POPUP_TO_GET_VALUES FMs

There are lots of them. YOu need to check is it is usefulfor u

Former Member
0 Kudos
172

Hello Javier,

Just another thought process. U could use FM POPUP_WITH_2_BUTTONS_TO_CHOOSE to display the warning message with option to continue or cancel. If the user opts for continue u could use FM POPUP_WITH_TABLE or POPUP_WITH_TABLE_DSIPLAY.