Fonction SAP BAPI_COSTACTPLN_POSTACTOUTPUT - Activity/Price Planning: Posting

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DELTA BAPI6031_CTRLDATA-DELTA C 1 SPACE X
HEADERINFO BAPIPLNHDR u 68 Header Data

Paramètre Reférence Long. Facultatif Description
CONTRL BAPIACPCTRL 30 X Control Data
COOBJECT BAPIACPOBJ 34 Object List (Cost Center/Activity Type or Business Process)
INDEXSTRUCTURE BAPIACPSTRU 18 Assignment of Objects, Values and Control Data
PERVALUE BAPIACPVAL 772 X Plan Values Per Period
RETURN BAPIRET2 548 Error Messages
TOTVALUE BAPIACPTOT 83 X Plan Values Per Fiscal Year and Distribution Key

Functionality
This method updates activity planning on cost centers/activity typesand 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 center4220 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 themaster 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.

Description
The DELTA indicator specifies whether the function module should addthe transferred values to the existing values.

Value range
X - The value is added to the existing value.
- The value is not added to, but rather overwrites the old value.

Default

Description
The structure header_info contains the following fields:

  • CO_AREA - Controlling area

  • FISC_YEAR - Fiscal year

  • PERIOD_FROM - First period for which values are transferred

  • PERIOD_TO - Last period for which values are transferred

  • VERSION - Version in which the plan data is to be stored

  • DOC_HDR_TX - Document header text is saved only with integrated
  • planning
    • PLAN_CURRTYPE - Are prices planned in the CO area currency or object
    • 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 permitted:

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

          Description
          Transfers the control data that describes the activity output. Thisconsists of:

          • ATTRIB_INDEX : A unique key of the rows referred to in the
          • INDEXSTRUCTURE table.
            • ACTIVITY_CAT : Activity type category

            • ACT_CAT_ACTUAL : Varying activity type category
            • for actual processing
              • PRICE_INDICATOR : Price indicator for determining
              • the allocation price
                • ACT_PRICE_IND : Price indicator of the actual
                • allocation price
                  • ALLOC_COST_ELEM : Allocation cost element

                  • PREDIS_FXD_COST : Predistribution of fixed costs
                  • for activity type / business process
                    • MANUAL_ACT_QTY : Manually confirm actual
                    • quantity
                      • AVERAGE_PRICE_IND : Price determination using
                      • periodic averages
                        • SWITCH_LAYOUT : Switching structure for cost
                        • component accounting

                          Description

                          • OBJECT_INDEX - Index uniquely identifying the row (and therefore the
                          • object). The index must be greater than zero and may not appear morethan once in the table. The line is ignored if the index is notcontained in INDEXSTRUCTURE.
                            • COSTCENTER - Cost center producing the activity. Must be filled
                            • together with ACTTYPE.
                              • ACTTYPE - Activity type produced by the cost center. Must be filled
                              • together with COSTCENTER.
                                • CO_BUSPROC - Business process producing the activity. If this field is
                                • filled, COSTCENTER must be empty. The system ignores ACTTYPE.

                                  Description
                                  The IDX_STRUCTURE table assigns the contents of the individual tablesto one another. In each row there must be one object that exists in theOBJECT_INDEX field. You can also choose to transfer either a row withperiodic values from the PER_VALUE table, or with fiscal year valuesfrom the TOT_VALUE table and a row with control data.
                                  The VALUE_INDEX refers to the values, the ATTRIB_INDEX refers to thecontrol data.
                                  If one of these two fields is not transferred, the field is set tozero.

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

                                  Description
                                  Used to transfer the values that describe the activity output. Theseare:

                                  • VALUE_INDEX : A unique key of the rows referred to in the
                                  • INDEXSTRUCTURE table. If the index does not exist in theINDEXSTRUCTURE, this line is ignored.
                                    • ACTVTY_QTY_PER01-16: Activity quantities for periods
                                    • 1-16. Required entry field in the case of filled pay scale fields.Otherwise ignored.
                                      • ACTVTY_CAP_PER01-16: Capacities for periods 1-16

                                      • PRICE_FIX_PER01-16 : Fixed price for periods 1-16

                                      • PRICE_VAR_PER01-16 : Variable price for periods 1-16

                                      • PRICE_UNIT_PER01-16: Price unit for periods 1-16

                                      • EQUIVAL_NO_PER01-16: Equivalence number for periods
                                      • 1-16

                                        Description
                                        Return table containing any error messages that have occurred.

                                        Description
                                        Transfers the values which describe the activity output. These are:

                                        • VALUE_INDEX : A unique key of the row referred to in the
                                        • INDEXSTRUCTURE table. This row is ignored if the index is not containedin the INDEXSTRUCTURE table.
                                          • ACTVTY_QTY : Activity quantity for the planned
                                          • periods
                                            • DIST_KEY_QUAN : Dist. key for activity quantity.
                                            • Required field
                                              • ACTVTY_CAP : Capacities for the planned periods

                                              • DIST_KEY_CAPCTY : Distribution key for the
                                              • capacity
                                                • PRICE_FIX : Fixed price for the planned
                                                • periods
                                                  • DIST_KEY_PRICE_FIX: Dist. key for the fixed prices.
                                                  • Required field
                                                    • PRICE_VAR : Variable price for the planned
                                                    • periods
                                                      • DIST_KEY_PRICE_VAR: Dist. key for variable prices.
                                                      • Required field
                                                        • PRICE_UNIT : Price unit for the planned
                                                        • periods. A required field in the case of filled pay scale fields,otherwise ignored
                                                          • EQUIVAL_NO : Equivalence number for the planned
                                                          • periods

811787SAPLKIPL: Message KG 501 since Release 4.7
532262SAPLKIPL: Planning data not updated
535745SAPLKIPL: KI501 and KP571 with synchronous update
448607SAPLKIPL: Difficulties with ROLLBACK WORK
525569SAPLKIPL: Currency types insufficiently checked
508658SAPLKIPL: Overflow of lock table in background
450442BAPI: Data is not updated
441801SAPLKIPL: No integration messages in the test run