Exceptions with SUBMIT | Syntax & Additions | Sample program Code
SUBMIT statement ( Keyword) is used for executing an ABAP program ( Only executable programs can be accessed and executed ). The called program is accessed and executed with the passed parameters and return the result. If there is any type of errors on the execution of called program , exceptions will raise by this statement.
Now let us look into the basic syntax of SUBMIT statement
SUBMIT Report-Name
Additions used with this statement are
- selscreen_options
- USING SELECTION-SCREEN dynnr ( Specifies the screen number to display )
- VIA SELECTION-SCREEN ( Specified it should display or not )
- selscreen_parameters
- USING SELECTION-SET variant
- USING SELECTION-SETS OF PROGRAM prog
- WITH SELECTION-TABLE rspar
- WITH expr_syntax1 WITH expr_syntax2
- WITH FREE SELECTIONS texpr
- list_options
- LINE-SIZE width
- LINE-COUNT page_lines
- EXPORTING LIST TO MEMORY
- TO SAP-SPOOL
- job_options
- USER user VIA JOB job NUMBER n
- AND RETURN ( With this Addition current session & LUW will be back after the execution of called program )
Major exceptions occurring with SUBMIT
- LOAD_PROGRAM_NOT_FOUND
- SUBMIT_WRONG_SIGN
- SUBMIT_WRONG_TYPE
- SUBMIT_IMPORT_ONLY_PARAMETER
- SUBMIT_IN_ITAB_ILL_STRUCTURE
- SUBMIT_PARAM_NOT_CONVERTIBLE
- SYNTAX_ERROR