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 child program from a parent program with the same selection screen

Former Member
0 Likes
590

We have to SUBMIT a child program from a Parent program (in foreground and background based on the radiobutton selected in the selection screen) where we have the same selection screen in both the programs.

Please help us.

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
499

Hi,

You can use

SUBMIT rep USING SELECTION-SCREEN scr

VIA SELECTION-SCREEN

AND RETURN.

... USING SELECTION-SCREEN scr

Effect

When you execute the report, the system uses the selection screen number that you specify in the scr field. This must be a selection screen defined using the SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statements.If you omit the addition, the system uses the standard selection screen 1000.

This addition allows you to start the same report in different situations, using a different selection screen each time.

The addition VIA SELECTION SCREEN determines whether the report is processed in the foreground or the background.

Regards,

Saumya

Read only

Former Member
0 Likes
499

Hi Praveen,

You can use submit statement with the following option.

SUBMIT .... USING SELECTION-SCREEN dynnr.

SUBMIT .... VIA SELECTION-SCREEN.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
499

Hi,

Try using

SUBMIT <program name>

VIA SELECTION-SCREEN

and return.

The selection screen is displayed. In this case, the selection screen is displayed again after the report list has been displayed. The values entered by the user remain displayed.

or

SUBMIT <program name>

USING SELECTION-SCREEN scr

When you execute the report, the system uses the selection screen number that you specify in the scr field. This must be a selection screen defined using the SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statements.If you omit the addition, the system uses the standard selection screen 1000.

This addition allows you to start the same report in different situations, using a different selection screen each time.

The addition VIA SELECTION SCREEN determines whether the report is processed in the foreground or the background.

What happens if the required screen does not exist or is not a selection screen?

Screen 1000:

If you want to use the standard selection screen (... USING SELECTION-SCREEN 1000 or do not specify a ... USING SELECTION-SCREEN) addition, the system does not process a selection screen.

Regards,

Sruthi