首页 > 解决方案 > SAP 查询 - BSEG 和 BKPF

问题描述

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

标签: sap-erpsap-query

解决方案


您可以使用帐户类型字段 (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

推荐阅读