I have to find the profit center number based on the combination of company code, contract number and rental unit. Can anybody please suggest me any table where profit center is maintained for contract number as primary key, or any FM which gives the profit center number from an contract number.
Thanks and regards,
you can use the BAPI_RE_CN_GET_DETAIL, and specify only one TABLES-Parameter TERM_ORG_ASSIGNMENT. It will be filled with the profit center. This table can have more than one entry if the profit center (or any other attribute) was changed once or more often, then look at the validity fields of each table entry and find the right one.
Edited by: Siarhei Kozyrau on Jun 25, 2010 1:08 PM