SX_OBJECT_CONVERT_OBJ_HTM 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 SX_OBJECT_CONVERT_OBJ_HTM into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SX03
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'SX_OBJECT_CONVERT_OBJ_HTM' "
EXPORTING
format_src = " sx_format
format_dst = " sx_format Required format
* addr_type = " sx_addr_type Transmission method
* devtype = " sx_devtype SAPscript Device Type for Conversion
* funcpara = " sx_funcpar
CHANGING
transfer_bin = " sx_boolean
content_txt = " soli_tab
content_bin = " solix_tab
objhead = " soli_tab Object header
len = " so_obj_len
EXCEPTIONS
ERR_CONV_FAILED = 1 " Conversion Could Not Be Executed
. " SX_OBJECT_CONVERT_OBJ_HTM
The ABAP code below is a full code listing to execute function module SX_OBJECT_CONVERT_OBJ_HTM 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_transfer_bin) = 'Check type of data required'.
DATA(ld_content_txt) = 'Check type of data required'.
DATA(ld_content_bin) = 'Check type of data required'.
DATA(ld_objhead) = 'Check type of data required'.
DATA(ld_len) = 'Check type of data required'.
DATA(ld_format_src) = 'Check type of data required'.
DATA(ld_format_dst) = 'Check type of data required'.
DATA(ld_addr_type) = 'Check type of data required'.
DATA(ld_devtype) = 'Check type of data required'.
DATA(ld_funcpara) = 'Check type of data required'. . CALL FUNCTION 'SX_OBJECT_CONVERT_OBJ_HTM' EXPORTING format_src = ld_format_src format_dst = ld_format_dst * addr_type = ld_addr_type * devtype = ld_devtype * funcpara = ld_funcpara CHANGING transfer_bin = ld_transfer_bin content_txt = ld_content_txt content_bin = ld_content_bin objhead = ld_objhead len = ld_len EXCEPTIONS ERR_CONV_FAILED = 1 . " SX_OBJECT_CONVERT_OBJ_HTM
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_transfer_bin | TYPE SX_BOOLEAN , |
| ld_format_src | TYPE SX_FORMAT , |
| ld_content_txt | TYPE SOLI_TAB , |
| ld_format_dst | TYPE SX_FORMAT , |
| ld_content_bin | TYPE SOLIX_TAB , |
| ld_addr_type | TYPE SX_ADDR_TYPE , |
| ld_objhead | TYPE SOLI_TAB , |
| ld_devtype | TYPE SX_DEVTYPE , |
| ld_len | TYPE SO_OBJ_LEN , |
| ld_funcpara | TYPE SX_FUNCPAR . |
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 SX_OBJECT_CONVERT_OBJ_HTM or its description.