SAP PTRM_UTIL_READ_T100 Function Module for
PTRM_UTIL_READ_T100 is a standard ptrm util read t100 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 ptrm util read t100 FM, simply by entering the name PTRM_UTIL_READ_T100 into the relevant SAP transaction such as SE37 or SE38.
Function Group: PTRM_UTIL_MESSAGES
Program Name: SAPLPTRM_UTIL_MESSAGES
Main Program: SAPLPTRM_UTIL_MESSAGES
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PTRM_UTIL_READ_T100 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 'PTRM_UTIL_READ_T100'".
EXPORTING
* ARBGB = '56' "Application area
MSGNR = "Message Number
* MSGV1 = ' ' "Message variable 1
* MSGV2 = ' ' "Message variable 2
* MSGV3 = ' ' "Message variable 3
* MSGV4 = ' ' "Message variable 4
* SPRSL = SY-LANGU "
IMPORTING
TEXT = "Message Text
EXCEPTIONS
NO_ENTRY_FOUND = 1
IMPORTING Parameters details for PTRM_UTIL_READ_T100
ARBGB - Application area
Data type: T100-ARBGBDefault: '56'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSGNR - Message Number
Data type: SY-MSGNOOptional: No
Call by Reference: No ( called with pass by value option)
MSGV1 - Message variable 1
Data type: SY-MSGV1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSGV2 - Message variable 2
Data type: SY-MSGV2Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSGV3 - Message variable 3
Data type: SY-MSGV3Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSGV4 - Message variable 4
Data type: SY-MSGV4Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SPRSL -
Data type: T100-SPRSLDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PTRM_UTIL_READ_T100
TEXT - Message Text
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ENTRY_FOUND - Cannot Find Table Entry
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PTRM_UTIL_READ_T100 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_text | TYPE STRING, " | |||
| lv_arbgb | TYPE T100-ARBGB, " '56' | |||
| lv_no_entry_found | TYPE T100, " | |||
| lv_msgnr | TYPE SY-MSGNO, " | |||
| lv_msgv1 | TYPE SY-MSGV1, " SPACE | |||
| lv_msgv2 | TYPE SY-MSGV2, " SPACE | |||
| lv_msgv3 | TYPE SY-MSGV3, " SPACE | |||
| lv_msgv4 | TYPE SY-MSGV4, " SPACE | |||
| lv_sprsl | TYPE T100-SPRSL. " SY-LANGU |
|   CALL FUNCTION 'PTRM_UTIL_READ_T100' " |
| EXPORTING | ||
| ARBGB | = lv_arbgb | |
| MSGNR | = lv_msgnr | |
| MSGV1 | = lv_msgv1 | |
| MSGV2 | = lv_msgv2 | |
| MSGV3 | = lv_msgv3 | |
| MSGV4 | = lv_msgv4 | |
| SPRSL | = lv_sprsl | |
| IMPORTING | ||
| TEXT | = lv_text | |
| EXCEPTIONS | ||
| NO_ENTRY_FOUND = 1 | ||
| . " PTRM_UTIL_READ_T100 | ||
ABAP code using 7.40 inline data declarations to call FM PTRM_UTIL_READ_T100
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 ARBGB FROM T100 INTO @DATA(ld_arbgb). | ||||
| DATA(ld_arbgb) | = '56'. | |||
| "SELECT single MSGNO FROM SY INTO @DATA(ld_msgnr). | ||||
| "SELECT single MSGV1 FROM SY INTO @DATA(ld_msgv1). | ||||
| DATA(ld_msgv1) | = ' '. | |||
| "SELECT single MSGV2 FROM SY INTO @DATA(ld_msgv2). | ||||
| DATA(ld_msgv2) | = ' '. | |||
| "SELECT single MSGV3 FROM SY INTO @DATA(ld_msgv3). | ||||
| DATA(ld_msgv3) | = ' '. | |||
| "SELECT single MSGV4 FROM SY INTO @DATA(ld_msgv4). | ||||
| DATA(ld_msgv4) | = ' '. | |||
| "SELECT single SPRSL FROM T100 INTO @DATA(ld_sprsl). | ||||
| DATA(ld_sprsl) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects