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

BAPI successfully work but data not update in databae table

Former Member
0 Likes
2,357

Hello All,

When we change item-quantity in any sales order by using bapi BAPI_SALESORDER_CHANGE, then it successfully run but quantiy not change in database table.

So pls help me to solve my problem.

Thanks and Regards.

Swatantra Pathak

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,396

Hi

I think you need to set the value 'X' to the quantity field in ORDER_ITEM_INX internal table you are passing thru tables parameter in the BAPI call.

And also make sure you had used the BAPI_TRANSACTION_COMMIT FM after ur BAPI call.

Satya.

7 REPLIES 7
Read only

Sm1tje
Active Contributor
0 Likes
1,396

bapi_transaction_commit ??

After using 'any' BAPI, you must do the commit with FM 'BAPI_TRANSACTION_COMMIT'.

Edited by: Micky Oestreich on Apr 28, 2008 2:38 PM

Read only

Former Member
0 Likes
1,396

Please use 'BAPI_TRANSACTION_COMMIT' at the end of Sales Order BAPI call.

This would save the entries in the database.

Regards

Chetan

Read only

Former Member
0 Likes
1,396

Make sure to COMMIT your WORK(if you want to save) or ROLL it BACK (you just want to test or cancel) after your BAPI call.

Read only

Former Member
0 Likes
1,398

Hi

I think you need to set the value 'X' to the quantity field in ORDER_ITEM_INX internal table you are passing thru tables parameter in the BAPI call.

And also make sure you had used the BAPI_TRANSACTION_COMMIT FM after ur BAPI call.

Satya.

Read only

Former Member
0 Likes
1,396

Hello All,

When we change item-quantity in any sales order by using bapi BAPI_SALESORDER_CHANGE, then it successfully run but quantiy not change in database table.

i also commit BAPI using bapi_transaction_commit.

but database table not updated.

So pls help me to solve my problem.

Thanks and Regards.

Swatantra Pathak

Read only

Former Member
0 Likes
1,396

Hello All,

When we change item-quantity in any sales order by using bapi BAPI_SALESORDER_CHANGE, then it successfully run but quantiy not change in database table.

i also commit BAPI using bapi_transaction_commit.

but database table not updated.

So pls help me to solve my problem.

Thanks and Regards.

Swatantra Pathak

Read only

Former Member
0 Likes
1,396

Thanks.