SAP HR_IMPUTE_CC_CALC_ZA Function Module for Company car ZA car benefit calculation
HR_IMPUTE_CC_CALC_ZA is a standard hr impute cc calc za SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Company car ZA car benefit calculation 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 hr impute cc calc za FM, simply by entering the name HR_IMPUTE_CC_CALC_ZA into the relevant SAP transaction such as SE37 or SE38.
Function Group: RPW7
Program Name: SAPLRPW7
Main Program: SAPLRPW7
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_IMPUTE_CC_CALC_ZA 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 'HR_IMPUTE_CC_CALC_ZA'"Company car ZA car benefit calculation.
EXPORTING
* INFOLINE = "
* PAPER = "
* PERMO = "
* SW_PROT = "Payroll log switch
TABLES
IT0442 = "
* IQ0442 = "
* CALC_IT = "
* CALC_VAR = "
* PTEXT = "Structure for HR Function Log
* CAR_ERR_NAT = "Transfer table for HR error handling
* PYTABNAT = "
EXCEPTIONS
ERR_GENERAL = 1
IMPORTING Parameters details for HR_IMPUTE_CC_CALC_ZA
INFOLINE -
Data type: CAR_INFOOptional: Yes
Call by Reference: No ( called with pass by value option)
PAPER -
Data type: PC261-FPPEROptional: Yes
Call by Reference: No ( called with pass by value option)
PERMO -
Data type: T549A-PERMOOptional: Yes
Call by Reference: No ( called with pass by value option)
SW_PROT - Payroll log switch
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_IMPUTE_CC_CALC_ZA
IT0442 -
Data type: P0442Optional: No
Call by Reference: No ( called with pass by value option)
IQ0442 -
Data type: Q0442Optional: Yes
Call by Reference: No ( called with pass by value option)
CALC_IT -
Data type: PC207Optional: Yes
Call by Reference: No ( called with pass by value option)
CALC_VAR -
Data type: HRVAROptional: Yes
Call by Reference: No ( called with pass by value option)
PTEXT - Structure for HR Function Log
Data type: PLOG_TEXTOptional: Yes
Call by Reference: Yes
CAR_ERR_NAT - Transfer table for HR error handling
Data type: HRERROROptional: Yes
Call by Reference: Yes
PYTABNAT -
Data type:Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERR_GENERAL - General error in exit
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_IMPUTE_CC_CALC_ZA 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: | ||||
| lt_it0442 | TYPE STANDARD TABLE OF P0442, " | |||
| lv_infoline | TYPE CAR_INFO, " | |||
| lv_err_general | TYPE CAR_INFO, " | |||
| lv_paper | TYPE PC261-FPPER, " | |||
| lt_iq0442 | TYPE STANDARD TABLE OF Q0442, " | |||
| lv_permo | TYPE T549A-PERMO, " | |||
| lt_calc_it | TYPE STANDARD TABLE OF PC207, " | |||
| lv_sw_prot | TYPE C, " | |||
| lt_calc_var | TYPE STANDARD TABLE OF HRVAR, " | |||
| lt_ptext | TYPE STANDARD TABLE OF PLOG_TEXT, " | |||
| lt_car_err_nat | TYPE STANDARD TABLE OF HRERROR, " | |||
| lt_pytabnat | TYPE STANDARD TABLE OF HRERROR. " |
|   CALL FUNCTION 'HR_IMPUTE_CC_CALC_ZA' "Company car ZA car benefit calculation |
| EXPORTING | ||
| INFOLINE | = lv_infoline | |
| PAPER | = lv_paper | |
| PERMO | = lv_permo | |
| SW_PROT | = lv_sw_prot | |
| TABLES | ||
| IT0442 | = lt_it0442 | |
| IQ0442 | = lt_iq0442 | |
| CALC_IT | = lt_calc_it | |
| CALC_VAR | = lt_calc_var | |
| PTEXT | = lt_ptext | |
| CAR_ERR_NAT | = lt_car_err_nat | |
| PYTABNAT | = lt_pytabnat | |
| EXCEPTIONS | ||
| ERR_GENERAL = 1 | ||
| . " HR_IMPUTE_CC_CALC_ZA | ||
ABAP code using 7.40 inline data declarations to call FM HR_IMPUTE_CC_CALC_ZA
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 FPPER FROM PC261 INTO @DATA(ld_paper). | ||||
| "SELECT single PERMO FROM T549A INTO @DATA(ld_permo). | ||||
Search for further information about these or an SAP related objects