SAP C14E_APPL_LOG_WRITE Function Module for NOTRANSL: EHS: Import/Export schreiben in Application log
C14E_APPL_LOG_WRITE is a standard c14e appl log write 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: Import/Export schreiben in Application log 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 c14e appl log write FM, simply by entering the name C14E_APPL_LOG_WRITE into the relevant SAP transaction such as SE37 or SE38.
Function Group: C14E
Program Name: SAPLC14E
Main Program: SAPLC14E
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function C14E_APPL_LOG_WRITE 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 'C14E_APPL_LOG_WRITE'"NOTRANSL: EHS: Import/Export schreiben in Application log.
EXPORTING
I_OBJECT = "Application Log: Object Name (Application Code)
* I_PROBCLASS = '4' "Application log: Message problem class
I_SUBOBJECT = "Application Log: Subobject
* I_MSGTY = 'S' "Message Category
* I_MSGID = 'C$' "ABAP System Field: Message ID
* I_MSGNO = "Notification Number
* I_MSGV1 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MSGV2 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MSGV3 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MSGV4 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
TABLES
* I_LOGMSG_TAB = "Table of Messages
EXCEPTIONS
MSGNO_MISSING = 1 APPL_LOG_ERROR = 2
IMPORTING Parameters details for C14E_APPL_LOG_WRITE
I_OBJECT - Application Log: Object Name (Application Code)
Data type: BALHDR-OBJECTOptional: No
Call by Reference: No ( called with pass by value option)
I_PROBCLASS - Application log: Message problem class
Data type: BALMI-PROBCLASSDefault: '4'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SUBOBJECT - Application Log: Subobject
Data type: BALHDR-SUBOBJECTOptional: No
Call by Reference: No ( called with pass by value option)
I_MSGTY - Message Category
Data type: SY-MSGTYDefault: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MSGID - ABAP System Field: Message ID
Data type: SY-MSGIDDefault: 'C$'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MSGNO - Notification Number
Data type: SY-MSGNOOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MSGV1 - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MSGV2 - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MSGV3 - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MSGV4 - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for C14E_APPL_LOG_WRITE
I_LOGMSG_TAB - Table of Messages
Data type: BALMIOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MSGNO_MISSING - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
APPL_LOG_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for C14E_APPL_LOG_WRITE 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_object | TYPE BALHDR-OBJECT, " | |||
| lt_i_logmsg_tab | TYPE STANDARD TABLE OF BALMI, " | |||
| lv_msgno_missing | TYPE BALMI, " | |||
| lv_i_probclass | TYPE BALMI-PROBCLASS, " '4' | |||
| lv_i_subobject | TYPE BALHDR-SUBOBJECT, " | |||
| lv_appl_log_error | TYPE BALHDR, " | |||
| lv_i_msgty | TYPE SY-MSGTY, " 'S' | |||
| lv_i_msgid | TYPE SY-MSGID, " 'C$' | |||
| lv_i_msgno | TYPE SY-MSGNO, " | |||
| lv_i_msgv1 | TYPE SY, " | |||
| lv_i_msgv2 | TYPE SY, " | |||
| lv_i_msgv3 | TYPE SY, " | |||
| lv_i_msgv4 | TYPE SY. " |
|   CALL FUNCTION 'C14E_APPL_LOG_WRITE' "NOTRANSL: EHS: Import/Export schreiben in Application log |
| EXPORTING | ||
| I_OBJECT | = lv_i_object | |
| I_PROBCLASS | = lv_i_probclass | |
| I_SUBOBJECT | = lv_i_subobject | |
| I_MSGTY | = lv_i_msgty | |
| I_MSGID | = lv_i_msgid | |
| I_MSGNO | = lv_i_msgno | |
| I_MSGV1 | = lv_i_msgv1 | |
| I_MSGV2 | = lv_i_msgv2 | |
| I_MSGV3 | = lv_i_msgv3 | |
| I_MSGV4 | = lv_i_msgv4 | |
| TABLES | ||
| I_LOGMSG_TAB | = lt_i_logmsg_tab | |
| EXCEPTIONS | ||
| MSGNO_MISSING = 1 | ||
| APPL_LOG_ERROR = 2 | ||
| . " C14E_APPL_LOG_WRITE | ||
ABAP code using 7.40 inline data declarations to call FM C14E_APPL_LOG_WRITE
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 OBJECT FROM BALHDR INTO @DATA(ld_i_object). | ||||
| "SELECT single PROBCLASS FROM BALMI INTO @DATA(ld_i_probclass). | ||||
| DATA(ld_i_probclass) | = '4'. | |||
| "SELECT single SUBOBJECT FROM BALHDR INTO @DATA(ld_i_subobject). | ||||
| "SELECT single MSGTY FROM SY INTO @DATA(ld_i_msgty). | ||||
| DATA(ld_i_msgty) | = 'S'. | |||
| "SELECT single MSGID FROM SY INTO @DATA(ld_i_msgid). | ||||
| DATA(ld_i_msgid) | = 'C$'. | |||
| "SELECT single MSGNO FROM SY INTO @DATA(ld_i_msgno). | ||||
Search for further information about these or an SAP related objects