‎2009 Jul 14 1:36 PM
Hello,
I want to execute a program that is called via the SUBMIT statetement.
In detail: In my report I call the program sapf080 like this:
SUBMIT sapf080 WITH SELECTION-TABLE seltab VIA SELECTION-SCREEN.
Then the dialog open and I can execute the program via F8
But what I want to do: I want to execute the program right away, i.e. somehow simulating the pressing of F8.
Does anyone know how to do this?
Thanks in advance,
Marc
‎2009 Jul 14 1:44 PM
Hi Marc,
Have a read of the help for the SUBMIT statement, but essentially you need to remove the VIA SELECTION-SCREEN bit.
Regards,
Nick
‎2009 Jul 14 1:43 PM
Hi, Marc
Sorry, i didn't get you properly please can you explain it bit more. As i understand you want to pass some values and then execute with out initial Screen am i right ?
Please Reply
Best Regards,
Faisal
‎2009 Jul 14 1:46 PM
>
> Hi, Marc
>
> Sorry, i didn't get you properly please can you explain it bit more. As i understand you want to pass some values and then execute with out initial Screen am i right ?
>
> Please Reply
>
> Best Regards,
> Faisal
That is right. After the SUBMIT statement, the program sapf080 (TCode F.80) opens, and the selections were properly set. In order to run the program, I have now to press F8. This is the step I want to jump over, i.e. I dont want to have to press F8 but I want to execute the program sapf080 immediately after calling it with SUBMIT.
‎2009 Jul 14 1:44 PM
Hi Marc,
Have a read of the help for the SUBMIT statement, but essentially you need to remove the VIA SELECTION-SCREEN bit.
Regards,
Nick
‎2009 Jul 14 1:46 PM
Hi,
cancel VIA SELECTION-SCREEN.
Try F1 on SUBMIT.
Regards, Dieter
‎2009 Jul 14 1:47 PM
CALL FUNCTION 'RS_VARIANT_VALUES_TECH_DATA'
EXPORTING
report = ls_rsvar-report
variant = ls_rsvar-variant
IMPORTING
techn_data = ls_varid
TABLES
variant_values = lt_vari_contents_old.
*Restore all maintianed selections from variant except WBS Numbers
DELETE lt_vari_contents_old WHERE selname = ls_vari_contents-selname.
LOOP AT lt_vari_contents_old INTO ls_vari_contents.
APPEND ls_vari_contents TO lt_vari_contents.
ENDLOOP.
*Call FM to Change the Variant
CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT'
EXPORTING
curr_report = ls_rsvar-report
curr_variant = ls_rsvar-variant
vari_desc = ls_varid
TABLES
vari_contents = lt_vari_contents
EXCEPTIONS
illegal_report_or_variant = 1
illegal_variantname = 2
not_authorized = 3
not_executed = 4
report_not_existent = 5
report_not_supplied = 6
variant_doesnt_exist = 7
variant_locked = 8
selections_no_match = 9
OTHERS = 10.
IF sy-subrc <> 0.
ELSE.
*Call the SAP Report now for subsequent Processing
SUBMIT rkazcjb1 USING SELECTION-SET p_var.
‎2009 Jul 14 1:47 PM
Hi,
I guess not using the via selection screen will do it.
Regards,
Dhas.
‎2009 Jul 14 1:51 PM
‎2009 Jul 14 1:52 PM
Hi ,
check this link
[http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm]
Please let me know if you still find any problem
Thanks and regards,
Rajeshwar