SAP Function Modules

HU_WEIGHT_VOLUMN_CHANGES SAP Function module







HU_WEIGHT_VOLUMN_CHANGES is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name HU_WEIGHT_VOLUMN_CHANGES into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: V51C
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM HU_WEIGHT_VOLUMN_CHANGES - HU WEIGHT VOLUMN CHANGES





CALL FUNCTION 'HU_WEIGHT_VOLUMN_CHANGES' "
  EXPORTING
    is_object =                 " hum_object    Object Description of the Handling Units to Be Processed
    if_gewei =                  " gewei         Unit Of Weight
    if_voleh =                  " voleh         Volume Unit
  IMPORTING
    ef_brgew_diff =             " brgew_vekp    Total weight of handling unit
    ef_btvol_diff =             " btvol_vekp    Total Volume of Handling Unit
  EXCEPTIONS
    MISSING_DATA = 1            "
    CONVERSION_ERROR = 2        "               Conversion Error
    .  "  HU_WEIGHT_VOLUMN_CHANGES

ABAP code example for Function Module HU_WEIGHT_VOLUMN_CHANGES





The ABAP code below is a full code listing to execute function module HU_WEIGHT_VOLUMN_CHANGES including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_ef_brgew_diff  TYPE BRGEW_VEKP ,
ld_ef_btvol_diff  TYPE BTVOL_VEKP .

DATA(ld_is_object) = 'Check type of data required'.
DATA(ld_if_gewei) = 'Check type of data required'.
DATA(ld_if_voleh) = 'Check type of data required'. . CALL FUNCTION 'HU_WEIGHT_VOLUMN_CHANGES' EXPORTING is_object = ld_is_object if_gewei = ld_if_gewei if_voleh = ld_if_voleh IMPORTING ef_brgew_diff = ld_ef_brgew_diff ef_btvol_diff = ld_ef_btvol_diff EXCEPTIONS MISSING_DATA = 1 CONVERSION_ERROR = 2 . " HU_WEIGHT_VOLUMN_CHANGES
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ef_brgew_diff  TYPE BRGEW_VEKP ,
ld_is_object  TYPE HUM_OBJECT ,
ld_ef_btvol_diff  TYPE BTVOL_VEKP ,
ld_if_gewei  TYPE GEWEI ,
ld_if_voleh  TYPE VOLEH .

ld_is_object = 'Check type of data required'.
ld_if_gewei = 'Check type of data required'.
ld_if_voleh = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name HU_WEIGHT_VOLUMN_CHANGES or its description.