Application Development 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: 

KEPM Data Upload with BAPI

Former Member
0 Kudos

Dear sirs:

I have to build a data upload program for transaction KEPM (Edit Planning Data), using the BAPI BAPI_COPAPLANNING_POSTDATA. Does anyone have a sample.

Thanks for your help.

Best regards,

Dairo

1 ACCEPTED SOLUTION

former_member181966
Active Contributor
0 Kudos

You can also look at prog :RKE_FLEX_UPL

also check thread :

and link

http://sapass.metro.client.jp/Bapi/BUS1167.htm

Hope this’ll give you idea!!

<b>P.S award the points.</b>

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

7 REPLIES 7

former_member181966
Active Contributor
0 Kudos

You can also look at prog :RKE_FLEX_UPL

also check thread :

and link

http://sapass.metro.client.jp/Bapi/BUS1167.htm

Hope this’ll give you idea!!

<b>P.S award the points.</b>

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

Former Member
0 Kudos

Hi,

You can also use this program.

RKE_FLEX_UPL

regards,

ram

Former Member
0 Kudos

Thanks for your help. The Use of the BAPI BAPI_COPAPLANNING_POSTDATA is a must. If you have a sample or info about this BAPI I'd really appreciate it.

Best regards

0 Kudos

Did you check the links I posted you above ?

Pl..also award the points .

Thanks

SK

Former Member
0 Kudos

Yes I did, but I need more info about the BAPI BAPI_COPAPLANNING_POSTDATA

Regards

0 Kudos

<b>FYI</b>

FU BAPI_COPAPLANNING_POSTDATA

____________________________________________________

Text

Write CO-PA Planning data

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.

Parameters

OPERATINGCONCERN

TYPEOFPROFITANALYSIS

TESTRUN

SELECTEDFIELDS

SELECTION

DATA

RETURN

Exceptions

Function Group

KE_BAPI_COPAPLANNING

Thanks

SK

dairolozano
Contributor
0 Kudos

Please check