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

SUBMIT program

Former Member
0 Likes
1,220

How to call the program xyz which have the parameter in selection screen using SUBMIT statement. Can any one guide me ?

1 ACCEPTED SOLUTION
Read only

former_member195383
Active Contributor
0 Likes
915

SUBMIT zprogram

AND RETURN

VIA JOB wf_jobname NUMBER wf_jobcount

TO SAP-SPOOL WITHOUT SPOOL DYNPRO

KEEP IN SPOOL xflag_gc.

also u can find this by putting cursor on submit and clicking F1

Reward points if the above ans is useful...

6 REPLIES 6
Read only

former_member195383
Active Contributor
0 Likes
916

SUBMIT zprogram

AND RETURN

VIA JOB wf_jobname NUMBER wf_jobcount

TO SAP-SPOOL WITHOUT SPOOL DYNPRO

KEEP IN SPOOL xflag_gc.

also u can find this by putting cursor on submit and clicking F1

Reward points if the above ans is useful...

Read only

0 Likes
915

i have a spool number. i fetched that spool number. now i want to convert that spool output to PDF. For that we have a program RSTXPDFT4 which accepts Spool number as parameter.

This is the case.

Edited by: Manjunath CN on Jun 20, 2008 8:07 AM

Read only

Former Member
0 Likes
915

Hi,

see the the parameter id for the spool number in the data dictionary.

and write the code in the program like this. p_spoolnumber is the parameter in the RSTXPDF4. v_spoolnumber is the variable which hold the spool number. XYZ is the parameter id for the spool number.

set parameter id 'XYZ' field v_spoolnumber.

submit RSTXPDF4 with p_spoolnumber = v_spoolnumber.

Reward.

Read only

Former Member
0 Likes
915

You can use addition WITH SELECTION-TABLE rspar to pass the selection screen parameters.

SUBMIT report1 WITH SELECTION-TABLE rspar_tab.

Here table rspar_tab contains values for Selection Screen.

Also you can pass value to selection screen field dirsctly

SUBMIT report1

WITH sel_screed_field1 BETWEEN 'H' AND 'K'

WITH sel_screed_field2 IN range_tab.

Thanks,

Punit

Read only

Former Member
0 Likes
915

Hi,

Use the below sytax for submit:

SUBMIT {rep|(name)} [selscreen_options]

[ list_options ]

[ job_options]

[AND RETURN].

selscreen_options

Syntax

... [USING SELECTION-SCREEN dynnr]

[VIA SELECTION-SCREEN]

[selscreen_parameters] ... .

Extras:

1. ... USING SELECTION-SCREEN dynnr

2. ... VIA SELECTION-SCREEN

list_options

Syntax

... [LINE-SIZE width]

[LINE-COUNT page_lines]

{ [EXPORTING LIST TO MEMORY]

| [TO SAP-SPOOL print_options] }.

Extras:

1. ... LINE-SIZE width

2. ... LINE-COUNT page_lines

3. ... EXPORTING LIST TO MEMORY

4. ... TO SAP-SPOOL print_options

job_options

Syntax

... [USER user] VIA JOB job NUMBER n.

Reward points if it is helpful.

Read only

Former Member
0 Likes
915

SUBMIT <report> WITH seltab AND RETURN.

here seltab is an internal table of type RSPARAMS. It is same like the select-options structure.

it has the following fields:

name - Parameter name

Kind - P for parameter, S for select-option

low - low value

high - maximum value

option - I for inclusive, E for exclusive

sign - EQ, BT etc

You can fill the parameter values using this table and call the report.

Regards,

Lakshmi.