Get profit center/cost center from RBKP invoice re

2019-08-21 07:04发布

how can I get the cost center, profit center? I am from RSEG and RBKP tables is there any other way to get those, i can't use vbseg tables cause the doc no. are stored in rseg and rbkp since i created the document using MIR7. please help. thanks

标签: sap abap
1条回答
孤傲高冷的网名
2楼-- · 2019-08-21 07:45

Firstly you should find accounting document number from invoice number (RBKP-BELNR). You can do this by two ways:

  1. Via reference key (AWKEY). You should concatenate fields BELNR and GJAHR and link this with BKPF-AWKEY.

enter image description here

  1. Another way to find this number is via GUI. Enter your RBKP-BELNR into MIRO transaction and press Follow-on documents, here you will see it as well.

enter image description here

After finding that BKPF number take it along with full key and go to BSEG. You will find cost center there (KOSTL field).

Profit centers can be found by cost centers from CSKS link-table.

查看更多
登录 后发表回答