‎2008 Jun 20 6:51 AM
How to call the program xyz which have the parameter in selection screen using SUBMIT statement. Can any one guide me ?
‎2008 Jun 20 6:54 AM
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...
‎2008 Jun 20 6:54 AM
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...
‎2008 Jun 20 7:01 AM
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
‎2008 Jun 20 7:19 AM
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.
‎2008 Jun 20 7:23 AM
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
‎2008 Jun 20 7:26 AM
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.
‎2008 Jun 20 7:29 AM
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.