‎2005 Aug 23 6:27 AM
hai guys,
After calling BAPI Create_salesdat2, before commit, can i update some values in ADDON TABLE.
is it possible?
i scare while after running BAPI to create sales order, can i update sales document to ADDON table
and the continue with BAPI COMMIT statement.
As In my case, shipment creation is done by automatic customized triggering way.
please confirm me if any other alternative i can do here..
ambichan
‎2005 Aug 23 1:04 PM
Hi,
You can do very well. update addon table entries after bapi commit.
Cheers,
Sasi
‎2005 Aug 23 1:04 PM
Hi,
You can do very well. update addon table entries after bapi commit.
Cheers,
Sasi
‎2005 Aug 23 1:44 PM
hai sasikumar.
Thanks for your reply.
Actually i want to update add on table entries before the bapi commit. but after the BAPI SALES order check.
Because if we do BAPI commit immediately the customizing part of shipment creation will take over..
pls confirm whether before commit will take effect without any problem...?
ambichan
‎2005 Aug 23 2:02 PM
Hi ambichan!
Bapi will register some database updates for update tasks - they will be triggered with commit work.
If you change shipment relevant values before commit, your changes still might not be considered: all relevant information is already saved in update tables (VBHDR,...).
Also Manual sales order creation (to compare 'standard' with BAPI creation) won't work.
Maybe it's better, you use user-exits / BADI / user-exit routines of VA01. Then timing and integration should be correct.
Regards,
Christian
‎2005 Aug 23 2:34 PM
Hey Christian,
Thanks for your reply.
I am sorry, i think i have not explained my requirement correctly.
Actually we have created BAPI sales order and once the sales document is created,Automatically customized setting is done to trigger shipment creation.
In the mean time, My requirement is, After Creating BAPI sales order i want to take backup of created sales document into my own ADDON Table and then continue with automatic Shipment creation.
Here we generally use BAPI COMMIT for sales order creation. In this timming i want to update my own addontable and then want to do BAPI COMMIT.
(to be more accurate, if sy-subrc =0 with BAPI sales order, then before do CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'. i want to update own
ADDON table)
will this make effect..?
hope i explained ...if not pls let me know..
ambichan
‎2005 Aug 23 3:26 PM
Hi,
okay, that is totally different. Sounds save to do. But also updating your table and using second commit work can bring same result - without being unsure because of side-effects.
Regards,
Christian