cancel
Showing results for 
Search instead for 
Did you mean: 

Update PMR item Status with in EWM during consumption posting

0 Kudos
295

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

 

Accepted Solutions (1)

Accepted Solutions (1)

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.

Answers (1)

Answers (1)

Ajit_Routray
Active Contributor
0 Kudos

Hi @naresh_kudipudi13 ,

Please see the check the below FM, fill the data related to Teco (status) and let us know if any questions. This FM is used in interface ERP-EWM.

Function Module- /SCWM/PRODUCTION_WHR_MAINTAIN

Kind Regards,

Ajit

0 Kudos
Hi Ajit, It appears that this FM is not updating PMR status rather it actually sends the information of Process order details to EWM. I couldn't find any PMR relevant data updates via this function module.
0 Kudos
To update you all .. there seems no standard way to update PMR ITEM fields like deletion indicator, status etc with EWM.. how ever I could update custom fields in EEW structure.. I am still looking if some one can provide a direction on std fields update.
Ajit_Routray
Active Contributor
0 Kudos
Hi naresh_kudipudi13 - Did you try to stop via interface debugging (Proces- QueueDeregister... Stopping...etc) ...I am believe this is function module would give you desire things which you are looking. Before conclude debug once. Thanks! Kind Regards, Ajit