Relationship of SAPFI voucher table (BSEG and BSIS, BSAS, BSID, BSAD, BSIK, BSAK)

BSAS + BSIS +BSAK+BSIK+BSAD+BSID = BSEG


cleared │ opened
--------------------------------     
BSAS      │ BSIS      ==>all GL documents
BSAK │ BSIK ==>all AP documents
BSAD │ BSID ==>all AR documents


BKPF is the financial document header and BSEG is the financial document line item.

At the time of accounting of financial documents, data is inserted into BKPF and BSEG , and if necessary, data is inserted into one of the above six tables open at the same time.
When clearing accounts, data is deleted from one of the six tables that are not cleared and inserted into the corresponding cleared table.


BSAD: Receivable Details (Cleared) Customer
BSID: Receivable Details (Open) Customer
BSAS : General Ledger Details (Cleared) General Ledger
BSIS : General Ledger Details (Open) General Ledger
BSAK: Payable Details (Clearing) Supplier
BSIK: Payable details (uncleared) Supplier


BSEG is mainly associated with these six tables through "document number", "fiscal year" and "line number"
BSEG uses
BUKRS ( Company code )
BELNR ( Document No )
GJAHR ( Fiscal Year )
BUZEI ( Line Item )




FI accounting module to enter a business will record a financial document, the document information in the SAP system is divided into header information and detailed information Two parts are stored. The header information is stored in the transparent table BKPF, and the details (line item Items) information is stored in cluster tables such as BSEG .

BKPF:
        Accounting Document Header

BSEG :
        Accounting Document Segment

BSEG itself is a cluster table (Cluster Table), which belongs to the table cluster (Cluster Table) RFBLG, and the cluster table belonging to the table cluster RFBLG also There are:

BSEC:
        One-Time Account Data Document Segment

BSED:
        Bill of Exchange Fields Document Segment

BSES:
        Document Control Data

BSET: The primary key field (key) of the
        Tax Data Document Segmen

cluster table BSEG has the following five items.
        MANDT: Group (Client)
        BUKRS: Company code
        BELNR: Accounting document number
        GJAHR: Fiscal Year BUZEI
        : Number of Line Item Within Accounting Document

The cluster table BSEG is mainly associated with the following six main financial transparency tables through the above five primary key fields.
Receivable Details
BSID: Accounting: Secondary index for customers (open)
        Accounting: Secondary index for customers
BSAD: Accounting: Secondary index for customers (closed items) (cleared)
        Accounting: Secondary index for customers (cleared items)

payable details
BSIK:
        Accounting: Secondary index for vendors
BSAK: Accounting: Secondary index for vendors (cleared items) (cleared)
        Accounting: Secondary index for vendors (cleared items)

G/L details
BSIS : Accounting: Second index for G/L accounts (open accounts)
        Accounting: Secondary Index for G/L Accounts
BSAS :
        Accounting: Secondary index for G/L accounts(cleared items)



(The picture can be saved and zoomed in)

The detail part of an accounting document can contain multiple line items. When these multiple line items are stored in cluster tables such as BSEG , they will also be stored in the following six financial statements according to the status of the line items. in the data sheet.

Generally, there are open documents at the beginning.

If the line item is related to the customer, it will be recorded to the BSID;

if the line item is related to the supplier, it will be recorded to the BSIK;

whether it is related to the customer or related to the customer Supplier related, are related to the general ledger, so it is also recorded to BSIS .

Then when the transaction is cleared

, the corresponding record is transferred from BSID to BSAD if the line item is related to the customer;

if the line item is related to the customer, the corresponding record is transferred from BSIK to BSAK;

Whether it is related to customers or suppliers, it is related to the general ledger, so the corresponding records will also be transferred from BSIS to BSAS .

Under normal circumstances:

accounts received in advance, accounts receivable, other receivables, bills of exchange and other accounts are not only related to customers, but also related to the general ledger accounts of open item management;

prepaid accounts, accounts payable, other payables Accounts such as payment and bill of exchange payable are not only related to the supplier, but also related to the general ledger account of open item management;

other general ledger accounts generally do not enable open item management, so the records are generally placed in BSIS .

In addition to the above 6 accounting voucher tables, there is also a material voucher table, because sometimes there are line items related to materials in the vouchers, but the line items related to materials do not need to be processed for outstanding accounts, so there is only one material Corresponding to the voucher table.

BSIM: Second-level Index, Commodity Certificate
        Secondary Index, Documents for Material

There is a concept here that needs to be noted: when

storing in a cluster table such as BSEG , all line item information in the detailed part of a certificate is edited into a The long text is stored in the vardata item in the table cluster RFBLG.

When the seven corresponding transparent tables are stored, they are respectively stored in the corresponding transparent tables according to the properties of the above line items, and each record in the table records only one line item information.

With the above knowledge, it is not difficult to understand that when

using T-code: FB03 to view the detailed information of the voucher, it is actually reading the information of cluster tables such as BSEG .

When using T-code: FBL1N, FBL3N, FBL5N to view the outstanding and cleared items information of suppliers, general ledger, and customers respectively, it actually reads the information of accounting voucher tables such as BSIK and BSAK.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326193476&siteId=291194637