SAP Function Modules

OIURV_EDIT_VALIDATIONS SAP Function module - Check the validity of the data.







OIURV_EDIT_VALIDATIONS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name OIURV_EDIT_VALIDATIONS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: OIURV_EDIT_VALIDATIONS
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM OIURV_EDIT_VALIDATIONS - OIURV EDIT VALIDATIONS





CALL FUNCTION 'OIURV_EDIT_VALIDATIONS' "Check the validity of the data.
  TABLES
    p_vlrvs_tb =                " oiurv_doc_dtl_rv  Valuation Reversal Notificaton
    p_vltxns_tb =               " oiurv_doc_dtl_bk  Valuation Transactions Level 1 - Vltxns
    p_vltxns2_tb =              " oiurv_doc_voldtl  Valuation Transaction Level 2 -Volume
    p_vltxns2u_tb =             " oiurv_doc_volunt  Valuation Document Concept - Volume Unit
    p_vltxns3_tb =              " oiurv_doc_frmhdr  Valuation Transaction Level 3 - Formula
    p_vltxns3m_tb =             " oiurv_doc_frmmkt  Valuation Transactions Level 3 - Marketing Detail
    p_vltxns3t_tb =             " oiurv_doc_frmtax  Valuation Transactions Level 3 - Formula Tax Detail
    p_vltxns4_tb =              " oiurv_doc_taxhdr  Valuation Tax Header
    p_vltxns4d_tb =             " oiurv_doc_taxdtl  Valuation Tax Master Detail
    p_vltxns4e_tb =             " oiurv_doc_taxemp  Valuation Tax Exempt Detail
    p_vltxns4m_tb =             " oiurv_doc_taxmkt  Valuation Tax Master Detail
    p_tfrmlau_tb =              " oiurv_doc_frmlau  Valuation Formula Alternate Use
    p_runtkt_tb =               " oiurv_doc_runtkt  Valuation Transaction - Run Ticket
    p_zerovol_tb =              " oiurv_doc_dtl_ze  Zero Volume
  EXCEPTIONS
    IO_ERROR = 1                "               Raise an error to the calling program.
    .  "  OIURV_EDIT_VALIDATIONS

ABAP code example for Function Module OIURV_EDIT_VALIDATIONS





The ABAP code below is a full code listing to execute function module OIURV_EDIT_VALIDATIONS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_p_vlrvs_tb  TYPE STANDARD TABLE OF OIURV_DOC_DTL_RV,"TABLES PARAM
wa_p_vlrvs_tb  LIKE LINE OF it_p_vlrvs_tb ,
it_p_vltxns_tb  TYPE STANDARD TABLE OF OIURV_DOC_DTL_BK,"TABLES PARAM
wa_p_vltxns_tb  LIKE LINE OF it_p_vltxns_tb ,
it_p_vltxns2_tb  TYPE STANDARD TABLE OF OIURV_DOC_VOLDTL,"TABLES PARAM
wa_p_vltxns2_tb  LIKE LINE OF it_p_vltxns2_tb ,
it_p_vltxns2u_tb  TYPE STANDARD TABLE OF OIURV_DOC_VOLUNT,"TABLES PARAM
wa_p_vltxns2u_tb  LIKE LINE OF it_p_vltxns2u_tb ,
it_p_vltxns3_tb  TYPE STANDARD TABLE OF OIURV_DOC_FRMHDR,"TABLES PARAM
wa_p_vltxns3_tb  LIKE LINE OF it_p_vltxns3_tb ,
it_p_vltxns3m_tb  TYPE STANDARD TABLE OF OIURV_DOC_FRMMKT,"TABLES PARAM
wa_p_vltxns3m_tb  LIKE LINE OF it_p_vltxns3m_tb ,
it_p_vltxns3t_tb  TYPE STANDARD TABLE OF OIURV_DOC_FRMTAX,"TABLES PARAM
wa_p_vltxns3t_tb  LIKE LINE OF it_p_vltxns3t_tb ,
it_p_vltxns4_tb  TYPE STANDARD TABLE OF OIURV_DOC_TAXHDR,"TABLES PARAM
wa_p_vltxns4_tb  LIKE LINE OF it_p_vltxns4_tb ,
it_p_vltxns4d_tb  TYPE STANDARD TABLE OF OIURV_DOC_TAXDTL,"TABLES PARAM
wa_p_vltxns4d_tb  LIKE LINE OF it_p_vltxns4d_tb ,
it_p_vltxns4e_tb  TYPE STANDARD TABLE OF OIURV_DOC_TAXEMP,"TABLES PARAM
wa_p_vltxns4e_tb  LIKE LINE OF it_p_vltxns4e_tb ,
it_p_vltxns4m_tb  TYPE STANDARD TABLE OF OIURV_DOC_TAXMKT,"TABLES PARAM
wa_p_vltxns4m_tb  LIKE LINE OF it_p_vltxns4m_tb ,
it_p_tfrmlau_tb  TYPE STANDARD TABLE OF OIURV_DOC_FRMLAU,"TABLES PARAM
wa_p_tfrmlau_tb  LIKE LINE OF it_p_tfrmlau_tb ,
it_p_runtkt_tb  TYPE STANDARD TABLE OF OIURV_DOC_RUNTKT,"TABLES PARAM
wa_p_runtkt_tb  LIKE LINE OF it_p_runtkt_tb ,
it_p_zerovol_tb  TYPE STANDARD TABLE OF OIURV_DOC_DTL_ZE,"TABLES PARAM
wa_p_zerovol_tb  LIKE LINE OF it_p_zerovol_tb .


