SAP Function Modules

COM_SETTYPE_CHANGE_ML SAP Function module







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

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


Pattern for FM COM_SETTYPE_CHANGE_ML - COM SETTYPE CHANGE ML





CALL FUNCTION 'COM_SETTYPE_CHANGE_ML' "
  EXPORTING
*   iv_settype_id =             " comt_frgtype_id  Set Type Data
*   is_settype =                " comt_frgtype_data  Set Type Data
*   iv_settype_guid =           " comt_frgtype_guid  Set Type's Internal Key
    it_settype_text =           " comt_settype_text_tab  Set Type Description
    it_attribute =              " comt_attribute_id_tab
    iv_bus_objtype =            " comt_bus_objtype
*   iv_org_unit =               " comt_pr_org_type
*   iv_prod_comp_type =         " comt_prod_comp_type
*   it_product_type =           " comt_product_type_tab  Product Type
*   it_settype_sfw =            " comt_settype_sfw_tab
    iv_perform_checks = ON      " comt_boolean  Logical Variable
*   iv_langu = SY-LANGU         " spras         Language Key
*   iv_devclass = '$TMP'        " devclass      Package for Transport Organizer
    iv_check_changes = 'X'      " comt_boolean  Logical Variable
*   iv_object_family =          " comt_product_object_family  Object Family
*   is_settype_append =         " comc_settype
*   iv_trans_request =          " trkorr        Order/Task
*   iv_use_generic_link_handler = OFF  " comt_boolean  Logical Variable
  IMPORTING
    ev_settype_guid =           " comt_frgtype_guid  Set Type's Internal Key
    ev_no_changes =             " comt_boolean
    et_bapireturn_badi =        " bapiret2_t
  EXCEPTIONS
    SETTYPE_INCOMPLETE = 1      "
    WRONG_SETTYPE_DEFINITION = 2  "
    MISSING_TEMPLATE = 3        "
    ERROR_DURING_ACTIVATE = 4   "
    ERROR_WRITING_TADIR = 5     "
    ERROR_WRITING_FUNCTIONPOOL = 6  "
    ERROR_WHILE_DYNPRO_CREATE = 7  "
    ERROR_WRITING_SETTYPE_INFO = 8  "
    MISSING_SETTYPE_TEMPLATE_INFO = 9  "
    ERROR_WRITING_PRODTYPE_INFO = 10  "
    SETTYPE_NOT_EXISTING = 11   "
    INCONSITENT_CHANGE = 12     "
    NO_AUTHORITY = 13           "
    ERROR_DELETING_VIEW = 14    "
    WRONG_KEY_ATTRIBUTES = 15   "
    DATA_NOT_FOUND = 16         "
    USED_AS_HELP_ATTRIBUTE = 17  "
    FIELDNAME_TO_SHORT = 18     "
    .  "  COM_SETTYPE_CHANGE_ML

ABAP code example for Function Module COM_SETTYPE_CHANGE_ML





The ABAP code below is a full code listing to execute function module COM_SETTYPE_CHANGE_ML 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_settype_guid  TYPE COMT_FRGTYPE_GUID ,
ld_ev_no_changes  TYPE COMT_BOOLEAN ,
ld_et_bapireturn_badi  TYPE BAPIRET2_T .

