Fonction SAP BAPI_COPAPLANNING_POSTDATA - Write CO-PA Planning data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
OPERATINGCONCERN BAPI1167-OPERATINGCONCERN C 4 Operating Concern
TESTRUN BAPI1167-TESTRUN C 1 Test Run
TYPEOFPROFITANALYSIS BAPI1167-TYPEOFPA C 1 Type of Profitability Analysis

Paramètre Reférence Long. Facultatif Description
DATA BAPI_COPA_DATA 91 Data
RETURN BAPIRET2 548 Messages
SELECTEDFIELDS BAPI_COPA_FIELD 30 Field List
SELECTION BAPI_COPA_SELECTION 133 Selection

Functionality
You use this method to return planning data from Profitability Analysisback into the system. This overwrites existing planning data in thesystem (or, more precisely, the delta value between the old and newvalues is determined and updated as a line item).
You typically call up this method after reading planning data with theGetData method and making changes to it. To import the changed databack into the system, you fill the parameters SELECTEDFIELDS andSELECTION with data in the same way as you called up GetData. When datais being written, these parameters determine how the delta valuebetween the planning data to be imported and the old planning data inthe system is determined: firstly, the old planning data in the systemis read in accordance with the values for the parameters SELECTEDFIELDSand SELECTION, and then the delta for the data to be imported iscreated.
The data to be posted is imported using the table DATA. Since thistable is also used to read data with the GetData method, it should alsobe populated accordingly when data is imported. See also thedocumentation for the GetData method and for the parameter DATA forthis method.
Warning: Under certain circumstances, data that is not importedbut is already present in the system as an old value are canceled inthis process.
If, for example, products A1 and A2 from plan version 001 are selectedin the selection criterion SELECTION but table DATA only containsplanning data for product A1, the planning data for A2 that is inversion 001 and already in the system is canceled.

Description
For information on the significance of the operating concern, see therelevant glossary definition:Operating concern.

Value range
= 'X': Test run: Data is not posted, only checks are run.
= ' ': Update run: Data is posted if no error messages occur.

Description
Type of Profitability Analysis

Value range
= "1": Costing-based Profitability Analysis
= "2": Account-based Profitability Analysis

Description
Import table containing the data to be written.

Description
Export table containing the error messages that have occurred.
INCLUDE 'COPA_PLAN_FIELDLIST' OBJECT DOKU ID TX
INCLUDE 'COPA_PLAN_SELECTION' OBJECT DOKU ID TX