SAP C195_COMPLETE_RUN Function Module for
C195_COMPLETE_RUN is a standard c195 complete run SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 c195 complete run FM, simply by entering the name C195_COMPLETE_RUN into the relevant SAP transaction such as SE37 or SE38.
Function Group: C195
Program Name: SAPLC195
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function C195_COMPLETE_RUN 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 'C195_COMPLETE_RUN'".
EXPORTING
I_DOKAR = "Document Type
* I_VAL_DATE = SY-DATUM "Valid-From Date
I_LAST_VER_DATE = "Valid-From Date
* I_MARK_CHANGES = ' ' "Row Is Selected
I_DOKNR = "Document number
I_DOKVR = "Document Version
I_DOKTL = "Document Part
I_TEXTNAME = "Name
I_ESTLP = "EHS: IOTAB for substance report variants
I_SUBID = "Sequential Number of Data Record
* I_RTIME_FROM = 1 "Expansion date for a report symbol
* I_RTIME_TO = 99 "Expansion date for a report symbol
IMPORTING
E_GENERATION_OK = "Row Is Selected
E_SYNTAX_OK = "Symbol definition incorrect
TABLES
E_STRUCT_TAB = "EHS: IOTAB for substance report template symbols
E_CHECK_RESULT_TAB = "SAPscript: Text Lines
E_VALUE_TAB = "SAPscript: Text Lines
EXCEPTIONS
SYNTAX_ERROR = 1 GENERATION_ERROR = 2
IMPORTING Parameters details for C195_COMPLETE_RUN
I_DOKAR - Document Type
Data type: ESTLS-DOKAROptional: No
Call by Reference: No ( called with pass by value option)
I_VAL_DATE - Valid-From Date
Data type: ESTRH-VALFRDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LAST_VER_DATE - Valid-From Date
Data type: ESTRH-VALFROptional: No
Call by Reference: No ( called with pass by value option)
I_MARK_CHANGES - Row Is Selected
Data type: RCGSTDIOT-MARKFLGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DOKNR - Document number
Data type: ESTLS-DOKNROptional: No
Call by Reference: No ( called with pass by value option)
I_DOKVR - Document Version
Data type: ESTLS-DOKVROptional: No
Call by Reference: No ( called with pass by value option)
I_DOKTL - Document Part
Data type: ESTLS-DOKTLOptional: No
Call by Reference: No ( called with pass by value option)
I_TEXTNAME - Name
Data type: THEAD-TDNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_ESTLP - EHS: IOTAB for substance report variants
Data type: RCGLPIOTOptional: No
Call by Reference: No ( called with pass by value option)
I_SUBID - Sequential Number of Data Record
Data type: ESTRH-RECNOptional: No
Call by Reference: No ( called with pass by value option)
I_RTIME_FROM - Expansion date for a report symbol
Data type: TCGA6-LSYRTIMDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RTIME_TO - Expansion date for a report symbol
Data type: TCGA6-LSYRTIMDefault: 99
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for C195_COMPLETE_RUN
E_GENERATION_OK - Row Is Selected
Data type: RCGSTDIOT-MARKFLGOptional: No
Call by Reference: No ( called with pass by value option)
E_SYNTAX_OK - Symbol definition incorrect
Data type: ESTLS-LSYEFLGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for C195_COMPLETE_RUN
E_STRUCT_TAB - EHS: IOTAB for substance report template symbols
Data type: RCGLSIOTOptional: No
Call by Reference: No ( called with pass by value option)
E_CHECK_RESULT_TAB - SAPscript: Text Lines
Data type: TLINEOptional: No
Call by Reference: No ( called with pass by value option)
E_VALUE_TAB - SAPscript: Text Lines
Data type: TLINEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
SYNTAX_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GENERATION_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for C195_COMPLETE_RUN 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_i_dokar | TYPE ESTLS-DOKAR, " | |||
| lt_e_struct_tab | TYPE STANDARD TABLE OF RCGLSIOT, " | |||
| lv_syntax_error | TYPE RCGLSIOT, " | |||
| lv_e_generation_ok | TYPE RCGSTDIOT-MARKFLG, " | |||
| lv_i_val_date | TYPE ESTRH-VALFR, " SY-DATUM | |||
| lv_i_last_ver_date | TYPE ESTRH-VALFR, " | |||
| lv_i_mark_changes | TYPE RCGSTDIOT-MARKFLG, " SPACE | |||
| lv_i_doknr | TYPE ESTLS-DOKNR, " | |||
| lv_e_syntax_ok | TYPE ESTLS-LSYEFLG, " | |||
| lv_generation_error | TYPE ESTLS, " | |||
| lt_e_check_result_tab | TYPE STANDARD TABLE OF TLINE, " | |||
| lv_i_dokvr | TYPE ESTLS-DOKVR, " | |||
| lt_e_value_tab | TYPE STANDARD TABLE OF TLINE, " | |||
| lv_i_doktl | TYPE ESTLS-DOKTL, " | |||
| lv_i_textname | TYPE THEAD-TDNAME, " | |||
| lv_i_estlp | TYPE RCGLPIOT, " | |||
| lv_i_subid | TYPE ESTRH-RECN, " | |||
| lv_i_rtime_from | TYPE TCGA6-LSYRTIM, " 1 | |||
| lv_i_rtime_to | TYPE TCGA6-LSYRTIM. " 99 |
|   CALL FUNCTION 'C195_COMPLETE_RUN' " |
| EXPORTING | ||
| I_DOKAR | = lv_i_dokar | |
| I_VAL_DATE | = lv_i_val_date | |
| I_LAST_VER_DATE | = lv_i_last_ver_date | |
| I_MARK_CHANGES | = lv_i_mark_changes | |
| I_DOKNR | = lv_i_doknr | |
| I_DOKVR | = lv_i_dokvr | |
| I_DOKTL | = lv_i_doktl | |
| I_TEXTNAME | = lv_i_textname | |
| I_ESTLP | = lv_i_estlp | |
| I_SUBID | = lv_i_subid | |
| I_RTIME_FROM | = lv_i_rtime_from | |
| I_RTIME_TO | = lv_i_rtime_to | |
| IMPORTING | ||
| E_GENERATION_OK | = lv_e_generation_ok | |
| E_SYNTAX_OK | = lv_e_syntax_ok | |
| TABLES | ||
| E_STRUCT_TAB | = lt_e_struct_tab | |
| E_CHECK_RESULT_TAB | = lt_e_check_result_tab | |
| E_VALUE_TAB | = lt_e_value_tab | |
| EXCEPTIONS | ||
| SYNTAX_ERROR = 1 | ||
| GENERATION_ERROR = 2 | ||
| . " C195_COMPLETE_RUN | ||
ABAP code using 7.40 inline data declarations to call FM C195_COMPLETE_RUN
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.| "SELECT single DOKAR FROM ESTLS INTO @DATA(ld_i_dokar). | ||||
| "SELECT single MARKFLG FROM RCGSTDIOT INTO @DATA(ld_e_generation_ok). | ||||
| "SELECT single VALFR FROM ESTRH INTO @DATA(ld_i_val_date). | ||||
| DATA(ld_i_val_date) | = SY-DATUM. | |||
| "SELECT single VALFR FROM ESTRH INTO @DATA(ld_i_last_ver_date). | ||||
| "SELECT single MARKFLG FROM RCGSTDIOT INTO @DATA(ld_i_mark_changes). | ||||
| DATA(ld_i_mark_changes) | = ' '. | |||
| "SELECT single DOKNR FROM ESTLS INTO @DATA(ld_i_doknr). | ||||
| "SELECT single LSYEFLG FROM ESTLS INTO @DATA(ld_e_syntax_ok). | ||||
| "SELECT single DOKVR FROM ESTLS INTO @DATA(ld_i_dokvr). | ||||
| "SELECT single DOKTL FROM ESTLS INTO @DATA(ld_i_doktl). | ||||
| "SELECT single TDNAME FROM THEAD INTO @DATA(ld_i_textname). | ||||
| "SELECT single RECN FROM ESTRH INTO @DATA(ld_i_subid). | ||||
| "SELECT single LSYRTIM FROM TCGA6 INTO @DATA(ld_i_rtime_from). | ||||
| DATA(ld_i_rtime_from) | = 1. | |||
| "SELECT single LSYRTIM FROM TCGA6 INTO @DATA(ld_i_rtime_to). | ||||
| DATA(ld_i_rtime_to) | = 99. | |||
Search for further information about these or an SAP related objects