SAP OIU_VA_ALLOC_BEGIN_INVENTORY Function Module for
OIU_VA_ALLOC_BEGIN_INVENTORY is a standard oiu va alloc begin inventory 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 oiu va alloc begin inventory FM, simply by entering the name OIU_VA_ALLOC_BEGIN_INVENTORY into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIU_VA_PROCESS_INVENTORY
Program Name: SAPLOIU_VA_PROCESS_INVENTORY
Main Program: SAPLOIU_VA_PROCESS_INVENTORY
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIU_VA_ALLOC_BEGIN_INVENTORY 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 'OIU_VA_ALLOC_BEGIN_INVENTORY'".
TABLES
T_REQUEST = "Request
* T_CMNGLD = "Comingled Parent/Child Well completions
T_TWCTV = "Volume Allocation Temporary WC Theorectical Volumes
T_DNAP = "Network profile
T_NTWKMP = "Measurement point
T_MPAP = "Measurement point profile
T_NTWKWC = "Well completion
T_WCAP = "Well completion profile
T_TMPVL = "temp. MP volumes
T_TWCAV = "Trace rpt data
T_PAM = "Volume Allocation Gas Plant Plant Allocation Methods
EXCEPTIONS
FATAL_ERROR = 1
TABLES Parameters details for OIU_VA_ALLOC_BEGIN_INVENTORY
T_REQUEST - Request
Data type: ROIU_PR_REQUESTOptional: No
Call by Reference: Yes
T_CMNGLD - Comingled Parent/Child Well completions
Data type: ROIU_PR_CMNGLDOptional: Yes
Call by Reference: Yes
T_TWCTV - Volume Allocation Temporary WC Theorectical Volumes
Data type: ROIU_PR_TWCTVOptional: No
Call by Reference: Yes
T_DNAP - Network profile
Data type: ROIU_PR_DNAPOptional: No
Call by Reference: Yes
T_NTWKMP - Measurement point
Data type: ROIU_PR_NTWKMPOptional: No
Call by Reference: Yes
T_MPAP - Measurement point profile
Data type: ROIU_PR_MPAPOptional: No
Call by Reference: Yes
T_NTWKWC - Well completion
Data type: ROIU_PR_NTWKWCOptional: No
Call by Reference: Yes
T_WCAP - Well completion profile
Data type: ROIU_PR_WCAPOptional: No
Call by Reference: Yes
T_TMPVL - temp. MP volumes
Data type: ROIU_PR_TMPVLOptional: No
Call by Reference: Yes
T_TWCAV - Trace rpt data
Data type: ROIU_PR_TWCAVOptional: No
Call by Reference: Yes
T_PAM - Volume Allocation Gas Plant Plant Allocation Methods
Data type: ROIU_PR_PAMOptional: No
Call by Reference: Yes
EXCEPTIONS details
FATAL_ERROR - Stop processing
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OIU_VA_ALLOC_BEGIN_INVENTORY 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_t_request | TYPE STANDARD TABLE OF ROIU_PR_REQUEST, " | |||
| lv_fatal_error | TYPE ROIU_PR_REQUEST, " | |||
| lt_t_cmngld | TYPE STANDARD TABLE OF ROIU_PR_CMNGLD, " | |||
| lt_t_twctv | TYPE STANDARD TABLE OF ROIU_PR_TWCTV, " | |||
| lt_t_dnap | TYPE STANDARD TABLE OF ROIU_PR_DNAP, " | |||
| lt_t_ntwkmp | TYPE STANDARD TABLE OF ROIU_PR_NTWKMP, " | |||
| lt_t_mpap | TYPE STANDARD TABLE OF ROIU_PR_MPAP, " | |||
| lt_t_ntwkwc | TYPE STANDARD TABLE OF ROIU_PR_NTWKWC, " | |||
| lt_t_wcap | TYPE STANDARD TABLE OF ROIU_PR_WCAP, " | |||
| lt_t_tmpvl | TYPE STANDARD TABLE OF ROIU_PR_TMPVL, " | |||
| lt_t_twcav | TYPE STANDARD TABLE OF ROIU_PR_TWCAV, " | |||
| lt_t_pam | TYPE STANDARD TABLE OF ROIU_PR_PAM. " |
|   CALL FUNCTION 'OIU_VA_ALLOC_BEGIN_INVENTORY' " |
| TABLES | ||
| T_REQUEST | = lt_t_request | |
| T_CMNGLD | = lt_t_cmngld | |
| T_TWCTV | = lt_t_twctv | |
| T_DNAP | = lt_t_dnap | |
| T_NTWKMP | = lt_t_ntwkmp | |
| T_MPAP | = lt_t_mpap | |
| T_NTWKWC | = lt_t_ntwkwc | |
| T_WCAP | = lt_t_wcap | |
| T_TMPVL | = lt_t_tmpvl | |
| T_TWCAV | = lt_t_twcav | |
| T_PAM | = lt_t_pam | |
| EXCEPTIONS | ||
| FATAL_ERROR = 1 | ||
| . " OIU_VA_ALLOC_BEGIN_INVENTORY | ||
ABAP code using 7.40 inline data declarations to call FM OIU_VA_ALLOC_BEGIN_INVENTORY
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