We use cookie to ensure that we give you best experience on our website. With further use of this website you accept the application of cookies.  mehr...  I agree  reject

Sample ABAP Code for calling /SCWM/HU_WEIGHT_FROM_SCALE

The following ABAP Code shows, how function module /SCWM/HU_WEIGHT_FROM_SCALE can be used to get the weight and unit
from a scale witin a SAP-EMW system.

  DATA:
    ls_scale TYPE /scwm/s_hu_scale,
    lt_scale TYPE STANDARD TABLE OF /scwm/s_hu_scale.
  REFRESH lt_scale.
  CLEAR ls_scale.
  ls_scale-scale_name = 'S001'.
  APPEND ls_scale TO lt_scale.
  CALL FUNCTION '/SCWM/HU_WEIGHT_FROM_SCALE'
    DESTINATION 'RFCSCALE'
    TABLES
      et_weight = lt_scale.
  READ TABLE lt_scale INDEX 1 INTO ls_scale.
  IF ( ls_scale-g_weight IS NOT INITIAL ).
    WRITE: / ls_scale-g_weight , ls_scale-unit_gw.
  ENDIF.


back to Scale Integration SAP EWM



SAP®, R/3® and ABAP™ are registered trademarks of SAP AG in Germany and other countries.
All other names of products and services are trademarks of their respective companies.