SAP Function Modules

RSO_ENH_TEST SAP Function module - Test Enhancements







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

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


Pattern for FM RSO_ENH_TEST - RSO ENH TEST





CALL FUNCTION 'RSO_ENH_TEST' "Test Enhancements
  EXPORTING
*   i_appendnm =                " rsappendnm    Name of Append (Enhancement)
*   i_s_main =                  " rso_s_main    Main Object of Append
    i_enhversion = 'A'          " r3state       Version A or I
    i_debug = RS_C_FALSE        " rs_bool       Boolean
*   i_langu = SY-LANGU          " sylangu       Language Key of Current Text Environment
    i_lock = RS_C_FALSE         " rs_bool       With Lock
    i_ignore_scopes = RS_C_TRUE  " rs_bool      = X: All Appends Regardless of Scopes
  IMPORTING
    enhheader =                 " enhheader     Enhancement Header Table
    e_t_string =                " string_table  Table of Strings
    e_found_in_header =         " rs_bool       = X: Found in Header Table
  TABLES
    enhlog =                    " enhlog_it     Enhancement Log
    enhobj =                    " enhobj        Enhancement Objects
    enhtab =                    " enhtab        Enhancements for Tables
    sotr_text =                 " sotr_text     Texts in OTR
    enhdependent =              " enhdependent  Table of Dependent Enhancements
    enhincinx =                 " enhincinx_it  Enhancement: Tables by Means of Program Enhancements
    enhobjcontract =            " enhobjcontract_it  Enhancement Objects
    enhloadinval =              " enhloadinval  Programs whose load is invalidated at import
    sotr_useu =                 " sotr_useu     Where-Used List for Strings in the OTR
    enhknownenhs =              " enhknownenhs  Other enhancement objects already named
  EXCEPTIONS
    CX_RS_NOT_FOUND = 1         "               Object Not Found
    CX_RSO_ENH_VERSION_NOT_FOUND = 2  "         Enhancement Not Found
    CX_RSO_ENH_NAME_INVALID = 3  "              Name of Append Is Invalid
    CX_RSO_ENH_MAIN_OBJ_BROKEN = 4  "           Append Main Object Is Inconsistent/Corrupt
    .  "  RSO_ENH_TEST

ABAP code example for Function Module RSO_ENH_TEST





The ABAP code below is a full code listing to execute function module RSO_ENH_TEST 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_enhheader  TYPE ENHHEADER ,
ld_e_t_string  TYPE STRING_TABLE ,
ld_e_found_in_header  TYPE RS_BOOL ,
it_enhlog  TYPE STANDARD TABLE OF ENHLOG_IT,"TABLES PARAM
wa_enhlog  LIKE LINE OF it_enhlog ,
it_enhobj  TYPE STANDARD TABLE OF ENHOBJ,"TABLES PARAM
wa_enhobj  LIKE LINE OF it_enhobj ,
it_enhtab  TYPE STANDARD TABLE OF ENHTAB,"TABLES PARAM
wa_enhtab  LIKE LINE OF it_enhtab ,
it_sotr_text  TYPE STANDARD TABLE OF SOTR_TEXT,"TABLES PARAM
wa_sotr_text  LIKE LINE OF it_sotr_text ,
it_enhdependent  TYPE STANDARD TABLE OF ENHDEPENDENT,"TABLES PARAM
wa_enhdependent  LIKE LINE OF it_enhdependent ,
it_enhincinx  TYPE STANDARD TABLE OF ENHINCINX_IT,"TABLES PARAM
wa_enhincinx  LIKE LINE OF it_enhincinx ,
it_enhobjcontract  TYPE STANDARD TABLE OF ENHOBJCONTRACT_IT,"TABLES PARAM
wa_enhobjcontract  LIKE LINE OF it_enhobjcontract ,
it_enhloadinval  TYPE STANDARD TABLE OF ENHLOADINVAL,"TABLES PARAM
wa_enhloadinval  LIKE LINE OF it_enhloadinval ,
it_sotr_useu  TYPE STANDARD TABLE OF SOTR_USEU,"TABLES PARAM
wa_sotr_useu  LIKE LINE OF it_sotr_useu ,
it_enhknownenhs  TYPE STANDARD TABLE OF ENHKNOWNENHS,"TABLES PARAM
wa_enhknownenhs  LIKE LINE OF it_enhknownenhs .

DATA(ld_i_appendnm) = 'Check type of data required'.
DATA(ld_i_s_main) = 'Check type of data required'.
DATA(ld_i_enhversion) = 'Check type of data required'.
DATA(ld_i_debug) = 'Check type of data required'.
DATA(ld_i_langu) = 'Check type of data required'.
DATA(ld_i_lock) = 'Check type of data required'.
DATA(ld_i_ignore_scopes) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_enhlog to it_enhlog.

"populate fields of struture and append to itab
append wa_enhobj to it_enhobj.

"populate fields of struture and append to itab
append wa_enhtab to it_enhtab.

"populate fields of struture and append to itab
append wa_sotr_text to it_sotr_text.

"populate fields of struture and append to itab
append wa_enhdependent to it_enhdependent.

"populate fields of struture and append to itab
append wa_enhincinx to it_enhincinx.

"populate fields of struture and append to itab
append wa_enhobjcontract to it_enhobjcontract.

"populate fields of struture and append to itab
append wa_enhloadinval to it_enhloadinval.

"populate fields of struture and append to itab
append wa_sotr_useu to it_sotr_useu.

"populate fields of struture and append to itab
append wa_enhknownenhs to it_enhknownenhs. . CALL FUNCTION 'RSO_ENH_TEST' EXPORTING * i_appendnm = ld_i_appendnm * i_s_main = ld_i_s_main i_enhversion = ld_i_enhversion i_debug = ld_i_debug * i_langu = ld_i_langu i_lock = ld_i_lock i_ignore_scopes = ld_i_ignore_scopes IMPORTING enhheader = ld_enhheader e_t_string = ld_e_t_string e_found_in_header = ld_e_found_in_header TABLES enhlog = it_enhlog enhobj = it_enhobj enhtab = it_enhtab sotr_text = it_sotr_text enhdependent = it_enhdependent enhincinx = it_enhincinx enhobjcontract = it_enhobjcontract enhloadinval = it_enhloadinval sotr_useu = it_sotr_useu enhknownenhs = it_enhknownenhs EXCEPTIONS CX_RS_NOT_FOUND = 1 CX_RSO_ENH_VERSION_NOT_FOUND = 2 CX_RSO_ENH_NAME_INVALID = 3 CX_RSO_ENH_MAIN_OBJ_BROKEN = 4 . " RSO_ENH_TEST
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 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_enhheader  TYPE ENHHEADER ,
ld_i_appendnm  TYPE RSAPPENDNM ,
it_enhlog  TYPE STANDARD TABLE OF ENHLOG_IT ,
wa_enhlog  LIKE LINE OF it_enhlog,
it_enhobj  TYPE STANDARD TABLE OF ENHOBJ ,
wa_enhobj  LIKE LINE OF it_enhobj,
ld_i_s_main  TYPE RSO_S_MAIN ,
ld_e_t_string  TYPE STRING_TABLE ,
ld_i_enhversion  TYPE R3STATE ,
it_enhtab  TYPE STANDARD TABLE OF ENHTAB ,
wa_enhtab  LIKE LINE OF it_enhtab,
ld_e_found_in_header  TYPE RS_BOOL ,
ld_i_debug  TYPE RS_BOOL ,
it_sotr_text  TYPE STANDARD TABLE OF SOTR_TEXT ,
wa_sotr_text  LIKE LINE OF it_sotr_text,
ld_i_langu  TYPE SYLANGU ,
it_enhdependent  TYPE STANDARD TABLE OF ENHDEPENDENT ,
wa_enhdependent  LIKE LINE OF it_enhdependent,
ld_i_lock  TYPE RS_BOOL ,
it_enhincinx  TYPE STANDARD TABLE OF ENHINCINX_IT ,
wa_enhincinx  LIKE LINE OF it_enhincinx,
ld_i_ignore_scopes  TYPE RS_BOOL ,
it_enhobjcontract  TYPE STANDARD TABLE OF ENHOBJCONTRACT_IT ,
wa_enhobjcontract  LIKE LINE OF it_enhobjcontract,
it_enhloadinval  TYPE STANDARD TABLE OF ENHLOADINVAL ,
wa_enhloadinval  LIKE LINE OF it_enhloadinval,
it_sotr_useu  TYPE STANDARD TABLE OF SOTR_USEU ,
wa_sotr_useu  LIKE LINE OF it_sotr_useu,
it_enhknownenhs  TYPE STANDARD TABLE OF ENHKNOWNENHS ,
wa_enhknownenhs  LIKE LINE OF it_enhknownenhs.

ld_i_appendnm = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_enhlog to it_enhlog.

"populate fields of struture and append to itab
append wa_enhobj to it_enhobj.
ld_i_s_main = 'Check type of data required'.
ld_i_enhversion = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_enhtab to it_enhtab.
ld_i_debug = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_sotr_text to it_sotr_text.
ld_i_langu = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_enhdependent to it_enhdependent.
ld_i_lock = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_enhincinx to it_enhincinx.
ld_i_ignore_scopes = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_enhobjcontract to it_enhobjcontract.

"populate fields of struture and append to itab
append wa_enhloadinval to it_enhloadinval.

"populate fields of struture and append to itab
append wa_sotr_useu to it_sotr_useu.

"populate fields of struture and append to itab
append wa_enhknownenhs to it_enhknownenhs.

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