SAP Function Modules

OIURV_READ_DOI_PROD_ENTRY_CNTL SAP Function module - Read Product Entry Control From OIU_DO_DPIC







OIURV_READ_DOI_PROD_ENTRY_CNTL 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_READ_DOI_PROD_ENTRY_CNTL into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM OIURV_READ_DOI_PROD_ENTRY_CNTL - OIURV READ DOI PROD ENTRY CNTL





CALL FUNCTION 'OIURV_READ_DOI_PROD_ENTRY_CNTL' "Read Product Entry Control From OIU_DO_DPIC
  EXPORTING
    i_bukrs =                   " oiurv_doc_dtl_bk-bukrs  Company code
    i_vname =                   " oiurv_doc_dtl_bk-vname  Joint Venture
    i_doi_no =                  " oiurv_doc_dtl_bk-doi_no  Division of Interest
    i_sale_dt =                 " oiurv_doc_dtl_bk-sale_dt  Sales Date / Month
  TABLES
    e_do_dpic_tb =              " oiu_do_dpic   DOI Product Interest Control
  EXCEPTIONS
    IO_ERROR = 1                "               RECORD NOT FOUND
    .  "  OIURV_READ_DOI_PROD_ENTRY_CNTL

ABAP code example for Function Module OIURV_READ_DOI_PROD_ENTRY_CNTL





The ABAP code below is a full code listing to execute function module OIURV_READ_DOI_PROD_ENTRY_CNTL 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_e_do_dpic_tb  TYPE STANDARD TABLE OF OIU_DO_DPIC,"TABLES PARAM
wa_e_do_dpic_tb  LIKE LINE OF it_e_do_dpic_tb .


SELECT single BUKRS
FROM OIURV_DOC_DTL_BK
INTO @DATA(ld_i_bukrs).


SELECT single VNAME
FROM OIURV_DOC_DTL_BK
INTO @DATA(ld_i_vname).


SELECT single DOI_NO
FROM OIURV_DOC_DTL_BK
INTO @DATA(ld_i_doi_no).


SELECT single SALE_DT
FROM OIURV_DOC_DTL_BK
INTO @DATA(ld_i_sale_dt).


"populate fields of struture and append to itab
append wa_e_do_dpic_tb to it_e_do_dpic_tb. . CALL FUNCTION 'OIURV_READ_DOI_PROD_ENTRY_CNTL' EXPORTING i_bukrs = ld_i_bukrs i_vname = ld_i_vname i_doi_no = ld_i_doi_no i_sale_dt = ld_i_sale_dt TABLES e_do_dpic_tb = it_e_do_dpic_tb EXCEPTIONS IO_ERROR = 1 . " OIURV_READ_DOI_PROD_ENTRY_CNTL
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:
ld_i_bukrs  TYPE OIURV_DOC_DTL_BK-BUKRS ,
it_e_do_dpic_tb  TYPE STANDARD TABLE OF OIU_DO_DPIC ,
wa_e_do_dpic_tb  LIKE LINE OF it_e_do_dpic_tb,
ld_i_vname  TYPE OIURV_DOC_DTL_BK-VNAME ,
ld_i_doi_no  TYPE OIURV_DOC_DTL_BK-DOI_NO ,
ld_i_sale_dt  TYPE OIURV_DOC_DTL_BK-SALE_DT .


SELECT single BUKRS
FROM OIURV_DOC_DTL_BK
INTO ld_i_bukrs.


"populate fields of struture and append to itab
append wa_e_do_dpic_tb to it_e_do_dpic_tb.

SELECT single VNAME
FROM OIURV_DOC_DTL_BK
INTO ld_i_vname.


SELECT single DOI_NO
FROM OIURV_DOC_DTL_BK
INTO ld_i_doi_no.


SELECT single SALE_DT
FROM OIURV_DOC_DTL_BK
INTO ld_i_sale_dt.

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_READ_DOI_PROD_ENTRY_CNTL or its description.