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

error message in BAPI_REQUISITION_DELETE

Former Member
0 Likes
945

Hi SAP All,

I have to use the BAPI  BAPI_REQUISITION_DELETE  to delete the Purchase requisitions line item wise.

I have get the data in the program from Excel file in which mention PR No. and PR Line Item No. only.

then showing error message

*******

E:W5024No purchase req:000

Message no. W5024No purchase req000

*********

guide me........

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
723

Hi Saurabh,

Please check the format of the purchase order number and the line items. Before sending the data to the BAPI, use the internal conversion routine to add preceding zeros to Item Number and purchase order.

Also make sure update the TABLES REQUISITION_ITEMS_TO_DELETE within the FM with the line items and set the deletion indicator or close indicator.

You may need to use the BAPI COMMIT after the using this BAPI.

Cheers

~Niranjan

2 REPLIES 2
Read only

Former Member
0 Likes
724

Hi Saurabh,

Please check the format of the purchase order number and the line items. Before sending the data to the BAPI, use the internal conversion routine to add preceding zeros to Item Number and purchase order.

Also make sure update the TABLES REQUISITION_ITEMS_TO_DELETE within the FM with the line items and set the deletion indicator or close indicator.

You may need to use the BAPI COMMIT after the using this BAPI.

Cheers

~Niranjan

Read only

vamsixk
Active Participant
0 Likes
723

HI Saurabh,

I Agree with niranjan! But just to add to that. Since you are importing the data from the excel file pleas check whether the mapping in between the excel file to the internal table is Proper.

Even though u might have mapped he proper field of the internal table to the BAPI parameter, the Excel import may not be mapped Properly!! Do tell if this worked for YOU.