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

BAPI_COPAACTUALS_POSTCOSTDATA

Former Member
0 Likes
1,493

Hello,

I have a problem with the Bapi. I am using it to post records from COVP. The problem is that no records are posted. Return table gt_return is empty so no errors are returned. In exchange, no records are posted in table CE1****.

Anyone encountered this problem?

Thanks,

Efren

7 REPLIES 7
Read only

Former Member
0 Likes
1,226

Hi ,

Can we have Code which is giving this issue.

Regards,

Yukti

Read only

madhu_vadlamani
Active Contributor
0 Likes
1,226

Hi Efren,

Did you check the documentation.

If data is actually updated (parameter TestRun = ' '), a DB COMMIT is performed within the method, but not COMMIT WORK, At this point, the system creates the CO-PA profitability segment numbers - that is, it creates records in the table CE4xxxx (xxxx = operating concern). The method BapiService TransactionCommit is used to perform the Commit.

Read only

Former Member
0 Likes
1,226

Hi Efren ,

As per this  BAPI functionality works as follow:-

With this method, you can post actual data to the SAP system's costing based Profitability Analysis (CO-PA).

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.

For posting, this method uses the same functions as those used for external data transfer.

The system performs the CO-PA functions Characteristic derivation and valuation.

If data is actually updated (parameter TestRun = ' '), a DB COMMIT is performed within the method, but not COMMIT WORK, At this point, the system creates the CO-PA profitability segment numbers - that is, it creates records in the table CE4xxxx (xxxx = operating concern). The method BapiService TransactionCommit is used to perform the Commit.

Please check in ur program have u added method BapiServiceTransactionCommit is used to perform the Commit.

I think after above addition ur Bapi will work fine

Regards,

Yukti

Read only

0 Likes
1,226

Hello,

I am using BAPI_TRANSACTION_COMMIT.

The strange thing is that in our test system, the data is updated. In the client system, it is not.

Thanks,

Efren

Read only

0 Likes
1,226

Hi Efren,

What are the return messages you are getting.

Regards,

Madhu.

h

Read only

Former Member
0 Likes
1,226

Hello,

Sorry it was a problem with the database. It is working now.

Thanks,

Efren

Read only

0 Likes
1,226

Cheers Its working with no issue