SAP DARWIN_ABGRENZUNG_ERMITTELN Function Module for NOTRANSL: Darwin-Adapter für zeitliche Abgrenzung
DARWIN_ABGRENZUNG_ERMITTELN is a standard darwin abgrenzung ermitteln SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Darwin-Adapter für zeitliche Abgrenzung 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 darwin abgrenzung ermitteln FM, simply by entering the name DARWIN_ABGRENZUNG_ERMITTELN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FV9A
Program Name: SAPLFV9A
Main Program: SAPLFV9A
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function DARWIN_ABGRENZUNG_ERMITTELN 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 'DARWIN_ABGRENZUNG_ERMITTELN'"NOTRANSL: Darwin-Adapter für zeitliche Abgrenzung.
EXPORTING
BUKRS = "Company Code
* P_KURSBER = ' ' "Rate calculation indicator
* P_KZ_WAER = '2' "DE-EN-LANG-SWITCH-NO-TRANSLATION
RANTYP = "Application
* I_JORIG = '0' "Posting system indicator for borrower's note loans
* STICHINC = '1' "Inclusive indicator for beginning and end of a period
STICHTAG = "Key Date
* STICHULT = ' ' "Month-End Indicator for Value Date
* VERFAHREN = '1' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_BBEZUG = '0' "Nominal amount
* I_FLG_CONDENSE = ' ' "ABAP System Field: Obsolete
* I_FORMROUTINE = 'A' "ABAP System Field: Internal Use
* I_PROGRAMNAME = 'SAPLFV9A' "ABAP System Field: Internal Use
* I_SABGRENZ_DISA = ' ' "
* I_SABGRENZ_REST = ' ' "
* KZ_SIM = ' ' "Tax Code
* P_HANDELSPLATZ = ' ' "Exchange
TABLES
EFEHLER = "Transaction data - Planned and actual item
EZITI = "Transaction data - Planned and actual item
IZITI = "Transaction data - Planned and actual item
* ISTICH = "Key Date
EXCEPTIONS
NO_RECORD_FOUND_T001 = 1 NO_RECORD_FOUND_TZBZ = 2
IMPORTING Parameters details for DARWIN_ABGRENZUNG_ERMITTELN
BUKRS - Company Code
Data type: TZB06-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
P_KURSBER - Rate calculation indicator
Data type: TZBZ-RKURSBERDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_KZ_WAER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Default: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RANTYP - Application
Data type: TZB0A-RANTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_JORIG - Posting system indicator for borrower's note loans
Data type: BUCHSYSDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
STICHINC - Inclusive indicator for beginning and end of a period
Data type: VZZBEPP-SINCLDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
STICHTAG - Key Date
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
STICHULT - Month-End Indicator for Value Date
Data type: VZZBEPP-SVULTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
VERFAHREN - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BBEZUG - Nominal amount
Data type: VZZBEPP-BNWHRDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_CONDENSE - ABAP System Field: Obsolete
Data type: SY-MARKYDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FORMROUTINE - ABAP System Field: Internal Use
Data type: SY-XFORMDefault: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PROGRAMNAME - ABAP System Field: Internal Use
Data type: SY-XPROGDefault: 'SAPLFV9A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SABGRENZ_DISA -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SABGRENZ_REST -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
KZ_SIM - Tax Code
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_HANDELSPLATZ - Exchange
Data type: TZBZ-VVRHANDPLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DARWIN_ABGRENZUNG_ERMITTELN
EFEHLER - Transaction data - Planned and actual item
Data type: VZZBEPPOptional: No
Call by Reference: No ( called with pass by value option)
EZITI - Transaction data - Planned and actual item
Data type: VZZBEPPOptional: No
Call by Reference: No ( called with pass by value option)
IZITI - Transaction data - Planned and actual item
Data type: VZZBEPPOptional: No
Call by Reference: No ( called with pass by value option)
ISTICH - Key Date
Data type: VZZSTICHOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_RECORD_FOUND_T001 - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_RECORD_FOUND_TZBZ - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DARWIN_ABGRENZUNG_ERMITTELN 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 TZB06-BUKRS, " | |||
lt_efehler | TYPE STANDARD TABLE OF VZZBEPP, " | |||
lv_no_record_found_t001 | TYPE VZZBEPP, " | |||
lv_p_kursber | TYPE TZBZ-RKURSBER, " ' ' | |||
lv_p_kz_waer | TYPE TZBZ, " '2' | |||
lv_rantyp | TYPE TZB0A-RANTYP, " | |||
lv_i_jorig | TYPE BUCHSYS, " '0' | |||
lv_stichinc | TYPE VZZBEPP-SINCL, " '1' | |||
lv_stichtag | TYPE SY-DATUM, " | |||
lv_stichult | TYPE VZZBEPP-SVULT, " ' ' | |||
lv_verfahren | TYPE VZZBEPP, " '1' | |||
lt_eziti | TYPE STANDARD TABLE OF VZZBEPP, " | |||
lv_i_bbezug | TYPE VZZBEPP-BNWHR, " '0' | |||
lv_no_record_found_tzbz | TYPE VZZBEPP, " | |||
lt_iziti | TYPE STANDARD TABLE OF VZZBEPP, " | |||
lv_i_flg_condense | TYPE SY-MARKY, " ' ' | |||
lt_istich | TYPE STANDARD TABLE OF VZZSTICH, " | |||
lv_i_formroutine | TYPE SY-XFORM, " 'A' | |||
lv_i_programname | TYPE SY-XPROG, " 'SAPLFV9A' | |||
lv_i_sabgrenz_disa | TYPE SY, " ' ' | |||
lv_i_sabgrenz_rest | TYPE SY, " ' ' | |||
lv_kz_sim | TYPE SY, " ' ' | |||
lv_p_handelsplatz | TYPE TZBZ-VVRHANDPL. " ' ' |
  CALL FUNCTION 'DARWIN_ABGRENZUNG_ERMITTELN' "NOTRANSL: Darwin-Adapter für zeitliche Abgrenzung |
