Vendor line item has different types : Normal Items, Special G/L transactions , Noted Items , Parked Items and Customer Items. Where is the SAP database I can find this type ?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
In FI there is no single “LINE-ITEM-TYPE” field in the data base.
Instead SAP derives the different categories (normal, special G/L, noted, parked, customer, …) from a combination of
the account type that is stored in every line (vendor / customer / G/L)
the special-G/L indicator in the line itself, and
the document status that sits in the document header.
Below you find the tables and the exact fields you have to look at.
Where are the vendor (and customer) line items kept?
Core FI line items: BSEG (Accounting document segment) – always the leading table
Performance indices (posted documents only):
• Vendors – Open : BSIK
• Vendors – Cleared: BSAK
• Customers – Open : BSID
• Customers – Cleared: BSAD
Parked documents that are not yet posted:
• New (“Enjoy”) parking: still in BKPF/BSEG but BKPF-BSTAT ≠ ' '
• Classic parking : VBKPF / VBSEG (same structure as BKPF/BSEG)
Noted items (memorandum docs): BKPF/BSEG as normal documents – but with a special document
status (see below).
Fields that tell you the “type”
Table Field Domain What it tells you
BSEG KOART KOART Account type
'K' = Vendor
'D' = Customer
'S' = G/L etc.
BSEG UMSKZ UMSKZ Special G/L indicator
SPACE = normal item
‘A’ = Down payment, ‘F’ = Bill/Exch., ‘N’ = Noted item, …
Any non-blank value flags the line as special G/L.
With those three fields you can reconstruct every category that FBL1N or FBL5N shows.
How to read it – simple SQL examples
Normal vendor items
sql
SELECT * FROM bseg
WHERE bukrs = '1000'
AND koart = 'K' -- vendor
AND umskz = ' ' -- NOT special G/L
AND belnr IN ( SELECT belnr
FROM bkpf
WHERE bukrs = '1000'
AND bstat = ' ' ); -- posted, i.e. not parked/noted
Special G/L vendor items (down-payments, bills of exchange, etc.)
sql
SELECT * FROM bseg
WHERE bukrs = '1000'
AND koart = 'K'
AND umskz <> ' ';
Noted vendor items
sql
SELECT * FROM bseg
WHERE bukrs = '1000'
AND koart = 'K'
AND belnr IN ( SELECT belnr
FROM bkpf
WHERE bukrs = '1000'
AND bstat = 'G' ); -- memorandum
Parked vendor items (new “Enjoy”)
sql
SELECT * FROM bseg
WHERE bukrs = '1000'
AND koart = 'K'
AND belnr IN ( SELECT belnr
FROM bkpf
WHERE bukrs = '1000'
AND bstat = 'V' ); -- parked
Customer items are obtained the same way, just switch KOART = 'D' (or read BSID/BSAD).
Quick cheat sheet
• Normal item = KOART 'K' (or 'D') + UMSKZ SPACE + BKPF-BSTAT SPACE
• Special G/L item = KOART 'K' + UMSKZ ≠ SPACE + BKPF-BSTAT SPACE
• Noted item = … + BKPF-BSTAT = 'G'
• Parked item = … + BKPF-BSTAT = 'V' (or 'A'/'B')
• Customer item = KOART 'D' (same logic for the other flags)
So: look in BSEG (or BSIK/BSAK / VBSEG) for KOART & UMSKZ, and in BKPF for BSTAT.
Those three fields give you exactly the “type” of every vendor / customer line item.