cancel
Showing results for 
Search instead for 
Did you mean: 

User exit for packing in FM VHUPIHU_FIND_AND_RESOL_GENERAL

sap_2605
Active Participant
0 Kudos

Dear SAP experts,

We have requirements where we need to have packing proposals for items. SAP does have this functionality, but the requirement is a bit unique in which one part can have different packing instruction in one delivery.

Eg. 1 pc of kit has:

3 pc part A

4 pc part B

1 pc part C

1 pc part D

2 pc part E

it should be packed like this:

package 1:

1 pc part A

2 pc part E

package 2:

1 pc part B

1 pc part C

1 pc part D

package 3:

2 pc part A

3 pc part B

If package 1, 2, 3 is translated into packing instruction, part A will appear in packing instruction for 1, and 3. Part B in 2, and 3 and so on. After debugging how SAP determine the packing instruction, it seems using regular condition technique, this requirement cannot be fulfilled. However we interested to see that in FM VHUPIHU_FIND_AND_RESOL_GENERAL, there is one sub-routine called  user_exit_chg_prototypes_all. This sub-routine doesnt contain any code, but there is a remark '* in this form customer can change all created prototype HUs". So we assume that whatever packing instruction proposed by SAP can be broken in here and then re-built using any logic that we have. Sounds promising but there is no documentation how we use this sub-routine (what can be changed, and the guideline to change).


Does someone has experience using this sub-routine? Appreciate if someone can share their experience using this sub-routine.


Best regards,

John

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can use BADI_HU_AUTOPACK (METHOD_PROPOSAL) to change the HUs created by SAP through your packing instruction.

However here you must add logic to pack the items as per your requirement and take care to see that HDR, ITEM and CAPACITY are filled in appropriately.

Thanks and Regards.

Jogesh