‎2012 Mar 29 6:50 PM
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
‎2012 Mar 30 3:22 AM
Hi ,
Can we have Code which is giving this issue.
Regards,
Yukti
‎2012 Mar 30 4:36 AM
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.
‎2012 Mar 30 4:48 AM
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
‎2012 Mar 30 5:51 AM
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
‎2012 Mar 30 5:54 AM
Hi Efren,
What are the return messages you are getting.
Regards,
Madhu.
h
‎2012 Mar 30 8:42 AM
Hello,
Sorry it was a problem with the database. It is working now.
Thanks,
Efren
‎2012 Mar 30 8:56 AM