FX_TERMIN_SCHNITTKURS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name FX_TERMIN_SCHNITTKURS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
TVBA
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'FX_TERMIN_SCHNITTKURS' "Schnittkurs eines Devisentermingeschäftes zu einem gegebenen Zeitpunkt
EXPORTING
abzins1 = " Abzinsungsfaktor für Währung 1
abzins2 = " Abzinsungsfaktor für Währung 2
* igkm1 = " jbd11-igkm
* igkm2 = " jbd11-igkm
* ifr1 = " jbd11-ifr
* ifr2 = " jbd11-ifr
* akt_datum = SY-DATUM " sy-datum aktuelles Datum
* ausw_datum = SY-DATUM " sy-datum Datum, zu dem der Schnitttkurs berechnet wird
spot = " Kassakurs am Auswertungsdatum
termin_stammdat = " jbrbest Stammdaten des Termingeschäftes
* i_mseg = " jbrmseg
IMPORTING
termin_schnittkurs = " Schnittkurs als Betrag für AUSW_DATUM
termin_waers = " vtvmethod-waers Währung des Schnittkurses
TABLES
termin_dat = " jbrbeweg Bewegungsdaten des Termingeschäftes
exposure_tab = " vtvcashfl
EXCEPTIONS
ERROR_CALCULATE_CURRENCY = 1 " Fehler bei Umrechnung Hauswährung -> Ges.währung
NO_TERMINDATA = 2 " keine Stammdaten des Termingeschäftes
PV_FACTOR_EQ_ZERO = 3 " Abzinsungfaktor ist 0
. " FX_TERMIN_SCHNITTKURS
The ABAP code below is a full code listing to execute function module FX_TERMIN_SCHNITTKURS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_termin_schnittkurs | TYPE STRING , |
| ld_termin_waers | TYPE VTVMETHOD-WAERS , |
| it_termin_dat | TYPE STANDARD TABLE OF JBRBEWEG,"TABLES PARAM |
| wa_termin_dat | LIKE LINE OF it_termin_dat , |
| it_exposure_tab | TYPE STANDARD TABLE OF VTVCASHFL,"TABLES PARAM |
| wa_exposure_tab | LIKE LINE OF it_exposure_tab . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_termin_schnittkurs | TYPE STRING , |
| ld_abzins1 | TYPE STRING , |
| it_termin_dat | TYPE STANDARD TABLE OF JBRBEWEG , |
| wa_termin_dat | LIKE LINE OF it_termin_dat, |
| ld_termin_waers | TYPE VTVMETHOD-WAERS , |
| ld_abzins2 | TYPE STRING , |
| it_exposure_tab | TYPE STANDARD TABLE OF VTVCASHFL , |
| wa_exposure_tab | LIKE LINE OF it_exposure_tab, |
| ld_igkm1 | TYPE JBD11-IGKM , |
| ld_igkm2 | TYPE JBD11-IGKM , |
| ld_ifr1 | TYPE JBD11-IFR , |
| ld_ifr2 | TYPE JBD11-IFR , |
| ld_akt_datum | TYPE SY-DATUM , |
| ld_ausw_datum | TYPE SY-DATUM , |
| ld_spot | TYPE STRING , |
| ld_termin_stammdat | TYPE JBRBEST , |
| ld_i_mseg | TYPE JBRMSEG . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FX_TERMIN_SCHNITTKURS or its description.
FX_TERMIN_SCHNITTKURS - Schnittkurs eines Devisentermingeschäftes zu einem gegebenen Zeitpunkt FX_TERMIN_METHODS - Steuerung des Terminmethodenrechners FX_TERMIN_BARWERT - Barwert eines Devisentermingeschäftes zu einem gegebenen Zeitpunkt FX_ORDER_CHECK - Prüfung, ob eine FX-Order für ein Szenario zu aktivieren ist FX_ORDER_ACTIVATE - r aufUmwandlung von FX-Orders in Vertrag TABLES :Auswertungen FX_OPTION_SCHNITTKURS - Barwert einer Devisenoption zu einem gegebenen Zeitpunkt