SAP GETTING_INTEREST_TO_DARWIN Function Module for Enter Data in the MZDAT File









GETTING_INTEREST_TO_DARWIN is a standard getting interest to darwin SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Enter Data in the MZDAT File 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 getting interest to darwin FM, simply by entering the name GETTING_INTEREST_TO_DARWIN into the relevant SAP transaction such as SE37 or SE38.

Function Group: FVV9
Program Name: SAPLFVV9
Main Program: SAPLFVV9
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function GETTING_INTEREST_TO_DARWIN 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 'GETTING_INTEREST_TO_DARWIN'"Enter Data in the MZDAT File
EXPORTING
* BUKRS = ' ' "
* WAERS = ' ' "Currency Key
* WZSBT = '0' "Interest Amount in Foreign Currency
* ZINKZ = ' ' "
* DBERBIS = SY-DATUM "'Calculation to' date
* XDVERBU = "Direkte Verbuchung, wenn Flag gesetzt
* DBUDAT = "Posting Date in the Document
* DFAELL = "Baseline Date for Due Date Calculation
* HWAERS = ' ' "Local Currency
* IDENT = 'ZI' "
* KUNNR = ' ' "Customer Number
* LAUFD = SY-DATUM "Date on Which the Program Is to Be Run
* LAUFI = ' ' "Additional Identification Characteristic
* MAHNN = '0' "Dunning Level
* VERTN = ' ' "Contract Number
* VERTT = ' ' "Contract Type

EXCEPTIONS
ERROR_IN_POSTING = 1
.



IMPORTING Parameters details for GETTING_INTEREST_TO_DARWIN

BUKRS -

Data type: BSEG-BUKRS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WAERS - Currency Key

Data type: BKPF-WAERS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WZSBT - Interest Amount in Foreign Currency

Data type: MHND-WZSBT
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ZINKZ -

Data type: BSEG-ZINKZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DBERBIS - 'Calculation to' date

Data type: DBERBIS
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

XDVERBU - Direkte Verbuchung, wenn Flag gesetzt

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

DBUDAT - Posting Date in the Document

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

DFAELL - Baseline Date for Due Date Calculation

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

HWAERS - Local Currency

Data type: T001-WAERS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IDENT -

Data type: MZDAT-IDENT
Default: 'ZI'
Optional: Yes
Call by Reference: No ( called with pass by value option)

KUNNR - Customer Number

Data type: KNA1-KUNNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LAUFD - Date on Which the Program Is to Be Run

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

LAUFI - Additional Identification Characteristic

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAHNN - Dunning Level

Data type: BSEG-MANST
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

VERTN - Contract Number

Data type: BSEG-VERTN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

VERTT - Contract Type

Data type: BSEG-VERTT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ERROR_IN_POSTING - Error During Insertion Into MZDAT

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

Copy and paste ABAP code example for GETTING_INTEREST_TO_DARWIN 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_bukrs  TYPE BSEG-BUKRS, "   SPACE
lv_error_in_posting  TYPE BSEG, "   
lv_waers  TYPE BKPF-WAERS, "   SPACE
lv_wzsbt  TYPE MHND-WZSBT, "   '0'
lv_zinkz  TYPE BSEG-ZINKZ, "   SPACE
lv_dberbis  TYPE DBERBIS, "   SY-DATUM
lv_xdverbu  TYPE C, "   
lv_dbudat  TYPE BKPF-BUDAT, "   
lv_dfaell  TYPE BSEG-ZFBDT, "   
lv_hwaers  TYPE T001-WAERS, "   SPACE
lv_ident  TYPE MZDAT-IDENT, "   'ZI'
lv_kunnr  TYPE KNA1-KUNNR, "   SPACE
lv_laufd  TYPE SY-DATUM, "   SY-DATUM
lv_laufi  TYPE SY, "   SPACE
lv_mahnn  TYPE BSEG-MANST, "   '0'
lv_vertn  TYPE BSEG-VERTN, "   SPACE
lv_vertt  TYPE BSEG-VERTT. "   SPACE

  CALL FUNCTION 'GETTING_INTEREST_TO_DARWIN'  "Enter Data in the MZDAT File
    EXPORTING
         BUKRS = lv_bukrs
         WAERS = lv_waers
         WZSBT = lv_wzsbt
         ZINKZ = lv_zinkz
         DBERBIS = lv_dberbis
         XDVERBU = lv_xdverbu
         DBUDAT = lv_dbudat
         DFAELL = lv_dfaell
         HWAERS = lv_hwaers
         IDENT = lv_ident
         KUNNR = lv_kunnr
         LAUFD = lv_laufd
         LAUFI = lv_laufi
         MAHNN = lv_mahnn
         VERTN = lv_vertn
         VERTT = lv_vertt
    EXCEPTIONS
        ERROR_IN_POSTING = 1
. " GETTING_INTEREST_TO_DARWIN




ABAP code using 7.40 inline data declarations to call FM GETTING_INTEREST_TO_DARWIN

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 BUKRS FROM BSEG INTO @DATA(ld_bukrs).
DATA(ld_bukrs) = ' '.
 
 
"SELECT single WAERS FROM BKPF INTO @DATA(ld_waers).
DATA(ld_waers) = ' '.
 
"SELECT single WZSBT FROM MHND INTO @DATA(ld_wzsbt).
DATA(ld_wzsbt) = '0'.
 
"SELECT single ZINKZ FROM BSEG INTO @DATA(ld_zinkz).
DATA(ld_zinkz) = ' '.
 
DATA(ld_dberbis) = SY-DATUM.
 
 
"SELECT single BUDAT FROM BKPF INTO @DATA(ld_dbudat).
 
"SELECT single ZFBDT FROM BSEG INTO @DATA(ld_dfaell).
 
"SELECT single WAERS FROM T001 INTO @DATA(ld_hwaers).
DATA(ld_hwaers) = ' '.
 
"SELECT single IDENT FROM MZDAT INTO @DATA(ld_ident).
DATA(ld_ident) = 'ZI'.
 
"SELECT single KUNNR FROM KNA1 INTO @DATA(ld_kunnr).
DATA(ld_kunnr) = ' '.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_laufd).
DATA(ld_laufd) = SY-DATUM.
 
DATA(ld_laufi) = ' '.
 
"SELECT single MANST FROM BSEG INTO @DATA(ld_mahnn).
DATA(ld_mahnn) = '0'.
 
"SELECT single VERTN FROM BSEG INTO @DATA(ld_vertn).
DATA(ld_vertn) = ' '.
 
"SELECT single VERTT FROM BSEG INTO @DATA(ld_vertt).
DATA(ld_vertt) = ' '.
 


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!