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.

You must login to send a message.

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.

Welcome To Himer

Ask questions and get real answers from real people. Whether you’re looking for crossword answers, practical advice or you’ve just come for a chat, get answers to your questions. To get started all you need to do is register.

Our Statistics

  • Questions 92
  • Answers 3
  • Best Answers 0
  • Users 3
  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

Recent Posts on sapewmhelp.com

SAP EWM Help Latest Articles

Create TU in SAP Extended Warehouse Management – EWM

TRY.          lo_tu_cntrl->create_new_bo_tu( EXPORTING is_bo_tu_new = ls_new_tu_head                                         IMPORTING eo_bo_tu     = eo_bo_tu ). IF eo_bo_tu IS BOUND.             es_tu_act_num = eo_bo_tu->get_num( ).             APPEND es_tu_act_num TO lt_inkeys.          ENDIF.             lo_tu_cntrl->save( ). *--Commit work             COMMIT WORK AND WAIT.             tu_num = es_tu_act_num-tu_num.             "Log something in case of success           CATCH /scwm/cx_sr_error INTO lo_tu_exception.             ROLLBACK WORK. *--Log something in case of error

How can you extract specific fields from an internal table using FOR … WHERE inside a VALUE expression?

This creates a new string table containing only the names of users whose status = ‘ACTIVE’—short, clean, and readable. — REDUCE Example —Total Amount: 500 Output: — FILTER Example —Alice ACTIVECharlie ACTIVE — FOR Expression Example —AliceCharlie

Explore Our Blog