cancel
Showing results for 
Search instead for 
Did you mean: 

bapi_bupa_create_from_data not working.

Former Member
0 Kudos

I am using bapi_bupa_create_from_data to create a bp and its also returning a bp number. But its not saving the bp. the return table shows a message number '002'. Please help me. I am new to CRM.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Faisal,

Have you used the FM 'Bapi_transaction_commit' after using FM 'BAPI_BUPA_CREATE_FROM_DATA'.

Bapi_transaction_commit is responsible for saving the transactions.

Best Regards,

Somya

faisal_pc
Active Contributor
0 Kudos

Hi Somya,

I haven't used. But I have seen SAP using both BAPI_TRANSACTION_ROLLBACK  and BAPI_TRANSACTION_COMMIT in case of BP also. And a couple of custom programs which have used this is working I saw. You can check the FM CRM_WAP_BP_CREATE.

Please correct if I am wrong.

Thanks,

Faisal

Former Member
0 Kudos

Hi Faisal PC,

As far as I know, after each Bapi transaction that we do, we need to save or finalize that .

we can do that by 'BAPI_TRANSACTION_COMMIT'. But in case, we rectify any error in

between the transaction , we can roll back the changes and that is done by 'BAPI_TRANSACTION_ROLLBACK'.

But both the FMs have the property to clean the bapi buffer in order to prevent any data

inconsistency.

Provide your inputs.

Best Regards,

Somya

Former Member
0 Kudos

Thank you, somya.

Former Member
0 Kudos

Thank you.

faisal_pc
Active Contributor
0 Kudos

Hi Mohammed,

Did it work?.

Thanks,

Faisal

Former Member
0 Kudos

yeah

faisal_pc
Active Contributor
0 Kudos

Hi Mohammed,

Did you do COMMIT WORK or used BAPI_TRANSACTION_COMMIT after this?.

Thanks,

Faisal