Fonction SAP BAPI_COSTACTPLN_CHECKACTOUTPUT - Activity/Price Planning: Check

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 checks whether the activity planning records can be plannedcorrectly.

Example
You want to plan activities on cost center 4210, activity type 110, costcenter 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 center4220 and the business process should also take part in the target=actualactivity 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 fromthe 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.

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 Header_Info consists of 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 stored

  • DOC_HDR_TX - Document header text, only save with integrated
  • planning
    • PLAN_CURRTYPE - Are the prices to be planned in the CO area or object

    • currency?

      Value range

      • PERIOD_FROM, PERIOD_TO - Must be valid :

      • 1 <= PERIOD_FROM <= PERIOD_TO <= Number of true posting periods
        • PLAN_CURRTYPE - Following values are valid:

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

          Description
          Here you transfer the control data that describes the activity output.This consists of:

          • ATTRIB_INDEX : A unique key of the row 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 : Ind.: predistribution of fixed
                  • costs for activity type / business process
                    • MANUAL_ACT_QTY : Indicator: Manually confirm
                    • actual quantity
                      • AVERAGE_PRICE_IND : Price calculation with periodic
                      • averaging
                        • SWITCH_LAYOUT : Switch structure for cost
                        • component accounting

                          Description

                          • OBJECT_INDEX - Index that uniquely defines the row, and thereby the
                          • object. The index must be greater than zero and may only appear once inthe table.
                            • COSTCENTER - Cost center producing the activity. Must be filled
                            • together with ACTTYPE.
                              • ACTTYPE - Actvity type that the cost center produces. Must be filled
                              • together with COSTCENTER.
                                • CO_BUSPROC - Business process producing the activity. If this field is
                                • filled COSTCENTER must be empty. ACTTYPE is ignored by the system.

                                  Description
                                  The IDX_STRUCTURE table assigns the contents of the individual tablesto each other. To do this, you must use an object in each row thatexists in the OBJECT_INDEX field. Additionally, you can choose totransfer a row with periodic values from the PER_VALUE table, or withannual values from the TOT_VALUE table, and a row with control data.
                                  The VALUE_INDEX field refers to the values, the ATTRIB_INDEX fieldrefers to the control data.
                                  If you do not want to transfer one of the fields, you need to set it tozero.

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

                                  Description
                                  This is where you transfer the values that describe activity output.This consists of:

                                  • VALUE_INDEX : A unique row key referred to in the INDEXSTRUCTURE
                                  • table. If the index does not appear in the INDEXSTRUCTURE, the systemignores the row.
                                    • ACTVTY_QTY_PER01-16: Activity quantities for periods
                                    • 1-16
                                      • 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 numbers for periods
                                      • 1-16

                                        Description
                                        Return table containing error messages that occurred.

                                        Description
                                        This is where you transfer the values that describe the activityoutput. This consists of:

                                        • VALUE_INDEX : A unique row key, referred to in the INDEXSTRUCTURE
                                        • table. If the index does not appear in the INDEXSTRUCTURE, the systemignores the row.
                                          • ACTVTY_QTY : Activity quantity for planned
                                          • periods
                                            • DIST_KEY_QUAN : Distribution key for activity
                                            • quantity. Required entry field.
                                              • ACTVTY_CAP : Capacity for planned periods

                                              • DIST_KEY_CAPCTY : Distribution key for capacity.
                                              • Required entry field.
                                                • PRICE_FIX : Fixed price for planned periods

                                                • DIST_KEY_PRICE_FIX: Distribution key for fixed
                                                • prices. Required entry field.
                                                  • PRICE_VAR : Variable price for planned periods

                                                  • DIST_KEY_PRICE_VAR: Distribution key for variable
                                                  • prices
                                                    • PRICE_UNIT : Price unit for planned periods.
                                                    • Required entry field for filled price fields, otherwise ignored.
                                                      • EQUIVAL_NO : Equivalence numbers for 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