"populate fields of struture and append to itab
append wa_p_vlrvs_tb to it_p_vlrvs_tb.

"populate fields of struture and append to itab
append wa_p_vltxns_tb to it_p_vltxns_tb.

"populate fields of struture and append to itab
append wa_p_vltxns2_tb to it_p_vltxns2_tb.

"populate fields of struture and append to itab
append wa_p_vltxns2u_tb to it_p_vltxns2u_tb.

"populate fields of struture and append to itab
append wa_p_vltxns3_tb to it_p_vltxns3_tb.

"populate fields of struture and append to itab
append wa_p_vltxns3m_tb to it_p_vltxns3m_tb.

"populate fields of struture and append to itab
append wa_p_vltxns3t_tb to it_p_vltxns3t_tb.

"populate fields of struture and append to itab
append wa_p_vltxns4_tb to it_p_vltxns4_tb.

"populate fields of struture and append to itab
append wa_p_vltxns4d_tb to it_p_vltxns4d_tb.

"populate fields of struture and append to itab
append wa_p_vltxns4e_tb to it_p_vltxns4e_tb.

"populate fields of struture and append to itab
append wa_p_vltxns4m_tb to it_p_vltxns4m_tb.

"populate fields of struture and append to itab
append wa_p_tfrmlau_tb to it_p_tfrmlau_tb.

"populate fields of struture and append to itab
append wa_p_runtkt_tb to it_p_runtkt_tb.

