Добрый вечер, BWLisa.
ICube из SBC или Z?
Данные точно есть?
Читаем SAP Help для SBC (BI Content 7.04): Например, для ICube:
CO-OM: Costs and Allocations (Delta Extraction)
Technical name: 0COOM_C02The system enters the responsible cost center for the order, WBS element, network, network activities, and network activity elements in the 0COSTCENTER (cost center) InfoCube. This takes place in the data records for orders, WBS elements, networks, and network activities.
The system determines the responsible cost center in the routine for the update rule from the master data of the order, WBS element, network, network activity, or the network activity element.
In data records for cost centers, entries are not made in the following InfoObjects: 0COORDER (order), 0WBS_ELEMT (WBS element), 0NETWORK (network), 0ACTIVITY (network activity) and 0ACTY_ELEMT (network activity element).
И код в рутинке =
Code:
*$*$ begin of routine - insert your code only below this line *-*
READ TABLE I_MCOORDER WITH KEY COORDER = COMM_STRUCTURE-COORDER.
IF SY-SUBRC IS INITIAL.
RESULT = I_MCOORDER-RESP_CCTR.
RETURNCODE = 0.
ELSE.
SELECT SINGLE * FROM /BI0/MCOORDER INTO I_MCOORDER
WHERE COORDER = COMM_STRUCTURE-COORDER
AND OBJVERS = 'A'.
IF SY-SUBRC IS INITIAL.
APPEND I_MCOORDER.
RESULT = I_MCOORDER-RESP_CCTR.
ELSE.
CLEAR RESULT.
ENDIF.
RETURNCODE = SY-SUBRC.
ENDIF.
0RESP_CCTR - Responsible cost center (Ответственное МВЗ).