Fonction SAP BAPI_COSTACTPLN_POSTACTINPUT - Activity Input 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
COOBJECT BAPIACIOBJ 70 Object List
INDEXSTRUCTURE BAPIACISTRU 12 Assign Objects and Values
PERVALUE BAPIACIVAL 418 X Plan Values Per Period
RETURN BAPIRET2 548 Error messages
TOTVALUE BAPIACITOT 186 X Plan Values Per Fiscal Year and Distribution Key

Functionality
This method checks whether the activity input records can be plannedcorrectly, 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.

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 where you transfer values

  • PERIOD_TO - Last period where you transfer values

  • VERSION - Version where you save the planning data

  • DOC_HDR_TX - Document header text that you only save in planning
  • integration
    • PLAN_CURRTYPE - Is ignored. For internal purposes only.
    • Value range

      • PERIOD_FROM, PERIOD_TO - The following must be valid:

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

        Description

        • OBJECT_INDEX - Index uniquely identifying the row and thus the object.
        • The index must be greater than zero and may only appear once in thetable. If the index does not exist in INDEXSTRUCTURE, the row isignored.
          • COSTCENTER - Cost center that includes the activity.

          • ACTTYPE - Activity type that includes the
          • activity. You must fill this together with COSTCENTER. You only need itfor an activity input that is activity-dependent.
            • CO_BUSPROC - Business process that includes the
            • activity.
              • ORDERID - Order that includes the activity.

              • WBS_ELEMENT - WBS element that includes the
              • activity
                You may fill one object only,for example COSTCENTER, CO_BUSPROC,ORDERID, or WBS_ELEMENT.

                Description
                The IDX_STRUCTURE table assigns the contents of individual tables toone another. In each row you must use an object that exists in theOBJECT_INDEX. Additionally, you can choose to transfer a row withperiodic values from the PER_VALUE table or with fiscal year valuesfrom the TOT_VALUE tables and a row with control data.
                The VALUE_INDEX field displays the values.

                Value range
                The OBJECT_INDEX field may only contain values that are contained inthe OBJECT_INDEX field of the OBJECT transfer table.
                The VALUE_INDEX field may only contain values that are contained ineither the PER_VALUE or TOT_VALUE transfer tables in the VALUE_INDEXfield.

                Description
                You transfer the values that refer to the activity relationships of thesender. These are:

                • VALUE_INDEX : A unique key for the rows referred to in the
                • INDEXSTRUCTURE table. The line is ignored if the index is not containedin INDEXSTRUCTURE.
                  • SEND_CCTR : Sender cost center must be filled
                  • together with SEND_ACTIVITY.
                    • SEND_ACTIVITY: Sender activity type must be filled
                    • together with SEND_CCTR.
                      • SENBUSPROC : Sender business process. You must
                      • specify either this field or SEND_CCTR/SEND_ACTIVITY.
                        • ORDER_CELEM : Order settlement cost element. You
                        • must only specify this if you want to carry out order planning with thesender.
                          • QUANTITY_FIX_PER01-16: Fixed quantities for periods
                          • 1-16
                            • QUANTITY_VAR_PER01-16: Variable quantities for periods
                            • 1-16

                              Description
                              Return table containing the error messages that have occurred.

                              Description
                              You transfer the values that refer to the activity relationships on thesender. These are:

                              • VALUE_INDEX : A unique key for the rows referred to in the
                              • INDEXSTRUCTURE table. The line is ignored if the index is not containedin INDEXSTRUCTURE.
                                • SEND_CCTR : Sender cost center, must be filled
                                • together with SEND_ACTIVITY.
                                  • SEND_ACTIVITY: Sender activity type, must be filled
                                  • together with SEND_CCTR.
                                    • SENBUSPROC : Sender business process. You must
                                    • specify either this field or SEND_CCTR/SEND_ACTIVITY.
                                      • ORDER_CELEM : Order settlement cost element. You
                                      • must only specify this if you want to carry out order planning withsenders.
                                        • QUANTITY_FIX : Fixed quantities for all periods.

                                        • DIST_KEY_QUAN_FIX: Distribution key for
                                        • QUANTITY_FIX. Required entry field.
                                          • QUANTITY_VAR : Variable quantity for all periods

                                          • DIST_KEY_QUAN_VAR: Distribution key for
                                          • QUANTITY_VAR. Required entry field.

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