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_REQUISITION_DELETE

Former Member
0 Likes
1,241

Hi All,

We use BAPI_REQUISITION_DELETE to delete and close a line item in a PR document. When using the BAPI in ECC 6.0 the result is that it creates new line item with deleted and closed status. While the original line item which we would want to be deleted and closed remains in undeleted and unclosed status.

In version 4.6 we don't experience this scenario.

Please help.

Thanks,

Sid

1 ACCEPTED SOLUTION
Read only

ritesh_dugad2
Active Participant
1,105

I am using this Bapi but it does not create a new line. Can you please recheck in debugging mode.

5 REPLIES 5
Read only

ritesh_dugad2
Active Participant
1,106

I am using this Bapi but it does not create a new line. Can you please recheck in debugging mode.

Read only

Former Member
0 Likes
1,105

Hi Sid,

This BAPI will not create new line items. It will only enable you to delete and/or close purchase requisitions.

Pls check again.

Thanks

Nayan

Read only

Former Member
0 Likes
1,105

Hi Sid,

I think you are passing something wrong data .

Try to test the BAPI in se37 with different values untill you get your result.

Read only

0 Likes
1,105

Thanks guys for your replies. I guess the culprit is that the line item number is empty (00000). I didn't know how the user created the PR in the first place, but I created one myself and i run the BAPI to delete and close the item and it succeed.

Thanks guys!

Points will be rewarded...

Read only

Former Member
0 Likes
1,105

Thanks