Supply Chain Management Blogs by Members
Learn about SAP SCM software from firsthand experiences of community members. Share your own post and join the conversation about supply chain management.
cancel
Showing results for 
Search instead for 
Did you mean: 
Jayesh_Jurani
Explorer
0 Kudos

Warehouses frequently have the need to generate different types of handling unit labels in several processes. Majority of the times, these labels have their own unique layouts and data requirements which cannot be fulfilled by standard SAP forms. Hence, there comes a need to build and configure custom forms in such cases.

The aim of this blog is to show the configuration steps needed to trigger the custom handling unit label and also showcase the business add-in (BADI) which can be used to call the custom form.

Configuration: -

1) Lets say we use the standard PPF action HU_LABEL_GENERAL_AND_RF which allows repeat printouts to be triggered. (Transaction SPPFCADM)Jayesh_Jurani_0-1709645293833.png

2) We would be linking our custom adobe form to this action definition. In order to link this, we maintain condition record in...(Transaction /SCWM/PRHU6).Jayesh_Jurani_1-1709645402132.png

Jayesh_Jurani_0-1709648394984.png

Jayesh_Jurani_1-1709648465677.png

We see in the screenshots above that there are two condition records set up for the same adobe form, the record with HU Step = "P" will be triggered when manual print button is pressed in the /SCWM/PACK transaction. (Testing steps in this blog are done using the manual print button approach)

While the record with HU Step = "U" and Completed "X" will be triggered when HU Process Step Completed button is pressed in the /SCWM/PACK transaction.

Development: -

Apart from the custom adobe form development, the BADI /SCWM/EX_PRNT_PDF_HU should be implemented. The BADI Implementation would contain custom logic to feed values into the adobe form based on the importing parameters.Jayesh_Jurani_5-1709646620056.png

The function modules FP_FUNCTION_MODULE_NAME, FP_JOB_OPEN, adobe function module and FP_JOB_CLOSE would be called in sequence.Jayesh_Jurani_6-1709646920996.png

Jayesh_Jurani_7-1709647005982.png

Jayesh_Jurani_8-1709647052869.png

Lastly, if there are no errors, then the exporting parameter EV_PRINTED should be set to "X" to tell the system that the BADI Implementation has been successfully able to create the form output.

Note: - The BADI is called within the function module /SCWM/EXECUTE_PPF_HU_PDF, which in turn gets called under function module /SCWM/EXECUTE_PPF_HU. It's mandatory that the execute method of the PPF action definition calls the function module "/SCWM/EXECUTE_PPF_HU" for the BADI implementation to be triggered.

Testing: -

1) To test this, we follow the standard outbound process flow starting from a sales order, outbound delivery, outbound delivery order, picking. Now, the pick handling unit is present at the pack work center and we press the Print button in...(Transaction /SCWM/PACK)Jayesh_Jurani_2-1709648515296.png

Jayesh_Jurani_1-1709647616258.png

2) We can see the generated spool output in....(Transaction SP01)Jayesh_Jurani_3-1709648565242.png

 

 

 

 

 

 

 

 

 

 

 

Labels in this area