SAP HR_99S_EDIT_TEXTPART Function Module for Changing and saving of text parts
HR_99S_EDIT_TEXTPART is a standard hr 99s edit textpart SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Changing and saving of text parts 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 hr 99s edit textpart FM, simply by entering the name HR_99S_EDIT_TEXTPART into the relevant SAP transaction such as SE37 or SE38.
Function Group: HR99S00_TOOLS
Program Name: SAPLHR99S00_TOOLS
Main Program: SAPLHR99S00_TOOLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_99S_EDIT_TEXTPART 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 'HR_99S_EDIT_TEXTPART'"Changing and saving of text parts.
EXPORTING
* CLIENT = SY-MANDT "R/3 System, client number from logon
OBJECT = "Texts: application object
ID = "Text ID
NAME = "Name of the text to be editied
TEXTPART = "Bloc of the text to be edited (max. 26 characters)
LANGUAGE = "Language key of the text to be edited
* EDITOR_TITLE = ' ' "Text for editor title line
* LOCAL_CAT = ' ' "Text catalog local
* CHECK_TEXTPART = 'X' "Check if textpart exists
EXCEPTIONS
OBJECT = 1 ID = 2 NAME = 3 TEXTPART = 4 LANGUAGE = 5 REFERENCE_CHECK = 6
IMPORTING Parameters details for HR_99S_EDIT_TEXTPART
CLIENT - R/3 System, client number from logon
Data type: SY-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: Yes
OBJECT - Texts: application object
Data type: THEAD-TDOBJECTOptional: No
Call by Reference: Yes
ID - Text ID
Data type: THEAD-TDIDOptional: No
Call by Reference: Yes
NAME - Name of the text to be editied
Data type: THEAD-TDNAMEOptional: No
Call by Reference: Yes
TEXTPART - Bloc of the text to be edited (max. 26 characters)
Data type: CHAR26Optional: No
Call by Reference: Yes
LANGUAGE - Language key of the text to be edited
Data type: THEAD-TDSPRASOptional: No
Call by Reference: Yes
EDITOR_TITLE - Text for editor title line
Data type: TTXIT-TDTEXTDefault: SPACE
Optional: Yes
Call by Reference: Yes
LOCAL_CAT - Text catalog local
Data type:Default: SPACE
Optional: Yes
Call by Reference: Yes
CHECK_TEXTPART - Check if textpart exists
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
OBJECT - Texts: application object
Data type:Optional: No
Call by Reference: Yes
ID - Text ID
Data type:Optional: No
Call by Reference: Yes
NAME - Name of the text to be editied
Data type:Optional: No
Call by Reference: Yes
TEXTPART - Bloc of the text to be edited (max. 26 characters)
Data type:Optional: No
Call by Reference: Yes
LANGUAGE - Language key of the text to be edited
Data type:Optional: No
Call by Reference: Yes
REFERENCE_CHECK - Reference chain interrupted
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_99S_EDIT_TEXTPART 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_client | TYPE SY-MANDT, " SY-MANDT | |||
| lv_object | TYPE SY, " | |||
| lv_id | TYPE SY, " | |||
| lv_object | TYPE THEAD-TDOBJECT, " | |||
| lv_id | TYPE THEAD-TDID, " | |||
| lv_name | TYPE THEAD, " | |||
| lv_name | TYPE THEAD-TDNAME, " | |||
| lv_textpart | TYPE THEAD, " | |||
| lv_language | TYPE THEAD, " | |||
| lv_textpart | TYPE CHAR26, " | |||
| lv_language | TYPE THEAD-TDSPRAS, " | |||
| lv_reference_check | TYPE THEAD, " | |||
| lv_editor_title | TYPE TTXIT-TDTEXT, " SPACE | |||
| lv_local_cat | TYPE TTXIT, " SPACE | |||
| lv_check_textpart | TYPE BOOLEAN. " 'X' |
|   CALL FUNCTION 'HR_99S_EDIT_TEXTPART' "Changing and saving of text parts |
| EXPORTING | ||
| CLIENT | = lv_client | |
| OBJECT | = lv_object | |
| ID | = lv_id | |
| NAME | = lv_name | |
| TEXTPART | = lv_textpart | |
| LANGUAGE | = lv_language | |
| EDITOR_TITLE | = lv_editor_title | |
| LOCAL_CAT | = lv_local_cat | |
| CHECK_TEXTPART | = lv_check_textpart | |
| EXCEPTIONS | ||
| OBJECT = 1 | ||
| ID = 2 | ||
| NAME = 3 | ||
| TEXTPART = 4 | ||
| LANGUAGE = 5 | ||
| REFERENCE_CHECK = 6 | ||
| . " HR_99S_EDIT_TEXTPART | ||
ABAP code using 7.40 inline data declarations to call FM HR_99S_EDIT_TEXTPART
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.| "SELECT single MANDT FROM SY INTO @DATA(ld_client). | ||||
| DATA(ld_client) | = SY-MANDT. | |||
| "SELECT single TDOBJECT FROM THEAD INTO @DATA(ld_object). | ||||
| "SELECT single TDID FROM THEAD INTO @DATA(ld_id). | ||||
| "SELECT single TDNAME FROM THEAD INTO @DATA(ld_name). | ||||
| "SELECT single TDSPRAS FROM THEAD INTO @DATA(ld_language). | ||||
| "SELECT single TDTEXT FROM TTXIT INTO @DATA(ld_editor_title). | ||||
| DATA(ld_editor_title) | = ' '. | |||
| DATA(ld_local_cat) | = ' '. | |||
| DATA(ld_check_textpart) | = 'X'. | |||
Search for further information about these or an SAP related objects