SAP DOCUMENT_REVERSE_BDCDATA Function Module for









DOCUMENT_REVERSE_BDCDATA is a standard document reverse bdcdata SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 document reverse bdcdata FM, simply by entering the name DOCUMENT_REVERSE_BDCDATA into the relevant SAP transaction such as SE37 or SE38.

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



Function DOCUMENT_REVERSE_BDCDATA 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 'DOCUMENT_REVERSE_BDCDATA'"
EXPORTING
FBSSPARA = "
* NO_CLOSE = ' ' "
* NO_OPEN = ' ' "
* DMODE = ' ' "
* USING_CLUSTER = ' ' "

TABLES
TDOCUMENT = "

EXCEPTIONS
ERROR_BDC_CLOSE = 1 ERROR_BDC_INSERT = 2 ERROR_BDC_OPEN = 3 ERROR_JOB_CLOSE = 4 ERROR_JOB_OPEN = 5 ERROR_TRANSACTION_CALL = 6
.



IMPORTING Parameters details for DOCUMENT_REVERSE_BDCDATA

FBSSPARA -

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

NO_CLOSE -

Data type: SY-FTYPE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_OPEN -

Data type: SY-FTYPE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DMODE -

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

USING_CLUSTER -

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

TABLES Parameters details for DOCUMENT_REVERSE_BDCDATA

TDOCUMENT -

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

EXCEPTIONS details

ERROR_BDC_CLOSE -

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

ERROR_BDC_INSERT -

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

ERROR_BDC_OPEN -

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

ERROR_JOB_CLOSE -

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

ERROR_JOB_OPEN -

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

ERROR_TRANSACTION_CALL -

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

Copy and paste ABAP code example for DOCUMENT_REVERSE_BDCDATA 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_fbsspara  TYPE BSSPARA, "   
lt_tdocument  TYPE STANDARD TABLE OF RF05AS, "   
lv_error_bdc_close  TYPE RF05AS, "   
lv_no_close  TYPE SY-FTYPE, "   SPACE
lv_error_bdc_insert  TYPE SY, "   
lv_no_open  TYPE SY-FTYPE, "   SPACE
lv_error_bdc_open  TYPE SY, "   
lv_dmode  TYPE SY, "   SPACE
lv_error_job_close  TYPE SY, "   
lv_using_cluster  TYPE SY, "   SPACE
lv_error_job_open  TYPE SY, "   
lv_error_transaction_call  TYPE SY. "   

  CALL FUNCTION 'DOCUMENT_REVERSE_BDCDATA'  "
    EXPORTING
         FBSSPARA = lv_fbsspara
         NO_CLOSE = lv_no_close
         NO_OPEN = lv_no_open
         DMODE = lv_dmode
         USING_CLUSTER = lv_using_cluster
    TABLES
         TDOCUMENT = lt_tdocument
    EXCEPTIONS
        ERROR_BDC_CLOSE = 1
        ERROR_BDC_INSERT = 2
        ERROR_BDC_OPEN = 3
        ERROR_JOB_CLOSE = 4
        ERROR_JOB_OPEN = 5
        ERROR_TRANSACTION_CALL = 6
. " DOCUMENT_REVERSE_BDCDATA




ABAP code using 7.40 inline data declarations to call FM DOCUMENT_REVERSE_BDCDATA

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 FTYPE FROM SY INTO @DATA(ld_no_close).
DATA(ld_no_close) = ' '.
 
 
"SELECT single FTYPE FROM SY INTO @DATA(ld_no_open).
DATA(ld_no_open) = ' '.
 
 
DATA(ld_dmode) = ' '.
 
 
DATA(ld_using_cluster) = ' '.
 
 
 


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!