‎2015 Nov 04 4:22 PM
Hello everybody,
with the following code, I try to launch a transaction from my FPM application. In NWBC, the transaction is started in a new tab, but it is always in Batch - Input mode, which causes some problems. I have implemented SAP note 2004631 so I can use the parameters nobinpt and nobiend, but this did not help. It works when I delete the lines to transfer the parameters for the selection screen, but I need them.
Any ideas how to launch a transaction, transfer parameters for the selection screen (and skip it) and still the transaction starts in online mode?
Best regards
Christian
-----------------------------------------------------------------------------------------------------------
method onactiononclick.
data:
l_fields type fpm_s_launch_transaction,
l_tx_parameters type apb_lpd_s_add_trans_parameters,
l_field_parameter like line of l_fields-parameter,
l_error_occurred type abap_bool,
l_fpm type ref to if_fpm,
l_navigator type ref to if_fpm_navigate_to.
l_fpm = cl_fpm_factory=>get_instance( ).
l_navigator ?= l_fpm->get_navigate_to( ).
l_fields-tcode = 'ZOSSLAUNCHTEST'.
l_fields-gui_type = 'WIN_GUI'.
l_fields-system_alias = sy-sysid.
" ------------- Transfer parameter for selection screen -------------
l_tx_parameters-batch_input_program = 'ZOSSLAUNCH_CHECK'.
l_tx_parameters-batch_input_dynnr = '1000'.
l_tx_parameters-skip_init_screen_if_possible = abap_true.
l_field_parameter-key = 'G_PARAM'.
l_field_parameter-value = 'TEST'.
append l_field_parameter to l_fields-parameter.
" -------------------------------------------------------------------
l_tx_parameters-nobiend = abap_true. " SAP Note 2004631
l_tx_parameters-nobinpt = abap_true. " SAP Note 2004631
call method l_navigator->launch_transaction
exporting
is_transaction_fields = l_fields
is_additional_parameters = l_tx_parameters
importing
ev_error = l_error_occurred.
endmethod.
‎2015 Nov 06 8:11 AM
Hello Christian,
if batch_input_program and batch_input_dynnr are filled, the call will do batch input. Have you tried to keep these two initial and just fill the selection parameter G_PARAM?
Best regards, Katja
‎2015 Nov 06 11:03 AM
Hi Katja,
in the meantime I´ve found a solution. Leaving those fields blank is part of it; but then the system uses the report report interface to pass the parameters, so the called report must be designed accordingly. And the parameters passed have to be defined in DDIC.
Best regards
Christian