SAP Function Modules

MASS_CHANGE_DATA SAP Function module







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

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


Pattern for FM MASS_CHANGE_DATA - MASS CHANGE DATA





CALL FUNCTION 'MASS_CHANGE_DATA' "
  EXPORTING
    tables_tab =                " mass_tables
    change_func =               " mass_func
*   object_name =               " massfunc-object
*   appexits =                  " mass_appexits
*   variant =                   " mass_variant
*   no_dialog =                 " xfeld
*   select_report =             " mass_structname
*   selected_fields =           " mass_selfields
  EXCEPTIONS
    USER_BACK = 1               "
    USER_EXIT = 2               "
    VARIANT_NOT_FOUND = 3       "
    .  "  MASS_CHANGE_DATA

ABAP code example for Function Module MASS_CHANGE_DATA





The ABAP code below is a full code listing to execute function module MASS_CHANGE_DATA 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_tables_tab) = 'Check type of data required'.
DATA(ld_change_func) = 'Check type of data required'.

SELECT single OBJECT
FROM MASSFUNC
INTO @DATA(ld_object_name).

DATA(ld_appexits) = 'Check type of data required'.
DATA(ld_variant) = 'Check type of data required'.
DATA(ld_no_dialog) = 'Check type of data required'.
DATA(ld_select_report) = 'Check type of data required'.
DATA(ld_selected_fields) = 'Check type of data required'. . CALL FUNCTION 'MASS_CHANGE_DATA' EXPORTING tables_tab = ld_tables_tab change_func = ld_change_func * object_name = ld_object_name * appexits = ld_appexits * variant = ld_variant * no_dialog = ld_no_dialog * select_report = ld_select_report * selected_fields = ld_selected_fields EXCEPTIONS USER_BACK = 1 USER_EXIT = 2 VARIANT_NOT_FOUND = 3 . " MASS_CHANGE_DATA
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 ELSEIF SY-SUBRC EQ 3. "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_tables_tab  TYPE MASS_TABLES ,
ld_change_func  TYPE MASS_FUNC ,
ld_object_name  TYPE MASSFUNC-OBJECT ,
ld_appexits  TYPE MASS_APPEXITS ,
ld_variant  TYPE MASS_VARIANT ,
ld_no_dialog  TYPE XFELD ,
ld_select_report  TYPE MASS_STRUCTNAME ,
ld_selected_fields  TYPE MASS_SELFIELDS .

ld_tables_tab = 'Check type of data required'.
ld_change_func = 'Check type of data required'.

SELECT single OBJECT
FROM MASSFUNC
INTO ld_object_name.

ld_appexits = 'Check type of data required'.
ld_variant = 'Check type of data required'.
ld_no_dialog = 'Check type of data required'.
ld_select_report = 'Check type of data required'.
ld_selected_fields = '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 MASS_CHANGE_DATA or its description.