SAP SIC_OTR_INDEX_TEXTS Function Module for Index OTR texts









SIC_OTR_INDEX_TEXTS is a standard sic otr index texts SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Index OTR texts processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for sic otr index texts FM, simply by entering the name SIC_OTR_INDEX_TEXTS into the relevant SAP transaction such as SE37 or SE38.

Function Group: SIC_OTR_DUPLICATE_CHECK
Program Name: SAPLSIC_OTR_DUPLICATE_CHECK
Main Program: SAPLSIC_OTR_DUPLICATE_CHECK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SIC_OTR_INDEX_TEXTS pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SIC_OTR_INDEX_TEXTS'"Index OTR texts
EXPORTING
* IV_PROFILE_NAME = ' ' "Service Profile for indexing
* IV_USE_QUEUESERVER = ' ' "Use queue server for indexing
* IV_DELETE_ENTRIES = ABAP_FALSE "Delete all entries of IT_TEXT_DATA
IT_TEXT_DATA = "Table of OTR texts

IMPORTING
EV_ERROR = "Flag=ABAP_TRUE: An error occurred
ET_MESSAGES = "Table with error messages
.



IMPORTING Parameters details for SIC_OTR_INDEX_TEXTS

IV_PROFILE_NAME - Service Profile for indexing

Data type: SIC_SERVICE_PROFILE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_USE_QUEUESERVER - Use queue server for indexing

Data type: ABAP_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_DELETE_ENTRIES - Delete all entries of IT_TEXT_DATA

Data type: ABAP_BOOL
Default: ABAP_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_TEXT_DATA - Table of OTR texts

Data type: SIC_T_OTR_INDEX_DATA
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SIC_OTR_INDEX_TEXTS

EV_ERROR - Flag=ABAP_TRUE: An error occurred

Data type: ABAP_BOOL
Optional: No
Call by Reference: No ( called with pass by value option)

ET_MESSAGES - Table with error messages

Data type: SIC_T_SERVICE_MESSAGE
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SIC_OTR_INDEX_TEXTS Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_ev_error  TYPE ABAP_BOOL, "   
lv_iv_profile_name  TYPE SIC_SERVICE_PROFILE, "   SPACE
lv_et_messages  TYPE SIC_T_SERVICE_MESSAGE, "   
lv_iv_use_queueserver  TYPE ABAP_BOOL, "   SPACE
lv_iv_delete_entries  TYPE ABAP_BOOL, "   ABAP_FALSE
lv_it_text_data  TYPE SIC_T_OTR_INDEX_DATA. "   

  CALL FUNCTION 'SIC_OTR_INDEX_TEXTS'  "Index OTR texts
    EXPORTING
         IV_PROFILE_NAME = lv_iv_profile_name
         IV_USE_QUEUESERVER = lv_iv_use_queueserver
         IV_DELETE_ENTRIES = lv_iv_delete_entries
         IT_TEXT_DATA = lv_it_text_data
    IMPORTING
         EV_ERROR = lv_ev_error
         ET_MESSAGES = lv_et_messages
. " SIC_OTR_INDEX_TEXTS




ABAP code using 7.40 inline data declarations to call FM SIC_OTR_INDEX_TEXTS

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
DATA(ld_iv_profile_name) = ' '.
 
 
DATA(ld_iv_use_queueserver) = ' '.
 
DATA(ld_iv_delete_entries) = ABAP_FALSE.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!