Relationship between bseg and the other six tables
Difference between saknr (General Account) and hkont (General Account) in bseg
Hkont stores the real general ledger account of the certificate, and saknr stores the unified subject of the supplier or customer.
If a credential line project is not a subject, saknr is empty. If you enter a normal subject creden,, the two fields are the same,
However, when you enter a special general ledger credential, saknr stores a general ledger account, and hkont stores a special general ledger account.
BSAs + BSIS + bsak + bsik + bsad + BSID = bseg
BSAs │ BSIS ==> all Gl documents general ledger
Bsak │ bsik ==> all AP documents supplier
Bsad │ BSID ==> all ar documents customer
Bseg is a financial credential line project. Data is inserted into bkpf and bseg when the Financial creden are recorded. If necessary,
Insert data into one of the preceding six tables.
When clearing the account, the data is deleted from one of the six outstanding tables and the corresponding cleared table is inserted.
Bseg uses bukrs (company code), belnr (Document No), gjahr (fiscal year ),
The buzei (line item) field is associated with other tables.
Bsad: Details of receivables (clear accounts)
BSID: Details of receivables (not clear)
BSAs: General Ledger details (cleared)
BSIS: General Ledger details (not clear)
Bsak: payable details (clear account)
Bsik: payable details (unsettled)
Bseg is associated with these six tables through "credential number", "accounting year", and "row number ".
Generally, the creden generated by a business are not clear, so:
If the business line is customer-related, it is recorded to BSID;
If the business line is supplier-related, it is recorded to bsik;
Whether it is related to the customer or the supplier, it is related to the general ledger, so there will be records to BSIS;
However, if this service is cleared, the corresponding records will be transferred from BSIS to BSAs.
Under normal circumstances: Accounts receivable, advance receipts, other receivables, bills receivable and other subjects are not only related to the customer, but also not clear
The general ledger of item management;
Accounts payable, prepaid accounts, other payables, bills payable, and other subjects are related to both suppliers and general ledger subjects managed for outstanding items;
Other general ledger accounts generally do not enable the management of unsettled items, so records are generally stored in BSIS.
Bseg itself is a cluster Table (cluster Table ),
Bseg is the integration of the above six tables. to read the "bseg" table, it is equal to reading the six tables,
It is slow and has restrictions on operations.
Cluster tables or pool tables are used by the SAP system. Therefore, the cluster tables do not have database entities,
Although it can be used in ABAP, there are still some restrictions:
1.
You cannot use the select distinct or group by syntax.
2. Native SQL cannot be used
3. Specify field names cannot be used after the order by clause
4. The secondary index cannot be created.
5. Key field must be used for query.
Relationship between bseg and the other six tables