Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>CostActivityPlanning



Index

CostActivityPlanning

CostActivityPlanning


The business object Overhead Cost Planning enables you to fetch
external data into the system to use as plan data for overhead cost planning.


The system currently supports activity planning and activity input planning for Cost centers Business processes
Orders
and WBS elements.


11-Dec-2005


Methods

Available Methods


  • CheckActivityInput : Check activity input [ BAPI_COSTACTPLN_CHECKACTINPUT ]
  • CheckActivityOutput : Check activity output: Quantities/prices [ BAPI_COSTACTPLN_CHECKACTOUTPUT ]
  • CheckKeyFigure : Check stat. key figures [ BAPI_COSTACTPLN_CHECKKEYFIGURE ]
  • CheckPrimCost : Check primary costs [ BAPI_COSTACTPLN_CHECKPRIMCOST ]
  • PostActivityInput : Post activity input [ BAPI_COSTACTPLN_POSTACTINPUT ]
  • PostActivityOutput : Post activity output: Quantities/prices [ BAPI_COSTACTPLN_POSTACTOUTPUT ]
  • PostKeyFigure : Post stat. key figures [ BAPI_COSTACTPLN_POSTKEYFIGURE ]
  • PostPrimCost : Post primary costs [ BAPI_COSTACTPLN_POSTPRIMCOST ]

11-Dec-2005


CheckActivityInput

CheckActivityInput


This method checks whether the activity input records can be planned correctly.

Example

In cost center 4210 you want to plan activity inputs from cost center4220, activity type 110, and business process 1004210. In each case, 240 hours per year are to be recorded.


You can fill the tables as follows:

INDEXSTRUCTURE:

OBJECT_INDEX | VALUE_INDEX

1 | 1

1 | 2

COOBJECT:

OBJECT_INDEX|COSTCENTER|ACTTYPE|CO_BUSPROC|ORDERID|WBS_ELEMENT


1 | 4210 | | | |

TOTVALUE:

VALUE_INDEX|SEND_CCTR|SEND_ACTIVITY|SENBUSPROC|QUANTITY_FIX...

1 | 4220 | 110 | | 240

2 | | | 1004210 | 240


The records are then checked accordingly.


11-Dec-2005


CheckActivityOutput

CheckActivityOutput


This method checks whether the activity planning records can be planned correctly.

Example

You want to plan activities on cost center 4210, activity type 110,cost center 4220, activity type 110 and business process 1004210.

The cost centers should each produce 2400 hours per year at a price of
$100 (controlling area currency) fixed and $100 variable. Cost center 4220 and the business process should also take part in thetarget=actual activity allocation (LATYP actual = 5).

You can fill the tables as follows:

INDEXSTRUCTURE:

OBJECT_INDEX | VALUE_INDEX | ATTRIB_INDEX


1 | 1 | 0

2 | 1 | 1

3 | 0 | 1

The zeros mean that no values were transferred. In these cases, thesystem transfers the values already planned or the default values from the master record.


COOBJECT:

OBJECT_INDEX|COSTCENTER|ACTTYPE|CO_BUSPROC

1 | 4210 | 110 |

2 | 4220 | 110 |

3 | | | 1004210

TOTVALUE:

VALUE_INDEX|ACTVTY_QTY|DK|PRICE_FIX|DK|PRICE_VAR|DK|PRICE_UNIT|EQUI..


1 | 2400 | 2| 100 | 2| 100 | 2| 00001 | 1

DK is the corresponding distribution key DIST_KEY_XXXX

CONTRL:

ATTRIB_INDEX|ACTIVITY_CAT|ACT_CAT_ACTUAL|...

1 | | 5 |...


The system then makes the corresponding checks.


11-Dec-2005


CheckKeyFigure

CheckKeyFigure


This method checks that statistical key figures can be planned correctly.

Example

On cost center 4210 you want to plan statistical key figures KF01 andKF02 with the corresponding values 13 and 204, and distribution keys 1 and 2.


You can fill the table as follows:

INDEXSTRUCTURE:

OBJECT_INDEX | VALUE_INDEX

1 | 1

1 | 2

COOBJECT:

OBJECT_INDEX|COSTCENTER|ACTTYPE|CO_BUSPROC|ORDERID|WBS_ELEMENT


1 | 4210 | | | |

TOTVALUE:

VALUE_INDEX|STATKEYFIG|STAT_QTY|DIST_KEY_QUAN|STAT_QTY_MAX|DIST_KEY_QU..

1 | KF01 | 13 | 1 | | 1

2 | KF02 | 204 | 2 | | 2


The records are checked by the system.

Important: If you are planning for the complete fiscal year, you mustalways specify the distribution key for quantity and maximum quantityfor statistical key figures of category "Total value". This applies even if you have not entered a value for the maximum quantity.


11-Dec-2005


CheckPrimCost

CheckPrimCost


This method checks whether primary costs can be planned correctly.

Example

You want to plan primary costs on cost center 4210, on cost center 4220, activity type 110 and on business process 1004210.

