SAP Function Modules

DMC_RTO_OL_RFC_SERVER SAP Function module - generates server component of OLI / OLO level (rfc access)







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

Associated Function Group: CNV0
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM DMC_RTO_OL_RFC_SERVER - DMC RTO OL RFC SERVER





CALL FUNCTION 'DMC_RTO_OL_RFC_SERVER' "generates server component of OLI / OLO level (rfc access)
  EXPORTING
    im_module_name =            " rs38l-name
    im_pool_name =              " rs38l-area
*   im_mode = 'G'               " rs38l-edit
*   im_module_type =            " rs38l-edit    ' ' = function module, I = Include, T = TopInclude
  IMPORTING
    ex_syntax_check =           " dmcsynterr    result of sntax check
* TABLES
*   im_it_coding =              " rssource
*   im_it_exceptions =          " rsexc
*   im_it_imp_params =          " rsimp
*   im_it_exp_params =          " rsexp
*   im_it_cha_params =          " rscha
*   im_it_params_docu =         " rsfdo
*   im_it_tables =              " rstbl
  EXCEPTIONS
    AUTHORITY_CHECK_FAILED = 1  "
    MODULE_DELETE_ERROR = 2     "
    POOL_CREATE_ERROR = 3       "
    MODULE_CREATE_ERROR = 4     "
    INSERT_REPORT_FAILED = 5    "
    READ_REPORT_FAILED = 6      "
    INSERT_CODING_FAILED = 7    "
    INSERT_TADIR_FAILED = 8     "
    SYNTAX_ERROR = 9            "               coding contains syntax error (see EX_SYNTAX_CHECK)
    POOL_DELETE_ERROR = 10      "
    MODULE_ALREADY_EXISTS = 11  "
    .  "  DMC_RTO_OL_RFC_SERVER

ABAP code example for Function Module DMC_RTO_OL_RFC_SERVER





The ABAP code below is a full code listing to execute function module DMC_RTO_OL_RFC_SERVER 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_ex_syntax_check  TYPE DMCSYNTERR ,
it_im_it_coding  TYPE STANDARD TABLE OF RSSOURCE,"TABLES PARAM
wa_im_it_coding  LIKE LINE OF it_im_it_coding ,
it_im_it_exceptions  TYPE STANDARD TABLE OF RSEXC,"TABLES PARAM
wa_im_it_exceptions  LIKE LINE OF it_im_it_exceptions ,
it_im_it_imp_params  TYPE STANDARD TABLE OF RSIMP,"TABLES PARAM
wa_im_it_imp_params  LIKE LINE OF it_im_it_imp_params ,
it_im_it_exp_params  TYPE STANDARD TABLE OF RSEXP,"TABLES PARAM
wa_im_it_exp_params  LIKE LINE OF it_im_it_exp_params ,
it_im_it_cha_params  TYPE STANDARD TABLE OF RSCHA,"TABLES PARAM
wa_im_it_cha_params  LIKE LINE OF it_im_it_cha_params ,
it_im_it_params_docu  TYPE STANDARD TABLE OF RSFDO,"TABLES PARAM
wa_im_it_params_docu  LIKE LINE OF it_im_it_params_docu ,
it_im_it_tables  TYPE STANDARD TABLE OF RSTBL,"TABLES PARAM
wa_im_it_tables  LIKE LINE OF it_im_it_tables .


DATA(ld_im_module_name) = some text here

DATA(ld_im_pool_name) = some text here

DATA(ld_im_mode) = some text here

DATA(ld_im_module_type) = some text here

"populate fields of struture and append to itab
append wa_im_it_coding to it_im_it_coding.

"populate fields of struture and append to itab
append wa_im_it_exceptions to it_im_it_exceptions.

"populate fields of struture and append to itab
append wa_im_it_imp_params to it_im_it_imp_params.

"populate fields of struture and append to itab
append wa_im_it_exp_params to it_im_it_exp_params.

