on 01-06-2015 4:06 AM
Hello Experts,
I am trying to implement ORDER_SAVE badi. And, I have to update one ztable in that implementation.
My question is, do we need to use commit statement after the update statement to reflect the changes in ztable?
Can someone please explain if you have worked on ztable updating in BADI implementations?
Thank you!
Hi Maren,
Create an update function module. This can be set in the attributes tab of the FM.
Now, call your commit in the update function module. This will get updated at the time of BADI commit. Don't forget to call your FM as CALL FM IN UPDATE TASK. Please let me know if you need any other details on this.
Thanks,
Faisal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Faisal & Ankit,
Thanks a bunch!! I got what I need... thanks to you both...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maren,
It is not a good practice to use commit statement in Order_save badi.
Solution is:
FUNCTION ZUPDATE_CUSTOM_TABLE.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(GUID) TYPE CRMT_OBJECT_GUID
*"----------------------------------------------------------------------
PERFORM call_on_commit on commit.
ENDFUNCTION.
FORM call_on_commit.
Update your custom table here.
ENDFORM.
Regards,
Ankit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maren,
In your badi implementation are you using any function module for updating ztable if you are using any function module then you have to commit using bapi_transactin_commit fm.
if your using keyword update or modify for updating fields in your ztable then no need for commit as per my knowledge.
Thanks & Regards,
Srinivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.