‎2014 Mar 04 3:26 AM
Hi Experts,
I need your help regarding displaying a pop up error message in webui of SAP TM 9.0 .
My requirement is that on the Edit Freight Order screen, under the Charges tab, when user enters the amount manually and press enter.... then if that amount exceeds the maximum limit... then a popup error message should be displayed on the web ui (you have exceeded the max limit).
I just need to know how to display a popup error message on TM web ui... What is the procedure to get a popup error message on freight order screen ???
Please suggest your answers!!!
Thanks and regards,
Ashish Goyal
‎2014 Mar 04 11:30 AM
Hi,
Use create_popup_2_confirm method of window manager. Write the below code in the Event hanlder( on enter) method
DATA: lr_popup TYPE REF TO if_bsp_wd_popup.
IF lr_popup IS NOT BOUND.
CALL METHOD comp_controller->window_manager->create_popup_2_confirm
EXPORTING
iv_title = 'Title of Window'
iv_text = 'Your Message Text'
iv_btncombination = if_bsp_wd_window_manager=>co_btncomb_ok "OK Button
RECEIVING
rv_result = lr_popup.
lr_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
ENDIF.
lr_popup->open( ).
Hope this helps u,
Regards,
Kiran
‎2014 Oct 28 2:56 PM
Hi,
We don't have component controller in TM ,so the above code is not relevant according to me.
Can you please let me know how did you fulfill this requirement.
I have to open a popup in Freight Order on save.
I have checked the method of the view exit class but it does not work.