DATA(ld_iv_settype_id) = 'Check type of data required'.
DATA(ld_is_settype) = 'Check type of data required'.
DATA(ld_iv_settype_guid) = 'Check type of data required'.
DATA(ld_it_settype_text) = 'Check type of data required'.
DATA(ld_it_attribute) = 'Check type of data required'.
DATA(ld_iv_bus_objtype) = 'Check type of data required'.
DATA(ld_iv_org_unit) = 'Check type of data required'.
DATA(ld_iv_prod_comp_type) = 'Check type of data required'.
DATA(ld_it_product_type) = 'Check type of data required'.
DATA(ld_it_settype_sfw) = 'Check type of data required'.
DATA(ld_iv_perform_checks) = 'Check type of data required'.
DATA(ld_iv_langu) = 'Check type of data required'.
DATA(ld_iv_devclass) = 'Check type of data required'.
DATA(ld_iv_check_changes) = 'Check type of data required'.
DATA(ld_iv_object_family) = 'Check type of data required'.
DATA(ld_is_settype_append) = 'Check type of data required'.
DATA(ld_iv_trans_request) = 'Check type of data required'.
DATA(ld_iv_use_generic_link_handler) = 'Check type of data required'. . CALL FUNCTION 'COM_SETTYPE_CHANGE_ML' EXPORTING * iv_settype_id = ld_iv_settype_id * is_settype = ld_is_settype * iv_settype_guid = ld_iv_settype_guid it_settype_text = ld_it_settype_text it_attribute = ld_it_attribute iv_bus_objtype = ld_iv_bus_objtype * iv_org_unit = ld_iv_org_unit * iv_prod_comp_type = ld_iv_prod_comp_type * it_product_type = ld_it_product_type * it_settype_sfw = ld_it_settype_sfw iv_perform_checks = ld_iv_perform_checks * iv_langu = ld_iv_langu * iv_devclass = ld_iv_devclass iv_check_changes = ld_iv_check_changes * iv_object_family = ld_iv_object_family * is_settype_append = ld_is_settype_append * iv_trans_request = ld_iv_trans_request * iv_use_generic_link_handler = ld_iv_use_generic_link_handler IMPORTING ev_settype_guid = ld_ev_settype_guid ev_no_changes = ld_ev_no_changes et_bapireturn_badi = ld_et_bapireturn_badi EXCEPTIONS SETTYPE_INCOMPLETE = 1 WRONG_SETTYPE_DEFINITION = 2 MISSING_TEMPLATE = 3 ERROR_DURING_ACTIVATE = 4 ERROR_WRITING_TADIR = 5 ERROR_WRITING_FUNCTIONPOOL = 6 ERROR_WHILE_DYNPRO_CREATE = 7 ERROR_WRITING_SETTYPE_INFO = 8 MISSING_SETTYPE_TEMPLATE_INFO = 9 ERROR_WRITING_PRODTYPE_INFO = 10 SETTYPE_NOT_EXISTING = 11 INCONSITENT_CHANGE = 12 NO_AUTHORITY = 13 ERROR_DELETING_VIEW = 14 WRONG_KEY_ATTRIBUTES = 15 DATA_NOT_FOUND = 16 USED_AS_HELP_ATTRIBUTE = 17 FIELDNAME_TO_SHORT = 18 . " COM_SETTYPE_CHANGE_ML
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 ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 10. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 11. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 12. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 13. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 14. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 15. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 16. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 17. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 18. "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_ev_settype_guid  TYPE COMT_FRGTYPE_GUID ,
ld_iv_settype_id  TYPE COMT_FRGTYPE_ID ,
ld_ev_no_changes  TYPE COMT_BOOLEAN ,
ld_is_settype  TYPE COMT_FRGTYPE_DATA ,
ld_et_bapireturn_badi  TYPE BAPIRET2_T ,
ld_iv_settype_guid  TYPE COMT_FRGTYPE_GUID ,
ld_it_settype_text  TYPE COMT_SETTYPE_TEXT_TAB ,
ld_it_attribute  TYPE COMT_ATTRIBUTE_ID_TAB ,
ld_iv_bus_objtype  TYPE COMT_BUS_OBJTYPE ,
ld_iv_org_unit  TYPE COMT_PR_ORG_TYPE ,
ld_iv_prod_comp_type  TYPE COMT_PROD_COMP_TYPE ,
ld_it_product_type  TYPE COMT_PRODUCT_TYPE_TAB ,
ld_it_settype_sfw  TYPE COMT_SETTYPE_SFW_TAB ,
ld_iv_perform_checks  TYPE COMT_BOOLEAN ,
ld_iv_langu  TYPE SPRAS ,
ld_iv_devclass  TYPE DEVCLASS ,
ld_iv_check_changes  TYPE COMT_BOOLEAN ,
ld_iv_object_family  TYPE COMT_PRODUCT_OBJECT_FAMILY ,
ld_is_settype_append  TYPE COMC_SETTYPE ,
ld_iv_trans_request  TYPE TRKORR ,
ld_iv_use_generic_link_handler  TYPE COMT_BOOLEAN .

ld_iv_settype_id = 'Check type of data required'.
ld_is_settype = 'Check type of data required'.
ld_iv_settype_guid = 'Check type of data required'.
ld_it_settype_text = 'Check type of data required'.
ld_it_attribute = 'Check type of data required'.
ld_iv_bus_objtype = 'Check type of data required'.
ld_iv_org_unit = 'Check type of data required'.
ld_iv_prod_comp_type = 'Check type of data required'.
ld_it_product_type = 'Check type of data required'.
ld_it_settype_sfw = 'Check type of data required'.
ld_iv_perform_checks = 'Check type of data required'.
ld_iv_langu = 'Check type of data required'.
ld_iv_devclass = 'Check type of data required'.
ld_iv_check_changes = 'Check type of data required'.
ld_iv_object_family = 'Check type of data required'.
ld_is_settype_append = 'Check type of data required'.
ld_iv_trans_request = 'Check type of data required'.
ld_iv_use_generic_link_handler = '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 COM_SETTYPE_CHANGE_ML or its description.