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
Firstly you should find accounting document number from invoice number (RBKP-BELNR). You can do this by two ways:
BELNR
and GJAHR
and link this with BKPF-AWKEY.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.