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 while using BAPI_REQUISITION_DELETE

Former Member
0 Likes
1,855

Dear All,

I am using BAPI_REQUISITION_DELETE to delete items from purchase requisition. I am uploading PR number and item number from an excel sheet. It is working fine when I am passing only one item for one PR, but in case of more than one item from single PR it is deleteing the first line item but giving error 'User already processing Purch. Requisition ' for other line items.

I have use commit and wait but it is not working.

Please suggest.

Thanks ,

Salman Zahir

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,732

Hi,

Are you populating REQUISITION_ITEMS_TO_DELETE in one shot (all the items) or you are one item at a time

Regards

Hiren K.Chitalia

6 REPLIES 6
Read only

Former Member
0 Likes
1,733

Hi,

Are you populating REQUISITION_ITEMS_TO_DELETE in one shot (all the items) or you are one item at a time

Regards

Hiren K.Chitalia

Read only

0 Likes
1,732

Hi Hiren,

I am putting BAPI_REQUISITION_DELETE in loop and providing one line item at a time , but let me try as per your suggestion by giving all the line items in one go.

Thanks,

Salman Zahir

Read only

0 Likes
1,732

This message was moderated.

Read only

0 Likes
1,732

Thanks Hiren, it worked .

Read only

0 Likes
1,732

This message was moderated.

Read only

anilplacer
Discoverer
0 Likes
1,719

Hi,

you need to add your FM in LOOP, because same program I have done.

for more information you can send your current program, then I'll solve and revert.

 

Regards,

Anil Kumar