"populate fields of struture and append to itab
append wa_im_it_cha_params to it_im_it_cha_params.

"populate fields of struture and append to itab
append wa_im_it_params_docu to it_im_it_params_docu.

"populate fields of struture and append to itab
append wa_im_it_tables to it_im_it_tables. . CALL FUNCTION 'DMC_RTO_OL_RFC_SERVER' EXPORTING im_module_name = ld_im_module_name im_pool_name = ld_im_pool_name * im_mode = ld_im_mode * im_module_type = ld_im_module_type IMPORTING ex_syntax_check = ld_ex_syntax_check * TABLES * im_it_coding = it_im_it_coding * im_it_exceptions = it_im_it_exceptions * im_it_imp_params = it_im_it_imp_params * im_it_exp_params = it_im_it_exp_params * im_it_cha_params = it_im_it_cha_params * im_it_params_docu = it_im_it_params_docu * im_it_tables = it_im_it_tables EXCEPTIONS AUTHORITY_CHECK_FAILED = 1 MODULE_DELETE_ERROR = 2 POOL_CREATE_ERROR = 3 MODULE_CREATE_ERROR = 4 INSERT_REPORT_FAILED = 5 READ_REPORT_FAILED = 6 INSERT_CODING_FAILED = 7 INSERT_TADIR_FAILED = 8 SYNTAX_ERROR = 9 POOL_DELETE_ERROR = 10 MODULE_ALREADY_EXISTS = 11 . " DMC_RTO_OL_RFC_SERVER
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 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_ex_syntax_check  TYPE DMCSYNTERR ,
ld_im_module_name  TYPE RS38L-NAME ,
it_im_it_coding  TYPE STANDARD TABLE OF RSSOURCE ,
wa_im_it_coding  LIKE LINE OF it_im_it_coding,
ld_im_pool_name  TYPE RS38L-AREA ,
it_im_it_exceptions  TYPE STANDARD TABLE OF RSEXC ,
wa_im_it_exceptions  LIKE LINE OF it_im_it_exceptions,
ld_im_mode  TYPE RS38L-EDIT ,
it_im_it_imp_params  TYPE STANDARD TABLE OF RSIMP ,
wa_im_it_imp_params  LIKE LINE OF it_im_it_imp_params,
ld_im_module_type  TYPE RS38L-EDIT ,
it_im_it_exp_params  TYPE STANDARD TABLE OF RSEXP ,
wa_im_it_exp_params  LIKE LINE OF it_im_it_exp_params,
it_im_it_cha_params  TYPE STANDARD TABLE OF RSCHA ,
wa_im_it_cha_params  LIKE LINE OF it_im_it_cha_params,
it_im_it_params_docu  TYPE STANDARD TABLE OF RSFDO ,
wa_im_it_params_docu  LIKE LINE OF it_im_it_params_docu,
it_im_it_tables  TYPE STANDARD TABLE OF RSTBL ,
wa_im_it_tables  LIKE LINE OF it_im_it_tables.


ld_im_module_name = some text here

"populate fields of struture and append to itab
append wa_im_it_coding to it_im_it_coding.

ld_im_pool_name = some text here

"populate fields of struture and append to itab
append wa_im_it_exceptions to it_im_it_exceptions.

ld_im_mode = some text here

"populate fields of struture and append to itab
append wa_im_it_imp_params to it_im_it_imp_params.

ld_im_module_type = some text here

"populate fields of struture and append to itab
append wa_im_it_exp_params to it_im_it_exp_params.

"populate fields of struture and append to itab
append wa_im_it_cha_params to it_im_it_cha_params.

"populate fields of struture and append to itab
append wa_im_it_params_docu to it_im_it_params_docu.

"populate fields of struture and append to itab
append wa_im_it_tables to it_im_it_tables.

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 DMC_RTO_OL_RFC_SERVER or its description.