Skip to Content
0
Former Member
Feb 01, 2010 at 08:20 AM

Launch transaction without launchpad

405 Views

Hi All,

I have to launch an transaction in FPM without using launchpad for which I'm using the LAUNCH_TRANSACTION method of IF_FPM_NAVIGATE_TO. Below pasted is the code that I'm executing

DATA: lo_fpm        TYPE REF TO if_fpm,
        lo_fpm_nav    TYPE REF TO if_fpm_navigation,
        lo_fpm_nav_to TYPE REF TO if_fpm_navigate_to,
        ls_tcode      TYPE fpm_s_launch_transaction,
        lt_messages   TYPE fpm_t_t100_messages,
        lt_param      TYPE apb_lpd_t_params,
        ls_param      TYPE apb_lpd_s_params,
        ld_error      TYPE boole_d,
        lv_tcode      TYPE sytcode.

  lv_tcode = 'MM42'.

  lo_fpm = cl_fpm_factory=>get_instance( ).

  lo_fpm_nav_to = lo_fpm->get_navigate_to( iv_instance_sharing = abap_true ).

  ls_tcode-header_text = wd_comp_controller->go_channel->gs_act_det-link_text.
  ls_tcode-tcode = lv_tcode.
  ls_tcode-system_alias = 'ZRE_SDW'.
  ls_tcode-gui_type = 'WIN_GUI'.
  ls_tcode-pers_dialog = 'DIA_BUA_CCMONITOR'.
  ls_param-key = 'MATNR'.
  ls_param-value = 'B02'.
  APPEND ls_param TO lt_param.
  ls_tcode-parameter = lt_param.

  CALL METHOD lo_fpm_nav_to->launch_transaction
    EXPORTING
      is_transaction_fields = ls_tcode
    IMPORTING
      et_messages           = lt_messages
      ev_error              = ld_error.

But the transaction is not coming up.

I've also checked with the standard examples FPM_TEST_NAVIGATION_2 which doesn't use the launch pad and also FPM_TEST_NAVIGATION that uses a launch pad, however even the standard examples are not bringing up and result.

I'm using the Net Weaver release 710 version 7100.4.14.3136

SAP_BASIS 701 0003 SAPKB70103

SAP_ABA 701 0003 SAPKA70103

SAP_APPL 604 0003 SAPKH60403

Is there any patch that needs to be applied or any changes to the code?

Thank you.

Regards,

Indu.