SAP TB_COVR_FI_DOCUMENT_REVERSE Function Module for Remove FI Document from Hedge (Update VTBSIZU, BSEG)









TB_COVR_FI_DOCUMENT_REVERSE is a standard tb covr fi document reverse SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Remove FI Document from Hedge (Update VTBSIZU, BSEG) 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 tb covr fi document reverse FM, simply by entering the name TB_COVR_FI_DOCUMENT_REVERSE into the relevant SAP transaction such as SE37 or SE38.

Function Group: TB7F
Program Name: SAPLTB7F
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 1



Function TB_COVR_FI_DOCUMENT_REVERSE 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 'TB_COVR_FI_DOCUMENT_REVERSE'"Remove FI Document from Hedge (Update VTBSIZU, BSEG)
EXPORTING
* IMP_APPLID = 'FI' "Application-ID (derzeit: 'FI'/'MR')
IMP_AUGBL = "Ausgleichsbeleg (hier: BELNR des STORNO-Beleges)
IMP_AUGDT = "Clearing Date
IMP_YBELNR = "FI-KEY: Belegnummer d. zu stornierenden Beleges
IMP_YBUKRS = "FI-KEY: Buchungskreis d zu stornierenden Beleges
IMP_YGJAHR = "FI-KEY: Geschäftsjahr d zu stornierenden Beleges

TABLES
IMP_XBKPF = "Belegkopf des Storno-Beleges
IMP_XBSEG = "Belegzeilen des Storno-Beleges
.



IMPORTING Parameters details for TB_COVR_FI_DOCUMENT_REVERSE

IMP_APPLID - Application-ID (derzeit: 'FI'/'MR')

Data type: SY-MSGID
Default: 'FI'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_AUGBL - Ausgleichsbeleg (hier: BELNR des STORNO-Beleges)

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

IMP_AUGDT - Clearing Date

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

IMP_YBELNR - FI-KEY: Belegnummer d. zu stornierenden Beleges

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

IMP_YBUKRS - FI-KEY: Buchungskreis d zu stornierenden Beleges

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

IMP_YGJAHR - FI-KEY: Geschäftsjahr d zu stornierenden Beleges

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

TABLES Parameters details for TB_COVR_FI_DOCUMENT_REVERSE

IMP_XBKPF - Belegkopf des Storno-Beleges

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

IMP_XBSEG - Belegzeilen des Storno-Beleges

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

Copy and paste ABAP code example for TB_COVR_FI_DOCUMENT_REVERSE 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:
lt_imp_xbkpf  TYPE STANDARD TABLE OF BKPF, "   
lv_imp_applid  TYPE SY-MSGID, "   'FI'
lv_imp_augbl  TYPE BSEG-AUGBL, "   
lt_imp_xbseg  TYPE STANDARD TABLE OF BSEG, "   
lv_imp_augdt  TYPE BSEG-AUGDT, "   
lv_imp_ybelnr  TYPE BKPF-BELNR, "   
lv_imp_ybukrs  TYPE BKPF-BUKRS, "   
lv_imp_ygjahr  TYPE BKPF-GJAHR. "   

  CALL FUNCTION 'TB_COVR_FI_DOCUMENT_REVERSE'  "Remove FI Document from Hedge (Update VTBSIZU, BSEG)
    EXPORTING
         IMP_APPLID = lv_imp_applid
         IMP_AUGBL = lv_imp_augbl
         IMP_AUGDT = lv_imp_augdt
         IMP_YBELNR = lv_imp_ybelnr
         IMP_YBUKRS = lv_imp_ybukrs
         IMP_YGJAHR = lv_imp_ygjahr
    TABLES
         IMP_XBKPF = lt_imp_xbkpf
         IMP_XBSEG = lt_imp_xbseg
. " TB_COVR_FI_DOCUMENT_REVERSE




ABAP code using 7.40 inline data declarations to call FM TB_COVR_FI_DOCUMENT_REVERSE

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 MSGID FROM SY INTO @DATA(ld_imp_applid).
DATA(ld_imp_applid) = 'FI'.
 
"SELECT single AUGBL FROM BSEG INTO @DATA(ld_imp_augbl).
 
 
"SELECT single AUGDT FROM BSEG INTO @DATA(ld_imp_augdt).
 
"SELECT single BELNR FROM BKPF INTO @DATA(ld_imp_ybelnr).
 
"SELECT single BUKRS FROM BKPF INTO @DATA(ld_imp_ybukrs).
 
"SELECT single GJAHR FROM BKPF INTO @DATA(ld_imp_ygjahr).
 


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!