SAP OIURV_UPDATE_BATCH_NUMBER Function Module for Update Sequential Batch Number in VL Doc Tables









OIURV_UPDATE_BATCH_NUMBER is a standard oiurv update batch number SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update Sequential Batch Number in VL Doc Tables 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 oiurv update batch number FM, simply by entering the name OIURV_UPDATE_BATCH_NUMBER into the relevant SAP transaction such as SE37 or SE38.

Function Group: OIURV_BATCH_CONTROL
Program Name: SAPLOIURV_BATCH_CONTROL
Main Program: SAPLOIURV_BATCH_CONTROL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function OIURV_UPDATE_BATCH_NUMBER 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 'OIURV_UPDATE_BATCH_NUMBER'"Update Sequential Batch Number in VL Doc Tables
EXPORTING
P_TABNAME = "Batch Control Number Type Code
* P_DOC_NO = "E&P volumes document number
* P_DOC_YEAR = "Document year

TABLES
P_VLTXNS_TB = "Valuation Transactions Level 1 - Vltxns
P_VLTXNS4M_TB = "Valuation Tax Marketing Detail
P_TFRMLAU_TB = "Valuation Formula Alternate Use
P_RUNTKT_TB = "Valuation Transaction - Run Ticket
P_ZEROVOL_TB = "Valuation Transactions Level 1 - Zero Volume
P_JEINTF_TB = "Revenue Document Concept - JEINTF temp table
P_VLTXNS2_TB = "Valuation Transaction Level 2 -Volume
P_VLTXNS2U_TB = "Valuation Document Concept - Volume Unit
P_VLTXNS3_TB = "Valuation Transaction Level 3 - Formula
P_VLTXNS3M_TB = "Valuation Transactions Level 3 - Marketing Detail
P_VLTXNS3T_TB = "Valuation Transactions Level 3 - Formula Tax Detail
P_VLTXNS4_TB = "Valuation Tax Header
P_VLTXNS4E_TB = "Valuation Tax Exempt Detail
P_VLTXNS4D_TB = "Valuation Tax Master Detail

EXCEPTIONS
IO_ERROR = 1
.



IMPORTING Parameters details for OIURV_UPDATE_BATCH_NUMBER

P_TABNAME - Batch Control Number Type Code

Data type: OIU_CM_SN_NR-TABNAME
Optional: No
Call by Reference: No ( called with pass by value option)

P_DOC_NO - E&P volumes document number

Data type: OIURV_DOC_DTL_BK-DOC_NO
Optional: Yes
Call by Reference: Yes

P_DOC_YEAR - Document year

Data type: OIURV_DOC_DTL_BK-DOC_YEAR
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for OIURV_UPDATE_BATCH_NUMBER

P_VLTXNS_TB - Valuation Transactions Level 1 - Vltxns

Data type: OIURV_DOC_DTL_BK
Optional: No
Call by Reference: Yes

P_VLTXNS4M_TB - Valuation Tax Marketing Detail

Data type: OIURV_DOC_TAXMKT
Optional: No
Call by Reference: Yes

P_TFRMLAU_TB - Valuation Formula Alternate Use

Data type: OIURV_DOC_FRMLAU
Optional: No
Call by Reference: Yes

P_RUNTKT_TB - Valuation Transaction - Run Ticket

Data type: OIURV_DOC_RUNTKT
Optional: No
Call by Reference: Yes

P_ZEROVOL_TB - Valuation Transactions Level 1 - Zero Volume

Data type: OIURV_DOC_DTL_ZE
Optional: No
Call by Reference: Yes

P_JEINTF_TB - Revenue Document Concept - JEINTF temp table

Data type: OIURV_DOC_JEINTF
Optional: No
Call by Reference: Yes

P_VLTXNS2_TB - Valuation Transaction Level 2 -Volume

Data type: OIURV_DOC_VOLDTL
Optional: No
Call by Reference: Yes

P_VLTXNS2U_TB - Valuation Document Concept - Volume Unit

Data type: OIURV_DOC_VOLUNT
Optional: No
Call by Reference: Yes

P_VLTXNS3_TB - Valuation Transaction Level 3 - Formula

Data type: OIURV_DOC_FRMHDR
Optional: No
Call by Reference: Yes

P_VLTXNS3M_TB - Valuation Transactions Level 3 - Marketing Detail

Data type: OIURV_DOC_FRMMKT
Optional: No
Call by Reference: Yes

P_VLTXNS3T_TB - Valuation Transactions Level 3 - Formula Tax Detail

Data type: OIURV_DOC_FRMTAX
Optional: No
Call by Reference: Yes

