SAP OIU_CA_FINAL_PROC Function Module for Update CA db tables from _T tables / Post (PPN)-Prior Period Notification









OIU_CA_FINAL_PROC is a standard oiu ca final proc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update CA db tables from _T tables / Post (PPN)-Prior Period Notification 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 final proc FM, simply by entering the name OIU_CA_FINAL_PROC into the relevant SAP transaction such as SE37 or SE38.

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



Function OIU_CA_FINAL_PROC 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_FINAL_PROC'"Update CA db tables from _T tables / Post (PPN)-Prior Period Notification
EXPORTING
I_DN_NO = "Delivery network number
I_MAJPD_CD = "Major Product Code
I_SA_DT = "Sales date
I_FREQ_CD = "Frequency code
I_PPN_FLG = "
I_ALLOC_METHOD = "Allocation Basis Code

CHANGING
W_REJ_FG = "
W_WRN_FG = "

TABLES
I_MPVL_TB = "Used to update MPVL Records
.



IMPORTING Parameters details for OIU_CA_FINAL_PROC

I_DN_NO - Delivery network number

Data type: OIU_SB_CTRMP-DN_NO
Optional: No
Call by Reference: Yes

I_MAJPD_CD - Major Product Code

Data type: OIU_SB_MGOPMP-MAJPD_CD
Optional: No
Call by Reference: Yes

I_SA_DT - Sales date

Data type: OIU_SB_CTRMP-SA_DT
Optional: No
Call by Reference: Yes

I_FREQ_CD - Frequency code

Data type: OIU_SB_CTRMP-FREQ_CD
Optional: No
Call by Reference: Yes

I_PPN_FLG -

Data type:
Optional: No
Call by Reference: Yes

I_ALLOC_METHOD - Allocation Basis Code

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

CHANGING Parameters details for OIU_CA_FINAL_PROC

W_REJ_FG -

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

W_WRN_FG -

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

TABLES Parameters details for OIU_CA_FINAL_PROC

I_MPVL_TB - Used to update MPVL Records

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

Copy and paste ABAP code example for OIU_CA_FINAL_PROC 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_SB_CTRMP-DN_NO, "   
lv_w_rej_fg  TYPE C, "   
lt_i_mpvl_tb  TYPE STANDARD TABLE OF OIU_PR_MPVL, "   
lv_w_wrn_fg  TYPE C, "   
lv_i_majpd_cd  TYPE OIU_SB_MGOPMP-MAJPD_CD, "   
lv_i_sa_dt  TYPE OIU_SB_CTRMP-SA_DT, "   
lv_i_freq_cd  TYPE OIU_SB_CTRMP-FREQ_CD, "   
lv_i_ppn_flg  TYPE OIU_SB_CTRMP, "   
lv_i_alloc_method  TYPE C. "   

  CALL FUNCTION 'OIU_CA_FINAL_PROC'  "Update CA db tables from _T tables / Post (PPN)-Prior Period Notification
    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_PPN_FLG = lv_i_ppn_flg
         I_ALLOC_METHOD = lv_i_alloc_method
    CHANGING
         W_REJ_FG = lv_w_rej_fg
         W_WRN_FG = lv_w_wrn_fg
    TABLES
         I_MPVL_TB = lt_i_mpvl_tb
. " OIU_CA_FINAL_PROC




ABAP code using 7.40 inline data declarations to call FM OIU_CA_FINAL_PROC

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 DN_NO FROM OIU_SB_CTRMP INTO @DATA(ld_i_dn_no).
 
 
 
 
"SELECT single MAJPD_CD FROM OIU_SB_MGOPMP INTO @DATA(ld_i_majpd_cd).
 
"SELECT single SA_DT FROM OIU_SB_CTRMP INTO @DATA(ld_i_sa_dt).
 
"SELECT single FREQ_CD FROM OIU_SB_CTRMP INTO @DATA(ld_i_freq_cd).
 
 
 


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!