Skip to Content

Creating HU

Hi Experts,

I want to create HU and the created HU must be barcoded and must be printed using SMARTFORMS in EWM???

Please help me creating HU by using class /SCWM/IF_PACK_BAS or /SCWM/CL_WM_PACKING.

Method CREATE_HU or /SCWM/IF_PACK_BAS~CREATE_HU.


Please provide me a complete code since I am new to EWM.


Please, Experts, do reply.....

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 23, 2016 at 10:37 AM

    Hello Zaiydu,

    1) Creation of HU :

    You can create HU in your costomizing code using the method - /scwm/if_pack~create_hu ,it can be coded as :

    CALL METHOD lo_wm_pack->/scwm/if_pack~create_hu

    EXPORTING

    iv_pmat = '' you need to provide the Package material ID

    i_location = : " you need to provide te location( LGPLA) of that HU

    RECEIVING

    es_huhdr = " this will provide you the new Handling Unit detail /

    EXCEPTIONS

    error = 1

    OTHERS = 2.


    Now once you have done sucessfully , you have use the below method to save it :

    * Save into DB..


    CALL METHOD lo_wm_pack->/scwm/if_pack_bas~save

    EXPORTING

    iv_commit = space

    iv_wait = space

    EXCEPTIONS

    error = 1

    OTHERS = 2.

    If this is done sucessfully put COMMIT WORK AND WAIT.

    Now you can get your new handling unit in structure - ES_HUHDR.


    2.) HU as a Barcode in Smartform:

    So you can use the above handling unit in your custom Smartform. To print as a Barcode you need to create a Style first and than using the format of that that style to print the HU as in barcode form. You can use the below link of creation & printing HU in barcode (its pretty simple )


    BARCODE



    Stay Awesome

    Romit Raina

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 22, 2016 at 07:07 AM

    Hi Zayidu,

    There are standard functionalities in EWM system which you can configure to get it, printing on HU label is controlled by Post Processing Framework (PPF) in EWM where in you can link it with smart form and at what point of time it should print.

    Read about PPF in EWM to get basic idea on how does PPF work. You need to have some basic understanding of such things only then the solution provided by experts will be much helpful to you.

    BR

    Anoop

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.