Calling GUI Transaction from FPM Application


 The post is about displaying a LIST UIBB of Billing related fields and on selecting the billing document number it should display the billing document in VF03  transaction.

The highlighted fields of VBRK table that is going to be displayed on the FPM List UIBB.

1

Create a structure and a table type.

23

Create a class in SE24 and implement the interfaces.

4

Activate all the methods. Put the code in the GET_DEFINITION method.

5

Here we are passing the table type and creating an action.

6

Declare an attribute.

7

Put the below code in GET_DATA method.

89

Go to SE80 and create a component configuration for the list UIBB.

10

The below screen appears.

11

Provide a name and click on create.

12

Provide description, package and then provide the feeder class.

13

Add all the fields as the list column and change VBELN field display type as LINK TO ACTION. Provide FPM EVENT ID as BILL_DISP.Save it.

14

Create an OVP application.

1516

17

Create OVP Application configuration.

18

Provide a name and click on New button.

19

Then click on button Assign Configuration name.

20

Provide the name and Ok.

21

Save and click on the appl configuration link.

22

The below screen appears.

23

provide title and add list component.

24

Add the list UIBB configuration name and Save.

25

test the OVP Application configuration.

26

Here the list displaying the billing document list. Now the task is when billing document is selected then it should open the billing doc in VFo3 transaction.

27

Go to the process_event method of the feeder class.

28

Put the below code.

2930


 

METHOD if_fpm_guibb_list~process_event.
  DATAlv_index           TYPE sytabix,
                ls_bill_list       LIKE LINE OF gt_bill_list,
                lr_navigate        TYPE REF TO if_fpm_navigate_to,
                lr_fpm             TYPE REF TO if_fpm,
                ls_trans_fields    TYPE fpm_s_launch_transaction,
                ls_add_params      TYPE apb_lpd_s_add_trans_parameters,
               lt_param           TYPE apb_lpd_t_params,
                ls_param           TYPE LINE OF apb_lpd_t_params.
  CASE io_event->mv_event_id.
    WHEN ‘BILL_DISP’.
      CALL METHOD io_event->mo_event_data->get_value(
        EXPORTING
          iv_key   if_fpm_guibb_list=>gc_event_par_row
        IMPORTING
          ev_value lv_index ).
      READ TABLE gt_bill_list INTO ls_bill_list INDEX lv_index.
      IF sysubrc IS INITIAL.
        lr_fpm         cl_fpm_factory=>get_instance).
        lr_navigate lr_fpm->get_navigate_to).

        ls_paramkey ‘VBRK-VBELN’.
        ls_paramvalue ls_bill_listvbeln.
        APPEND ls_param TO lt_param.

        ls_trans_fieldsgui_type ‘WIN_GUI’.
        ls_trans_fieldssystem_alias ‘SAP_Localsystem’.
        ls_trans_fieldsparameter LT_PARAM.
        ls_trans_fieldstcode ‘VF03’.

        ls_add_paramsskip_init_screen_if_possible abap_true.
        ls_add_paramsparameter_forwarding ‘P’.
        ls_add_paramsbatch_input_program ‘SAPMV60A’.
        ls_add_paramsbatch_input_dynnr ‘0101’.
        ls_add_paramsbatch_input_ok_code ‘/00’.

        CALL METHOD lr_navigate->launch_transaction
          EXPORTING
            is_transaction_fields    ls_trans_fields
            is_additional_parameters ls_add_params.
      ENDIF.

    WHEN OTHERS.
  ENDCASE.
ENDMETHOD.


 

Now test the application and it displays the billing doc in VF03 transaction.

31


 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s