P_VLTXNS4_TB - Valuation Tax Header

Data type: OIURV_DOC_TAXHDR
Optional: No
Call by Reference: Yes

P_VLTXNS4E_TB - Valuation Tax Exempt Detail

Data type: OIURV_DOC_TAXEMP
Optional: No
Call by Reference: Yes

P_VLTXNS4D_TB - Valuation Tax Master Detail

Data type: OIURV_DOC_TAXDTL
Optional: No
Call by Reference: Yes

EXCEPTIONS details

IO_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIURV_UPDATE_BATCH_NUMBER 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_io_error  TYPE STRING, "   
lv_p_tabname  TYPE OIU_CM_SN_NR-TABNAME, "   
lt_p_vltxns_tb  TYPE STANDARD TABLE OF OIURV_DOC_DTL_BK, "   
lt_p_vltxns4m_tb  TYPE STANDARD TABLE OF OIURV_DOC_TAXMKT, "   
lt_p_tfrmlau_tb  TYPE STANDARD TABLE OF OIURV_DOC_FRMLAU, "   
lt_p_runtkt_tb  TYPE STANDARD TABLE OF OIURV_DOC_RUNTKT, "   
lt_p_zerovol_tb  TYPE STANDARD TABLE OF OIURV_DOC_DTL_ZE, "   
lt_p_jeintf_tb  TYPE STANDARD TABLE OF OIURV_DOC_JEINTF, "   
lv_p_doc_no  TYPE OIURV_DOC_DTL_BK-DOC_NO, "   
lt_p_vltxns2_tb  TYPE STANDARD TABLE OF OIURV_DOC_VOLDTL, "   
lv_p_doc_year  TYPE OIURV_DOC_DTL_BK-DOC_YEAR, "   
lt_p_vltxns2u_tb  TYPE STANDARD TABLE OF OIURV_DOC_VOLUNT, "   
lt_p_vltxns3_tb  TYPE STANDARD TABLE OF OIURV_DOC_FRMHDR, "   
lt_p_vltxns3m_tb  TYPE STANDARD TABLE OF OIURV_DOC_FRMMKT, "   
lt_p_vltxns3t_tb  TYPE STANDARD TABLE OF OIURV_DOC_FRMTAX, "   
lt_p_vltxns4_tb  TYPE STANDARD TABLE OF OIURV_DOC_TAXHDR, "   
lt_p_vltxns4e_tb  TYPE STANDARD TABLE OF OIURV_DOC_TAXEMP, "   
lt_p_vltxns4d_tb  TYPE STANDARD TABLE OF OIURV_DOC_TAXDTL. "   

  CALL FUNCTION 'OIURV_UPDATE_BATCH_NUMBER'  "Update Sequential Batch Number in VL Doc Tables
    EXPORTING
         P_TABNAME = lv_p_tabname
         P_DOC_NO = lv_p_doc_no
         P_DOC_YEAR = lv_p_doc_year
    TABLES
         P_VLTXNS_TB = lt_p_vltxns_tb
         P_VLTXNS4M_TB = lt_p_vltxns4m_tb
         P_TFRMLAU_TB = lt_p_tfrmlau_tb
         P_RUNTKT_TB = lt_p_runtkt_tb
         P_ZEROVOL_TB = lt_p_zerovol_tb
         P_JEINTF_TB = lt_p_jeintf_tb
         P_VLTXNS2_TB = lt_p_vltxns2_tb
         P_VLTXNS2U_TB = lt_p_vltxns2u_tb
         P_VLTXNS3_TB = lt_p_vltxns3_tb
         P_VLTXNS3M_TB = lt_p_vltxns3m_tb
         P_VLTXNS3T_TB = lt_p_vltxns3t_tb
         P_VLTXNS4_TB = lt_p_vltxns4_tb
         P_VLTXNS4E_TB = lt_p_vltxns4e_tb
         P_VLTXNS4D_TB = lt_p_vltxns4d_tb
    EXCEPTIONS
        IO_ERROR = 1
. " OIURV_UPDATE_BATCH_NUMBER




ABAP code using 7.40 inline data declarations to call FM OIURV_UPDATE_BATCH_NUMBER

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 TABNAME FROM OIU_CM_SN_NR INTO @DATA(ld_p_tabname).
 
 
 
 
 
 
 
"SELECT single DOC_NO FROM OIURV_DOC_DTL_BK INTO @DATA(ld_p_doc_no).
 
 
"SELECT single DOC_YEAR FROM OIURV_DOC_DTL_BK INTO @DATA(ld_p_doc_year).
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!