SAP CACSHR_TRANSFER_HR_READ Function Module for Import HR Wage Components









CACSHR_TRANSFER_HR_READ is a standard cacshr transfer hr 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 Import HR Wage Components 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 cacshr transfer hr read FM, simply by entering the name CACSHR_TRANSFER_HR_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: CACSHR_STMT_TRANSFER_HR
Program Name: SAPLCACSHR_STMT_TRANSFER_HR
Main Program: SAPLCACSHR_STMT_TRANSFER_HR
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CACSHR_TRANSFER_HR_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 'CACSHR_TRANSFER_HR_READ'"Import HR Wage Components
EXPORTING
I_DOCID = "Document Number
I_PSTYEAR = "Year Of Document Creation
* I_LOGSYS = "Logical System (Commissions)

IMPORTING
E_ORG = "Organizational Unit
E_REFKEY = "Object Key

TABLES
* T_DATA_HD = "Structure Header Line
* T_DATA_SE = "Structure Document Line

EXCEPTIONS
HR_DOC_NOT_FOUND = 1 FI_DOC_NOT_FOUND = 2 LOG_SYS_NOT_FOUND = 3
.



IMPORTING Parameters details for CACSHR_TRANSFER_HR_READ

I_DOCID - Document Number

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

I_PSTYEAR - Year Of Document Creation

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

I_LOGSYS - Logical System (Commissions)

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

EXPORTING Parameters details for CACSHR_TRANSFER_HR_READ

E_ORG - Organizational Unit

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

E_REFKEY - Object Key

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

TABLES Parameters details for CACSHR_TRANSFER_HR_READ

T_DATA_HD - Structure Header Line

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

T_DATA_SE - Structure Document Line

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

EXCEPTIONS details

HR_DOC_NOT_FOUND - Document Number Not Found

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

FI_DOC_NOT_FOUND - Document Number Not Found

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

LOG_SYS_NOT_FOUND - Logical System Not Found

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

Copy and paste ABAP code example for CACSHR_TRANSFER_HR_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_e_org  TYPE CACS_ORG, "   
lv_i_docid  TYPE CACSDOCID, "   
lt_t_data_hd  TYPE STANDARD TABLE OF CACS00_S_TRANSFER_HR_H, "   
lv_hr_doc_not_found  TYPE CACS00_S_TRANSFER_HR_H, "   
lv_e_refkey  TYPE CACS_REFKEY, "   
lv_i_pstyear  TYPE CACSPSTYEAR, "   
lt_t_data_se  TYPE STANDARD TABLE OF CACS00_S_TRANSFER_HR_P, "   
lv_fi_doc_not_found  TYPE CACS00_S_TRANSFER_HR_P, "   
lv_i_logsys  TYPE CACS_LOGSYS, "   
lv_log_sys_not_found  TYPE CACS_LOGSYS. "   

  CALL FUNCTION 'CACSHR_TRANSFER_HR_READ'  "Import HR Wage Components
    EXPORTING
         I_DOCID = lv_i_docid
         I_PSTYEAR = lv_i_pstyear
         I_LOGSYS = lv_i_logsys
    IMPORTING
         E_ORG = lv_e_org
         E_REFKEY = lv_e_refkey
    TABLES
         T_DATA_HD = lt_t_data_hd
         T_DATA_SE = lt_t_data_se
    EXCEPTIONS
        HR_DOC_NOT_FOUND = 1
        FI_DOC_NOT_FOUND = 2
        LOG_SYS_NOT_FOUND = 3
. " CACSHR_TRANSFER_HR_READ




ABAP code using 7.40 inline data declarations to call FM CACSHR_TRANSFER_HR_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.

 
 
 
 
 
 
 
 
 
 


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!