SAP RV_ACCOUNTING_DOCUMENT_CREATE Function Module for NOTRANSL: Buchhaltungsbelege für Fakturen erzeugen









RV_ACCOUNTING_DOCUMENT_CREATE is a standard rv accounting document create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Buchhaltungsbelege für Fakturen erzeugen 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 rv accounting document create FM, simply by entering the name RV_ACCOUNTING_DOCUMENT_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function RV_ACCOUNTING_DOCUMENT_CREATE 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 'RV_ACCOUNTING_DOCUMENT_CREATE'"NOTRANSL: Buchhaltungsbelege für Fakturen erzeugen
EXPORTING
* CASH_SALE_ACCOUNT = ' ' "
* RRREL = "
* BOKRE = "
* BLART = "
* NEW_ACCT_DET = ' ' "
* TESTRUN = ' ' "Test flag
* AUTOMATIC_DP = ' ' "
* IS_FI_ADD_INPUT = "
* CPD_ADRESS = ' ' "
* DOCUMENT_OLD = ' ' "
INVOICE_HEADER = "
* I_COMP = ' ' "
* I_COMP_CHECK = ' ' "
* CHECK = ' ' "Display Error Messages
* MODE = ' ' "
* MODE_TYPES = ' ' "

IMPORTING
O_VBRK_RFBSK = "
O_KONV_CHANGED = "
O_NEW_CANCEL_FAIL = "

CHANGING
* C_DOWNPAY_REFRESH = ' ' "

TABLES
XKOMV = "
XVBRP = "
* XFPLT = "
* T_SDACCDPC = "
* XVBPA = "

EXCEPTIONS
ERROR_01 = 1 NO_DOCUMENT_REQUIRED = 2
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLV60B_001 User Exit AC Interface (Header Line)
EXIT_SAPLV60B_002 User Exit AC Interface (Customer Line)
EXIT_SAPLV60B_003 User Exit RW Interface (Cost)
EXIT_SAPLV60B_004 User Exit AC Interface (GL Account Item)
EXIT_SAPLV60B_005 User Exit AC Interface (Accruals)
EXIT_SAPLV60B_006 User Exit AC Interface (Tax Line)
EXIT_SAPLV60B_007 User Exit AC Interface (Customer Line)
EXIT_SAPLV60B_008 User Exit AC Interface Transfer Tables
EXIT_SAPLV60B_010 User Exit Item Table for the Customer Lines
EXIT_SAPLV60B_011 User Exit Communication Structures for Reconciliation Account Det.

IMPORTING Parameters details for RV_ACCOUNTING_DOCUMENT_CREATE

CASH_SALE_ACCOUNT -

Data type: C000-SAKN1
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

RRREL -

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

BOKRE -

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

BLART -

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

NEW_ACCT_DET -

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

TESTRUN - Test flag

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

AUTOMATIC_DP -

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

IS_FI_ADD_INPUT -

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

CPD_ADRESS -

Data type: SADR-ADRNR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

DOCUMENT_OLD -

Data type: VBRK-VBELN
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

INVOICE_HEADER -

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

I_COMP -

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

I_COMP_CHECK -

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

CHECK - Display Error Messages

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

MODE -

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

MODE_TYPES -

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

EXPORTING Parameters details for RV_ACCOUNTING_DOCUMENT_CREATE

O_VBRK_RFBSK -

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

O_KONV_CHANGED -

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

O_NEW_CANCEL_FAIL -

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

CHANGING Parameters details for RV_ACCOUNTING_DOCUMENT_CREATE

C_DOWNPAY_REFRESH -

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

TABLES Parameters details for RV_ACCOUNTING_DOCUMENT_CREATE

XKOMV -

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

XVBRP -

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

XFPLT -

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

T_SDACCDPC -

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

XVBPA -

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

EXCEPTIONS details

ERROR_01 -

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

NO_DOCUMENT_REQUIRED -

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

