SAP SRT_SEQ_EXEC_AND_TERM Function Module for SRT_SEQ_EXEC_AND_TERM
SRT_SEQ_EXEC_AND_TERM is a standard srt seq exec and term SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SRT_SEQ_EXEC_AND_TERM processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for srt seq exec and term FM, simply by entering the name SRT_SEQ_EXEC_AND_TERM into the relevant SAP transaction such as SE37 or SE38.
Function Group: SRT_SEQ_BG
Program Name: SAPLSRT_SEQ_BG
Main Program: SAPLSRT_SEQ_BG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SRT_SEQ_EXEC_AND_TERM pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SRT_SEQ_EXEC_AND_TERM'"SRT_SEQ_EXEC_AND_TERM.
EXPORTING
IF_ENVIROMENT_MODE = "
* IT_SINGLE_SEQUENCE = "
* IV_TRACE_LEVEL = "
* IV_APPLICATION_ID = "
* IV_COMMTYPE = "
IV_PROCESSING_MODE = "
* IV_EXT_OPTION = "
IMPORTING Parameters details for SRT_SEQ_EXEC_AND_TERM
IF_ENVIROMENT_MODE -
Data type: SRT_LOCATIONOptional: No
Call by Reference: No ( called with pass by value option)
IT_SINGLE_SEQUENCE -
Data type: SRT_S_SEQUENCEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_TRACE_LEVEL -
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_APPLICATION_ID -
Data type: SYSUUID_COptional: Yes
Call by Reference: No ( called with pass by value option)
IV_COMMTYPE -
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_PROCESSING_MODE -
Data type: SRT_SEQUENCE_PROCESSMODEOptional: No
Call by Reference: No ( called with pass by value option)
IV_EXT_OPTION -
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SRT_SEQ_EXEC_AND_TERM Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_if_enviroment_mode | TYPE SRT_LOCATION, " | |||
| lv_it_single_sequence | TYPE SRT_S_SEQUENCE, " | |||
| lv_iv_trace_level | TYPE I, " | |||
| lv_iv_application_id | TYPE SYSUUID_C, " | |||
| lv_iv_commtype | TYPE CHAR1, " | |||
| lv_iv_processing_mode | TYPE SRT_SEQUENCE_PROCESSMODE, " | |||
| lv_iv_ext_option | TYPE CHAR1. " |
|   CALL FUNCTION 'SRT_SEQ_EXEC_AND_TERM' "SRT_SEQ_EXEC_AND_TERM |
| EXPORTING | ||
| IF_ENVIROMENT_MODE | = lv_if_enviroment_mode | |
| IT_SINGLE_SEQUENCE | = lv_it_single_sequence | |
| IV_TRACE_LEVEL | = lv_iv_trace_level | |
| IV_APPLICATION_ID | = lv_iv_application_id | |
| IV_COMMTYPE | = lv_iv_commtype | |
| IV_PROCESSING_MODE | = lv_iv_processing_mode | |
| IV_EXT_OPTION | = lv_iv_ext_option | |
| . " SRT_SEQ_EXEC_AND_TERM | ||
ABAP code using 7.40 inline data declarations to call FM SRT_SEQ_EXEC_AND_TERM
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects