Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

COPA Data upload

Former Member
0 Likes
701

Hi All.

I am using following BAPI function to upload COP Planing data,but i don't have idea to how to pass the data to bapi function,any can help me how can i pass data to bapi function to get the out put.

BAPI_COPAPLANNING_POSTDATA

Thanks

knishka

1 REPLY 1
Read only

Former Member
0 Likes
390

Hi,

These are the mandatory fields,

CALL FUNCTION 'BAPI_COPAPLANNING_POSTDATA'

EXPORTING

OPERATINGCONCERN =

TYPEOFPROFITANALYSIS =

TESTRUN =

TABLES

SELECTEDFIELDS =

SELECTION =

DATA =

RETURN =

.

Functionality

You use this method to return planning data from Profitability Analysis back into the system. This overwrites existing planning data in the system (or, more precisely, the delta value between the old and new values is determined and updated as a line item). You typically call up this method after reading planning data with the GetData method and making changes to it. To import the changed data back into the system, you fill the parameters SELECTEDFIELDS and SELECTION with data in the same way as you called up GetData. When data is being written, these parameters determine how the delta value between the planning data to be imported and the old planning data in the system is determined: firstly, the old planning data in the system is read in accordance with the values for the parameters SELECTEDFIELDS and SELECTION, and then the delta for the data to be imported is created. The data to be posted is imported using the table DATA. Since this table is also used to read data with the GetData method, it should also be populated accordingly when data is imported. See also the documentation for the GetData method and for the parameter DATA for this method. ===Warning: Under certain circumstances, data that is not imported but is already present in the system as an old value are canceled in this process.=== If, for example, products A1 and A2 from plan version 001 are selected in the selection criterion SELECTION but table DATA only contains planning data for product A1, the planning data for A2 that is in version 001 and already in the system is canceled.

Reward if helpful

Regards

Vodka.