SAP RECP_ESR_DETERMINATION Function Module for ISR Determination for Invoice Printing RE
RECP_ESR_DETERMINATION is a standard recp esr determination SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for ISR Determination for Invoice Printing RE 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 recp esr determination FM, simply by entering the name RECP_ESR_DETERMINATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: RECP_ESR
Program Name: SAPLRECP_ESR
Main Program: SAPLRECP_ESR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RECP_ESR_DETERMINATION 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 'RECP_ESR_DETERMINATION'"ISR Determination for Invoice Printing RE.
EXPORTING
P_BELNR = "Accounting Document Number
P_BETRAG = "Net Value in Document Currency
* P_BUKRS = 0001 "Company Code
P_KUNDNR = "Payer
P_ZFBDT = "Baseline Date for Due Date Calculation
P_INTRENO = "Internal Key for Real Estate Object
IMPORTING
ESR_NR = "Line of Code
FLE_VZCHESR = "Transfer Structure for ISR Data
EXCEPTIONS
ABORT = 1 ERROR = 2 WARNING = 3
IMPORTING Parameters details for RECP_ESR_DETERMINATION
P_BELNR - Accounting Document Number
Data type: VBRK-BELNROptional: No
Call by Reference: No ( called with pass by value option)
P_BETRAG - Net Value in Document Currency
Data type: KOMK-FKWRTOptional: No
Call by Reference: No ( called with pass by value option)
P_BUKRS - Company Code
Data type: BUKRSDefault: 0001
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_KUNDNR - Payer
Data type: VBDKR-KUNRGOptional: No
Call by Reference: No ( called with pass by value option)
P_ZFBDT - Baseline Date for Due Date Calculation
Data type: BSID-ZFBDTOptional: No
Call by Reference: No ( called with pass by value option)
P_INTRENO - Internal Key for Real Estate Object
Data type: VIMI01-INTRENOOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RECP_ESR_DETERMINATION
ESR_NR - Line of Code
Data type: VZCHESR-VZKODZOptional: No
Call by Reference: No ( called with pass by value option)
FLE_VZCHESR - Transfer Structure for ISR Data
Data type: VZCHESROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ABORT -
Data type:Optional: No
Call by Reference: Yes
ERROR - ISR Could Not Be Created
Data type:Optional: No
Call by Reference: Yes
WARNING - ISR is not complete
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RECP_ESR_DETERMINATION 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_abort | TYPE STRING, " | |||
| lv_esr_nr | TYPE VZCHESR-VZKODZ, " | |||
| lv_p_belnr | TYPE VBRK-BELNR, " | |||
| lv_error | TYPE VBRK, " | |||
| lv_p_betrag | TYPE KOMK-FKWRT, " | |||
| lv_fle_vzchesr | TYPE VZCHESR, " | |||
| lv_p_bukrs | TYPE BUKRS, " 0001 | |||
| lv_warning | TYPE BUKRS, " | |||
| lv_p_kundnr | TYPE VBDKR-KUNRG, " | |||
| lv_p_zfbdt | TYPE BSID-ZFBDT, " | |||
| lv_p_intreno | TYPE VIMI01-INTRENO. " |
|   CALL FUNCTION 'RECP_ESR_DETERMINATION' "ISR Determination for Invoice Printing RE |
| EXPORTING | ||
| P_BELNR | = lv_p_belnr | |
| P_BETRAG | = lv_p_betrag | |
| P_BUKRS | = lv_p_bukrs | |
| P_KUNDNR | = lv_p_kundnr | |
| P_ZFBDT | = lv_p_zfbdt | |
| P_INTRENO | = lv_p_intreno | |
| IMPORTING | ||
| ESR_NR | = lv_esr_nr | |
| FLE_VZCHESR | = lv_fle_vzchesr | |
| EXCEPTIONS | ||
| ABORT = 1 | ||
| ERROR = 2 | ||
| WARNING = 3 | ||
| . " RECP_ESR_DETERMINATION | ||
ABAP code using 7.40 inline data declarations to call FM RECP_ESR_DETERMINATION
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 VZKODZ FROM VZCHESR INTO @DATA(ld_esr_nr). | ||||
| "SELECT single BELNR FROM VBRK INTO @DATA(ld_p_belnr). | ||||
| "SELECT single FKWRT FROM KOMK INTO @DATA(ld_p_betrag). | ||||
| DATA(ld_p_bukrs) | = 0001. | |||
| "SELECT single KUNRG FROM VBDKR INTO @DATA(ld_p_kundnr). | ||||
| "SELECT single ZFBDT FROM BSID INTO @DATA(ld_p_zfbdt). | ||||
| "SELECT single INTRENO FROM VIMI01 INTO @DATA(ld_p_intreno). | ||||
Search for further information about these or an SAP related objects