cancel
Showing results for 
Search instead for 
Did you mean: 

OK & CANCEL Not working with FPM->OPEN_DIALOG_BOX

Former Member
0 Kudos

Dear TM Experts,

I had done the config steps for Dialog Box and I am getting a popup with my Z field on Dialog Box.

I am calling method OPEN_DIALOG_BOX during my Action, but OK and CANCEL options are not working with this Dialog window.

I am getting error as No valid target content area found.

Please help me what might be the issue.

Thanks in advance.

Regards.

Md.Rafi

Accepted Solutions (1)

Accepted Solutions (1)

rohit3611
Contributor
0 Kudos

Hi,

These issues mostly come, when you raise a fpm standard event in Component controller. Are you doing something like this.

Rohit

Former Member
0 Kudos

Thanks Rohit,

Yes, I had configured the Dialog Box ZSZ_REASON_CODE and written below code.

But how to avoid this error and allow us to use function of OK and cancel and capture input value of popup back into my cod.

Please help me on this.

DATA lo_fpm                            TYPE REF TO if_fpm.

     DATA ls_dialog_prop                    TYPE fpm_s_dialog_box_properties.

     DATA: lv_window_id TYPE fpm_dialog_window_id.

     DATA: lo_event TYPE REF TO cl_fpm_event,

           lo_event_params TYPE REF TO if_fpm_parameter.

     lv_window_id = 'ZSZ_REASON_CODE'.

     lo_fpm = cl_fpm_factory=>get_instance( ).

     CREATE OBJECT lo_event_params TYPE cl_fpm_parameter.

     lo_event_params->set_value( EXPORTING

                                 iv_key = if_fpm_constants=>gc_dialog_box-id

                                 iv_value = lv_window_id ).

     CREATE OBJECT lo_event

       EXPORTING

         iv_event_id   = cl_fpm_event=>gc_event_open_dialog_box

         io_event_data = lo_event_params.

     lo_fpm = cl_fpm_factory=>get_instance( ).

     lo_fpm->raise_event( lo_event ).


Thanks in advance.


Regards,

Md.Rafi

rohit3611
Contributor
0 Kudos

Hi Rafi,

Can you raise the question in FPM area.

http://scn.sap.com/community/web-dynpro-abap/floorplan-manager

Best regards,

Rohit

Dragoș
Employee
Employee
0 Kudos

Can you try with lo_fpm->open_dialog_box( iv_dialog_box_id = lv_window_id )?

Im assume you configured the page ZSZ_REASON_CODE in the OVP configuration...


Regards,

Dragos

Answers (1)

Answers (1)

agentry_src
Active Contributor
0 Kudos

Discussion successfully moved from SAP Transportation Management (SAP TM) to Floorplan Manager for Web Dynpro ABAP as suggested.

Regards, Mike (Moderator)