cancel
Showing results for 
Search instead for 
Did you mean: 

Delete a Purchase Requisition Item

Former Member
0 Kudos

hi,

I have a problem changing a production order.

the problem ocures from a purchase requisition. When I am in ME52N the deletion indicator goes in display, where Icant delete it.

I am trying to delete a line item from the requistion of account assigment --> "f" and item category "d".

when I try to delete the line item I get the message " this item is only deletable via the associated production order".

I tried to locate the production order through Co03, but was not able to, so that I can then go to change mode and then delete. I was able to find the order in the table afko --" order header data PP orders".

at the same item I am unable to locate the order in the table afpo -- "order item".

the order finish date is in 2004. I am thinking that the order might have been archived.

if so, I am stuck how to delete the line item.

if anyone, has any ideas or any way around, do let me know

Thanks,

Srikanth.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Was able to do with the BAPI's

Former Member
0 Kudos

Hello,

Thanks for the quick reply.

When I tried to delete the requisition item it gives me an error code "CJ021" "WBS Element 00028863 does not exist"

The requisition has been created in the first place with a wrong WBS element. I wonder how?

Actaully it is one of the validation which SAP checks.

and know it is not letting me to delete the requisition.

Kindly suggest.

Thanks

Srikanth

andreas_mann3
Active Contributor
0 Kudos

hi,

have you looked (with SE16) in table prps for the wbs-element ?

-can't you change the account assignment with another wbs or cost centre?

Andreas

Former Member
0 Kudos

I think we can change, but the cosumer needs to delete it.

I have suggested the solution for changing the account assignment , but did not receive any message regarding that.

I thought we can use the BAPI_REQUSITION_CHANGE.

Kindly suggest if there is a work around.

Regards,

Srikanth.

ferry_lianto
Active Contributor
0 Kudos

Hi Srikanth,

You can use this BAPI (transaction SE37) to delete PR line item.

BAPI_REQUISITION_CHANGE

BAPI_REQUISITION_DELETE

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.