Copy and paste ABAP code example for RV_ACCOUNTING_DOCUMENT_CREATE 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_xkomv  TYPE STANDARD TABLE OF KOMV, "   
lv_error_01  TYPE KOMV, "   
lv_o_vbrk_rfbsk  TYPE VBRK-RFBSK, "   
lv_cash_sale_account  TYPE C000-SAKN1, "   ' '
lv_c_downpay_refresh  TYPE C, "   ' '
lv_rrrel  TYPE C, "   
lv_bokre  TYPE C, "   
lv_blart  TYPE TVFK-BLART, "   
lv_new_acct_det  TYPE C, "   ' '
lv_testrun  TYPE C, "   ' '
lv_automatic_dp  TYPE C, "   ' '
lv_is_fi_add_input  TYPE SDFI_S_ADD_INPUT, "   
lt_xvbrp  TYPE STANDARD TABLE OF VBRPVB, "   
lv_cpd_adress  TYPE SADR-ADRNR, "   ' '
lv_o_konv_changed  TYPE SADR, "   
lv_no_document_required  TYPE SADR, "   
lt_xfplt  TYPE STANDARD TABLE OF FPLTVB, "   
lv_document_old  TYPE VBRK-VBELN, "   ' '
lv_o_new_cancel_fail  TYPE VBRK, "   
lt_t_sdaccdpc  TYPE STANDARD TABLE OF SDACCDPC, "   
lv_invoice_header  TYPE VBRK, "   
lt_xvbpa  TYPE STANDARD TABLE OF VBPAVB, "   
lv_i_comp  TYPE TRWCI-COMPONENT, "   SPACE
lv_i_comp_check  TYPE TRWCI-COMPONENT, "   SPACE
lv_check  TYPE TRWCI, "   ' '
lv_mode  TYPE TRWCI, "   ' '
lv_mode_types  TYPE TRWCI. "   ' '

  CALL FUNCTION 'RV_ACCOUNTING_DOCUMENT_CREATE'  "NOTRANSL: Buchhaltungsbelege für Fakturen erzeugen
    EXPORTING
         CASH_SALE_ACCOUNT = lv_cash_sale_account
         RRREL = lv_rrrel
         BOKRE = lv_bokre
         BLART = lv_blart
         NEW_ACCT_DET = lv_new_acct_det
         TESTRUN = lv_testrun
         AUTOMATIC_DP = lv_automatic_dp
         IS_FI_ADD_INPUT = lv_is_fi_add_input
         CPD_ADRESS = lv_cpd_adress
         DOCUMENT_OLD = lv_document_old
         INVOICE_HEADER = lv_invoice_header
         I_COMP = lv_i_comp
         I_COMP_CHECK = lv_i_comp_check
         CHECK = lv_check
         MODE = lv_mode
         MODE_TYPES = lv_mode_types
    IMPORTING
         O_VBRK_RFBSK = lv_o_vbrk_rfbsk
         O_KONV_CHANGED = lv_o_konv_changed
         O_NEW_CANCEL_FAIL = lv_o_new_cancel_fail
    CHANGING
         C_DOWNPAY_REFRESH = lv_c_downpay_refresh
    TABLES
         XKOMV = lt_xkomv
         XVBRP = lt_xvbrp
         XFPLT = lt_xfplt
         T_SDACCDPC = lt_t_sdaccdpc
         XVBPA = lt_xvbpa
    EXCEPTIONS
        ERROR_01 = 1
        NO_DOCUMENT_REQUIRED = 2
. " RV_ACCOUNTING_DOCUMENT_CREATE




ABAP code using 7.40 inline data declarations to call FM RV_ACCOUNTING_DOCUMENT_CREATE

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 RFBSK FROM VBRK INTO @DATA(ld_o_vbrk_rfbsk).
 
"SELECT single SAKN1 FROM C000 INTO @DATA(ld_cash_sale_account).
DATA(ld_cash_sale_account) = ' '.
 
DATA(ld_c_downpay_refresh) = ' '.
 
 
 
"SELECT single BLART FROM TVFK INTO @DATA(ld_blart).
 
DATA(ld_new_acct_det) = ' '.
 
DATA(ld_testrun) = ' '.
 
DATA(ld_automatic_dp) = ' '.
 
 
 
"SELECT single ADRNR FROM SADR INTO @DATA(ld_cpd_adress).
DATA(ld_cpd_adress) = ' '.
 
 
 
 
"SELECT single VBELN FROM VBRK INTO @DATA(ld_document_old).
DATA(ld_document_old) = ' '.
 
 
 
 
 
"SELECT single COMPONENT FROM TRWCI INTO @DATA(ld_i_comp).
DATA(ld_i_comp) = ' '.
 
"SELECT single COMPONENT FROM TRWCI INTO @DATA(ld_i_comp_check).
DATA(ld_i_comp_check) = ' '.
 
DATA(ld_check) = ' '.
 
DATA(ld_mode) = ' '.
 
DATA(ld_mode_types) = ' '.
 


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!