SAP Function Modules

WMD_EXT_WM_SETTINGS_ALL_SINGLE SAP Function module







WMD_EXT_WM_SETTINGS_ALL_SINGLE 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 WMD_EXT_WM_SETTINGS_ALL_SINGLE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM WMD_EXT_WM_SETTINGS_ALL_SINGLE - WMD EXT WM SETTINGS ALL SINGLE





CALL FUNCTION 'WMD_EXT_WM_SETTINGS_ALL_SINGLE' "
  EXPORTING
    iv_plant =                  " werab
    iv_material =               " matnr
*   iv_aktnr =                  " waktion
    iv_kzvas =                  " frm_vas_rel
    iv_ind_uc_split =           " de_wmd_uc_split
    iv_ibd_obd =                " char1
*   iv_aurel =                  " aurel
  IMPORTING
    ev_situa_inbound =          " situa
    ev_situa_outbound =         " situa
    ev_situa =                  " situa
    ev_wmd_process_method =     " de_wmd_process_method
    ev_md_adjust_exec =         " de_wmd_adjust_execute
    es_wmd_adjust_exec_wm =     " sty_wmd_adjust_exec_wm
* CHANGING
*   cv_plant_profile =          " fprfw
*   cv_material_profile =       " fprfm
*   cv_lgort =                  " lgort_d
*   cv_lgnum =                  " lgnum
*   cv_md_adjust_exec =         " de_wmd_adjust_execute
*   cv_bartv =                  " bartv
    .  "  WMD_EXT_WM_SETTINGS_ALL_SINGLE

ABAP code example for Function Module WMD_EXT_WM_SETTINGS_ALL_SINGLE





The ABAP code below is a full code listing to execute function module WMD_EXT_WM_SETTINGS_ALL_SINGLE 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_ev_situa_inbound  TYPE SITUA ,
ld_ev_situa_outbound  TYPE SITUA ,
ld_ev_situa  TYPE SITUA ,
ld_ev_wmd_process_method  TYPE DE_WMD_PROCESS_METHOD ,
ld_ev_md_adjust_exec  TYPE DE_WMD_ADJUST_EXECUTE ,
ld_es_wmd_adjust_exec_wm  TYPE STY_WMD_ADJUST_EXEC_WM .

DATA(ld_cv_plant_profile) = 'Check type of data required'.
DATA(ld_cv_material_profile) = 'Check type of data required'.
DATA(ld_cv_lgort) = 'Check type of data required'.
DATA(ld_cv_lgnum) = 'Check type of data required'.
DATA(ld_cv_md_adjust_exec) = 'Check type of data required'.
DATA(ld_cv_bartv) = 'Check type of data required'.
DATA(ld_iv_plant) = 'Check type of data required'.
DATA(ld_iv_material) = 'Check type of data required'.
DATA(ld_iv_aktnr) = 'Check type of data required'.
DATA(ld_iv_kzvas) = 'Check type of data required'.
DATA(ld_iv_ind_uc_split) = 'Check type of data required'.
DATA(ld_iv_ibd_obd) = 'Check type of data required'.
DATA(ld_iv_aurel) = 'Check type of data required'. . CALL FUNCTION 'WMD_EXT_WM_SETTINGS_ALL_SINGLE' EXPORTING iv_plant = ld_iv_plant iv_material = ld_iv_material * iv_aktnr = ld_iv_aktnr iv_kzvas = ld_iv_kzvas iv_ind_uc_split = ld_iv_ind_uc_split iv_ibd_obd = ld_iv_ibd_obd * iv_aurel = ld_iv_aurel IMPORTING ev_situa_inbound = ld_ev_situa_inbound ev_situa_outbound = ld_ev_situa_outbound ev_situa = ld_ev_situa ev_wmd_process_method = ld_ev_wmd_process_method ev_md_adjust_exec = ld_ev_md_adjust_exec es_wmd_adjust_exec_wm = ld_es_wmd_adjust_exec_wm * CHANGING * cv_plant_profile = ld_cv_plant_profile * cv_material_profile = ld_cv_material_profile * cv_lgort = ld_cv_lgort * cv_lgnum = ld_cv_lgnum * cv_md_adjust_exec = ld_cv_md_adjust_exec * cv_bartv = ld_cv_bartv . " WMD_EXT_WM_SETTINGS_ALL_SINGLE
IF SY-SUBRC EQ 0. "All OK 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_cv_plant_profile  TYPE FPRFW ,
ld_ev_situa_inbound  TYPE SITUA ,
ld_iv_plant  TYPE WERAB ,
ld_cv_material_profile  TYPE FPRFM ,
ld_ev_situa_outbound  TYPE SITUA ,
ld_iv_material  TYPE MATNR ,
ld_cv_lgort  TYPE LGORT_D ,
ld_ev_situa  TYPE SITUA ,
ld_iv_aktnr  TYPE WAKTION ,
ld_cv_lgnum  TYPE LGNUM ,
ld_ev_wmd_process_method  TYPE DE_WMD_PROCESS_METHOD ,
ld_iv_kzvas  TYPE FRM_VAS_REL ,
ld_cv_md_adjust_exec  TYPE DE_WMD_ADJUST_EXECUTE ,
ld_ev_md_adjust_exec  TYPE DE_WMD_ADJUST_EXECUTE ,
ld_iv_ind_uc_split  TYPE DE_WMD_UC_SPLIT ,
ld_cv_bartv  TYPE BARTV ,
ld_es_wmd_adjust_exec_wm  TYPE STY_WMD_ADJUST_EXEC_WM ,
ld_iv_ibd_obd  TYPE CHAR1 ,
ld_iv_aurel  TYPE AUREL .

ld_cv_plant_profile = 'Check type of data required'.
ld_iv_plant = 'Check type of data required'.
ld_cv_material_profile = 'Check type of data required'.
ld_iv_material = 'Check type of data required'.
ld_cv_lgort = 'Check type of data required'.
ld_iv_aktnr = 'Check type of data required'.
ld_cv_lgnum = 'Check type of data required'.
ld_iv_kzvas = 'Check type of data required'.
ld_cv_md_adjust_exec = 'Check type of data required'.
ld_iv_ind_uc_split = 'Check type of data required'.
ld_cv_bartv = 'Check type of data required'.
ld_iv_ibd_obd = 'Check type of data required'.
ld_iv_aurel = '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 WMD_EXT_WM_SETTINGS_ALL_SINGLE or its description.