cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI for De-allocate STO

anuradha_wijesinghe
Participant
0 Kudos
435

Hi Experts,

Can anyone suggest any Function Module or BAPI to De-Allocate the STO.

Bellow is my scenario.

I want to delete the line item of STP (PO) which has been already delivered. Before doing deletion, it need to de-allocate the STO line item. This is a FMS system..

Deallocation process can be done from the TCode ARUNWB, but I need to execute this backend from ABAP.

I'm looking for a BAPI for the STO De-Allocation Process.

Accepted Solutions (0)

Answers (1)

Answers (1)

Hello,

If I understand your question correctly, you want to delete a line item from STO which is already delivered. Now I assume that quantities are still on a delivery note.

In this case, first you need to delete the delivery document item or perform a zero picking of the delivery document. Once this step is done the allocated stock will be released(If automatic deallocation is activated then allocations will be cleared if not allocation status will change to F). Then you can delete the item from STO without any issues.

Br,

Raghu