cancel
Showing results for 
Search instead for 
Did you mean: 

Update PMR item Status with in EWM during consumption posting

0 Kudos
266

Hello Techies,

I have a requirement to update PMR with in EWM programmatically during an external consumption posting processing. I used /SCDL/cl_sp_prd_out class & method update_aspect to update item status value to complete as during this consumption posting only I shall come to know whether the consumption is fulfilled or not. But I couldn’t able to do so as the corresponding aspect in which the item status is available is not called in standard code. I don’t want to go back to s4 to do a Teco on processing order to update PMR. Please help me with any successful comment on this requirement at the earliest.

Thanks,

naresh k

 

View Entire Topic
katrin_kraemer
Product and Topic Expert
Product and Topic Expert

Hello Naresh,

 

It is not foreseen to update any status like this when processing warehouse requests (PMR, inbound delivery, outbound delivery order and so on). There are a few dedicated actions to set a status for the inbound delivery or the outbound delivery order, but not for the PMR. So I strongly recommend not to try anything of the kind. Also, calling the function module SCWM/PRODUCTION_WHR_MAINTAIN is reserved for the technical interface between SAP Manufacturing and SAP EWM. This is not an API.

The PMR is designed for industries such as consumer products, where the completion is not exactly 100% of the planned quantity consumed but a control by production to finish an order. So the GI quantities and status are not a precise control.
If you want to control the process or store data in a specific way, we recommend using the extension structures (EEW) for your data. When you use /SCDL/CL_SP to write EEW fields, it is a safe option.

 

Regards,
Katrin

Thanks to Katrin and Ajit for the comments posted. We finally agreed to go with EEW extension to have our own field and use it during staging enhancement to filter the PMR lines having this field updated.