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

Function HR_CA_CALC_STANDBY_BENEFIT 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_CA_CALC_STANDBY_BENEFIT'"Calculate standby charge for car taxable benefit, Canada.
EXPORTING
* P_DATE = SY-DATUM "Pay date/check date
* ST_OPT = '1' "Standby calculation option
AUTOCOST = 0 "Cost of auto paid by employer
PERS_KM = 0 "Km driven for personal use
* NUM_DAYS = 365 "Annual days auto benefit enjoyed
ST_REIMB = 0 "Reimbursement of standby charge
* ST_CH = '1' "Status of employer auto ownership
* REDUCE = '0' "Apply reduction of standby charge
* SHOW_LOG = ' ' "Display log
IMPORTING
STANDBY = "Standby charge
IMPORTING Parameters details for HR_CA_CALC_STANDBY_BENEFIT
P_DATE - Pay date/check date
Data type: SAPMPTKC-CHKDTDefault: SY-DATUM
Optional: No
Call by Reference: Yes
ST_OPT - Standby calculation option
Data type: SAPMPTKC_CAR-ST_OPT1Default: '1'
Optional: No
Call by Reference: Yes
AUTOCOST - Cost of auto paid by employer
Data type: SAPMPTKC_CAR-AUTOCOSTOptional: No
Call by Reference: Yes
PERS_KM - Km driven for personal use
Data type: SAPMPTKC_CAR-PERS_KMOptional: No
Call by Reference: Yes
NUM_DAYS - Annual days auto benefit enjoyed
Data type: SAPMPTKC_CAR-NUM_DAYSDefault: 365
Optional: No
Call by Reference: Yes
ST_REIMB - Reimbursement of standby charge
Data type: SAPMPTKC_CAR-ST_REIMBOptional: No
Call by Reference: Yes
ST_CH - Status of employer auto ownership
Data type: SAPMPTKC_CAR-ST_CH1Default: '1'
Optional: No
Call by Reference: Yes
REDUCE - Apply reduction of standby charge
Data type: SAPMPTKC_CAR-REDUCTIONDefault: '0'
Optional: No
Call by Reference: Yes
SHOW_LOG - Display log
Data type: CDefault: SPACE
Optional: No
Call by Reference: Yes
EXPORTING Parameters details for HR_CA_CALC_STANDBY_BENEFIT
STANDBY - Standby charge
Data type: SAPMPTKC_CAR-STANDBYOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_CA_CALC_STANDBY_BENEFIT 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_p_date | TYPE SAPMPTKC-CHKDT, " SY-DATUM | |||
| lv_standby | TYPE SAPMPTKC_CAR-STANDBY, " | |||
| lv_st_opt | TYPE SAPMPTKC_CAR-ST_OPT1, " '1' | |||
| lv_autocost | TYPE SAPMPTKC_CAR-AUTOCOST, " 0 | |||
| lv_pers_km | TYPE SAPMPTKC_CAR-PERS_KM, " 0 | |||
| lv_num_days | TYPE SAPMPTKC_CAR-NUM_DAYS, " 365 | |||
| lv_st_reimb | TYPE SAPMPTKC_CAR-ST_REIMB, " 0 | |||
| lv_st_ch | TYPE SAPMPTKC_CAR-ST_CH1, " '1' | |||
| lv_reduce | TYPE SAPMPTKC_CAR-REDUCTION, " '0' | |||
| lv_show_log | TYPE C. " SPACE |
|   CALL FUNCTION 'HR_CA_CALC_STANDBY_BENEFIT' "Calculate standby charge for car taxable benefit, Canada |
| EXPORTING | ||
| P_DATE | = lv_p_date | |
| ST_OPT | = lv_st_opt | |
| AUTOCOST | = lv_autocost | |
| PERS_KM | = lv_pers_km | |
| NUM_DAYS | = lv_num_days | |
| ST_REIMB | = lv_st_reimb | |
| ST_CH | = lv_st_ch | |
| REDUCE | = lv_reduce | |
| SHOW_LOG | = lv_show_log | |
| IMPORTING | ||
| STANDBY | = lv_standby | |
| . " HR_CA_CALC_STANDBY_BENEFIT | ||
ABAP code using 7.40 inline data declarations to call FM HR_CA_CALC_STANDBY_BENEFIT
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 CHKDT FROM SAPMPTKC INTO @DATA(ld_p_date). | ||||
| DATA(ld_p_date) | = SY-DATUM. | |||
| "SELECT single STANDBY FROM SAPMPTKC_CAR INTO @DATA(ld_standby). | ||||
| "SELECT single ST_OPT1 FROM SAPMPTKC_CAR INTO @DATA(ld_st_opt). | ||||
| DATA(ld_st_opt) | = '1'. | |||
| "SELECT single AUTOCOST FROM SAPMPTKC_CAR INTO @DATA(ld_autocost). | ||||
| "SELECT single PERS_KM FROM SAPMPTKC_CAR INTO @DATA(ld_pers_km). | ||||
| "SELECT single NUM_DAYS FROM SAPMPTKC_CAR INTO @DATA(ld_num_days). | ||||
| DATA(ld_num_days) | = 365. | |||
| "SELECT single ST_REIMB FROM SAPMPTKC_CAR INTO @DATA(ld_st_reimb). | ||||
| "SELECT single ST_CH1 FROM SAPMPTKC_CAR INTO @DATA(ld_st_ch). | ||||
| DATA(ld_st_ch) | = '1'. | |||
| "SELECT single REDUCTION FROM SAPMPTKC_CAR INTO @DATA(ld_reduce). | ||||
| DATA(ld_reduce) | = '0'. | |||
| DATA(ld_show_log) | = ' '. | |||
Search for further information about these or an SAP related objects