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

Update salesorder throgh bapi.

Former Member
0 Likes
771

Dear Experts,

I m using a bapi 'BAPI_SALESORDER_CHANGE' in my program.It updates the internal table but it is not updating the database.So pls help us.

Thanks & regards

Alok Vishnoi.

Dear Experts,

I m using a bapi 'BAPI_SALESORDER_CHANGE' in my program.It updates the internal table but it is not updating the database.So pls help us.

Thanks & regards

Alok Vishnoi.

6 REPLIES 6
Read only

Former Member
0 Likes
752

hi,

to update data base use

call function 'BAPI_TRANSACTION_COMMIT'.

reward if useful,

regards,

chandu

Read only

0 Likes
752

Hi

Chandu,

I had use call function 'BAPI_TRANSCTION_COMMIT' with message 'S' but still problem is same.

Read only

0 Likes
752

hi,

thr is no need to pass any paarmeters to the that bapi,

i think it may some othar prob

regards,

chandu

Read only

vinod_vemuru2
Active Contributor
0 Likes
752

Hi Alok,

After calling this BAPI check the returns table whether u are getting any errors/aborts/dumps. If not then call the FM

BAPI_TRANSACTION_COMMIT.

eg:

CALL FUNCTION BAPI_SALESORDER_CHANGE.

READ TABLE i_return WITH KEY type = 'E'/'A'/'X'.

IF NOT sy-subrc IS INITIAL.

CALL FUNCTION BAPI_TRANSACTION_COMMIT.

ENDIF.

Thanks,

Vinod.

Read only

0 Likes
752

I had check the return table with all messages but still problem same.

Read only

Former Member
0 Likes
752

Hi,

Just check whether you have set the simulation field in the importing parameters of the FM as 'X'.In this case it will run a simulation of the actual but not update the database.

Please check this.It might help.

Thanks,

Sandeep.