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

SAP TM POPUP

ashish_goyal2
Participant
0 Likes
858

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

2 REPLIES 2
Read only

Kiran_Valluru
Active Contributor
0 Likes
590

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

Read only

0 Likes
590

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.