SAP 查询 - BSEG 和 BKPF

SAP query - BSEG and BKPF

我在 SAP ERP 中有两个表,BSEG 和 BKPF,我们可以识别哪些交易来自 BSIS、BASS、BAUD、BSAD、BSIK 或 BSAK 吗?如果是那么如何?我们应该使用哪些列和过滤器?

您可以使用帐户类型字段 (BSEG-KOART):

BSEG-KOART = 'S' => G/L postings, index tables are BSIS and BSAS
BSEG-KOART = 'D' => customer postings, index tables are BSID and BSAD
BSEG-KOART = 'K' => vendor postings, index tables are BSIK and BSAK.

或者,您也可以使用发布密钥字段 (BSEG-BSCHL),但它有点复杂:

BSEG-BSCHL = '40' or '50' => G/L postings
BSEG-BSCHL = '01' - '09' or '11' - '19' => customer postings
BSEG-BSCHL = '21' - '29' or '31' - '39' => vendor postings