SAP OIUCI_ALLOC_PRODUCER_LVL Function Module for Producer









OIUCI_ALLOC_PRODUCER_LVL is a standard oiuci alloc producer lvl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Producer 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 oiuci alloc producer lvl FM, simply by entering the name OIUCI_ALLOC_PRODUCER_LVL into the relevant SAP transaction such as SE37 or SE38.

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



Function OIUCI_ALLOC_PRODUCER_LVL 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 'OIUCI_ALLOC_PRODUCER_LVL'"Producer
EXPORTING
RD_REF = "RD Driver

CHANGING
* L_563_VALTNS_TRANS_REC = "
* L_563_SA_AC_DT = "
* L_563_STATE_MKT_TAX_EXMP_TABLE = "
* L_563_ERROR_CODE_WORKAREA = "
* L_563_GAS_PLT_ELIM_WORKAREA = "
* ABNORMAL_TERMINATION_AREA = "
* ABT_PROGRAM_MSG_AREA = "
* L_563_HL_VALTNS_TRANS_REC = "
* L_563_1ST_TM_HL_THRU_FL = "
* L_563_AFFLTD_PRCHRS_ENTRIES = "
* L_563_AFFLTD_OWNERS_ENTRIES = "
* L_563_TCD_TBL = "
* L_563_TCD_TBL_ENTRIES = "
* L_563_DOI_ACCOUNTING_DATA = "
* L_563_BR_USE_FL = "

TABLES
AFFLTD_PURCHASERS = "RDBQ550 and RDBQ563 Purchaser and owner table structure
AFFLTD_OWNERS = "RDBQ550 and RDBQ563 Purchaser and owner table structure

EXCEPTIONS
GOBACK = 1 WARNING = 2 FAILED = 3 IO_ERROR = 4
.



IMPORTING Parameters details for OIUCI_ALLOC_PRODUCER_LVL

RD_REF - RD Driver

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

CHANGING Parameters details for OIUCI_ALLOC_PRODUCER_LVL

L_563_VALTNS_TRANS_REC -

Data type:
Optional: Yes
Call by Reference: Yes

L_563_SA_AC_DT -

Data type:
Optional: Yes
Call by Reference: Yes

L_563_STATE_MKT_TAX_EXMP_TABLE -

Data type:
Optional: Yes
Call by Reference: Yes

L_563_ERROR_CODE_WORKAREA -

Data type:
Optional: Yes
Call by Reference: Yes

L_563_GAS_PLT_ELIM_WORKAREA -

Data type:
Optional: Yes
Call by Reference: Yes

ABNORMAL_TERMINATION_AREA -

Data type:
Optional: Yes
Call by Reference: Yes

ABT_PROGRAM_MSG_AREA -

Data type:
Optional: Yes
Call by Reference: Yes

L_563_HL_VALTNS_TRANS_REC -

Data type:
Optional: Yes
Call by Reference: Yes

L_563_1ST_TM_HL_THRU_FL -

Data type:
Optional: Yes
Call by Reference: Yes

L_563_AFFLTD_PRCHRS_ENTRIES -

Data type:
Optional: Yes
Call by Reference: Yes

L_563_AFFLTD_OWNERS_ENTRIES -

Data type:
Optional: Yes
Call by Reference: Yes

L_563_TCD_TBL -

Data type:
Optional: Yes
Call by Reference: Yes

L_563_TCD_TBL_ENTRIES -

Data type:
Optional: Yes
Call by Reference: Yes

L_563_DOI_ACCOUNTING_DATA -

Data type:
Optional: Yes
Call by Reference: Yes

L_563_BR_USE_FL -

Data type:
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for OIUCI_ALLOC_PRODUCER_LVL

AFFLTD_PURCHASERS - RDBQ550 and RDBQ563 Purchaser and owner table structure

Data type: ROIURV_OWN_PUR
Optional: No
Call by Reference: No ( called with pass by value option)

AFFLTD_OWNERS - RDBQ550 and RDBQ563 Purchaser and owner table structure

Data type: ROIURV_OWN_PUR
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

GOBACK -

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

WARNING -

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

FAILED -

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

IO_ERROR -

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

