I am trying to run 2 report programs, REPORTS_1 and REPORTS_2. The first program REPORTS_1 should only be executed if the first radio button is selected and all the parameters are filled in(parameter fields are always mandatory?). And the second program REPORTS_2 should only be executed if the second radio button is selected and all the corresponding parameters are filled in. Below is the code. Is this the place and correct way to call SUBMIT?
* Selection screen 1
SELECTION-SCREEN BEGIN OF BLOCK flight_block WITH FRAME TITLE text-002.
PARAMETERS: carrid TYPE sbook-carrid MODIF ID sc1.
PARAMETERS: connid TYPE sbook-connid MODIF ID sc1.
PARAMETERS: fldate TYPE sbook-fldate MODIF ID sc1.
SELECTION-SCREEN END OF BLOCK flight_block.
*Selection screen 2
SELECTION-SCREEN BEGIN OF BLOCK customid_block WITH FRAME TITLE text-003.
PARAMETERS: customid TYPE sbook-customid MODIF ID sc2.
SELECTION-SCREEN END OF BLOCK customid_block.
AT SELECTION-SCREEN OUTPUT.
* Toggle the selection screens based on radio buttons
LOOP AT SCREEN.
IF rad_flt = 'X' AND screen-group1 = 'SC2'.
PERFORM modify_screen. "Calling subroutine
SUBMIT Z15081947_MINI_REPORTS_1 AND RETURN. " Issue???
ELSEIF rad_cus = 'X' AND screen-group1 = 'SC1'.
PERFORM modify_screen. "Calling subroutine
SUBMIT Z15081947_MINI_REPORTS_2 AND RETURN. " Issue???
ENDIF.
ENDLOOP.
* Subroutines.
FORM modify_screen.
screen-active = 0.
MODIFY SCREEN.
ENDFORM.