SAP HRPY_PUST_WRITE_APPL_LOG Function Module for









HRPY_PUST_WRITE_APPL_LOG is a standard hrpy pust write appl log 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 hrpy pust write appl log FM, simply by entering the name HRPY_PUST_WRITE_APPL_LOG into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRST
Program Name: SAPLHRST
Main Program: SAPLHRST
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HRPY_PUST_WRITE_APPL_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 'HRPY_PUST_WRITE_APPL_LOG'"
EXPORTING
* IMP_OBJECT = 'HRST' "
* IMP_MSGV1 = ' ' "
* IMP_MSGV2 = ' ' "
* IMP_MSGV3 = ' ' "
* IMP_MSGV4 = ' ' "
* IMP_DEL_AFTER_YEAR = 'X' "
* IMP_MACRO_PROC = "
* IMP_MACRO_STEP = "
* IMP_MACRO_SY = "
* IMP_EXTNUMBER = '0' "
* IMP_USER = "
* IMP_TCODE = "
* IMP_PROGRAM = "
IMP_HEADER_TEXT = "
* IMP_MSGTY = 'I' "
* IMP_MSGID = '3G' "
IMP_MSGNO = "

EXCEPTIONS
WRITE_ERROR = 1
.



IMPORTING Parameters details for HRPY_PUST_WRITE_APPL_LOG

IMP_OBJECT -

Data type: BALHDR-OBJECT
Default: 'HRST'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_MSGV1 -

Data type: SY-MSGV1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_MSGV2 -

Data type: SY-MSGV2
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_MSGV3 -

Data type: SY-MSGV3
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_MSGV4 -

Data type: SY-MSGV4
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_DEL_AFTER_YEAR -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_MACRO_PROC -

Data type: T52SP-PROCESSID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_MACRO_STEP -

Data type: T52SPS-STEPID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_MACRO_SY -

Data type: SY-SUBRC
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_EXTNUMBER -

Data type: BALHDR-EXTNUMBER
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_USER -

Data type: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_TCODE -

Data type: SY-TCODE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_PROGRAM -

Data type: SY-REPID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_HEADER_TEXT -

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

IMP_MSGTY -

Data type: SY-MSGTY
Default: 'I'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_MSGID -

Data type: SY-MSGID
Default: '3G'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMP_MSGNO -

Data type: SY-MSGNO
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

WRITE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HRPY_PUST_WRITE_APPL_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_imp_object  TYPE BALHDR-OBJECT, "   'HRST'
lv_write_error  TYPE BALHDR, "   
lv_imp_msgv1  TYPE SY-MSGV1, "   SPACE
lv_imp_msgv2  TYPE SY-MSGV2, "   SPACE
lv_imp_msgv3  TYPE SY-MSGV3, "   SPACE
lv_imp_msgv4  TYPE SY-MSGV4, "   SPACE
lv_imp_del_after_year  TYPE C, "   'X'
lv_imp_macro_proc  TYPE T52SP-PROCESSID, "   
lv_imp_macro_step  TYPE T52SPS-STEPID, "   
lv_imp_macro_sy  TYPE SY-SUBRC, "   
lv_imp_extnumber  TYPE BALHDR-EXTNUMBER, "   '0'
lv_imp_user  TYPE SY-UNAME, "   
lv_imp_tcode  TYPE SY-TCODE, "   
lv_imp_program  TYPE SY-REPID, "   
lv_imp_header_text  TYPE C, "   
lv_imp_msgty  TYPE SY-MSGTY, "   'I'
lv_imp_msgid  TYPE SY-MSGID, "   '3G'
lv_imp_msgno  TYPE SY-MSGNO. "   

  CALL FUNCTION 'HRPY_PUST_WRITE_APPL_LOG'  "
    EXPORTING
         IMP_OBJECT = lv_imp_object
         IMP_MSGV1 = lv_imp_msgv1
         IMP_MSGV2 = lv_imp_msgv2
         IMP_MSGV3 = lv_imp_msgv3
         IMP_MSGV4 = lv_imp_msgv4
         IMP_DEL_AFTER_YEAR = lv_imp_del_after_year
         IMP_MACRO_PROC = lv_imp_macro_proc
         IMP_MACRO_STEP = lv_imp_macro_step
         IMP_MACRO_SY = lv_imp_macro_sy
         IMP_EXTNUMBER = lv_imp_extnumber
         IMP_USER = lv_imp_user
         IMP_TCODE = lv_imp_tcode
         IMP_PROGRAM = lv_imp_program
         IMP_HEADER_TEXT = lv_imp_header_text
         IMP_MSGTY = lv_imp_msgty
         IMP_MSGID = lv_imp_msgid
         IMP_MSGNO = lv_imp_msgno
    EXCEPTIONS
        WRITE_ERROR = 1
. " HRPY_PUST_WRITE_APPL_LOG




ABAP code using 7.40 inline data declarations to call FM HRPY_PUST_WRITE_APPL_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 BALHDR INTO @DATA(ld_imp_object).
DATA(ld_imp_object) = 'HRST'.
 
 
"SELECT single MSGV1 FROM SY INTO @DATA(ld_imp_msgv1).
DATA(ld_imp_msgv1) = ' '.
 
"SELECT single MSGV2 FROM SY INTO @DATA(ld_imp_msgv2).
DATA(ld_imp_msgv2) = ' '.
 
"SELECT single MSGV3 FROM SY INTO @DATA(ld_imp_msgv3).
DATA(ld_imp_msgv3) = ' '.
 
"SELECT single MSGV4 FROM SY INTO @DATA(ld_imp_msgv4).
DATA(ld_imp_msgv4) = ' '.
 
DATA(ld_imp_del_after_year) = 'X'.
 
"SELECT single PROCESSID FROM T52SP INTO @DATA(ld_imp_macro_proc).
 
"SELECT single STEPID FROM T52SPS INTO @DATA(ld_imp_macro_step).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_imp_macro_sy).
 
"SELECT single EXTNUMBER FROM BALHDR INTO @DATA(ld_imp_extnumber).
DATA(ld_imp_extnumber) = '0'.
 
"SELECT single UNAME FROM SY INTO @DATA(ld_imp_user).
 
"SELECT single TCODE FROM SY INTO @DATA(ld_imp_tcode).
 
"SELECT single REPID FROM SY INTO @DATA(ld_imp_program).
 
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_imp_msgty).
DATA(ld_imp_msgty) = 'I'.
 
"SELECT single MSGID FROM SY INTO @DATA(ld_imp_msgid).
DATA(ld_imp_msgid) = '3G'.
 
"SELECT single MSGNO FROM SY INTO @DATA(ld_imp_msgno).
 


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!