2006 Feb 13 8:27 AM
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
2006 Feb 13 8:53 AM
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
2006 Feb 13 9:15 AM
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
2006 Feb 13 10:03 AM
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
2006 Feb 13 10:24 AM
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.