Fonction SAP BAPI_PDTRANSCO_CHECKACTINPUT - Plan Data Transfer: Check Activity Input

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
HEADERINFO BAPIPLNHDRTRANS2 u 54 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 activity inputs can be planned correctly.

Example
ou want to plan activity inputs on cost center 4210 from cost center4220, activity type 110, and from business process 1004210. In eachcase, 240 hours of activity is to be recorded annually.
To do so, the tables should be filled 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 records are then checked by the system.

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

  • PLAN_CURRTYPE - Ignored

  • PLANTYPE - What type of source supplies the data?

  • OBJ_SYS - Logical system of the data source

  • OBJ_KEY - Reference key of the data source
  • 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 in the table more than once.
        If the index does not occur in INDEXSTRUCTURE,
        the row is ignored.
        • 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.

          • Only one object may be filled! COSTCENTER, CO_BUSPROC, ORDERID orWBS_ELEMENT.

            Description
            Table IDX_STRUCTURE assigns the contents of the individual tables toone another. Here, each line must contain an object that can be foundin OBJECT_INDEX.
            Furthermore, a line with periodic values from table PER_VALUE or withannual values from table TOT_VALUE can be transferred if you wish.Here, the field VALUE_INDEX refers to the values.

            Value range
            The field OBJECT_INDEX can only contain values contained in thetransfer table OBJECT in the field OBJECT_INDEX.
            The field VALUE_INDEX can only contain values contained either in thetransfer table PER_VALUE or TOT_VALUE in the field VALUE_INDEX.
            Transfers the values of the sender object of the activity relationship.These are:

            • VALUE_INDEX : A unique key of the rows referred to in the
            • INDEXSTRUCTURE table. If the index does not occur in INDEXSTRUCTURE,the system ignores the row.
              • SEND_CCTR: Sender cost center, which must be filled
              • together with SEND_ACTIVITY.
                • SEND_ACTIVITY: Sender activity type, which must be
                • filled together with SEND_CCTR.
                  • SENBUSPROC: Sender business process. You must enter
                  • either this field or SEND_CCTR/SEND_ACTIVITY.
                    • ORDER_CELEM: Order settlement cost element. You only
                    • need to specify this if you want to execute order planning withsenders.
                      • QUANTITY_FIX_PER01-16: Fixed qtys for periods 1-16

                      • QUANTITY_VAR_PER01-16: Variable qtys for periods 1-16
                      • Description
                        Return table, containing any error messages that may have occurred.
                        Here you transfer the values that apply to the sender of the activityinputs. These are:

                        • VALUE_INDEX : A unique key of the row that refers to the table
                        • INDEXSTRUCTURE. If the index does not crop up in the INDEXSTRUCTURE,the row is ignored.
                          • SEND_CCTR: Sending cost center has to be filled
                          • together with SEND_ACTIVITY.
                            • SEND_ACTIVITY: Sending activity type has to be filled
                            • together with SEND_CCTR.
                              • SENBUSPROC: Sender business process. You either have
                              • to enter this field or SEND_CCTR/SEND_ACTIVITY.
                                • ORDER_CELEM: Order settlement cost element. You only
                                • enter this when order planning is to be carried out with the sender.
                                  • QUANTITY_FIX: Fixed quantity for all periods.

                                  • DIST_KEY_QUAN_FIX: Distribution check 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.