‎2009 Jun 27 4:11 AM
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?
‎2009 Jun 27 11:42 AM
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
‎2009 Jun 27 11:42 AM
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
‎2009 Jun 27 11:50 AM
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