cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

EWM - How to auto packing by inbound delivery line items

kent_2804
Explorer
0 Kudos
2,451

Hi,

I have inbound with many difference batchs, when packking in SCWM/PRDI, system pack not by line items line 10, 20, 30 but packing with rule merge batch.

Does any configuration can packing sequence by line item number ?

- Example HU1: line 10 + line 20 + line 30 + line 40 ( pack.qty = 100/1HU)

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Kudos

Hello kent_2804

kent_2804I've done a bit of the code analysis for you. The auto packing is executed by the /SCWM/HU_PROPOSAL function, module in the /SCWM/HU_PACKSPEC function group. The function module uses local class LCL_HU_PROPOSAL. The class implements the GET_MATCHING_ITEMS method. It looks like this method gets the items that can be packed together. At the beginning the method sorts the items with the code:

* This optimizes 0the npacking a bit, e.g. all items with the
* same product together. But this is not perfect.
* I think we need a Badi for this.
SORT lt_pack BY refmatid matid batchid open_quan DESCENDING.

Notice that the sorting criteria and direction corresponds to your auto packing results - the batches are sorted descending, and quantities are sorted descending. You can put a break-point in the code and check if my analysis is correct.

I've not found any enhancement or configuration around that. So if you don't like the standard, you can build your own logic with the /SCWM/EX_HU_BASICS_AUTOPACK BAdI.

Best regards

Dominik Tylczynski

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Kudos

Hello kent_2804

Check if batch mixing is allowed in the packing specification:

If you are not able to implement a packing procedure with packing specifications, you can implement your own logic with the /SCWM/EX_HU_BASICS_AUTOPACK BAdI.

Best regards

Dominik Tylczynski

kent_2804
Explorer
0 Kudos

Hi Dominik Tylczynski,

The button was ticked, but system does not auto pack as line items in Inbound (example line 10 + 20 + 30) but auto packing as batch (batch TESTCL20 then batch TEST19 like picture above).