SAP ABAP Class CL_COSTING_SERVICES (PCP Service Routines)
Hierarchy
☛
SAP_FIN (Software Component) SAP_FIN
⤷
CO-PC-PCP (Application Component) Product Cost Planning
⤷
CKBK (Package) R/3 Application Development: PP Costing Valuation
⤷
⤷
Properties
| Class | CL_COSTING_SERVICES | |
| Short Description | PCP Service Routines | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | CKBK | R/3 Application Development: PP Costing Valuation |
| Created | 19980921 | SAP |
| Last change | 19991123 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 3 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 4 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_COSTING_SERVICES has no interface implemented.
Friends
Class CL_COSTING_SERVICES has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Private | Type reference (TYPE) | CKBK_CURRTP_PLANT_TABLE | Object, Co. Code and CO Area Currency Types and Keys | 19981104 | |||
| 2 | Static Attribute | Private | Type reference (TYPE) | TY_CURRENCY_TABLE | Valid Currencies for Company Code | 19990730 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Insert or Change Costing Item | 20000403 | |
| 2 | Static method | Public | Method | Completes Costing Key (Unit Costing) | 19991130 | |
| 3 | Static method | Private | Method | Expand Costing Hierarchy Top -> Down | 20000129 | |
| 4 | Static method | Public | Method | Expand Costing Hierarchy Top -> Down | 20000129 | |
| 5 | Static method | Public | Method | Object, Co. Code and Co. Area Currencies and Currency Types | 20000119 | |
| 6 | Static method | Public | Method | Object, Co. Code and Co. Area Currencies and Currency Types | 19981104 | |
| 7 | Static method | Public | Method | Determine Organizational Data | 19980921 | |
| 8 | Static method | Public | Method | Provides Conversion Factors for Quantity Conversion | 19981029 | |
| 9 | Static method | Public | Method | Determine Possible Currency Types | 19981016 | |
| 10 | Static method | Public | Method | Supplies valuation modification constant to a plant | 19990831 | |
| 11 | Static method | Public | Method | Valuation Strategies for the Item Category | 19991123 | |
| 12 | Static method | Public | Method | Valuation Strategy of Internal Activity Allocation | 19981019 | |
| 13 | Static method | Public | Method | Insert or Change Costing Item | 20000403 |
Events
Class CL_COSTING_SERVICES has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TY_CURRENCY_LINE | Private | See coding | TY_CURRENCY_LINE | 19990730 | |
|
| 2 | TY_CURRENCY_TABLE | Private | See coding | Buffer Table for Currencies of Company Code | 19990730 | |
Method Signatures
Method CHECK_UPDATE_COMPONENTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_DELETE_SUB_HIERARCHY | Value transfer | Type reference (TYPE) | XFLAG | Subhierarchie wird nicht mehr verwendet | 20000405 | |||
| 2 | EX_INDEFINITE_POSITIONS | Value transfer | Type reference (TYPE) | XFLAG | Einfuegen nicht eindeutig moeglich | 20000403 | |||
| 3 | EX_INDEFINITE_SUB_HIERARCHY | Value transfer | Type reference (TYPE) | XFLAG | Beim Einfuegen wuerde Subhierarchie geloescht | 20000403 | |||
| 4 | IR_COST_ESTIMATE | Call by reference | Object reference (TYPE REF TO) | CL_COST_ESTIMATE | PCP Plankalkulation | 20000403 | |||
| 5 | IT_COMPONENT | Call by reference | Type reference (TYPE) | CKF_COMPONENT_TABLE | PCP: Table with valuation objects | 20000403 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Programmfehler. Nie abfangen! | 20000404 |
Method COMPLETE_COSTING_KEY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_KEKOKEY | Call by reference | Type reference (TYPE) | CKKEKOKEY | Bezugsobjekt | 19991130 | |||
| 2 | I_COSTING_NUMBER | Call by reference | Type reference (TYPE) | CK_KALNR | Kalkulationsnummer für Kalkulation ohne Mengengerüst | 19991130 | |||
| 3 | I_COSTING_VARIANT | Call by reference | Type reference (TYPE) | CK_KLVAR | Kalkulationsvariante | 19991130 | |||
| 4 | I_COSTING_VERSION | Call by reference | Type reference (TYPE) | CK_TVERS | 01 | Kalkulationsversion | 19991130 | ||
| 5 | I_REF_OBJECT | Call by reference | Type reference (TYPE) | CK_OBJ | Bezugsobjekt | 19991130 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Kalkulationsvariante nicht vorhanden | 19991130 | ||
| 2 | Inkonsistentes Customizing | 19991130 | ||
| 3 | Bezugsobjekt nicht unterstützt | 19991130 |
Method GET_CE_HIERARCHY_INT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_COST_ESTIMATE | Call by reference | Type reference (TYPE) | CKF_T_COST_ESTIMATE_LEVEL | Kalkulationsstufen der Kalkulationen | 20000129 | |||
| 2 | IR_COST_ESTIMATE | Call by reference | Object reference (TYPE REF TO) | CL_COST_ESTIMATE | PCP Plankalkulation | 20000129 | |||
| 3 | I_LEVEL | Call by reference | Type reference (TYPE) | CK_KALST | Kalkulationsstufe | 20000129 |
Method GET_CE_HIERARCHY_INT on class CL_COSTING_SERVICES has no exception.
Method GET_COST_ESTIMATE_HIERARCHY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_COST_ESTIMATE_LEVEL | Call by reference | Type reference (TYPE) | CKF_T_COST_ESTIMATE_LEVEL | Kalkulationsstufen der Kalkulationen | 20000129 | |||
| 2 | E_LEVEL | Call by reference | Type reference (TYPE) | CK_KALST | Kalkulationsstufe | 20000129 | |||
| 3 | IR_COST_ESTIMATE | Call by reference | Object reference (TYPE REF TO) | CL_COST_ESTIMATE | PCP Plankalkulation | 20000129 |
Method GET_COST_ESTIMATE_HIERARCHY on class CL_COSTING_SERVICES has no exception.
Method GET_CURRENCY_TYPES_OF_COMPANY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_COMPANY_CURRENCY | Call by reference | Type reference (TYPE) | WAERS | Buchungskreiswährung | 20000119 | |||
| 2 | EX_COMPANY_CURRENCY_TYPE | Call by reference | Type reference (TYPE) | TCVAL-CURRTYP | Buchungskreiswährungstyp | 20000119 | |||
| 3 | EX_CO_AREA_CURRENCY | Call by reference | Type reference (TYPE) | WAERS | Kostenrechnungskreiswährung | 20000119 | |||
| 4 | EX_CO_AREA_CURRENCY_TYPE | Call by reference | Type reference (TYPE) | TCVAL-CURRTYP | Kostenrechnungskreiswährungstyp | 20000119 | |||
| 5 | EX_OBJECT_CURRENCY | Call by reference | Type reference (TYPE) | WAERS | Objektwährung | 20000119 | |||
| 6 | EX_OBJECT_CURRENCY_TYPE | Call by reference | Type reference (TYPE) | TCVAL-CURRTYP | Objektwährungstyp | 20000119 | |||
| 7 | IM_COMPANY_CODE | Call by reference | Type reference (TYPE) | KEKO-WERKS | Buchungskreis | 20000119 | |||
| 8 | IM_VALUATION | Call by reference | Type reference (TYPE) | TCK01-VALUATION | '0' | Valuation view | 20000119 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Buchungskreisdaten nicht gefunden | 20000119 |
Method GET_CURRENCY_TYPES_OF_PLANT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_COMPANY_CURRENCY | Call by reference | Type reference (TYPE) | WAERS | Buchungskreiswährung | 19990623 | |||
| 2 | EX_COMPANY_CURRENCY_TYPE | Call by reference | Type reference (TYPE) | TCVAL-CURRTYP | Buchungskreiswährungstyp | 19990623 | |||
| 3 | EX_CO_AREA_CURRENCY | Call by reference | Type reference (TYPE) | WAERS | Kostenrechnungskreiswährung | 19990623 | |||
| 4 | EX_CO_AREA_CURRENCY_TYPE | Call by reference | Type reference (TYPE) | TCVAL-CURRTYP | Kostenrechnungskreiswährungstyp | 19981104 | |||
| 5 | EX_OBJECT_CURRENCY | Call by reference | Type reference (TYPE) | WAERS | Objektwährung | 19990623 | |||
| 6 | EX_OBJECT_CURRENCY_TYPE | Call by reference | Type reference (TYPE) | TCVAL-CURRTYP | Objektwährungstyp | 19981104 | |||
| 7 | IM_PLANT | Call by reference | Type reference (TYPE) | KEKO-WERKS | Werk | 19981104 | |||
| 8 | IM_VALUATION | Call by reference | Type reference (TYPE) | TCK01-VALUATION | '0' | Valuation view | 19981104 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Waehrungen konnten nicht ermittelt werden | 20000417 | ||
| 2 | Werksdaten nicht gefunden | 19981104 |
Method GET_ORGANIZATION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_DUMMY_PROFIT_CENTER | Call by reference | Type reference (TYPE) | CKIS-PRCTR | Dummy Profit Center | 19981202 | |||
| 2 | EX_ORGANIZATION | Call by reference | Type reference (TYPE) | CKBK_ORGANIZATION | Organizational data | 19980921 | |||
| 3 | IM_COMPANY | Call by reference | Type reference (TYPE) | CKIS-BUKRS | Buchungskreis | 19990301 | |||
| 4 | IM_CONTROLLING_AREA | Call by reference | Type reference (TYPE) | CKIS-KOKRS_HRK | Kostenrechnungskreis | 19990302 | |||
| 5 | IM_MATERIAL_NUMBER | Call by reference | Type reference (TYPE) | CKIS-MATNR | Materialnummer (obligatorisch fuer PrCtr/GsBer-Bestimmung) | 19980921 | |||
| 6 | IM_PLANT | Call by reference | Type reference (TYPE) | CKIS-WERKS | Werk | 19980921 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Buchungskreis fehlt oder ist fehlerhaft | 19990301 | ||
| 2 | Kostenrechnungskreis fehlt oder ist fehlerhaft | 19990302 | ||
| 3 | Importparameterkombination Material/Werk nicht korrekt | 19980923 |
Method GET_QUANTITY_CONVERSION_FACTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_FRACTION | Call by reference | Type reference (TYPE) | CKBK_FRACTION | Für die Umrechnung verwendeter Faktor (Nenner und Zähler) | 19981029 | |||
| 2 | EX_QUANTITY_TO | Call by reference | Type reference (TYPE) | CKBK_QUANTITY | Menge und Einheit in die umgerechnet wurde | 19981029 | |||
| 3 | IM_BATCH | Value transfer | Type reference (TYPE) | CHARG_D | Charge | 19981029 | |||
| 4 | IM_MATNR | Value transfer | Type reference (TYPE) | MATNR | Materialnummer | 19981029 | |||
| 5 | IM_QUANTITY_FROM | Value transfer | Type reference (TYPE) | CKBK_QUANTITY | Menge und Einheit von der umgerechnet werden soll | 19981029 | |||
| 6 | IM_UNIT_OF_MEASURE_TO | Value transfer | Type reference (TYPE) | MEINS | Einheit in die umgerechnet werden soll | 19981029 | |||
| 7 | IM_WERKS | Value transfer | Type reference (TYPE) | CKIS-WERKS | Werk | 19981029 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Umrechnungsfaktoren. | 19981029 | ||
| 2 | Material nicht vorhanden | 19981029 | ||
| 3 | Parameter fehlen | 19981029 | ||
| 4 | Überlauf | 19981029 |
Method GET_VALID_CURRENCIES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_CURRENCIES | Call by reference | Type reference (TYPE) | CKBK_CURRENCY_TABLE | Currency table | 19981016 | |||
| 2 | IM_COMPANY | Call by reference | Type reference (TYPE) | CKIS-BUKRS | Buchungskreis | 19981016 | |||
| 3 | IM_VALUATION | Call by reference | Type reference (TYPE) | TCK01-VALUATION | Bewertunsssicht | 19981016 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Buchungskreis nicht vorhanden | 19981016 |
Method GET_VALUATION_GROUPING_CODE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_VALUATION_GROUPING_CODE | Call by reference | Type reference (TYPE) | BWMOD | Bewertungsmodifikationskonstante | 19990831 | |||
| 2 | IM_PLANT | Call by reference | Type reference (TYPE) | CKIS-WERKS | Werk | 19990831 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | interner Fehler | 19990831 | ||
| 2 | Werk nicht vorhanden | 19990831 |
Method GET_VALUATION_STRATEGIES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_STRATEGIES | Call by reference | Type reference (TYPE) | CKF_STRATEGY_TABLE | Bewertungsstrategiefolge allgemein | 19991123 | |||
| 2 | IM_REQUESTED_ITEM_CATEGORY | Value transfer | Type reference (TYPE) | TYPPS | Positionstyp | 19991123 | |||
| 3 | IM_VALUATION_VARIANT | Call by reference | Type reference (TYPE) | TCK05 | Bewertungsvarinate | 19991123 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Keine Strategie gefunden | 19991123 |
Method GET_VALUATION_STRATEGIES_IAA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_CO_VERSION | Call by reference | Type reference (TYPE) | TCK05-VERSN | Version | 20030509 | |||
| 2 | EX_STRATEGIES | Call by reference | Type reference (TYPE) | POLICY_LIST | Strategiefolgentabelle | 19981019 | |||
| 3 | IM_COSTING_VARIANT | Call by reference | Type reference (TYPE) | TCK03-KLVAR | Kalkulationsvarinate | 19981019 | |||
| 4 | IM_PLANT | Call by reference | Type reference (TYPE) | CKIS-WERKS | Werk | 19981019 | |||
| 5 | IM_STRATEGIES | Call by reference | Type reference (TYPE) | CKINTERNALACTIVITYSTRAT | Strategiefolge aus Variante | 19981023 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Kalkulationsvariante ist nicht vorhanden | 19981019 | ||
| 2 | Keine Strategie gefunden | 19981019 |
Method UPDATE_COMPONENTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IR_COST_ESTIMATE | Call by reference | Object reference (TYPE REF TO) | CL_COST_ESTIMATE | PCP Plankalkulation | 20000403 | |||
| 2 | IT_COMPONENT | Call by reference | Type reference (TYPE) | CKF_COMPONENT_TABLE | PCP: Table with valuation objects | 20000403 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Programmfehler. Nie abfangen! | 20000404 |
History
| Last changed by/on | SAP | 19991123 |
| SAP Release Created in |