‎2007 Feb 20 2:38 PM
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.
‎2007 Feb 20 2:45 PM
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
‎2007 Feb 20 3:40 PM
Hi Praveen,
You can use submit statement with the following option.
SUBMIT .... USING SELECTION-SCREEN dynnr.
SUBMIT .... VIA SELECTION-SCREEN.
Regards,
Ferry Lianto
‎2007 Feb 20 4:05 PM
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