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

Can I execute BAPI_CUSTOMER_CHANGEFROMDATA1 continuity.

Former Member
0 Likes
494

Hello~:)

when I execute BAPI_CUSTOMER_CHANGEFROMDATA1 continuity,

first time, it executes well and change customer data but

second time , after i change value and excute, it doesn't change anything.

I guess that there is a connection problem.

Because, after first execute, go out from bapi, put /nse37 t-code , excute BAPI again.

it does well.

I don't know why..

could you explain?

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
451

Hi,

you need to call BAPI_TRANSACTION_COMMIT after you call your BAPI. This will commit all changes to DB. You can call sequence of function modules from SE37 -> Test -> Test sequences. You can call BAPI_CUSTOMER_CHANGEFROMDATA1 and then BAPI_TRANSACTION_COMMIT.

Cheers

2 REPLIES 2
Read only

mvoros
Active Contributor
0 Likes
452

Hi,

you need to call BAPI_TRANSACTION_COMMIT after you call your BAPI. This will commit all changes to DB. You can call sequence of function modules from SE37 -> Test -> Test sequences. You can call BAPI_CUSTOMER_CHANGEFROMDATA1 and then BAPI_TRANSACTION_COMMIT.

Cheers

Read only

Former Member
0 Likes
451

Why you are doing it in se37, instead you can write a program in se38 which populates all BAPI input parameters and tables and call

BAPI_CUSTOMER_CHANGEFROMDATA1 followed by BAPI_TRANSACTION_COMMIT.

If you code this in a loop of a internal table which contains several customers it will work fine. Dont forget to analyse the return table of the bapi for the messages before commiting.

Regards

Karthik D