EXPORTING | ||
BUKRS | = lv_bukrs | |
P_KURSBER | = lv_p_kursber | |
P_KZ_WAER | = lv_p_kz_waer | |
RANTYP | = lv_rantyp | |
I_JORIG | = lv_i_jorig | |
STICHINC | = lv_stichinc | |
STICHTAG | = lv_stichtag | |
STICHULT | = lv_stichult | |
VERFAHREN | = lv_verfahren | |
I_BBEZUG | = lv_i_bbezug | |
I_FLG_CONDENSE | = lv_i_flg_condense | |
I_FORMROUTINE | = lv_i_formroutine | |
I_PROGRAMNAME | = lv_i_programname | |
I_SABGRENZ_DISA | = lv_i_sabgrenz_disa | |
I_SABGRENZ_REST | = lv_i_sabgrenz_rest | |
KZ_SIM | = lv_kz_sim | |
P_HANDELSPLATZ | = lv_p_handelsplatz | |
TABLES | ||
EFEHLER | = lt_efehler | |
EZITI | = lt_eziti | |
IZITI | = lt_iziti | |
ISTICH | = lt_istich | |
EXCEPTIONS | ||
NO_RECORD_FOUND_T001 = 1 | ||
NO_RECORD_FOUND_TZBZ = 2 | ||
. " DARWIN_ABGRENZUNG_ERMITTELN |
ABAP code using 7.40 inline data declarations to call FM DARWIN_ABGRENZUNG_ERMITTELN
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 TZB06 INTO @DATA(ld_bukrs). | ||||
"SELECT single RKURSBER FROM TZBZ INTO @DATA(ld_p_kursber). | ||||
DATA(ld_p_kursber) | = ' '. | |||
DATA(ld_p_kz_waer) | = '2'. | |||
"SELECT single RANTYP FROM TZB0A INTO @DATA(ld_rantyp). | ||||
DATA(ld_i_jorig) | = '0'. | |||
"SELECT single SINCL FROM VZZBEPP INTO @DATA(ld_stichinc). | ||||
DATA(ld_stichinc) | = '1'. | |||
"SELECT single DATUM FROM SY INTO @DATA(ld_stichtag). | ||||
"SELECT single SVULT FROM VZZBEPP INTO @DATA(ld_stichult). | ||||
DATA(ld_stichult) | = ' '. | |||
DATA(ld_verfahren) | = '1'. | |||
"SELECT single BNWHR FROM VZZBEPP INTO @DATA(ld_i_bbezug). | ||||
DATA(ld_i_bbezug) | = '0'. | |||
"SELECT single MARKY FROM SY INTO @DATA(ld_i_flg_condense). | ||||
DATA(ld_i_flg_condense) | = ' '. | |||
"SELECT single XFORM FROM SY INTO @DATA(ld_i_formroutine). | ||||
DATA(ld_i_formroutine) | = 'A'. | |||
"SELECT single XPROG FROM SY INTO @DATA(ld_i_programname). | ||||
DATA(ld_i_programname) | = 'SAPLFV9A'. | |||
DATA(ld_i_sabgrenz_disa) | = ' '. | |||
DATA(ld_i_sabgrenz_rest) | = ' '. | |||
DATA(ld_kz_sim) | = ' '. | |||
"SELECT single VVRHANDPL FROM TZBZ INTO @DATA(ld_p_handelsplatz). | ||||
DATA(ld_p_handelsplatz) | = ' '. | |||
Search for further information about these or an SAP related objects