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: 

BAPI_COPAACTUALS_POSTCOSTDATA always creating 2 line items.

sarbajitm
Contributor
0 Kudos

Hi all,

I'm using FM BAPI_COPAACTUALS_POSTCOSTDATA for Profitabilility analysis posting which also can

be done manually using Transaction KE21n.My problem is it is always creating 2 line items irrespective of using

any one option out of the 3 posting line items options(In Operating Concern and Company Code Currency/Only Operating Concern Currency/Only in Company Code Currency).Though for Only Operating Concern Currency and for Only in Company Code Currency option it should create one line item in Table CE4XXXX(XXXX = operating concern).Kindly give some solution.

Thanks in advance.

regards.

Sarbajit

3 REPLIES 3

Former Member
0 Kudos

Hi,

This methods allows you to post a quantity of data records to CO-PA. However, it cannot be used to transfer mass data. You should do this using external data transfer.

The data you want to post is transferred in parameter InputData. To assure the consistency of the transferred data, the parameter FieldList must also be filled with the number of field names which are transferred in InputData.

For each record transferred to InputData, the system creates either one or two CO-PA line items, depending on whether or not the company code currency is active alongside the operating concern currency. The currency translation is carried out as for external data transfer. With currency fields, the field Currency must always be filled in the corresponding record of InputData.

Regards!

Curtis

Former Member
0 Kudos

Hi ,

I am also facing the same probelm. Please tell me how you resolved it?

0 Kudos

Hello,

In Tcode KE21N there are three radio buttons based on which the Posting will be done. To replicate the scenario through BAPI i.e. if you want to Post Only in Operating concern currency OR only in Company Code currency, then you have to pass value 5/6 in the field VALUTYP while filling the table INPUTDATA in the BAPI

So in that case only a single line will be posted even though Company code is active along with Operating Concern currency

Regards,

Abhishek Jolly