SAP C146_PHRASE_PJIOT_READ Function Module for NOTRANSL: EHS: Lesen von AWM-Zuordnungen zu einer Phrase
C146_PHRASE_PJIOT_READ is a standard c146 phrase pjiot read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EHS: Lesen von AWM-Zuordnungen zu einer Phrase 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 c146 phrase pjiot read FM, simply by entering the name C146_PHRASE_PJIOT_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: C146
Program Name: SAPLC146
Main Program: SAPLC146
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function C146_PHRASE_PJIOT_READ 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 'C146_PHRASE_PJIOT_READ'"NOTRANSL: EHS: Lesen von AWM-Zuordnungen zu einer Phrase.
EXPORTING
I_RECN = "Sequential Number of Data Record
I_ACTYPE = "Activity Type
I_ADDINFO = "Additional Information
I_FLG_AUTHORITY_CHECK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_FLG_WITH_LOCK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING
E_PHIOT_REC = "EHS: IOTAB for phrases (ESTPH)
E_ACTYPE = "Activity category in SAP transaction
TABLES
E_PJIOT_TAB = "EHS: IOT for phrase - phrase set assignment (ESTPJ)
EXCEPTIONS
PHRASE_NOT_FOUND = 1 NO_AUTHORITY = 2
IMPORTING Parameters details for C146_PHRASE_PJIOT_READ
I_RECN - Sequential Number of Data Record
Data type: RCGSTDRECN-RECNOptional: No
Call by Reference: No ( called with pass by value option)
I_ACTYPE - Activity Type
Data type: RCGDIALCTR-ACTYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_ADDINFO - Additional Information
Data type: RCGADDINFOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_AUTHORITY_CHECK - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_WITH_LOCK - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for C146_PHRASE_PJIOT_READ
E_PHIOT_REC - EHS: IOTAB for phrases (ESTPH)
Data type: RCGPHIOTOptional: No
Call by Reference: No ( called with pass by value option)
E_ACTYPE - Activity category in SAP transaction
Data type: RCGDIALCTR-ACTYPEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for C146_PHRASE_PJIOT_READ
E_PJIOT_TAB - EHS: IOT for phrase - phrase set assignment (ESTPJ)
Data type: RCGPJIOTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PHRASE_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY - No Authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for C146_PHRASE_PJIOT_READ 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_i_recn | TYPE RCGSTDRECN-RECN, " | |||
| lv_e_phiot_rec | TYPE RCGPHIOT, " | |||
| lt_e_pjiot_tab | TYPE STANDARD TABLE OF RCGPJIOT, " | |||
| lv_phrase_not_found | TYPE RCGPJIOT, " | |||
| lv_e_actype | TYPE RCGDIALCTR-ACTYPE, " | |||
| lv_i_actype | TYPE RCGDIALCTR-ACTYPE, " | |||
| lv_no_authority | TYPE RCGDIALCTR, " | |||
| lv_i_addinfo | TYPE RCGADDINF, " | |||
| lv_i_flg_authority_check | TYPE ESP1_BOOLEAN, " | |||
| lv_i_flg_with_lock | TYPE ESP1_BOOLEAN. " |
|   CALL FUNCTION 'C146_PHRASE_PJIOT_READ' "NOTRANSL: EHS: Lesen von AWM-Zuordnungen zu einer Phrase |
| EXPORTING | ||
| I_RECN | = lv_i_recn | |
| I_ACTYPE | = lv_i_actype | |
| I_ADDINFO | = lv_i_addinfo | |
| I_FLG_AUTHORITY_CHECK | = lv_i_flg_authority_check | |
| I_FLG_WITH_LOCK | = lv_i_flg_with_lock | |
| IMPORTING | ||
| E_PHIOT_REC | = lv_e_phiot_rec | |
| E_ACTYPE | = lv_e_actype | |
| TABLES | ||
| E_PJIOT_TAB | = lt_e_pjiot_tab | |
| EXCEPTIONS | ||
| PHRASE_NOT_FOUND = 1 | ||
| NO_AUTHORITY = 2 | ||
| . " C146_PHRASE_PJIOT_READ | ||
ABAP code using 7.40 inline data declarations to call FM C146_PHRASE_PJIOT_READ
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 RECN FROM RCGSTDRECN INTO @DATA(ld_i_recn). | ||||
| "SELECT single ACTYPE FROM RCGDIALCTR INTO @DATA(ld_e_actype). | ||||
| "SELECT single ACTYPE FROM RCGDIALCTR INTO @DATA(ld_i_actype). | ||||
Search for further information about these or an SAP related objects