SAP OIUYC_ROY_CONVERT_JE Function Module for Split State Royalty Journal Entries to Well level









OIUYC_ROY_CONVERT_JE is a standard oiuyc roy convert je SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Split State Royalty Journal Entries to Well 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 oiuyc roy convert je FM, simply by entering the name OIUYC_ROY_CONVERT_JE into the relevant SAP transaction such as SE37 or SE38.

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



Function OIUYC_ROY_CONVERT_JE 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 'OIUYC_ROY_CONVERT_JE'"Split State Royalty Journal Entries to Well level
EXPORTING
P_TABNAME = "Logical Table Name
P_DOC_NO = "volumes document number
P_DOC_YEAR = "Document year
* P_MIG_FL = "
* P_DOC_SD = "

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 = "PRA Journal Entries
* P_WL_JEINTF_TB = "PRA Journal Entries
* P_BA_RPTID = "Royalty 2.0 - Report ID Owner Cross Reference
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
FAILED = 1
.



IMPORTING Parameters details for OIUYC_ROY_CONVERT_JE

P_TABNAME - Logical Table Name

Data type: OIU_CM_SN_NR-TABNAME
Optional: No
Call by Reference: Yes

P_DOC_NO - volumes document number

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

P_DOC_YEAR - Document year

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

P_MIG_FL -

Data type: C
Optional: Yes
Call by Reference: Yes

P_DOC_SD -

Data type: C
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for OIUYC_ROY_CONVERT_JE

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 - PRA Journal Entries

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

P_WL_JEINTF_TB - PRA Journal Entries

Data type: OIUYC_DOC_JEINTF
Optional: Yes
Call by Reference: Yes

P_BA_RPTID - Royalty 2.0 - Report ID Owner Cross Reference

Data type: OIUYC_BA_RPTID
Optional: Yes
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

FAILED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIUYC_ROY_CONVERT_JE 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_failed  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, "   
lt_p_wl_jeintf_tb  TYPE STANDARD TABLE OF OIUYC_DOC_JEINTF, "   
lt_p_ba_rptid  TYPE STANDARD TABLE OF OIUYC_BA_RPTID, "   
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, "   
lv_p_mig_fl  TYPE C, "   
lt_p_vltxns3_tb  TYPE STANDARD TABLE OF OIURV_DOC_FRMHDR, "   
lv_p_doc_sd  TYPE C, "   
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 'OIUYC_ROY_CONVERT_JE'  "Split State Royalty Journal Entries to Well level
    EXPORTING
         P_TABNAME = lv_p_tabname
         P_DOC_NO = lv_p_doc_no
         P_DOC_YEAR = lv_p_doc_year
         P_MIG_FL = lv_p_mig_fl
         P_DOC_SD = lv_p_doc_sd
    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_WL_JEINTF_TB = lt_p_wl_jeintf_tb
         P_BA_RPTID = lt_p_ba_rptid
         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
        FAILED = 1
. " OIUYC_ROY_CONVERT_JE




ABAP code using 7.40 inline data declarations to call FM OIUYC_ROY_CONVERT_JE

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!