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

regarding commit at BAPI

Former Member
0 Likes
840

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
688

Hi,

You can do very well. update addon table entries after bapi commit.

Cheers,

Sasi

5 REPLIES 5
Read only

Former Member
0 Likes
689

Hi,

You can do very well. update addon table entries after bapi commit.

Cheers,

Sasi

Read only

0 Likes
688

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

Read only

0 Likes
688

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

Read only

0 Likes
688

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

Read only

0 Likes
688

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