SAP HR_DON_REQUEST Function Module for









HR_DON_REQUEST is a standard hr don request 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 hr don request FM, simply by entering the name HR_DON_REQUEST into the relevant SAP transaction such as SE37 or SE38.

Function Group: PDON_KR
Program Name: SAPLPDON_KR
Main Program: SAPLPDON_KR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function HR_DON_REQUEST 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_DON_REQUEST'"
EXPORTING
EMPLOYEENUMBER = "Personnel Number
* DONATIONRECEIPTNUMBER = "Donation receipt serial number
* FLNTS = "Flag for NTS data or others
* NOCOMMIT = "COMMIT control at BAPI interface
VALIDITYBEGIN = "Start Date
VALIDITYEND = "End Date
DONATIONCODE = "Subtype
* DONUMBIZNUMBER = "Biz number of donation company
* DONATIONNAME = "Name of donation company
* DONATIONCOUNT = "Count for donation expense
* DONATIONAMOUNT = "Amount for donation expense
* DONATIONCURRENCY = "Donation expense currency

IMPORTING
RETURN = "Return Parameter
EMPLOYEENUMBER = "Personnel Number
SUBTYPE = "Subtype
OBJECTID = "Object Identification
LOCKINDICATOR = "Lock Indicator for HR Master Data Record
VALIDITYBEGIN = "Start Date
VALIDITYEND = "End Date
RECORDNUMBER = "Number of Infotype Record With Same Key
.



IMPORTING Parameters details for HR_DON_REQUEST

EMPLOYEENUMBER - Personnel Number

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

DONATIONRECEIPTNUMBER - Donation receipt serial number

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

FLNTS - Flag for NTS data or others

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

NOCOMMIT - COMMIT control at BAPI interface

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

VALIDITYBEGIN - Start Date

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

VALIDITYEND - End Date

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

DONATIONCODE - Subtype

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

DONUMBIZNUMBER - Biz number of donation company

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

DONATIONNAME - Name of donation company

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

DONATIONCOUNT - Count for donation expense

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

DONATIONAMOUNT - Amount for donation expense

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

DONATIONCURRENCY - Donation expense currency

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

EXPORTING Parameters details for HR_DON_REQUEST

RETURN - Return Parameter

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

EMPLOYEENUMBER - Personnel Number

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

SUBTYPE - Subtype

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

OBJECTID - Object Identification

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

LOCKINDICATOR - Lock Indicator for HR Master Data Record

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

VALIDITYBEGIN - Start Date

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

VALIDITYEND - End Date

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

RECORDNUMBER - Number of Infotype Record With Same Key

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

Copy and paste ABAP code example for HR_DON_REQUEST 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_return  TYPE BAPIRETURN1, "   
lv_employeenumber  TYPE P41_P0858-PERNR, "   
lv_donationreceiptnumber  TYPE P41_P0858-DONATIONRECEIPTNUMBER, "   
lv_flnts  TYPE P41_P0858-FLNTS, "   
lv_nocommit  TYPE BAPI_STAND-NO_COMMIT, "   
lv_validitybegin  TYPE P41_P0858-BEGDA, "   
lv_employeenumber  TYPE P41_P0858-PERNR, "   
lv_subtype  TYPE P41_P0858-SUBTY, "   
lv_validityend  TYPE P41_P0858-ENDDA, "   
lv_objectid  TYPE P41_P0858-OBJPS, "   
lv_donationcode  TYPE P41_P0858-SUBTY, "   
lv_lockindicator  TYPE P41_P0858-SPRPS, "   
lv_donumbiznumber  TYPE P41_P0858-DONUMBIZNUMBER, "   
lv_donationname  TYPE P41_P0858-DONATIONNAME, "   
lv_validitybegin  TYPE P41_P0858-BEGDA, "   
lv_validityend  TYPE P41_P0858-ENDDA, "   
lv_donationcount  TYPE P41_P0858-DONATIONCOUNT, "   
lv_recordnumber  TYPE P41_P0858-SEQNR, "   
lv_donationamount  TYPE P41_P0858-DONATIONAMOUNT, "   
lv_donationcurrency  TYPE P41_P0858-DONATIONCURRENCY. "   

  CALL FUNCTION 'HR_DON_REQUEST'  "
    EXPORTING
         EMPLOYEENUMBER = lv_employeenumber
         DONATIONRECEIPTNUMBER = lv_donationreceiptnumber
         FLNTS = lv_flnts
         NOCOMMIT = lv_nocommit
         VALIDITYBEGIN = lv_validitybegin
         VALIDITYEND = lv_validityend
         DONATIONCODE = lv_donationcode
         DONUMBIZNUMBER = lv_donumbiznumber
         DONATIONNAME = lv_donationname
         DONATIONCOUNT = lv_donationcount
         DONATIONAMOUNT = lv_donationamount
         DONATIONCURRENCY = lv_donationcurrency
    IMPORTING
         RETURN = lv_return
         EMPLOYEENUMBER = lv_employeenumber
         SUBTYPE = lv_subtype
         OBJECTID = lv_objectid
         LOCKINDICATOR = lv_lockindicator
         VALIDITYBEGIN = lv_validitybegin
         VALIDITYEND = lv_validityend
         RECORDNUMBER = lv_recordnumber
. " HR_DON_REQUEST




ABAP code using 7.40 inline data declarations to call FM HR_DON_REQUEST

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 PERNR FROM P41_P0858 INTO @DATA(ld_employeenumber).
 
"SELECT single DONATIONRECEIPTNUMBER FROM P41_P0858 INTO @DATA(ld_donationreceiptnumber).
 
"SELECT single FLNTS FROM P41_P0858 INTO @DATA(ld_flnts).
 
"SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit).
 
"SELECT single BEGDA FROM P41_P0858 INTO @DATA(ld_validitybegin).
 
"SELECT single PERNR FROM P41_P0858 INTO @DATA(ld_employeenumber).
 
"SELECT single SUBTY FROM P41_P0858 INTO @DATA(ld_subtype).
 
"SELECT single ENDDA FROM P41_P0858 INTO @DATA(ld_validityend).
 
"SELECT single OBJPS FROM P41_P0858 INTO @DATA(ld_objectid).
 
"SELECT single SUBTY FROM P41_P0858 INTO @DATA(ld_donationcode).
 
"SELECT single SPRPS FROM P41_P0858 INTO @DATA(ld_lockindicator).
 
"SELECT single DONUMBIZNUMBER FROM P41_P0858 INTO @DATA(ld_donumbiznumber).
 
"SELECT single DONATIONNAME FROM P41_P0858 INTO @DATA(ld_donationname).
 
"SELECT single BEGDA FROM P41_P0858 INTO @DATA(ld_validitybegin).
 
"SELECT single ENDDA FROM P41_P0858 INTO @DATA(ld_validityend).
 
"SELECT single DONATIONCOUNT FROM P41_P0858 INTO @DATA(ld_donationcount).
 
"SELECT single SEQNR FROM P41_P0858 INTO @DATA(ld_recordnumber).
 
"SELECT single DONATIONAMOUNT FROM P41_P0858 INTO @DATA(ld_donationamount).
 
"SELECT single DONATIONCURRENCY FROM P41_P0858 INTO @DATA(ld_donationcurrency).
 


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!