Accounting document creation from SD Troubleshooting
Skip to end of metadata
Created by Christian Rosa, last modified by Kelly Ynoue on Oct 29, 2015
Go to start of metadata
First, see the solutions to common issues and error messages in the FAQ in Accounting document creation from SD (SD-FI Interface).
If you don't know the message ID and number and the billing document was created and released to accounting by collective processing, check the log following these steps:
2. Run transaction SE16, table VBSS, and enter the billing document number in VBELN. If there is an entry, the billing document was created by a job.
4. Run transaction V.21 and enter the group number.
With the error message ID and number, take another look at the most common error messages in the FAQ in Accounting document creation from SD (SD-FI Interface).
To analyze the creation of an accounting document from an SD Billing document, set a breakpoint in function module RV_ACCOUNTING_DOCUMENT_CREATE.
Function module RV_ACCOUNTING_DOCUMENT_CREATE is called by function module RV_INVOICE_DOCUMENT_ADD.
If the accounting document is already created, you may use the simulation report SAPFACC0 or SAPFACC1. Both reports provide a list (an overview) about all posted lines and accounts.
To trigger function module RV_ACCOUNTING_DOCUMENT_CREATE of an existing accounting document, follow the steps:
Run SE38 or SA38.
Run report SAPFACC0 or SAPFACC1.
Enter the billing document number. NEVER select update run, if this option "update run" appears.
The difference between reports SAPFACC0 or SAPFACC1 is the selection of the concerned billing document.
In report SAPFACC0, the selection of the billing document is via a direct SELELCT FROM TABLE, and is therefore limited.
In report SAPFACC1, the selection of the billing document is via function module RV_INVOICE_DOCUMENT_READ. It allows also an investigation in business processes with: costs (condition VPRS), transfer prices, revenue recognition and (partially) down payment.
You can find further information (specially about debugging) in page: General Information About SD-FI Interface.
FAQ in Accounting document creation from SD (SD-FI Interface)
Skip to end of metadata
Created by Kelly Ynoue, last modified on Oct 29, 2015
Go to start of metadata
You'll be able to easily find out the answer/solution by yourself for the most frequently asked questions in SD-FI interface on this page.
For an easier search, you can use Ctrl + F to find a specific error message, for example.
If you have issues when creating a billing document, access the FAQ in SD-BIL-IV - Processing of billing documents.
If you have issues when cancelling a billing document, access the FAQ in Billing Cancellation.
General Information About SD-FI Interface
由 Csaba Soltesz 于 2014-2-21 上午9:58 创建,由 Csaba Soltesz 于 2014-3-5 下午3:05 执行最后修改
版本 4
inShare2
Tweet
The following post is focusing on the generation of the accounting document.
The main purpose is to presentate the most important programs and tables involved during the process.
General information
During release of a billing document to accounting, the relevant fields of the SD invoice (fields of VBRK, VBRP, VBPA, KONV tables) are transfered to the interface tables XACCHD, XACCIT, XACCCR.
On FI side these interface tables are used to transfer the data to the necessary modules in FI/CO.
On accounting side the most important tables being filled are BKPF, BSEG and BSET.
As a result the customer line item on FI side is created, that equals to the value that has to be payed by the customer. Furthermore revenue and tax lines are created. A summarization takes place if possible or if there is a special customizing setting for it (see SAP Note 36353).
Function module that starts the SD-FI Interface
The most important modules are the function module RV_ACCOUNTING_DOCUMENT_CREATE for creating accounting documents for individual documents, the function moduleRV_ACCOUNTING_DOCULIST_CREATE for creating accounting documents for invoice lists and the Include LV60BF00 that contains the most important subprograms.
RV_ACCOUNTING_DOCUMENT_CREATE (LV60BU01)
RV_ACCOUNTING_DOCUMENT_CREATE converts the billing document into the interface structures ACCHD,ACCIT, and ACCCR and the internal interface tables XACCIT, XACCCR, XACCHD are filled. These are then converted in Function AC_DOCUMENT_CREATE into the accounting document tables BSEG (accounting segment), BSET (taxes) and BKPF (document header). An ACCHD line is created for each and every billing document.
The structure ACCHD contains the header information for the accounting document. It includes, for example, the time of entry, the name of the person entering the data and the transaction which was used to create the document.
The structure ACCIT contains basic posting information including the currency information. You can see the billing item to which an ACCIT line belongs in the field ACCIT-POSNR_SD.
The sturcture ACCCR contains the rate and currency information for customer, tax and G/L account lines. At least one ACCCR is created for each condition, customer or tax line. The ACCIT line belonging to an ACCR line can be identified using the field POSNR (ACCIT-POSNR) .
RV_ACCOUNTING_DOCULIST_CREATE (LV60BU02)
SUBPROGRAMS (LV60BF00)
Form ACCOUNTING_HEAD_LINE
Form ACCOUNTING_ITEM_LINE.
Form ACCOUNTING_TAX_LINE.
Form READ_FI_PERIODE_INVOICEDATE.
Form TXJCD_AUFBEREITEN.
Form FREE_OF_CHARGE_LINE.
Form XACCIT_XNEGP_SET.
Form XACCIT_XVALGS_ZFBDT_SET.
Form CURRENCY_CONVERSION
Form FILL_ACCIT_DEB
Important tables and fields
Possibility of modification
Of course it is possible to influence the release of billing documents to accounting by using user exits. Just to mention some of the relevant programs:
301077 - User exits for the interface for accounting
FAQ in Billing Cancellation
Skip to end of metadata
Created by Kelly Ynoue, last modified yesterday at 07:16 PM
Go to start of metadata
You'll be able to easily find out the answer/solution by yourself for the most frequently asked questions in SD Billing Cancellation area on this page.
For an easier search, you can use Ctrl + F to find a specific error message, for example.
If you have issues when releasing a billing document to accounting, access the FAQ in Accounting document creation from SD (SD-FI Interface).
If you have issues when creating a billing document, access the FAQ in SD-BIL-IV - Processing of billing documents.
FAQ in SD-BIL-IV - Processing of billing documents
Skip to end of metadata
Created by Kelly Ynoue, last modified on Jun 08, 2016
Go to start of metadata
You'll be able to easily find out the answer/solution by yourself for the most frequently asked questions in SD Billing documents area on this page.
For an easier search, you can use Ctrl + F to find a specific error message, for example.
If you have issues when releasing a billing document to accounting, access the FAQ in Accounting document creation from SD (SD-FI Interface).
If you have issues when cancelling a billing document, access the FAQ in Billing Cancellation.
Transaction | Button
VF01 | Save
VF02 | Release to accounting (if posting block is set in billing type customizing VOFA)
VFX3 | Release to accounting (if posting block is set in billing type customizing VOFA)
VF11 | Save
...