SAP FVD_ESR_DETERMINATION Function Module for CML: Format T049E and Data for Inpayment Slip
FVD_ESR_DETERMINATION is a standard fvd 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 CML: Format T049E and Data for Inpayment Slip 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 fvd esr determination FM, simply by entering the name FVD_ESR_DETERMINATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_ESR
Program Name: SAPLFVD_ESR
Main Program: SAPLFVD_ESR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_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 'FVD_ESR_DETERMINATION'"CML: Format T049E and Data for Inpayment Slip.
EXPORTING
* P_BELNR = "Accounting Document Number
* P_BETRAG = "Net Value in Document Currency
P_BUKRS = "Company Code
* ID_LAND1 = "Country Key
* P_KUNDNR = "Payer/ee
* ID_SRECHNGJAHR = "Calendar Year of the Invoice Number
* ID_RANTYP = '1' "Contract Type
* IF_JUST_T049E = ' ' "
IMPORTING
FLE_VZCHESR = "POR help structure
ES_BNKA = "Bank Master Record
ES_T049E = "Control Data for Swiss ISR Procedure
EXCEPTIONS
ABORT = 1 ERROR = 2 WARNING = 3
IMPORTING Parameters details for FVD_ESR_DETERMINATION
P_BELNR - Accounting Document Number
Data type: BELNR_DOptional: Yes
Call by Reference: No ( called with pass by value option)
P_BETRAG - Net Value in Document Currency
Data type: NETWROptional: Yes
Call by Reference: No ( called with pass by value option)
P_BUKRS - Company Code
Data type: BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
ID_LAND1 - Country Key
Data type: LAND1Optional: Yes
Call by Reference: Yes
P_KUNDNR - Payer/ee
Data type: KUNRGOptional: Yes
Call by Reference: No ( called with pass by value option)
ID_SRECHNGJAHR - Calendar Year of the Invoice Number
Data type: VVRECHNGJAHROptional: Yes
Call by Reference: Yes
ID_RANTYP - Contract Type
Data type: RANTYPDefault: '1'
Optional: Yes
Call by Reference: Yes
IF_JUST_T049E -
Data type: ABAP_BOOLDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FVD_ESR_DETERMINATION
FLE_VZCHESR - POR help structure
Data type: VZCHESROptional: No
Call by Reference: No ( called with pass by value option)
ES_BNKA - Bank Master Record
Data type: BNKAOptional: No
Call by Reference: Yes
ES_T049E - Control Data for Swiss ISR Procedure
Data type: T049EOptional: No
Call by Reference: Yes
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 FVD_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_p_belnr | TYPE BELNR_D, " | |||
| lv_fle_vzchesr | TYPE VZCHESR, " | |||
| lv_error | TYPE VZCHESR, " | |||
| lv_es_bnka | TYPE BNKA, " | |||
| lv_p_betrag | TYPE NETWR, " | |||
| lv_p_bukrs | TYPE BUKRS, " | |||
| lv_warning | TYPE BUKRS, " | |||
| lv_es_t049e | TYPE T049E, " | |||
| lv_id_land1 | TYPE LAND1, " | |||
| lv_p_kundnr | TYPE KUNRG, " | |||
| lv_id_srechngjahr | TYPE VVRECHNGJAHR, " | |||
| lv_id_rantyp | TYPE RANTYP, " '1' | |||
| lv_if_just_t049e | TYPE ABAP_BOOL. " ' ' |
|   CALL FUNCTION 'FVD_ESR_DETERMINATION' "CML: Format T049E and Data for Inpayment Slip |
| EXPORTING | ||
| P_BELNR | = lv_p_belnr | |
| P_BETRAG | = lv_p_betrag | |
| P_BUKRS | = lv_p_bukrs | |
| ID_LAND1 | = lv_id_land1 | |
| P_KUNDNR | = lv_p_kundnr | |
| ID_SRECHNGJAHR | = lv_id_srechngjahr | |
| ID_RANTYP | = lv_id_rantyp | |
| IF_JUST_T049E | = lv_if_just_t049e | |
| IMPORTING | ||
| FLE_VZCHESR | = lv_fle_vzchesr | |
| ES_BNKA | = lv_es_bnka | |
| ES_T049E | = lv_es_t049e | |
| EXCEPTIONS | ||
| ABORT = 1 | ||
| ERROR = 2 | ||
| WARNING = 3 | ||
| . " FVD_ESR_DETERMINATION | ||
ABAP code using 7.40 inline data declarations to call FM FVD_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.| DATA(ld_id_rantyp) | = '1'. | |||
| DATA(ld_if_just_t049e) | = ' '. | |||
Search for further information about these or an SAP related objects