SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

executing BAPI_BCONTACT_CREATEFROMDATA via Function Builder fails

Former Member
0 Kudos

Hi All,

I'm trying to execute a function module BAPI_BCONTACT_CREATEFROMDATA via Function Builder(SE37) to create contact. The function seems to be executed properly since the return code is 000. But I can't find any corresponding record from cic0. Any ideas?

Regards,

Edited by: Ken Lam on Apr 11, 2008 5:24 AM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

With most BAPIs you need an explicit commit. Instead of just testing this BAPI from SE37, add this BAPI and BAPI_TRANSACTION_COMMIT to a test sequence and test.

Go to SE37 initial screen, in the menu 'Function Module --> Test --> Test Sequences '. Enter BAPI_BCONTACT_CREATEFROMDATA in the first line and BAPI_TRANSACTION_COMMIT in the second line and execute. You will get the execution of the first BAPI, enter values and execute it. See the results, go back, you will be prompted to execute the second BAPI. Simply execute it and check your results.

View solution in original post

2 REPLIES 2

Former Member
0 Kudos

With most BAPIs you need an explicit commit. Instead of just testing this BAPI from SE37, add this BAPI and BAPI_TRANSACTION_COMMIT to a test sequence and test.

Go to SE37 initial screen, in the menu 'Function Module --> Test --> Test Sequences '. Enter BAPI_BCONTACT_CREATEFROMDATA in the first line and BAPI_TRANSACTION_COMMIT in the second line and execute. You will get the execution of the first BAPI, enter values and execute it. See the results, go back, you will be prompted to execute the second BAPI. Simply execute it and check your results.

Former Member
0 Kudos

Thanks for your help. It is work.