Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a 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!


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.