Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Execute a program that is called via 'SUBMIT ...'

Former Member
0 Likes
2,303

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,663

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

8 REPLIES 8
Read only

faisalatsap
Active Contributor
0 Likes
1,663

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

Read only

0 Likes
1,663

>

> 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.

Read only

Former Member
0 Likes
1,664

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

Read only

Former Member
0 Likes
1,663

Hi,

cancel VIA SELECTION-SCREEN.

Try F1 on SUBMIT.

Regards, Dieter

Read only

kanishakgupta1
Contributor
0 Likes
1,663

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.

Read only

Former Member
0 Likes
1,663

Hi,

I guess not using the via selection screen will do it.

Regards,

Dhas.

Read only

Former Member
0 Likes
1,663

Thank, that helped!

Read only

Former Member
0 Likes
1,663

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