SAP OIUOW_ORE_OWNERSHIP_UPDATE Function Module for OIUOW: ORP Retrieve all DOI data
OIUOW_ORE_OWNERSHIP_UPDATE is a standard oiuow ore ownership update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for OIUOW: ORP Retrieve all DOI data 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 oiuow ore ownership update FM, simply by entering the name OIUOW_ORE_OWNERSHIP_UPDATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIUOW_ORE_REQUEST_DATA
Program Name: SAPLOIUOW_ORE_REQUEST_DATA
Main Program: SAPLOIUOW_ORE_REQUEST_DATA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIUOW_ORE_OWNERSHIP_UPDATE 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 'OIUOW_ORE_OWNERSHIP_UPDATE'"OIUOW: ORP Retrieve all DOI data.
TABLES
E_DO_WK = "Maintenance Structure: OIU_DO_DO
E_INTOH_WK = "Maint. Structure: Reds/Escheat Interace Header
E_INTOD_WK = "Maint. Structure: Reds/Escheat Interace Detail
E_DODO_WK = "Maint. Structure: DOI Owner Print table
E_MKEX_WK = "Maint. Structure: Marketing Cost Exemption
E_DOEX_WK = "Maint. Structure: Owner State Tax Exemption
E_DOACC_WK = "Maint. Structure: Owner Override Accounting Codes
E_DTCH = "Maintenance Structure : OIUOW_DTCH
E_DTCS = "Maintenance Structure: OIUOW_DTCS
E_POW = "Maintenance Structure: Pending Owner requests
E_DORH = "Maint. structure: DO Owner Request History
E_BGUC_WK = "E&P Maintenance Structure: OIU_DO_BGUC
E_DOH = "Maint. Structure: Ownership History
E_RTCH = "Maint. Structure: RD DOI Transfer Change Header
E_RTD = "Maint. Structure: RD DOI Transfer Change Detail
E_BR_WK = "E&P Maintenance Structure: OIU_DO_BR
E_DPIC_WK = "Maint. Structure: DOI Product Interest Control
E_DPUC_WK = "Maint. Structure: DOI Product Use Control
E_SSH_WK = "Maint. Structure: Sliding Scale Header
E_OSS_WK = "Maint. Structure: Owner Sliding Scale
E_ESTDT_WK = "Maint. Structure: Escheat Transfer dates
E_RETDT_WK = "Maint. Structure: Reds Transfer dates
EXCEPTIONS
NOT_FOUND = 1 CANNOT_INSERT = 2 DUPLICATE_KEY = 3
TABLES Parameters details for OIUOW_ORE_OWNERSHIP_UPDATE
E_DO_WK - Maintenance Structure: OIU_DO_DO
Data type: ROIU_DO_DOOptional: No
Call by Reference: No ( called with pass by value option)
E_INTOH_WK - Maint. Structure: Reds/Escheat Interace Header
Data type: ROIUOW_INTOHOptional: No
Call by Reference: No ( called with pass by value option)
E_INTOD_WK - Maint. Structure: Reds/Escheat Interace Detail
Data type: ROIUOW_INTODOptional: No
Call by Reference: No ( called with pass by value option)
E_DODO_WK - Maint. Structure: DOI Owner Print table
Data type: ROIUOW_DODOOptional: No
Call by Reference: No ( called with pass by value option)
E_MKEX_WK - Maint. Structure: Marketing Cost Exemption
Data type: ROIUOW_MKEXOptional: No
Call by Reference: No ( called with pass by value option)
E_DOEX_WK - Maint. Structure: Owner State Tax Exemption
Data type: ROIUOW_DOEXOptional: No
Call by Reference: No ( called with pass by value option)
E_DOACC_WK - Maint. Structure: Owner Override Accounting Codes
Data type: ROIUOW_DOACCOptional: No
Call by Reference: No ( called with pass by value option)
E_DTCH - Maintenance Structure : OIUOW_DTCH
Data type: ROIUOW_DTCHOptional: No
Call by Reference: No ( called with pass by value option)
E_DTCS - Maintenance Structure: OIUOW_DTCS
Data type: ROIUOW_DTCSOptional: No
Call by Reference: No ( called with pass by value option)
E_POW - Maintenance Structure: Pending Owner requests
Data type: ROIUOW_POWOptional: No
Call by Reference: No ( called with pass by value option)
E_DORH - Maint. structure: DO Owner Request History
Data type: ROIUOW_DORHOptional: No
Call by Reference: No ( called with pass by value option)
E_BGUC_WK - E&P Maintenance Structure: OIU_DO_BGUC
Data type: ROIU_DO_BGUCOptional: No
Call by Reference: No ( called with pass by value option)
E_DOH - Maint. Structure: Ownership History
Data type: ROIUOW_DOHOptional: No
Call by Reference: Yes
E_RTCH - Maint. Structure: RD DOI Transfer Change Header
Data type: OIUOW_RTCHOptional: No
Call by Reference: Yes
E_RTD - Maint. Structure: RD DOI Transfer Change Detail
Data type: OIUOW_RTDOptional: No
Call by Reference: Yes
E_BR_WK - E&P Maintenance Structure: OIU_DO_BR
Data type: ROIU_DO_BROptional: No
Call by Reference: No ( called with pass by value option)
E_DPIC_WK - Maint. Structure: DOI Product Interest Control
Data type: ROIUOW_DO_DPICOptional: No
Call by Reference: No ( called with pass by value option)
E_DPUC_WK - Maint. Structure: DOI Product Use Control
Data type: ROIUOW_DO_DPUCOptional: No
Call by Reference: No ( called with pass by value option)
E_SSH_WK - Maint. Structure: Sliding Scale Header
Data type: ROIUOW_SSHOptional: No
Call by Reference: No ( called with pass by value option)
E_OSS_WK - Maint. Structure: Owner Sliding Scale
Data type: ROIUOW_OSSOptional: No
Call by Reference: No ( called with pass by value option)
E_ESTDT_WK - Maint. Structure: Escheat Transfer dates
Data type: ROIUOW_ESTDTOptional: No
Call by Reference: No ( called with pass by value option)
E_RETDT_WK - Maint. Structure: Reds Transfer dates
Data type: ROIUOW_RETDTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - Entry for deletion not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CANNOT_INSERT - Can't insert entry - it already exists
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DUPLICATE_KEY - More than one record found for unique key
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OIUOW_ORE_OWNERSHIP_UPDATE 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: | ||||
| lt_e_do_wk | TYPE STANDARD TABLE OF ROIU_DO_DO, " | |||
| lv_not_found | TYPE ROIU_DO_DO, " | |||
| lt_e_intoh_wk | TYPE STANDARD TABLE OF ROIUOW_INTOH, " | |||
| lt_e_intod_wk | TYPE STANDARD TABLE OF ROIUOW_INTOD, " | |||
| lt_e_dodo_wk | TYPE STANDARD TABLE OF ROIUOW_DODO, " | |||
| lt_e_mkex_wk | TYPE STANDARD TABLE OF ROIUOW_MKEX, " | |||
| lt_e_doex_wk | TYPE STANDARD TABLE OF ROIUOW_DOEX, " | |||
| lt_e_doacc_wk | TYPE STANDARD TABLE OF ROIUOW_DOACC, " | |||
| lt_e_dtch | TYPE STANDARD TABLE OF ROIUOW_DTCH, " | |||
| lt_e_dtcs | TYPE STANDARD TABLE OF ROIUOW_DTCS, " | |||
| lt_e_pow | TYPE STANDARD TABLE OF ROIUOW_POW, " | |||
| lt_e_dorh | TYPE STANDARD TABLE OF ROIUOW_DORH, " | |||
| lt_e_bguc_wk | TYPE STANDARD TABLE OF ROIU_DO_BGUC, " | |||
| lv_cannot_insert | TYPE ROIU_DO_BGUC, " | |||
| lt_e_doh | TYPE STANDARD TABLE OF ROIUOW_DOH, " | |||
| lt_e_rtch | TYPE STANDARD TABLE OF OIUOW_RTCH, " | |||
| lt_e_rtd | TYPE STANDARD TABLE OF OIUOW_RTD, " | |||
| lt_e_br_wk | TYPE STANDARD TABLE OF ROIU_DO_BR, " | |||
| lv_duplicate_key | TYPE ROIU_DO_BR, " | |||
| lt_e_dpic_wk | TYPE STANDARD TABLE OF ROIUOW_DO_DPIC, " | |||
| lt_e_dpuc_wk | TYPE STANDARD TABLE OF ROIUOW_DO_DPUC, " | |||
| lt_e_ssh_wk | TYPE STANDARD TABLE OF ROIUOW_SSH, " | |||
| lt_e_oss_wk | TYPE STANDARD TABLE OF ROIUOW_OSS, " | |||
| lt_e_estdt_wk | TYPE STANDARD TABLE OF ROIUOW_ESTDT, " | |||
| lt_e_retdt_wk | TYPE STANDARD TABLE OF ROIUOW_RETDT. " |
|   CALL FUNCTION 'OIUOW_ORE_OWNERSHIP_UPDATE' "OIUOW: ORP Retrieve all DOI data |
| TABLES | ||
| E_DO_WK | = lt_e_do_wk | |
| E_INTOH_WK | = lt_e_intoh_wk | |
| E_INTOD_WK | = lt_e_intod_wk | |
| E_DODO_WK | = lt_e_dodo_wk | |
| E_MKEX_WK | = lt_e_mkex_wk | |
| E_DOEX_WK | = lt_e_doex_wk | |
| E_DOACC_WK | = lt_e_doacc_wk | |
| E_DTCH | = lt_e_dtch | |
| E_DTCS | = lt_e_dtcs | |
| E_POW | = lt_e_pow | |
| E_DORH | = lt_e_dorh | |
| E_BGUC_WK | = lt_e_bguc_wk | |
| E_DOH | = lt_e_doh | |
| E_RTCH | = lt_e_rtch | |
| E_RTD | = lt_e_rtd | |
| E_BR_WK | = lt_e_br_wk | |
| E_DPIC_WK | = lt_e_dpic_wk | |
| E_DPUC_WK | = lt_e_dpuc_wk | |
| E_SSH_WK | = lt_e_ssh_wk | |
| E_OSS_WK | = lt_e_oss_wk | |
| E_ESTDT_WK | = lt_e_estdt_wk | |
| E_RETDT_WK | = lt_e_retdt_wk | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| CANNOT_INSERT = 2 | ||
| DUPLICATE_KEY = 3 | ||
| . " OIUOW_ORE_OWNERSHIP_UPDATE | ||
ABAP code using 7.40 inline data declarations to call FM OIUOW_ORE_OWNERSHIP_UPDATE
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