You plan each time using cost element 400000 (the cost centers each
with $2400 fixed and $100 variable, the business process with $3000 fixed (controlling area currency)

The table is filled as follows:

INDEXSTRUCTURE:

OBJECT_INDEX | VALUE_INDEX | ATTRIB_INDEX

1 | 1 | 0


2 | 1 | 0

3 | 2 | 0

The zeros indicate that no values were transferred. Instead, the systemtakes the planned values values or the default value from the master data.


COOBJECT:

OBJECT_INDEX|COSTCENTER|ACTTYPE|ORDERID|WBS_ELEMENT|CO_BUSPROC

1 | 4210 | | | |

2 | 4220 | 110 | | |

3 | | | | | 1004210


TOTVALUE:

VALUE_INDEX|COST_ELEM|...|TRANS_CURR|...|FIX_VALUE|...|VAR_VALUE|DK|...

1 | 400000 | | | | 2400 | | 100 | |

2 | 400000 | | | | 3000 | | | |

DK is the relevant DIST_KEY_XXXX (distribution key)


TRANS_CURR does not need to be specified in this case. You only need toset the PLAN_CURRTYPE field in the HEADERINFO to "C" (Controlling area currency).

The records are then checked by the system.


11-Dec-2005


PostActivityInput

PostActivityInput


This method checks whether the activity input records can be planned correctly, then updates them.

Example

You want to plan activity inputs from cost center 4220, activity type110, and business process 1004210 in cost center 4210. For each one, you want to include 240 hours per year.


You can fill the tables as follows:

INDEXSTRUCTURE:

OBJECT_INDEX | VALUE_INDEX

1 | 1

1 | 2

COOBJECT:

OBJECT_INDEX|COSTCENTER|ACTTYPE|CO_BUSPROC|ORDERID|WBS_ELEMENT


1 | 4210 | | | |

TOTVALUE:

VALUE_INDEX|SEND_CCTR|SEND_ACTIVITY|SENBUSPROC|QUANTITY_FIX...

1 | 4220 | 110 | | 240

2 | | | 1004210 | 240


The system fills the document header accordingly.


11-Dec-2005


PostActivityOutput

PostActivityOutput


This method updates activity planning on cost centers/activity types and business processes.

Example

You want to plan activities on cost center 4210 / activity type 110, oncost center 4220 / activity type 110 and on business process 1004210.


The cost centers should each produce 2400 hours per year at a price of$100 (controlling area currency) fixed and $100 variable. Cost center 4220 and the business process should also take part in thetarget=actual activity allocation (LATYP actual = 5).


You can fill the tables as follows:

INDEXSTRUCTURE:

OBJECT_INDEX | VALUE_INDEX | ATTRIB_INDEX

1 | 1 | 0

2 | 1 | 1

3 | 0 | 1


A zero means that no values have been transferred. In such a case, thesystem transfers already planned values or the default values from the master record.

COOBJECT:

OBJECT_INDEX|COSTCENTER|ACTTYPE|CO_BUSPROC

1 | 4210 | 110 |


2 | 4220 | 110 |

3 | | | 1004210

TOTVALUE:

VALUE_INDEX|ACTVTY_QTY|DK|PRICE_FIX|DK|PRICE_VAR|DK|PRICE_UNIT|EQUI..

1 | 2400 | 2| 100 | 2| 100 | 2| 00001 | 1


DK is is the corresponding DIST_KEY_XXXX

CONTRL:

ATTRIB_INDEX|ACTIVITY_CAT|ACT_CAT_ACTUAL|...

1 | | 5 |...

The system then updates the records accordingly.


11-Dec-2005


PostKeyFigure

PostKeyFigure


This method checks that statistical key figures can be planned correctly. It then updates them.

Example

On cost center 4210 you want to plan statistical key figures KF01 andKF02 with the corresponding values 13 and 204, and distribution keys 1 and 2.


You can fill the table as follows:

INDEXSTRUCTURE:

OBJECT_INDEX | VALUE_INDEX

1 | 1

1 | 2

COOBJECT:

OBJECT_INDEX|COSTCENTER|ACTTYPE|CO_BUSPROC|ORDERID|WBS_ELEMENT


1 | 4210 | | | |

TOTVALUE:

VALUE_INDEX|STATKEYFIG|STAT_QTY|DIST_KEY_QUAN|STAT_QTY_MAX|DIST_KEY_QU..

1 | KF01 | 13 | 1 | | 1

2 | KF02 | 204 | 2 | | 2


The document header is filled as required.

Important: If you are planning for the complete fiscal year, you mustalways specify the distribution key for quantity and maximum quantityfor statistical key figures of category "Total value". This applies even if you have not entered a value for the maximum quantity.


11-Dec-2005


PostPrimCost

PostPrimCost


This method checks whether primary costs can be planned correctly. It then updates them.

Example

You want to plan primary costs on cost center 4210, on cost center 4220, activity type 110 and on business process 1004210.

You plan each time using cost element 400000 (the cost centers each
with $2400 fixed and $100 variable, the business process with $3000 fixed (controlling area currency)

The table is filled as follows:

INDEXSTRUCTURE:

OBJECT_INDEX | VALUE_INDEX | ATTRIB_INDEX

1 | 1 | 0


2 | 1 | 0

3 | 2 | 0

The zeros indicate that no values were transferred. Instead, the systemtakes the planned values values or the default value from the master data.


COOBJECT:

OBJECT_INDEX|COSTCENTER|ACTTYPE|ORDERID|WBS_ELEMENT|CO_BUSPROC

1 | 4210 | | | |

2 | 4220 | 110 | | |

3 | | | | | 1004210


TOTVALUE:

VALUE_INDEX|COST_ELEM|...|TRANS_CURR|...|FIX_VALUE|...|VAR_VALUE|DK|...

1 | 400000 | | | | 2400 | | 100 | |

2 | 400000 | | | | 3000 | | | |

DK is the relevant DIST_KEY_XXXX (distribution key)


TRANS_CURR does not need to be specified in this case. You only need toset the PLAN_CURRTYPE field in the HEADERINFO to "C" (Controlling area currency).

The records are then checked and updated by the system.


11-Dec-2005