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

Problem with BAPI_CUSTOMERINQUIRY_CHANGE

Former Member
0 Likes
779

Hello Experts,

I have one problem, i will explain you in detail....

we have an application where we are changinging the inquiry No for the line items.

If we have 10 line items say 10...20....30......up to 100.

if an error occured at 40th item, the BAPI_CUSTOMERINQUIRY_CHANGE will not go further and exits .

if we commit the 10,20 and 30 items with 'BAPI_TRANSACTION_COMMIT' will the Database commit will be successfull ?

Is the inquiry will be changed for the three line items ?

I am struck here .Please help me.

Thanks,

Badri

Moderator message - Moved to the correct forum

Edited by: Rob Burbank on Dec 2, 2009 9:14 AM

3 REPLIES 3
Read only

Former Member
0 Likes
583

Hi,

If you get an error message in return table the bapi will not update the database tables.

Regards,

Manesh R

Read only

Former Member
0 Likes
583

Are we call the BAPI_CUSTOMERINQUIRY_CHANGE in a loop and each time we are passing one item or we are passing all the line items together?

Read only

Former Member
0 Likes
583

Hi Srinivas,

The BAPI Take the line item in an internal table INQUIRY_ITEM_IN so if you want it will update all the line items in one shot .

Please update the table INQUIRY_ITEM_INX with all the feilds that needs to be updated for all the line items .

Note : the feild ITM_NUMBER in INQUIRY_ITEM_INX will be item number ie 000010 and 000020 etc .

i fell there is no use of calling bapi in loop for updaing different line item .