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
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
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).
| ld_ev_settype_guid | TYPE COMT_FRGTYPE_GUID , |
| ld_ev_no_changes | TYPE COMT_BOOLEAN , |
| ld_et_bapireturn_badi | TYPE BAPIRET2_T . |
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 . |
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.