SAP OIRA_REBUILD_DBT_LINK Function Module for Reset process id flag in DBT for reversals









OIRA_REBUILD_DBT_LINK is a standard oira rebuild dbt link SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reset process id flag in DBT for reversals 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 oira rebuild dbt link FM, simply by entering the name OIRA_REBUILD_DBT_LINK into the relevant SAP transaction such as SE37 or SE38.

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



Function OIRA_REBUILD_DBT_LINK 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 'OIRA_REBUILD_DBT_LINK'"Reset process id flag in DBT for reversals
EXPORTING
I_PROCID = "Process ID
I_OIRIREVAGG = "Aggregation schema for reversals

TABLES
T_SRCE_DATA = "Communication structure to fill document base table
T_DATA_INSERTED = "Document base table
T_OIRADTLT_OLD = "Document transaction link table
* T_FAILED_LINK_ITEMS = "List of DTLT lines that failed various checks
* T_LINKITEMYR = "

EXCEPTIONS
UNABLE_TO_CROSS_CHECK_LINK = 1 REBUILD_OF_SOME_LINES_FAILED = 2 SOURCE_DATA_MISSING = 3 ERROR_OCCURRED_IN_DBT_FILL = 4
.



IMPORTING Parameters details for OIRA_REBUILD_DBT_LINK

I_PROCID - Process ID

Data type: OIRAPROCDEF-PROCDEF
Optional: No
Call by Reference: Yes

I_OIRIREVAGG - Aggregation schema for reversals

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

TABLES Parameters details for OIRA_REBUILD_DBT_LINK

T_SRCE_DATA - Communication structure to fill document base table

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

T_DATA_INSERTED - Document base table

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

T_OIRADTLT_OLD - Document transaction link table

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

T_FAILED_LINK_ITEMS - List of DTLT lines that failed various checks

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

T_LINKITEMYR -

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

EXCEPTIONS details

UNABLE_TO_CROSS_CHECK_LINK - Link number missing from passed old links

Data type:
Optional: No
Call by Reference: Yes

REBUILD_OF_SOME_LINES_FAILED - Some of the passed links could not be rebuilt

Data type:
Optional: No
Call by Reference: Yes

SOURCE_DATA_MISSING - Some of the required source data is missing/corrupt

Data type:
Optional: No
Call by Reference: Yes

ERROR_OCCURRED_IN_DBT_FILL - Error from function FILL DBT

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIRA_REBUILD_DBT_LINK 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_procid  TYPE OIRAPROCDEF-PROCDEF, "   
lt_t_srce_data  TYPE STANDARD TABLE OF OIRA_FILL_COMM, "   
lv_unable_to_cross_check_link  TYPE OIRA_FILL_COMM, "   
lv_i_oirirevagg  TYPE OIRIREVAGG, "   
lt_t_data_inserted  TYPE STANDARD TABLE OF OIRADBT, "   
lv_rebuild_of_some_lines_failed  TYPE OIRADBT, "   
lt_t_oiradtlt_old  TYPE STANDARD TABLE OF OIRADTLT, "   
lv_source_data_missing  TYPE OIRADTLT, "   
lt_t_failed_link_items  TYPE STANDARD TABLE OF OIRE1_T_FAIL_LINKITEM, "   
lv_error_occurred_in_dbt_fill  TYPE OIRE1_T_FAIL_LINKITEM, "   
lt_t_linkitemyr  TYPE STANDARD TABLE OF OIRE1_T_FAIL_LINKITEM. "   

  CALL FUNCTION 'OIRA_REBUILD_DBT_LINK'  "Reset process id flag in DBT for reversals
    EXPORTING
         I_PROCID = lv_i_procid
         I_OIRIREVAGG = lv_i_oirirevagg
    TABLES
         T_SRCE_DATA = lt_t_srce_data
         T_DATA_INSERTED = lt_t_data_inserted
         T_OIRADTLT_OLD = lt_t_oiradtlt_old
         T_FAILED_LINK_ITEMS = lt_t_failed_link_items
         T_LINKITEMYR = lt_t_linkitemyr
    EXCEPTIONS
        UNABLE_TO_CROSS_CHECK_LINK = 1
        REBUILD_OF_SOME_LINES_FAILED = 2
        SOURCE_DATA_MISSING = 3
        ERROR_OCCURRED_IN_DBT_FILL = 4
. " OIRA_REBUILD_DBT_LINK




ABAP code using 7.40 inline data declarations to call FM OIRA_REBUILD_DBT_LINK

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 PROCDEF FROM OIRAPROCDEF INTO @DATA(ld_i_procid).
 
 
 
 
 
 
 
 
 
 
 


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!