"populate fields of struture and append to itab
append wa_p_zerovol_tb to it_p_zerovol_tb. . CALL FUNCTION 'OIURV_EDIT_VALIDATIONS' TABLES p_vlrvs_tb = it_p_vlrvs_tb p_vltxns_tb = it_p_vltxns_tb p_vltxns2_tb = it_p_vltxns2_tb p_vltxns2u_tb = it_p_vltxns2u_tb p_vltxns3_tb = it_p_vltxns3_tb p_vltxns3m_tb = it_p_vltxns3m_tb p_vltxns3t_tb = it_p_vltxns3t_tb p_vltxns4_tb = it_p_vltxns4_tb p_vltxns4d_tb = it_p_vltxns4d_tb p_vltxns4e_tb = it_p_vltxns4e_tb p_vltxns4m_tb = it_p_vltxns4m_tb p_tfrmlau_tb = it_p_tfrmlau_tb p_runtkt_tb = it_p_runtkt_tb p_zerovol_tb = it_p_zerovol_tb EXCEPTIONS IO_ERROR = 1 . " OIURV_EDIT_VALIDATIONS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
it_p_vlrvs_tb  TYPE STANDARD TABLE OF OIURV_DOC_DTL_RV ,
wa_p_vlrvs_tb  LIKE LINE OF it_p_vlrvs_tb,
it_p_vltxns_tb  TYPE STANDARD TABLE OF OIURV_DOC_DTL_BK ,
wa_p_vltxns_tb  LIKE LINE OF it_p_vltxns_tb,
it_p_vltxns2_tb  TYPE STANDARD TABLE OF OIURV_DOC_VOLDTL ,
wa_p_vltxns2_tb  LIKE LINE OF it_p_vltxns2_tb,
it_p_vltxns2u_tb  TYPE STANDARD TABLE OF OIURV_DOC_VOLUNT ,
wa_p_vltxns2u_tb  LIKE LINE OF it_p_vltxns2u_tb,
it_p_vltxns3_tb  TYPE STANDARD TABLE OF OIURV_DOC_FRMHDR ,
wa_p_vltxns3_tb  LIKE LINE OF it_p_vltxns3_tb,
it_p_vltxns3m_tb  TYPE STANDARD TABLE OF OIURV_DOC_FRMMKT ,
wa_p_vltxns3m_tb  LIKE LINE OF it_p_vltxns3m_tb,
it_p_vltxns3t_tb  TYPE STANDARD TABLE OF OIURV_DOC_FRMTAX ,
wa_p_vltxns3t_tb  LIKE LINE OF it_p_vltxns3t_tb,
it_p_vltxns4_tb  TYPE STANDARD TABLE OF OIURV_DOC_TAXHDR ,
wa_p_vltxns4_tb  LIKE LINE OF it_p_vltxns4_tb,
it_p_vltxns4d_tb  TYPE STANDARD TABLE OF OIURV_DOC_TAXDTL ,
wa_p_vltxns4d_tb  LIKE LINE OF it_p_vltxns4d_tb,
it_p_vltxns4e_tb  TYPE STANDARD TABLE OF OIURV_DOC_TAXEMP ,
wa_p_vltxns4e_tb  LIKE LINE OF it_p_vltxns4e_tb,
it_p_vltxns4m_tb  TYPE STANDARD TABLE OF OIURV_DOC_TAXMKT ,
wa_p_vltxns4m_tb  LIKE LINE OF it_p_vltxns4m_tb,
it_p_tfrmlau_tb  TYPE STANDARD TABLE OF OIURV_DOC_FRMLAU ,
wa_p_tfrmlau_tb  LIKE LINE OF it_p_tfrmlau_tb,
it_p_runtkt_tb  TYPE STANDARD TABLE OF OIURV_DOC_RUNTKT ,
wa_p_runtkt_tb  LIKE LINE OF it_p_runtkt_tb,
it_p_zerovol_tb  TYPE STANDARD TABLE OF OIURV_DOC_DTL_ZE ,
wa_p_zerovol_tb  LIKE LINE OF it_p_zerovol_tb.


"populate fields of struture and append to itab
append wa_p_vlrvs_tb to it_p_vlrvs_tb.

"populate fields of struture and append to itab
append wa_p_vltxns_tb to it_p_vltxns_tb.

"populate fields of struture and append to itab
append wa_p_vltxns2_tb to it_p_vltxns2_tb.

"populate fields of struture and append to itab
append wa_p_vltxns2u_tb to it_p_vltxns2u_tb.

"populate fields of struture and append to itab
append wa_p_vltxns3_tb to it_p_vltxns3_tb.

"populate fields of struture and append to itab
append wa_p_vltxns3m_tb to it_p_vltxns3m_tb.

"populate fields of struture and append to itab
append wa_p_vltxns3t_tb to it_p_vltxns3t_tb.

"populate fields of struture and append to itab
append wa_p_vltxns4_tb to it_p_vltxns4_tb.

"populate fields of struture and append to itab
append wa_p_vltxns4d_tb to it_p_vltxns4d_tb.

"populate fields of struture and append to itab
append wa_p_vltxns4e_tb to it_p_vltxns4e_tb.

"populate fields of struture and append to itab
append wa_p_vltxns4m_tb to it_p_vltxns4m_tb.

"populate fields of struture and append to itab
append wa_p_tfrmlau_tb to it_p_tfrmlau_tb.

"populate fields of struture and append to itab
append wa_p_runtkt_tb to it_p_runtkt_tb.

"populate fields of struture and append to itab
append wa_p_zerovol_tb to it_p_zerovol_tb.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name OIURV_EDIT_VALIDATIONS or its description.