Skip to Content
avatar image
Former Member

Dialog box issue in FPM

Hi,

In my custom application I have created 2 buttons and created 2 different dialogue boxes in the FPM configurator.

For each button in the FPM Configurator, I have assigned the relevant DIALOG BOX ID and assigned the FPM event ID as FPM_OPEN_DIALOG.

The issue now is, I am getting only the first assigned dialog box in the popup even for the Second button.

Please let me know if I am missing any settings.

Eg : First button          ---->      Dialog box 1 ( Assignment )

       Second Button     ---->      Dialog box 2 ( Assignment )

Result

     First Button          ---->     Dialog box 1 is called

     Second Button      ---->     Still the Dialog box 1 is called.

Thank you!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 09, 2013 at 10:29 AM

    HI Chitibabu,


    In get_data method use IO_EVENT->MV_EVENT_ID to get which button is clicked.

    And based on the condition call your Dialog box using be below code.

    DATA: "lo_fpm TYPE REF TO if_fpm,

              lv_window_id TYPE fpm_dialog_window_id,

              lo_fpm TYPE REF TO if_fpm.

        lv_window_id = 'PAGE_2'.  

        lo_fpm = cl_fpm_factory=>get_instance( ).

        lo_fpm->open_dialog_box( EXPORTING iv_dialog_box_id = lv_window_id ).

    PAGE_2 is the id replace with corresponding ID.

    Thanks and Regards,

    Ragavendra

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 09, 2013 at 04:25 AM

    HI Chitibabu,


    Just check your event id, of the button you have assigned and capture the event id in the Process_event_id method. Its not a major mistake i think just cross check all the thing( Event ID, Dialog Window Web Dynpro name & refresh all the Internal table if they are defined globally)

    For other solution share your code.


    Regards.

    Nishant Bansal.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Nishant,

      I have not written any code.. I am calling the dialog box through only configuration..

      We can call the dialog box throug cofig aswell as writing the code in the relevant methods.

      I am calling the dailog box through config itself. Here we don't require any coding part.

      Please let me know if any additional setting is missing in config.

      Thank you!