cancel
Showing results for 
Search instead for 
Did you mean: 

Dialog box issue in FPM

Former Member
0 Kudos

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!

Accepted Solutions (1)

Accepted Solutions (1)

former_member215610
Active Participant
0 Kudos

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

Former Member
0 Kudos

Thank you Raghavendra,

I would like to display the dialogs without any coding part and please let me know if it possible via configuration.

nishantbansal91
Active Contributor
0 Kudos

Hi Chittibabu,

I have never called the Dialog box through configuration. I am searching on it and give you a solution as soon as possible.

If you find any suggestion let me know.

Regards.

Nishant Bansal

Former Member
0 Kudos

Ok, Solved myself...

There are 2 methods to achieve this using configuration.

==> Create a dialog box and assign relevant UIBB or GUIBB

==> Now create a button and provide the event id as FPM_OPEN_DIALOG and in the Enter event parameters section, pass 'DIALOG_BOX_ID'  as parameter name and Dialog box id value ( ie. Page id of dialog box) as Parameter value.

It will work.

2nd Approach

==> Create a dialog box and assign relevant UIBB or GUIBB

==> Now create a button and provide the event id as FPM_OPEN_DIALOG and in the Target Page assing the value of Dialog Box Page ID.

This will also work.

Note : DIALOG_BOX_ID is a constant and should not be changed... I was passing different value so it was not working for 2 different buttons.   ( IF_FPM_CONSTANTS=>GC_DIALOG_BOX-ID )

nishantbansal91
Active Contributor
0 Kudos

Hi Chittibabu,

Thanks for sharing the information.

Regards,

Nishant Bansal

Answers (1)

Answers (1)

nishantbansal91
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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!