SAP HR_99S_DISPLAY_TEXTPART Function Module for Display a special part of a SAPScript text









HR_99S_DISPLAY_TEXTPART is a standard hr 99s display 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 Display a special part of a SAPScript text 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 display textpart FM, simply by entering the name HR_99S_DISPLAY_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_DISPLAY_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_DISPLAY_TEXTPART'"Display a special part of a SAPScript text
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 displayed
TEXTPART = "Bloc of the text to be displayed (max. 26 characters)
LANGUAGE = "Language key of the text to be displayed
* 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 NOT_FOUND = 6 REFERENCE_CHECK = 7
.



IMPORTING Parameters details for HR_99S_DISPLAY_TEXTPART

CLIENT - R/3 System, client number from logon

Data type: SY-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: Yes

OBJECT - Texts: application object

Data type: THEAD-TDOBJECT
Optional: No
Call by Reference: Yes

ID - Text ID

Data type: THEAD-TDID
Optional: No
Call by Reference: Yes

NAME - Name of the text to be displayed

Data type: THEAD-TDNAME
Optional: No
Call by Reference: Yes

TEXTPART - Bloc of the text to be displayed (max. 26 characters)

Data type: CHAR26
Optional: No
Call by Reference: Yes

LANGUAGE - Language key of the text to be displayed

Data type: THEAD-TDSPRAS
Optional: No
Call by Reference: Yes

EDITOR_TITLE - Text for editor title line

Data type: TTXIT-TDTEXT
Default: 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: BOOLEAN
Default: '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 displayed

Data type:
Optional: No
Call by Reference: Yes

TEXTPART - Bloc of the text to be displayed (max. 26 characters)

Data type:
Optional: No
Call by Reference: Yes

LANGUAGE - Language key of the text to be displayed

Data type:
Optional: No
Call by Reference: Yes

NOT_FOUND - Text not found

Data type:
Optional: No
Call by Reference: Yes

REFERENCE_CHECK - Reference chain interruputed

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_99S_DISPLAY_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_not_found  TYPE THEAD, "   
lv_editor_title  TYPE TTXIT-TDTEXT, "   SPACE
lv_reference_check  TYPE TTXIT, "   
lv_local_cat  TYPE TTXIT, "   SPACE
lv_check_textpart  TYPE BOOLEAN. "   'X'

  CALL FUNCTION 'HR_99S_DISPLAY_TEXTPART'  "Display a special part of a SAPScript text
    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
        NOT_FOUND = 6
        REFERENCE_CHECK = 7
. " HR_99S_DISPLAY_TEXTPART




ABAP code using 7.40 inline data declarations to call FM HR_99S_DISPLAY_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



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!