cancel
Showing results for 
Search instead for 
Did you mean: 

Open adobe form on button click

0 Kudos

Hii.

I hava a list uibb with print button and i want that when press event is raise to open adobe form(adobe form - sfp transaction)

How i do it in fpm?

Tnx

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Barel,

Create a dailoge box in your FPM application and assign the webdynpro component which hold the adobe form.

now in list uibb, on button action you can call this adobe form.

write the below code in the process event method.


case io_event->mv_event_id.

   when cl_fpm_event=>gc_event_print.

* Calling adobe Form Dialog box

       ls_dialog_box_properties-height = '500'.

       ls_dialog_box_properties-width  = '1000'.

         lo_fpm->open_dialog_box(

           exporting

             iv_dialog_box_id   =   'DIALOG_BOX_1'

             is_dialog_box_properties  = ls_dialog_box_properties ).

endcase.

Here the Dialog box id: "DIALOG_BOX_1" which hold the adobe form.

hope this will helps you.

Regards,

Naga

0 Kudos

You mean to use the freestyle guib and linked it to the web dynpro component?

that way i know, but there are no other "FPM" way to do this?

beacuse this way demand using in regular webdynpro and all the goal in fpm is to avoid this.

former_member300076
Participant
0 Kudos

Hi,

You have the follow the following steps :

- Create a new view and add an InteractiveForm inside it.

- Bind the DataSourceof the IntercativeForm with a context of the type of the import parameters of your Adobe Form.

- In templateSource your need to add your AdobeForm name.

- Create a new window for the view.

Your are now ready to call the Adobe Form from the component controller.

  DATA:
         lr_cctrl    TYPE REF TO if_wd_component,
         lr_wmngr    TYPE REF TO if_wd_window_manager.

* wd_this->adobe_form is an attribute of the component controller with type REF *TO IF_WD_WINDOW

* Get Component Controller API
   lr_cctrl                        = wd_this->wd_get_api( ).

   IF wd_this->adobe_form IS NOT BOUND.
*   Get Window Manager
     lr_wmngr                      = lr_cctrl->get_window_manager( ).

*   Create a window
     wd_this->adobe_form          = lr_wmngr->create_windowmodal                = abap_true
                                                               window_name          = 'W_ADOBE'
                                                               close_button         = abap_true
                                                               button_kind          = if_wd_window=>co_buttons_ok ).

     CHECK wd_this->adobe_form IS BOUND.

     wd_this->adobe_form->set_window_sizewidth   = '800'
                                             height  = '600' ).
   ENDIF.

* Open the Adobe Form
   wd_this->adobe_form->open( ).

Don't forget to fill your context in order to get value imported into the Adobe Form.

Hope it will help you.

Regards,

Sam,

0 Kudos

Tnx, but what you offer is for web dynpro , and i need a way to open adobe form from fpm aplication.

former_member300076
Participant