SAP SRS_PDC_APPLICATION_LOG Function Module for Application Log: Initialize and Write Header Information
SRS_PDC_APPLICATION_LOG is a standard srs pdc application log SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Application Log: Initialize and Write Header Information 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 srs pdc application log FM, simply by entering the name SRS_PDC_APPLICATION_LOG into the relevant SAP transaction such as SE37 or SE38.
Function Group: WOST_PDC_ADMIN
Program Name: SAPLWOST_PDC_ADMIN
Main Program: SAPLWOST_PDC_ADMIN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SRS_PDC_APPLICATION_LOG 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 'SRS_PDC_APPLICATION_LOG'"Application Log: Initialize and Write Header Information.
EXPORTING
* PLANT = "Plant
* APPL_OBJECT = 'W_SRS' "Application Log: Object Name (Application Code)
APPL_SUBOBJECT = "Application Log: Subobject
* EXTNUMBER = "Application Log: External Identification
SRS_APP_LOG_ID = "Retail Store: Function of Application Log
* LOG_MESSAGE = "Return Parameter(s)
* APPL_INSERT = 'I' "Single-Character Indicator
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for SRS_PDC_APPLICATION_LOG
PLANT - Plant
Data type: WERKS_DOptional: Yes
Call by Reference: Yes
APPL_OBJECT - Application Log: Object Name (Application Code)
Data type: BALOBJ-OBJECTDefault: 'W_SRS'
Optional: No
Call by Reference: Yes
APPL_SUBOBJECT - Application Log: Subobject
Data type: BALHDR-SUBOBJECTOptional: No
Call by Reference: Yes
EXTNUMBER - Application Log: External Identification
Data type: BALHDR-EXTNUMBEROptional: Yes
Call by Reference: Yes
SRS_APP_LOG_ID - Retail Store: Function of Application Log
Data type: SRS_PDC_HELP-SRS_APP_LOG_IDOptional: No
Call by Reference: Yes
LOG_MESSAGE - Return Parameter(s)
Data type: BALMIOptional: Yes
Call by Reference: No ( called with pass by value option)
APPL_INSERT - Single-Character Indicator
Data type: CHAR1Default: 'I'
Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR - Funktion nicht ausgeführt.
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SRS_PDC_APPLICATION_LOG 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_error | TYPE STRING, " | |||
| lv_plant | TYPE WERKS_D, " | |||
| lv_appl_object | TYPE BALOBJ-OBJECT, " 'W_SRS' | |||
| lv_appl_subobject | TYPE BALHDR-SUBOBJECT, " | |||
| lv_extnumber | TYPE BALHDR-EXTNUMBER, " | |||
| lv_srs_app_log_id | TYPE SRS_PDC_HELP-SRS_APP_LOG_ID, " | |||
| lv_log_message | TYPE BALMI, " | |||
| lv_appl_insert | TYPE CHAR1. " 'I' |
|   CALL FUNCTION 'SRS_PDC_APPLICATION_LOG' "Application Log: Initialize and Write Header Information |
| EXPORTING | ||
| PLANT | = lv_plant | |
| APPL_OBJECT | = lv_appl_object | |
| APPL_SUBOBJECT | = lv_appl_subobject | |
| EXTNUMBER | = lv_extnumber | |
| SRS_APP_LOG_ID | = lv_srs_app_log_id | |
| LOG_MESSAGE | = lv_log_message | |
| APPL_INSERT | = lv_appl_insert | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " SRS_PDC_APPLICATION_LOG | ||
ABAP code using 7.40 inline data declarations to call FM SRS_PDC_APPLICATION_LOG
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 BALOBJ INTO @DATA(ld_appl_object). | ||||
| DATA(ld_appl_object) | = 'W_SRS'. | |||
| "SELECT single SUBOBJECT FROM BALHDR INTO @DATA(ld_appl_subobject). | ||||
| "SELECT single EXTNUMBER FROM BALHDR INTO @DATA(ld_extnumber). | ||||
| "SELECT single SRS_APP_LOG_ID FROM SRS_PDC_HELP INTO @DATA(ld_srs_app_log_id). | ||||
| DATA(ld_appl_insert) | = 'I'. | |||
Search for further information about these or an SAP related objects