SAP OIU_CA_CONTRACT_LVL_ENTL Function Module for CA - Allocate Entitlements to Contracts









OIU_CA_CONTRACT_LVL_ENTL is a standard oiu ca contract lvl entl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CA - Allocate Entitlements to Contracts 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 oiu ca contract lvl entl FM, simply by entering the name OIU_CA_CONTRACT_LVL_ENTL into the relevant SAP transaction such as SE37 or SE38.

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



Function OIU_CA_CONTRACT_LVL_ENTL 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 'OIU_CA_CONTRACT_LVL_ENTL'"CA - Allocate Entitlements to Contracts
EXPORTING
I_DN_NO = "Delivery network number
I_MAJPD_CD = "Major product code
I_SA_DT = "Sales date
I_FREQ_CD = "Frequency
I_ALLOC_METHOD = "Allocation Method Code

IMPORTING
W_REJ_FLG = "
W_WRN_FLG = "
.



IMPORTING Parameters details for OIU_CA_CONTRACT_LVL_ENTL

I_DN_NO - Delivery network number

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

I_MAJPD_CD - Major product code

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

I_SA_DT - Sales date

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

I_FREQ_CD - Frequency

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

I_ALLOC_METHOD - Allocation Method Code

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

EXPORTING Parameters details for OIU_CA_CONTRACT_LVL_ENTL

W_REJ_FLG -

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

W_WRN_FLG -

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

Copy and paste ABAP code example for OIU_CA_CONTRACT_LVL_ENTL 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_i_dn_no  TYPE OIU_DN_NO, "   
lv_w_rej_flg  TYPE C, "   
lv_w_wrn_flg  TYPE C, "   
lv_i_majpd_cd  TYPE OIU_MAJPD_CD, "   
lv_i_sa_dt  TYPE OIU_SA_DT, "   
lv_i_freq_cd  TYPE OIU_FREQ_CD, "   
lv_i_alloc_method  TYPE OIU_CA_ALLOC_METH_CD. "   

  CALL FUNCTION 'OIU_CA_CONTRACT_LVL_ENTL'  "CA - Allocate Entitlements to Contracts
    EXPORTING
         I_DN_NO = lv_i_dn_no
         I_MAJPD_CD = lv_i_majpd_cd
         I_SA_DT = lv_i_sa_dt
         I_FREQ_CD = lv_i_freq_cd
         I_ALLOC_METHOD = lv_i_alloc_method
    IMPORTING
         W_REJ_FLG = lv_w_rej_flg
         W_WRN_FLG = lv_w_wrn_flg
. " OIU_CA_CONTRACT_LVL_ENTL




ABAP code using 7.40 inline data declarations to call FM OIU_CA_CONTRACT_LVL_ENTL

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!