2008 May 14 12:43 PM
Hi,
I have created a report "ZREPA" with selection screen parameter say, "creator".
Nw, i hv to call that report "ZREPA" from another report say "ZREPB" by passing an value to the selection screen field "creator".
Can anyone tell me how to resolve this??
Thanks,
Aaru.
2008 May 14 12:51 PM
data : it_rsparams type table of rsparams.
clear wa_rsparams.
wa_rsparams-selname = 'S_TTYPE'.
wa_rsparams-kind = 'S'.
wa_rsparams-sign = 'I'.
wa_rsparams-option = 'CP'.
wa_rsparams-low = 'ZLEAS_CHANGE_PROCESSES_H_'.
append wa_rsparams to it_rsparams.
submit report_name
with selection-table it_rsparams
and return
exporting list to memory.
Like this you need to popuate in your report.
hope it will help you.
Regards,
Madan.
data : it_rsparams type table of rsparams.
clear wa_rsparams.
wa_rsparams-selname = 'S_TTYPE'.
wa_rsparams-kind = 'S'.
wa_rsparams-sign = 'I'.
wa_rsparams-option = 'CP'.
wa_rsparams-low = 'ZLEAS_CHANGE_PROCESSES_H_'.
append wa_rsparams to it_rsparams.
submit report_name
with selection-table it_rsparams
and return
exporting list to memory.
Like this you need to popuate in your report.
hope it will help you.
Regards,
Madan.
2008 May 14 12:51 PM
data : it_rsparams type table of rsparams.
clear wa_rsparams.
wa_rsparams-selname = 'S_TTYPE'.
wa_rsparams-kind = 'S'.
wa_rsparams-sign = 'I'.
wa_rsparams-option = 'CP'.
wa_rsparams-low = 'ZLEAS_CHANGE_PROCESSES_H_'.
append wa_rsparams to it_rsparams.
submit report_name
with selection-table it_rsparams
and return
exporting list to memory.
Like this you need to popuate in your report.
hope it will help you.
Regards,
Madan.
2008 May 14 12:52 PM
Hi Arumugam,
You can use SUBMIT key word, first define a screen , say 1000 in the program ZREPB in which you wan to call the other progra ZREPA, and then use this syntax:
SUBMIT ZREPA USING SELECTION-SCREEN 1000 and return.
But be careful to define and hold the value which you want to pass in the parameters of the second program.
Hope this is helpful to you. If you need further information, revert back.
Reward all the helpful answers.
Regards
Nagaraj T
2008 May 14 12:54 PM
Hi,
You can call one selection screen from other selection screen program using SUBMIT command.
The syntax is as follows -
codeSUBMIT... VIA SELECTION-SCREEN
USING SELECTION-SET <var>
WITH <sel> <criterion>
WITH FREE SELECTIONS <freesel>
WITH SELECTION-TABLE <rspar>.[/code]
e.g.
The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
codeREPORT demo_program_submit_rep1.
DATA number TYPE i.
PARAMETERS paramet(14) TYPE c.
SELECT-OPTIONS selecto FOR number.[/code]
The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
DATA: int TYPE i,
rspar TYPE TABLE OF rsparams,
wa_rspar LIKE LINE OF rspar.
RANGES seltab FOR int.
WRITE: 'Select a Selection!',
/ '--------------------'.
SKIP.
FORMAT HOTSPOT COLOR 5 INVERSE ON.
WRITE: 'Selection 1',
/ 'Selection 2'.
AT LINE-SELECTION.
CASE sy-lilli.
WHEN 4.
seltab-sign = 'I'. seltab-option = 'BT'.
seltab-low = 1. seltab-high = 5.
APPEND seltab.
SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
WITH paramet eq 'Selection 1'
WITH selecto IN seltab
WITH selecto ne 3
AND RETURN.
WHEN 5.
wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
wa_rspar-low = 14. wa_rspar-high = 17.
APPEND wa_rspar TO rspar.
wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
wa_rspar-low = 'Selection 2'.
APPEND wa_rspar TO rspar.
wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
wa_rspar-low = 10.
APPEND wa_rspar TO rspar.
SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar
AND RETURN.
ENDCASE.=> To leave a called program, you can use SUBMIT .... AND RETURN. by choosing F3 or F15 from list level 0 of the called report.
Regards,
Omkaram.
2008 May 14 12:59 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |