RS_DETERMINE_OBJECT_SOURCE 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 RS_DETERMINE_OBJECT_SOURCE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SEDA
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RS_DETERMINE_OBJECT_SOURCE' "
EXPORTING
object_name = " Object Name
object_type = " Object Type
* object_incl = "
* object_key = " smodi_src_key
* mod_struc_significant = 'X' "
IMPORTING
first_stmnt_beg = " sy-index
first_stmnt_end = " sy-index
first_stmnt_line = " sy-index
last_stmnt_line = " sy-index
last_stmnt_beg = " sy-index
last_stmnt_end = " sy-index
start_line = " sy-index
end_line = " sy-index
deleted_anchor = "
TABLES
object_source = "
complete_source = " Source of Include
complete_object_source = "
* inf_tab = " edmodtab
* smodilog_abap = " smodilog
* corr_tab = " sedi_korr_tab
EXCEPTIONS
OBJECT_NOT_FOUND = 1 "
. " RS_DETERMINE_OBJECT_SOURCE
The ABAP code below is a full code listing to execute function module RS_DETERMINE_OBJECT_SOURCE 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_first_stmnt_beg | TYPE SY-INDEX , |
| ld_first_stmnt_end | TYPE SY-INDEX , |
| ld_first_stmnt_line | TYPE SY-INDEX , |
| ld_last_stmnt_line | TYPE SY-INDEX , |
| ld_last_stmnt_beg | TYPE SY-INDEX , |
| ld_last_stmnt_end | TYPE SY-INDEX , |
| ld_start_line | TYPE SY-INDEX , |
| ld_end_line | TYPE SY-INDEX , |
| ld_deleted_anchor | TYPE STRING , |
| it_object_source | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_object_source | LIKE LINE OF it_object_source , |
| it_complete_source | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_complete_source | LIKE LINE OF it_complete_source , |
| it_complete_object_source | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_complete_object_source | LIKE LINE OF it_complete_object_source , |
| it_inf_tab | TYPE STANDARD TABLE OF EDMODTAB,"TABLES PARAM |
| wa_inf_tab | LIKE LINE OF it_inf_tab , |
| it_smodilog_abap | TYPE STANDARD TABLE OF SMODILOG,"TABLES PARAM |
| wa_smodilog_abap | LIKE LINE OF it_smodilog_abap , |
| it_corr_tab | TYPE STANDARD TABLE OF SEDI_KORR_TAB,"TABLES PARAM |
| wa_corr_tab | LIKE LINE OF it_corr_tab . |
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_first_stmnt_beg | TYPE SY-INDEX , |
| ld_object_name | TYPE STRING , |
| it_object_source | TYPE STANDARD TABLE OF STRING , |
| wa_object_source | LIKE LINE OF it_object_source, |
| ld_first_stmnt_end | TYPE SY-INDEX , |
| ld_object_type | TYPE STRING , |
| it_complete_source | TYPE STANDARD TABLE OF STRING , |
| wa_complete_source | LIKE LINE OF it_complete_source, |
| ld_first_stmnt_line | TYPE SY-INDEX , |
| ld_object_incl | TYPE STRING , |
| it_complete_object_source | TYPE STANDARD TABLE OF STRING , |
| wa_complete_object_source | LIKE LINE OF it_complete_object_source, |
| ld_last_stmnt_line | TYPE SY-INDEX , |
| ld_object_key | TYPE SMODI_SRC_KEY , |
| it_inf_tab | TYPE STANDARD TABLE OF EDMODTAB , |
| wa_inf_tab | LIKE LINE OF it_inf_tab, |
| ld_last_stmnt_beg | TYPE SY-INDEX , |
| ld_mod_struc_significant | TYPE STRING , |
| it_smodilog_abap | TYPE STANDARD TABLE OF SMODILOG , |
| wa_smodilog_abap | LIKE LINE OF it_smodilog_abap, |
| ld_last_stmnt_end | TYPE SY-INDEX , |
| it_corr_tab | TYPE STANDARD TABLE OF SEDI_KORR_TAB , |
| wa_corr_tab | LIKE LINE OF it_corr_tab, |
| ld_start_line | TYPE SY-INDEX , |
| ld_end_line | TYPE SY-INDEX , |
| ld_deleted_anchor | TYPE STRING . |
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 RS_DETERMINE_OBJECT_SOURCE or its description.