Application Development 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: 

Deletion of Purchase order Via BAPI

Former Member
0 Kudos

Hi all,

I am trying to fine a BAPI for deleltion of Purchase Order.

My Understanding says that we can use BAPI_PO_CHANGE for the above purpose marking the deletion Indiacator as 'X'.

Though the BAPI is giving me the return as "The Purchase Order ________ is succefully changed", but the disired purposed is not solved.

That is I am still being able to spot the corresponding Purchase Order with the Deletion Indicator NOT MARKED 'X'.

Kindly guide.

Debabrata

4 REPLIES 4

Former Member
0 Kudos

hi,

You need to use the below bapi after that one

<b>BAPI_PO_DELETE_HISTORY</b>

Delete Purchase Order History

Regards

Sudheer

0 Kudos

Well Thanks for the answer.

But I could not understand the phrase "After That One"...

Do you mean to say that I need to use both the BAPIs for the above purpose

in sequence ?

Moreover, can you please substantiate your reply with a piece of code ?...

Your efforts will be rewarded.

Many Thanks

Dev

Former Member
0 Kudos

Are you doing a COMMIT WORK AND WAIT after the BAPI call.

0 Kudos

I am not calling BAPI from a code.

I am directly executing the BAPI.

If I am executing the BAPI_PO_DELETE_HISTORY, it is giving me the return as "Cumpulsory Fields Missing".

I need to know all the mandatory parameters for that. But again as per the check in boxex in the BAPI Parameter Interface all but the Purchse Order Number are optional.