Hello,

Sign up to join our community!

Welcome Back,

Please sign in to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

SAP EWM

SAP Extended Warehouse Management

Share
Followers
1 Answer
1 Question
  1. Here is the sample code to read HU Create Instance for /scwm/cl_wm_packing class *--Get docid from the source HU       CALL METHOD /scwm/cl_wm_packing=>get_instance         IMPORTING           eo_instance = DATA(lo_wm_pack). * --init warehouse,application       CALL METHOD lo_wm_pack->init_pacRead more

    Here is the sample code to read HU

    Create Instance for /scwm/cl_wm_packing class
    
    *--Get docid from the source HU
          CALL METHOD /scwm/cl_wm_packing=>get_instance
            IMPORTING
              eo_instance = DATA(lo_wm_pack).
    
    
    
    * --init warehouse,application
          CALL METHOD lo_wm_pack->init_pack
            EXPORTING
              iv_badi_appl = 'WME'
              iv_lgnum     = is_ltap-lgnum
            EXCEPTIONS
              error        = 1
              OTHERS       = 2.
    
    
    
    * --get hu data, in this case only item data
          CALL METHOD lo_wm_pack->get_hu
            EXPORTING
              iv_guid_hu = is_ltap-sguid_hu                 " Unique Internal Identification of a Handling Unit
            IMPORTING
              et_huitm   = DATA(lt_huitm)                   " Material Items in the HU
            EXCEPTIONS
              not_found  = 1
              OTHERS     = 2.

     

    See less