cancel
Showing results for 
Search instead for 
Did you mean: 

How to read HUs against Deliveries for which GR posted?

CRVMANISH
Contributor
0 Kudos
1,289

Hi,

I'm trying to read HUs against Inbound Deliveries for which GR posted.

We have tables /SCWM/HUHDR (HU table before GR Posted against Inbound Delivery), /SCWM/GMHUHDR (HU Table after GR Posted against Inbound Delivery).

Now I'm using FM "/SCWM/HU_SELECT_GEN" to read HUs against Inbound Delivery Document IDs. This FM is returning only HUs against Deliveries for which GR posting is not done i.e. only Unloading or HU creation is done.

Once we do GR posting against a Inbound Delivery, then HUs will be deleted from table /SCWM/HUHDR and saved into table /SCWM/GMHUHDR table due to this the FM "/SCWM/HU_SELECT_GEN" is not returning HUs.

Kindly suggest me how to select Hus against Inbound Delivery properly in EWM ABAP.

Regards,

Manish.

Accepted Solutions (0)

Answers (2)

Answers (2)

lauinator
Explorer
0 Kudos

Are you talking about HUs that are just GR posted or HUs for which putaway is done? Once HUs are confirmed into final storage type the lose their link to the inbound delivery. Then no way that HU_SELECT_GEN returns anything. What you can do is to retrieve the warehouse tasks used for putaway. They still have the RDOCID. And in the WTs you see which HUs were used. Buy doing so you still get the link between inbound delivery and HU after putaway.
However, if the HUs are just GR posted, they still have the link to inbound delivery and HU_SELECT_GEN should return a result. GMHUHDR applies to HUs for outbound deliveries after GI posting but not for inbound deliveries.

former_member803951
Participant
0 Kudos

Hi

You can get this through the Query method of class /scwm/cl_dlv_management_prd

Best regards

Janardhan S Musigeri