UPDATE_MATERIAL_SPECIAL 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 UPDATE_MATERIAL_SPECIAL into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
MASU
Released Date:
Not Released
Processing type: Update is started immediately, no restart possible (Immediate start, No restart)
CALL FUNCTION 'UPDATE_MATERIAL_SPECIAL' "Material master: update of the special stocks
EXPORTING
chargen_ebene = " t130f-kzref
imcha = " mcha
imchb = " mchb
imkol = " mkol
imkop = " mkop
it148k = " t148k
it148m = " t148m
kzmcha_exist = " t130f-kzref
kzmcha_updat = " t130f-kzref
kzmchx_exist = " t130f-kzref
kzmchx_updat = " t130f-kzref
kzmkop_exist = " t130f-kzref
kzmkop_updat = " t130f-kzref
* mcha_lvorm_alt = ' ' " t130f-kzref
* mchb_lvorm_alt = ' ' " t130f-kzref
* mkop_lvorm_alt = ' ' " t130f-kzref
rm03s = " rm03s
. " UPDATE_MATERIAL_SPECIAL
The ABAP code below is a full code listing to execute function module UPDATE_MATERIAL_SPECIAL 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).
SELECT single KZREF
FROM T130F
INTO @DATA(ld_chargen_ebene).
DATA(ld_imcha) = 'Check type of data required'.
DATA(ld_imchb) = 'Check type of data required'.
DATA(ld_imkol) = 'Check type of data required'.
DATA(ld_imkop) = 'Check type of data required'.
DATA(ld_it148k) = 'Check type of data required'.
DATA(ld_it148m) = 'Check type of data required'.
SELECT single KZREF
FROM T130F
INTO @DATA(ld_kzmcha_exist).
SELECT single KZREF
FROM T130F
INTO @DATA(ld_kzmcha_updat).
SELECT single KZREF
FROM T130F
INTO @DATA(ld_kzmchx_exist).
SELECT single KZREF
FROM T130F
INTO @DATA(ld_kzmchx_updat).
SELECT single KZREF
FROM T130F
INTO @DATA(ld_kzmkop_exist).
SELECT single KZREF
FROM T130F
INTO @DATA(ld_kzmkop_updat).
SELECT single KZREF
FROM T130F
INTO @DATA(ld_mcha_lvorm_alt).
SELECT single KZREF
FROM T130F
INTO @DATA(ld_mchb_lvorm_alt).
SELECT single KZREF
FROM T130F
INTO @DATA(ld_mkop_lvorm_alt).
DATA(ld_rm03s) = 'Check type of data required'. . CALL FUNCTION 'UPDATE_MATERIAL_SPECIAL' EXPORTING chargen_ebene = ld_chargen_ebene imcha = ld_imcha imchb = ld_imchb imkol = ld_imkol imkop = ld_imkop it148k = ld_it148k it148m = ld_it148m kzmcha_exist = ld_kzmcha_exist kzmcha_updat = ld_kzmcha_updat kzmchx_exist = ld_kzmchx_exist kzmchx_updat = ld_kzmchx_updat kzmkop_exist = ld_kzmkop_exist kzmkop_updat = ld_kzmkop_updat * mcha_lvorm_alt = ld_mcha_lvorm_alt * mchb_lvorm_alt = ld_mchb_lvorm_alt * mkop_lvorm_alt = ld_mkop_lvorm_alt rm03s = ld_rm03s . " UPDATE_MATERIAL_SPECIAL
IF SY-SUBRC EQ 0. "All OK ENDIF.
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_chargen_ebene | TYPE T130F-KZREF , |
| ld_imcha | TYPE MCHA , |
| ld_imchb | TYPE MCHB , |
| ld_imkol | TYPE MKOL , |
| ld_imkop | TYPE MKOP , |
| ld_it148k | TYPE T148K , |
| ld_it148m | TYPE T148M , |
| ld_kzmcha_exist | TYPE T130F-KZREF , |
| ld_kzmcha_updat | TYPE T130F-KZREF , |
| ld_kzmchx_exist | TYPE T130F-KZREF , |
| ld_kzmchx_updat | TYPE T130F-KZREF , |
| ld_kzmkop_exist | TYPE T130F-KZREF , |
| ld_kzmkop_updat | TYPE T130F-KZREF , |
| ld_mcha_lvorm_alt | TYPE T130F-KZREF , |
| ld_mchb_lvorm_alt | TYPE T130F-KZREF , |
| ld_mkop_lvorm_alt | TYPE T130F-KZREF , |
| ld_rm03s | TYPE RM03S . |
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 UPDATE_MATERIAL_SPECIAL or its description.
UPDATE_MATERIAL_SPECIAL - Material master: update of the special stocks UPDATE_MATERIAL_PRICE - UPDATE_MATERIAL_LVORM - Update: material master - delete indicator UPDATE_MATERIAL_CLASSIFICATION - Update material from classification UPDATE_MATERIAL - Update function module material master UPDATE_MASTER -