Copy and paste ABAP code example for OIUCI_ALLOC_PRODUCER_LVL 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_goback  TYPE STRING, "   
lv_rd_ref  TYPE CL_OIURV01_RD_DRIVER, "   
lt_affltd_purchasers  TYPE STANDARD TABLE OF ROIURV_OWN_PUR, "   
lv_l_563_valtns_trans_rec  TYPE ROIURV_OWN_PUR, "   
lv_l_563_sa_ac_dt  TYPE ROIURV_OWN_PUR, "   
lv_l_563_state_mkt_tax_exmp_table  TYPE ROIURV_OWN_PUR, "   
lv_l_563_error_code_workarea  TYPE ROIURV_OWN_PUR, "   
lv_l_563_gas_plt_elim_workarea  TYPE ROIURV_OWN_PUR, "   
lv_abnormal_termination_area  TYPE ROIURV_OWN_PUR, "   
lv_abt_program_msg_area  TYPE ROIURV_OWN_PUR, "   
lv_warning  TYPE ROIURV_OWN_PUR, "   
lt_affltd_owners  TYPE STANDARD TABLE OF ROIURV_OWN_PUR, "   
lv_l_563_hl_valtns_trans_rec  TYPE ROIURV_OWN_PUR, "   
lv_failed  TYPE ROIURV_OWN_PUR, "   
lv_l_563_1st_tm_hl_thru_fl  TYPE ROIURV_OWN_PUR, "   
lv_io_error  TYPE ROIURV_OWN_PUR, "   
lv_l_563_affltd_prchrs_entries  TYPE ROIURV_OWN_PUR, "   
lv_l_563_affltd_owners_entries  TYPE ROIURV_OWN_PUR, "   
lv_l_563_tcd_tbl  TYPE ROIURV_OWN_PUR, "   
lv_l_563_tcd_tbl_entries  TYPE ROIURV_OWN_PUR, "   
lv_l_563_doi_accounting_data  TYPE ROIURV_OWN_PUR, "   
lv_l_563_br_use_fl  TYPE ROIURV_OWN_PUR. "   

  CALL FUNCTION 'OIUCI_ALLOC_PRODUCER_LVL'  "Producer
    EXPORTING
         RD_REF = lv_rd_ref
    CHANGING
         L_563_VALTNS_TRANS_REC = lv_l_563_valtns_trans_rec
         L_563_SA_AC_DT = lv_l_563_sa_ac_dt
         L_563_STATE_MKT_TAX_EXMP_TABLE = lv_l_563_state_mkt_tax_exmp_table
         L_563_ERROR_CODE_WORKAREA = lv_l_563_error_code_workarea
         L_563_GAS_PLT_ELIM_WORKAREA = lv_l_563_gas_plt_elim_workarea
         ABNORMAL_TERMINATION_AREA = lv_abnormal_termination_area
         ABT_PROGRAM_MSG_AREA = lv_abt_program_msg_area
         L_563_HL_VALTNS_TRANS_REC = lv_l_563_hl_valtns_trans_rec
         L_563_1ST_TM_HL_THRU_FL = lv_l_563_1st_tm_hl_thru_fl
         L_563_AFFLTD_PRCHRS_ENTRIES = lv_l_563_affltd_prchrs_entries
         L_563_AFFLTD_OWNERS_ENTRIES = lv_l_563_affltd_owners_entries
         L_563_TCD_TBL = lv_l_563_tcd_tbl
         L_563_TCD_TBL_ENTRIES = lv_l_563_tcd_tbl_entries
         L_563_DOI_ACCOUNTING_DATA = lv_l_563_doi_accounting_data
         L_563_BR_USE_FL = lv_l_563_br_use_fl
    TABLES
         AFFLTD_PURCHASERS = lt_affltd_purchasers
         AFFLTD_OWNERS = lt_affltd_owners
    EXCEPTIONS
        GOBACK = 1
        WARNING = 2
        FAILED = 3
        IO_ERROR = 4
. " OIUCI_ALLOC_PRODUCER_LVL




ABAP code using 7.40 inline data declarations to call FM OIUCI_ALLOC_PRODUCER_LVL

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



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!