on 2022 Aug 25 10:28 AM
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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.