SAP OIUREP_ADD_DATA_WC Function Module for Regulatory Reporting Additional Master Data WC Level
OIUREP_ADD_DATA_WC is a standard oiurep add data wc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Regulatory Reporting Additional Master Data WC Level 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 oiurep add data wc FM, simply by entering the name OIUREP_ADD_DATA_WC into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIUREP_ADD_DATA
Program Name: SAPLOIUREP_ADD_DATA
Main Program: SAPLOIUREP_ADD_DATA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIUREP_ADD_DATA_WC 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 'OIUREP_ADD_DATA_WC'"Regulatory Reporting Additional Master Data WC Level.
EXPORTING
I_TABNAME = "Table name
I_WL_NO = "Well ID number
* I_WC_NO = "Well Completion Number
* I_PRD_DT = "Production date
* I_CHECK_ONLY = "Only perform check for table and keys.
TABLES
T_OUT_FIELDS = "Regulatory Reporting Additional Master Data Structure
EXCEPTIONS
INVALID_TABLE_ERROR = 1 NO_WL_NO_KEY_ERROR = 2 NO_DATA_FOUND = 3 INVALID_FIELD_ERROR = 4
IMPORTING Parameters details for OIUREP_ADD_DATA_WC
I_TABNAME - Table name
Data type: TABNAMEOptional: No
Call by Reference: Yes
I_WL_NO - Well ID number
Data type: OIU_WL_NOOptional: No
Call by Reference: Yes
I_WC_NO - Well Completion Number
Data type: OIU_WC_NOOptional: Yes
Call by Reference: Yes
I_PRD_DT - Production date
Data type: OIU_PRD_DTOptional: Yes
Call by Reference: Yes
I_CHECK_ONLY - Only perform check for table and keys.
Data type:Optional: Yes
Call by Reference: Yes
TABLES Parameters details for OIUREP_ADD_DATA_WC
T_OUT_FIELDS - Regulatory Reporting Additional Master Data Structure
Data type: ROIUREP_ADD_DATAOptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_TABLE_ERROR - Table name sent as parameter is not valid.
Data type:Optional: No
Call by Reference: Yes
NO_WL_NO_KEY_ERROR - Well Number (OIU_WL_NO) is not a key to the table.
Data type:Optional: No
Call by Reference: Yes
NO_DATA_FOUND - No data found in the table that met selection criteria.
Data type:Optional: No
Call by Reference: Yes
INVALID_FIELD_ERROR - Field in out table not found in table.
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OIUREP_ADD_DATA_WC 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_tabname | TYPE TABNAME, " | |||
| lt_t_out_fields | TYPE STANDARD TABLE OF ROIUREP_ADD_DATA, " | |||
| lv_invalid_table_error | TYPE ROIUREP_ADD_DATA, " | |||
| lv_i_wl_no | TYPE OIU_WL_NO, " | |||
| lv_no_wl_no_key_error | TYPE OIU_WL_NO, " | |||
| lv_i_wc_no | TYPE OIU_WC_NO, " | |||
| lv_no_data_found | TYPE OIU_WC_NO, " | |||
| lv_i_prd_dt | TYPE OIU_PRD_DT, " | |||
| lv_invalid_field_error | TYPE OIU_PRD_DT, " | |||
| lv_i_check_only | TYPE OIU_PRD_DT. " |
|   CALL FUNCTION 'OIUREP_ADD_DATA_WC' "Regulatory Reporting Additional Master Data WC Level |
| EXPORTING | ||
| I_TABNAME | = lv_i_tabname | |
| I_WL_NO | = lv_i_wl_no | |
| I_WC_NO | = lv_i_wc_no | |
| I_PRD_DT | = lv_i_prd_dt | |
| I_CHECK_ONLY | = lv_i_check_only | |
| TABLES | ||
| T_OUT_FIELDS | = lt_t_out_fields | |
| EXCEPTIONS | ||
| INVALID_TABLE_ERROR = 1 | ||
| NO_WL_NO_KEY_ERROR = 2 | ||
| NO_DATA_FOUND = 3 | ||
| INVALID_FIELD_ERROR = 4 | ||
| . " OIUREP_ADD_DATA_WC | ||
ABAP code using 7.40 inline data declarations to call FM OIUREP_ADD_DATA_WC
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