Fonction SAP BAPI_COSTACTPLN_POSTKEYFIGURE - Stat. Key Figure Planning: Postings

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

Paramètre Reférence Long. Facultatif Description
COOBJECT BAPISKFOBJ 70 Object list
INDEXSTRUCTURE BAPIACISTRU 12 Assign Objects and Values
PERVALUE BAPISKFVAL 330 X Plan Values Per Period
RETURN BAPIRET2 548 Error messages
TOTVALUE BAPISKFTOT 98 X Plan Values Per Fiscal Year and Distribution Key

Functionality
This method checks that statistical key figures can be plannedcorrectly. 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 1and 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 applieseven if you have not entered a value for the maximum quantity.

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 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, saved only with integrated
  • planning

    Value range

    • PERIOD_FROM, PERIOD_TO - The following must apply:

    • 1 <= PERIOD_FROM <= PERIOD_TO <= Number of true posting periods

      Description

      • OBJECT_INDEX - Index that uniquely identifies the row, and thereby

      • the object. The index must be greater than zero, and
        may not appear twice in the table.
        If the index does not occur in INDEXSTRUCTURE, the
        system ignores the row.
        • COSTCENTER - Cost center on which the statistical

        • key figure is to be planned.
          • ACTTYPE - Activity type, can only be filled

          • together with COSTCENTER.
            • CO_BUSPROC - Business process on which the stat.

            • key figure is to be planned.
              • ORDERID - Oredr on which the stat. key figure is

              • to be planned.
                • WBS_ELEMENT - WBS element on which the stat. key

                • figure is to be planned.
                  Only one object may be filled, 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 the PER_VALUE table or with annual values from the
                  TOT_VALUE table and a row with control data.
                  The VALUE_INDEX field refers to the values.

                  Value range
                  The OBJECT_INDEX field may only contain values contained in theOBJECT_INDEX field of the OBJECT 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.

                  Description
                  Transfers the values referring to the statistical key figure. Thesevalues are:

                  • VALUE_INDEX : A unique key of the rows referred to in the

                  • INDEXSTRUCTURE table.
                    If the index does not appear in INDEXSTRUCTURE,
                    the system ignores the row.
                    • STATKEYFIG : Statistical key figure

                    • QUANTITY_PER01-16 : Quantities for periods 1-16

                    • QUANTITY_MAX_PER01-16: Maximum quantities for periods 1-16
                    • Description
                      Return table containing the error messages that have occurred.

                      Description
                      Transfers the values referring to the statistical key figures. Thesevalues are:

                      • VALUE_INDEX : A unique key of the row referred to in the

                      • INDEXSTRUCTURE table.
                        If the index does not exist in INDEXSTRUCTURE,
                        the system ignores the row.
                        • STATKEYFIG : Statistical key figure

                        • STAT_QTY : Quantity for all periods

                        • DIST_KEY_QUAN : Distribution key for STAT_QTY. Required entry.

                        • STAT_QTY_MAX : Maximum quantity for all periods

                        • DIST_KEY_QUAN_MAX: Distribution key for STAT_QTY_MAX. Required entry.

                        • Important: If you use statistical key figures of key figure category"Totals value", you must always specify the distribution keys forquantity and maximum quantity (even if, for example, you have not notentered a value for the maximum quantity).

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
402102SAPLKIPL: KI501/KP571 for key figure planning