on 12-10-2013 12:17 PM
Hi all,
I'm trying to call a report based transaction from the FPM object as follows:
ls_tra_lo-header_text = 'Log-in with your HR_ User!'.
ls_tra_lo-tcode = 'ZHR_XX_SSF_UPD_SYSTM'.
ls_tra_lo-pers_dialog = 'ZHR_XX_SSC_HCM_PF_UPD'. "'DIA_BUA_CCMONITOR'.
ls_tra_lo-variant = space.
ls_tra_lo-gui_type = 'WIN_GUI'. "just to test
ls_tra_lo-system_alias = 'HR-BSP'. "'ZHR_XX_SSC_HCM_PF_UPD'.
ls_parameter-key = 'PAPROCNR'.
ls_parameter-value = '900000000038'.
APPEND ls_parameter TO ls_tra_lo-parameter.
ls_add_param-skip_init_screen_if_possible = abap_true.
lo_navigate_to = mo_fpm->get_navigate_to( ).
CALL METHOD lo_navigate_to->launch_transaction
EXPORTING
is_transaction_fields = ls_tra_lo
is_additional_parameters = ls_add_param
IMPORTING
et_messages = lt_message
ev_error = lv_error.
Unfortunately, the parameters don't get passed to the selection screen of the report (they are in the generated URL). Furthermore while the first screen of the transaction is shown, after clicking on execute (F8) the transaction just stops and the empty shell of program SAPMSYST is being shown.
I have the impression that there might be a bug, at least in the parameters' passing.
Anyone had this problem? I would like to use it since it allows me to call in an internet explorer window the WinGui itself, not just the WEBGui.
Trying the code of this discussion http://scn.sap.com/thread/1594478 it works, except that the parameter doesn't get passed with that code either.
Thanks a lot in advance, Ioan.
The type of the transaction in se93 was wrong (report and dynpro instead of report and selection screen). You get a warning message when running the transaction in se93 but not anywhere else. After setting the transaction properly, it worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ioan,
About passing parameters.
Try to use type of selection screen parameter as a key in ls_parameter structure. It helped me once.
Example:
for p_prg_t parameter:
ls_parameter-key = 'TEXT60'.
ls_parameter-value = 'Test'.
According your question about WebGUI and WinGUI. Could you clarify what the problem do you have with this parameter? I didn't catch it in your post.
Kind regards, Aliaksandr.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aliaksandr,
The parameters are already added to the parameter table and appearing partly scrambled in the generated URL:
Webguid and wingui is clear, no problem there.
The second problem is that the transaction (report based) starts to the first screen (selection screen). But when clicking on execute (F8) instead of my custom transaction being executed, the transaction simply exits (ends). Needles to say, my transaction has no problem when called in se38, there is no short dump, it's all very fpm-confidence-shattering to me .
Hi Ioan,
As I understood you launch GUI transaction in browser window. If your selection screen looks like on screenshot it can be that your second problem links to some program elements which cannot be used in browser mode. Do you use ALV grid on the main screen (some times it can be a problem)? Or do you trigger GUI download/upload functionality (e.g. cl_gui_frontend_services=>gui_download method) in your report?
Kind regards, Aliaksandr.
Hi loan,
I didn't know more about the FPM, Launch object. I found one little thing inside your code.
ls_parameter-value = '900000000038'.
APPEND ls_parameter TO ls_tra_lo-parameter.
You are appending the data into the deep structure. But you are passing the complete Table. I am not sure what i am saying that is correct or not.
CALL METHOD lo_navigate_to->launch_transaction
EXPORTING
is_transaction_fields = ls_tra_lo " Try to pass the Expicity internal table only parameter type
is_additional_parameters = ls_add_param
IMPORTING
et_messages = lt_message
ev_error = lv_error.
Correct me if i am wrong.
Regards.
Nishant Bansal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.