SAP HR_QUOTA_COMPENSATION_REMOTE Function Module for Update employee's quota compensation - infotype 0416
HR_QUOTA_COMPENSATION_REMOTE is a standard hr quota compensation remote SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update employee's quota compensation - infotype 0416 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 quota compensation remote FM, simply by entering the name HR_QUOTA_COMPENSATION_REMOTE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRUPBSRP
Program Name: SAPLHRUPBSRP
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function HR_QUOTA_COMPENSATION_REMOTE 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_QUOTA_COMPENSATION_REMOTE'"Update employee's quota compensation - infotype 0416.
EXPORTING
INFTY = "Infotype
OPERATION = "Infotype operation
* TCLAS = 'A' "Transaction class for data storage
* DIALOG_MODE = '0' "Single-character flag
* NOCOMMIT = "COMMIT control at BAPI interface
* VIEW_IDENTIFIER = "Infotype view indicator
NUMBER = "Personnel Number
* SUBTYPE = "Subtype
* OBJECTID = "Object Identification
* LOCKINDICATOR = "Lock Indicator for HR Master Data Record
* VALIDITYEND = "End Date
* VALIDITYBEGIN = "Start Date
* RECORDNUMBER = "Number of Infotype Record With Same Key
RECORD = "HR Time Record: Infotype 2013 (Quota Corrections)
IMPORTING
RETURN = "Return Parameter
KEY = "Key for HR Master Data
IMPORTING Parameters details for HR_QUOTA_COMPENSATION_REMOTE
INFTY - Infotype
Data type: PRELP-INFTYOptional: No
Call by Reference: No ( called with pass by value option)
OPERATION - Infotype operation
Data type: PSPAR-ACTIOOptional: No
Call by Reference: No ( called with pass by value option)
TCLAS - Transaction class for data storage
Data type: PSPAR-TCLASDefault: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DIALOG_MODE - Single-character flag
Data type: CHAR1Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
NOCOMMIT - COMMIT control at BAPI interface
Data type: BAPI_STAND-NO_COMMITOptional: Yes
Call by Reference: No ( called with pass by value option)
VIEW_IDENTIFIER - Infotype view indicator
Data type: P0003-VIEKNOptional: Yes
Call by Reference: No ( called with pass by value option)
NUMBER - Personnel Number
Data type: P0001-PERNROptional: No
Call by Reference: No ( called with pass by value option)
SUBTYPE - Subtype
Data type: P0001-SUBTYOptional: Yes
Call by Reference: No ( called with pass by value option)
OBJECTID - Object Identification
Data type: P0001-OBJPSOptional: Yes
Call by Reference: No ( called with pass by value option)
LOCKINDICATOR - Lock Indicator for HR Master Data Record
Data type: P0001-SPRPSOptional: Yes
Call by Reference: No ( called with pass by value option)
VALIDITYEND - End Date
Data type: P0001-ENDDAOptional: Yes
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN - Start Date
Data type: P0001-BEGDAOptional: Yes
Call by Reference: No ( called with pass by value option)
RECORDNUMBER - Number of Infotype Record With Same Key
Data type: P0001-SEQNROptional: Yes
Call by Reference: No ( called with pass by value option)
RECORD - HR Time Record: Infotype 2013 (Quota Corrections)
Data type: P0416Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_QUOTA_COMPENSATION_REMOTE
RETURN - Return Parameter
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
KEY - Key for HR Master Data
Data type: BAPIPAKEYOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_QUOTA_COMPENSATION_REMOTE 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_infty | TYPE PRELP-INFTY, " | |||
| lv_return | TYPE BAPIRETURN1, " | |||
| lv_operation | TYPE PSPAR-ACTIO, " | |||
| lv_tclas | TYPE PSPAR-TCLAS, " 'A' | |||
| lv_dialog_mode | TYPE CHAR1, " '0' | |||
| lv_nocommit | TYPE BAPI_STAND-NO_COMMIT, " | |||
| lv_view_identifier | TYPE P0003-VIEKN, " | |||
| lv_key | TYPE BAPIPAKEY, " | |||
| lv_number | TYPE P0001-PERNR, " | |||
| lv_subtype | TYPE P0001-SUBTY, " | |||
| lv_objectid | TYPE P0001-OBJPS, " | |||
| lv_lockindicator | TYPE P0001-SPRPS, " | |||
| lv_validityend | TYPE P0001-ENDDA, " | |||
| lv_validitybegin | TYPE P0001-BEGDA, " | |||
| lv_recordnumber | TYPE P0001-SEQNR, " | |||
| lv_record | TYPE P0416. " |
|   CALL FUNCTION 'HR_QUOTA_COMPENSATION_REMOTE' "Update employee's quota compensation - infotype 0416 |
| EXPORTING | ||
| INFTY | = lv_infty | |
| OPERATION | = lv_operation | |
| TCLAS | = lv_tclas | |
| DIALOG_MODE | = lv_dialog_mode | |
| NOCOMMIT | = lv_nocommit | |
| VIEW_IDENTIFIER | = lv_view_identifier | |
| NUMBER | = lv_number | |
| SUBTYPE | = lv_subtype | |
| OBJECTID | = lv_objectid | |
| LOCKINDICATOR | = lv_lockindicator | |
| VALIDITYEND | = lv_validityend | |
| VALIDITYBEGIN | = lv_validitybegin | |
| RECORDNUMBER | = lv_recordnumber | |
| RECORD | = lv_record | |
| IMPORTING | ||
| RETURN | = lv_return | |
| KEY | = lv_key | |
| . " HR_QUOTA_COMPENSATION_REMOTE | ||
ABAP code using 7.40 inline data declarations to call FM HR_QUOTA_COMPENSATION_REMOTE
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 INFTY FROM PRELP INTO @DATA(ld_infty). | ||||
| "SELECT single ACTIO FROM PSPAR INTO @DATA(ld_operation). | ||||
| "SELECT single TCLAS FROM PSPAR INTO @DATA(ld_tclas). | ||||
| DATA(ld_tclas) | = 'A'. | |||
| DATA(ld_dialog_mode) | = '0'. | |||
| "SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit). | ||||
| "SELECT single VIEKN FROM P0003 INTO @DATA(ld_view_identifier). | ||||
| "SELECT single PERNR FROM P0001 INTO @DATA(ld_number). | ||||
| "SELECT single SUBTY FROM P0001 INTO @DATA(ld_subtype). | ||||
| "SELECT single OBJPS FROM P0001 INTO @DATA(ld_objectid). | ||||
| "SELECT single SPRPS FROM P0001 INTO @DATA(ld_lockindicator). | ||||
| "SELECT single ENDDA FROM P0001 INTO @DATA(ld_validityend). | ||||
| "SELECT single BEGDA FROM P0001 INTO @DATA(ld_validitybegin). | ||||
| "SELECT single SEQNR FROM P0001 INTO @DATA(ld_recordnumber). | ||||
Search for further information about these or an SAP related objects