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

Calling selection screen of another program

Former Member
6,768

Hi all,

Am trying to call a program from a enhancement section of IW3K transaction using the following statement.But the selection screen of the program is not getting displayed.

but the screen is dispalyed when i run the statement in debug mode.

Can anyone help me on this...

useful answers will be rewarded.

submit Z XXXXX via selection-screen

WITH s_ispla = 'BEKD'

WITH p_rsnum = CAUFVD-rsnum

WITH s_rspos in i_range_tab

and RETURN.

Hi all,

Am trying to call a program from a enhancement section of IW3K transaction using the following statement.But the selection screen of the program is not getting displayed.

but the screen is dispalyed when i run the statement in debug mode.

Can anyone help me on this...

useful answers will be rewarded.

submit Z XXXXX via selection-screen

WITH s_ispla = 'BEKD'

WITH p_rsnum = CAUFVD-rsnum

WITH s_rspos in i_range_tab

and RETURN.

2 REPLIES 2
Read only

Former Member
2,823

Hi

VIA SELECTION-SCREEN

The selection screen of the called executable program appears. If you transfer values to the program using one or more of the other options, the corresponding input fields in the selections screen are filled. The user can change these values. By default, the system does not display a selection screen after SUBMIT.

Thanks

Vasudha

Read only

Former Member
0 Likes
2,823

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:

codeREPORT 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.[/code]

=> To leave a called program, you can use SUBMIT .... AND RETURN. by choosing F3 or F15 from list level 0 of the called report.