Fonction SAP BAPI_COSTACTPLN_CHECKPRIMCOST - Primary Cost Planning: Check

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DELTA BAPI6031_CTRLDATA-DELTA C 1 SPACE X Indicator: Add up New and Existing Values
HEADERINFO BAPIPLNHDR u 68 Header Data

Paramètre Reférence Long. Facultatif Description
CONTRL BAPIPCPCTRL 15 X Control Data
COOBJECT BAPIPCPOBJ 70 Object List (Cost Center/Activity Type or Business Process)
INDEXSTRUCTURE BAPIACPSTRU 18 Assignment of Objects, Values and Control Data
PERVALUE BAPIPCPVAL 756 X Plan Values Per Period
RETURN BAPIRET2 548 Error Messages
TOTVALUE BAPIPCPTOT 172 X Plan Values Per Fiscal Year and Distribution Key

Functionality
This method checks whether primary costs can be planned correctly.

Example
You want to plan primary costs on cost center 4210, on cost center4220, activity type 110 and on business process 1004210.
You plan each time using cost element 400000 (the cost centers eachwith $2400 fixed and $100 variable, the business process with $3000fixed (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 masterdata.
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 areacurrency).
The records are then checked by the system.

Description
Specifies whether existing and new values are to be totalled (="X") orwhether the existing values are to be replaced by the new values (=" ",DEFAULT)

Value range
Possible entries are " " and "X".

Default
" "

Description
The Header_Info structure contains the following fields:

  • CO_AREA - Controlling area

  • FISC_YEAR - Fiscal year

  • PERIOD_FROM - First period for which values are transferred

  • PERIOD_TO - Final period for which values are transferred

  • VERSION - Version in which the plan data is stored

  • DOC_HDR_TX - Document header text, only saves with integrated

  • planning.
    • PLAN_CURRTYPE - Are the prices to be planned in the CO area-,

    • object-, or transaction currency?

      Value range

      • PERIOD_FROM, PERIOD_TO - The following must apply:

      • 1 <= PERIOD_FROM <= PERIOD_TO <= Number of true posting periods
        • PLAN_CURRTYPE - The following values are allowed:

        • C - Planning in controlling area currency
          O - Planning in object currency
          T - Planning in transaction currency

          Description
          Used to transfer the control data.
          These are:

          • ATTRIB_INDEX - A unique key of the row linked to in the

          • INDEXSTRUCTURE table.
            • RECORD_QUANTITY - Control indicator specifying whether

            • or not quantities are to be carried in the actual.
              • CELEM_ATTRIBUTE - Cost element attributes.
              • Description

                • OBJECT_INDEX - Index uniquely identifying the row, and thereby the

                • object. The index must be greater than zero and may
                  not appear more than once in the table.
                  If the index does not appear in the INDEXSTRUCTURE,
                  the system ignores the row.
                  • COSTCENTER - Cost center to be planned.

                  • ACTTYPE - Activity type, can only be filled

                  • together with COSTCENTER.
                    • CO_BUSPROC - Business process to be planned.

                    • ORDERID - Order to be planned.

                    • WBS_ELEMENT - WBS element to be planned.

                    • You may fill only one object, COSTCENTER, CO_BUSPROC, ORDERID orWBS_ELEMENT.

                      Description
                      The IDX_STRUCTURE table assigns the contents of the individual tablesto one another. In each row there must be an object that exists in theOBJECT_INDEX field.
                      You can also choose to transfer a row with periodic values from thePER_VALUE table or with annual values from the TOT_VALUE table and arow with control data.
                      The VALUE_INDEX field refers to the values. The ATTRIB_INDEX fieldrefers to the control data.
                      If one of the two is not transferred, the field is set to zero.

                      Value range
                      The OBJECT_INDEX field may only contain values contained in theOBJECT_INDEX field of the OBJECT transfer table.
                      The VALUE_INDEX field may only contain values that are contained in theVALUE_INDEX field of either the PER_VALUE or TOT_VALUE transfer tables.
                      The ATTRIB_INDEX field may only contain values contained in theATTRIB_INDEX field of the CONTRL transfer table.

                      Description
                      Used to transfer values
                      These are:

                      • VALUE_INDEX - A unique key of the row linked to in the

                      • INDEXSTRUCTURE table. If the index does not
                        appear in the INDEXSTRUCTURE, the system ignores
                        the row.
                        • COST_ELEM - Cost element

                        • RESOURCE - Resource

                        • TRANS_CURRENCY_ISO - ISO code of the transaction currency

                        • TRANS_CURR - Transaction currency

                        • UNIT_ISO - ISO code of the unit of measure

                        • QUANTITY_UNIT - Unit of measure

                        • FIX_VAL_PER01-16 - Fixed values for periods 1-16

                        • VAR_VAL_PER01-16 - Variable values for periods 1-16

                        • FIX_QUAN_PER01-16 - Fixed quantities for periods 1-16

                        • VAR_QUAN_PER01-16 - Variable quantities for periods 1-16

                        • The R/3 System only processes quantity fields if you have specified aunit of measure.

                          Description
                          Return table containing the error messages that have occurred.

                          Description
                          Used to transfer values.
                          These are:

                          • VALUE_INDEX - A unique key for the row linked to from the

                          • INDEXSTRUCTURE table.
                            If the index does not appear in the
                            INDEXSTRUCTURE, the system ignores the row.
                            • COST_ELEM - The cost element to be planned

                            • RESOURCE - The resource to be planned

                            • TRANS_CURRENCY_ISO - ISO code of the transaction currency

                            • TRANS_CURR - Transaction currency

                            • UNIT_ISO - ISO code of the unit of
                            • measure
                              • QUANTITY_UNIT - Unit of measure

                              • FIX_VALUE - Fixed value

                              • DIST_KEY_FIX_VAL - Dist. key for the fixed value. Req. entry field.

                              • VAR_VALUE - Variable value

                              • DIST_KEY_VAR_VAL - Dist. key for the var. value. Req. entry field.

                              • FIX_QUAN - Fixed quantity

                              • DIST_KEY_FIX_QUAN - Dist. key for the fixed qty. Req. entry field.

                              • VAR_QUAN - Variable quantity

                              • DIST_KEY_VAR_QUAN - Dist. key for the variable qty. Req. entry field.

                              • The quantity fields are only processed by the system if you specify aunit of measure.

811787SAPLKIPL: Message KG 501 since Release 4.7
532262SAPLKIPL: Planning data not updated
535745SAPLKIPL: KI501 and KP571 with synchronous update
525569SAPLKIPL: Currency types insufficiently checked
508658SAPLKIPL: Overflow of lock table in background
450442BAPI: Data is not updated