SAP OIUT2_APPROVAL_PROCESS_SLIM Function Module for OIU_T2 Approval/Check In Process for base DOI









OIUT2_APPROVAL_PROCESS_SLIM is a standard oiut2 approval process slim SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for OIU_T2 Approval/Check In Process for base DOI 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 oiut2 approval process slim FM, simply by entering the name OIUT2_APPROVAL_PROCESS_SLIM into the relevant SAP transaction such as SE37 or SE38.

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



Function OIUT2_APPROVAL_PROCESS_SLIM 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 'OIUT2_APPROVAL_PROCESS_SLIM'"OIU_T2 Approval/Check In Process for base DOI
EXPORTING
* MODE = 'O' "B=Batch,O=Online
I_BUKRS = "Company code
I_VNAME = "Joint Venture
I_DOI_NO = "Division of Interest
SETTINGS = "Approval custom settings

TABLES
* I_ERRORS = "Application Log: APPL_LOG_WRITE_MESSAGES interface
* I_LOG = "Application Log: APPL_LOG_WRITE_MESSAGES interface
* I_PPN = "PPN Log Message structure
* I_PPNH = "Prior Period Notification Header
* I_PPND = "Production Prior Period Notification Delivery Ntwk Det. T
* I_PPNU = "Valuation Prior Period Notification

EXCEPTIONS
IO_ERROR = 1
.



IMPORTING Parameters details for OIUT2_APPROVAL_PROCESS_SLIM

MODE - B=Batch,O=Online

Data type: CHAR1
Default: 'O'
Optional: No
Call by Reference: Yes

I_BUKRS - Company code

Data type: ROIU_DO_DI-BUKRS
Optional: No
Call by Reference: Yes

I_VNAME - Joint Venture

Data type: ROIU_DO_DI-VNAME
Optional: No
Call by Reference: Yes

I_DOI_NO - Division of Interest

Data type: ROIU_DO_DI-DOI_NO
Optional: No
Call by Reference: Yes

SETTINGS - Approval custom settings

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

TABLES Parameters details for OIUT2_APPROVAL_PROCESS_SLIM

I_ERRORS - Application Log: APPL_LOG_WRITE_MESSAGES interface

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

I_LOG - Application Log: APPL_LOG_WRITE_MESSAGES interface

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

I_PPN - PPN Log Message structure

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

I_PPNH - Prior Period Notification Header

Data type: OIU_PR_PPNH
Optional: Yes
Call by Reference: Yes

I_PPND - Production Prior Period Notification Delivery Ntwk Det. T

Data type: OIU_PR_PPND
Optional: Yes
Call by Reference: Yes

I_PPNU - Valuation Prior Period Notification

Data type: OIU_RV_VPPNU
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

IO_ERROR - Error in Revenue function

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIUT2_APPROVAL_PROCESS_SLIM 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_mode  TYPE CHAR1, "   'O'
lv_io_error  TYPE CHAR1, "   
lt_i_errors  TYPE STANDARD TABLE OF BALMI, "   
lt_i_log  TYPE STANDARD TABLE OF BALMI, "   
lv_i_bukrs  TYPE ROIU_DO_DI-BUKRS, "   
lt_i_ppn  TYPE STANDARD TABLE OF ROIUOW_PPN_LOG, "   
lv_i_vname  TYPE ROIU_DO_DI-VNAME, "   
lt_i_ppnh  TYPE STANDARD TABLE OF OIU_PR_PPNH, "   
lv_i_doi_no  TYPE ROIU_DO_DI-DOI_NO, "   
lt_i_ppnd  TYPE STANDARD TABLE OF OIU_PR_PPND, "   
lv_settings  TYPE ROIUT2_LOAD_CUSTOMISING, "   
lt_i_ppnu  TYPE STANDARD TABLE OF OIU_RV_VPPNU. "   

  CALL FUNCTION 'OIUT2_APPROVAL_PROCESS_SLIM'  "OIU_T2 Approval/Check In Process for base DOI
    EXPORTING
         MODE = lv_mode
         I_BUKRS = lv_i_bukrs
         I_VNAME = lv_i_vname
         I_DOI_NO = lv_i_doi_no
         SETTINGS = lv_settings
    TABLES
         I_ERRORS = lt_i_errors
         I_LOG = lt_i_log
         I_PPN = lt_i_ppn
         I_PPNH = lt_i_ppnh
         I_PPND = lt_i_ppnd
         I_PPNU = lt_i_ppnu
    EXCEPTIONS
        IO_ERROR = 1
. " OIUT2_APPROVAL_PROCESS_SLIM




ABAP code using 7.40 inline data declarations to call FM OIUT2_APPROVAL_PROCESS_SLIM

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.

DATA(ld_mode) = 'O'.
 
 
 
 
"SELECT single BUKRS FROM ROIU_DO_DI INTO @DATA(ld_i_bukrs).
 
 
"SELECT single VNAME FROM ROIU_DO_DI INTO @DATA(ld_i_vname).
 
 
"SELECT single DOI_NO FROM ROIU_DO_DI INTO @DATA(ld_i_doi_no).
 
 
 
 


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!