SAP RH_EDITOR_SET Function Module for
RH_EDITOR_SET is a standard rh editor set SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rh editor set FM, simply by entering the name RH_EDITOR_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRBAS00TOOLS_PP01
Program Name: SAPLHRBAS00TOOLS_PP01
Main Program: SAPLHRBAS00TOOLS_PP01
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RH_EDITOR_SET 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 'RH_EDITOR_SET'".
EXPORTING
REPID = "ABAP Program: Current Main Program
DYNNR = "
CONTROLNAME = "
* MAX_COLS = 72 "
* MAX_LINES = "
* SHOW_TOOL = 'X' "
* SHOW_STATUS = 'X' "
* STATUS_TEXT = "
* DISPLAY_MODE = ' ' "
TABLES
LINES = "
EXCEPTIONS
CREATE_ERROR = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for RH_EDITOR_SET
REPID - ABAP Program: Current Main Program
Data type: SYREPIDOptional: No
Call by Reference: Yes
DYNNR -
Data type: SYDYNNROptional: No
Call by Reference: Yes
CONTROLNAME -
Data type: SCRFNAMEOptional: No
Call by Reference: Yes
MAX_COLS -
Data type: IDefault: 72
Optional: Yes
Call by Reference: Yes
MAX_LINES -
Data type: IOptional: Yes
Call by Reference: Yes
SHOW_TOOL -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
SHOW_STATUS -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
STATUS_TEXT -
Data type: SYTITLEOptional: Yes
Call by Reference: Yes
DISPLAY_MODE -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for RH_EDITOR_SET
LINES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CREATE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_EDITOR_SET 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: | ||||
| lt_lines | TYPE STANDARD TABLE OF STRING, " | |||
| lv_repid | TYPE SYREPID, " | |||
| lv_create_error | TYPE SYREPID, " | |||
| lv_dynnr | TYPE SYDYNNR, " | |||
| lv_internal_error | TYPE SYDYNNR, " | |||
| lv_controlname | TYPE SCRFNAME, " | |||
| lv_max_cols | TYPE I, " 72 | |||
| lv_max_lines | TYPE I, " | |||
| lv_show_tool | TYPE C, " 'X' | |||
| lv_show_status | TYPE C, " 'X' | |||
| lv_status_text | TYPE SYTITLE, " | |||
| lv_display_mode | TYPE C. " SPACE |
|   CALL FUNCTION 'RH_EDITOR_SET' " |
| EXPORTING | ||
| REPID | = lv_repid | |
| DYNNR | = lv_dynnr | |
| CONTROLNAME | = lv_controlname | |
| MAX_COLS | = lv_max_cols | |
| MAX_LINES | = lv_max_lines | |
| SHOW_TOOL | = lv_show_tool | |
| SHOW_STATUS | = lv_show_status | |
| STATUS_TEXT | = lv_status_text | |
| DISPLAY_MODE | = lv_display_mode | |
| TABLES | ||
| LINES | = lt_lines | |
| EXCEPTIONS | ||
| CREATE_ERROR = 1 | ||
| INTERNAL_ERROR = 2 | ||
| . " RH_EDITOR_SET | ||
ABAP code using 7.40 inline data declarations to call FM RH_EDITOR_SET
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_max_cols) | = 72. | |||
| DATA(ld_show_tool) | = 'X'. | |||
| DATA(ld_show_status) | = 'X'. | |||
| DATA(ld_display_mode) | = ' '. | |||
Search for further information about these or an SAP related objects