SAP ABRECHNUNGSPERIODE_ZU_DATUM Function Module for
ABRECHNUNGSPERIODE_ZU_DATUM is a standard abrechnungsperiode zu datum SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 abrechnungsperiode zu datum FM, simply by entering the name ABRECHNUNGSPERIODE_ZU_DATUM into the relevant SAP transaction such as SE37 or SE38.
Function Group: FIAP
Program Name: SAPLFIAP
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ABRECHNUNGSPERIODE_ZU_DATUM 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 'ABRECHNUNGSPERIODE_ZU_DATUM'".
EXPORTING
* ABRECHVARIANTE = ' ' "
* ABREINH_NICHT_PRUEFEN = ' ' "
BUKRS = "
WIRTSCHAFTEINHEIT = "
NEBENKOSTENSCHL = "
EMPFAENGERSCHL = "
DATUM = "
* I_VIAK03 = "
IMPORTING
ABRECHNUNGSPER = "
TABLES
ABRVARIANTEN = "
EXCEPTIONS
ABREINHEIT_BEFRISTET = 1 ABREINHEIT_UNBEKANNT = 2 KEINE_GUELTIGE_ABRPER = 3 UNGUELTIGES_ABRJAHR = 4
IMPORTING Parameters details for ABRECHNUNGSPERIODE_ZU_DATUM
ABRECHVARIANTE -
Data type: VIAK04Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ABREINH_NICHT_PRUEFEN -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BUKRS -
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
WIRTSCHAFTEINHEIT -
Data type: VIAK04-SWENROptional: No
Call by Reference: No ( called with pass by value option)
NEBENKOSTENSCHL -
Data type: VIAK04-SNKSLOptional: No
Call by Reference: No ( called with pass by value option)
EMPFAENGERSCHL -
Data type: VIAK04-SEMPSLOptional: No
Call by Reference: No ( called with pass by value option)
DATUM -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
I_VIAK03 -
Data type: VIAK03Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ABRECHNUNGSPERIODE_ZU_DATUM
ABRECHNUNGSPER -
Data type: RF60BAPEROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ABRECHNUNGSPERIODE_ZU_DATUM
ABRVARIANTEN -
Data type: VIAK04Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ABREINHEIT_BEFRISTET -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ABREINHEIT_UNBEKANNT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KEINE_GUELTIGE_ABRPER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNGUELTIGES_ABRJAHR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ABRECHNUNGSPERIODE_ZU_DATUM 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: | ||||
| lt_abrvarianten | TYPE STANDARD TABLE OF VIAK04, " | |||
| lv_abrechnungsper | TYPE RF60BAPER, " | |||
| lv_abrechvariante | TYPE VIAK04, " SPACE | |||
| lv_abreinheit_befristet | TYPE VIAK04, " | |||
| lv_abreinheit_unbekannt | TYPE VIAK04, " | |||
| lv_abreinh_nicht_pruefen | TYPE VIAK04, " SPACE | |||
| lv_bukrs | TYPE T001-BUKRS, " | |||
| lv_keine_gueltige_abrper | TYPE T001, " | |||
| lv_wirtschafteinheit | TYPE VIAK04-SWENR, " | |||
| lv_ungueltiges_abrjahr | TYPE VIAK04, " | |||
| lv_nebenkostenschl | TYPE VIAK04-SNKSL, " | |||
| lv_empfaengerschl | TYPE VIAK04-SEMPSL, " | |||
| lv_datum | TYPE SY-DATUM, " | |||
| lv_i_viak03 | TYPE VIAK03. " |
|   CALL FUNCTION 'ABRECHNUNGSPERIODE_ZU_DATUM' " |
| EXPORTING | ||
| ABRECHVARIANTE | = lv_abrechvariante | |
| ABREINH_NICHT_PRUEFEN | = lv_abreinh_nicht_pruefen | |
| BUKRS | = lv_bukrs | |
| WIRTSCHAFTEINHEIT | = lv_wirtschafteinheit | |
| NEBENKOSTENSCHL | = lv_nebenkostenschl | |
| EMPFAENGERSCHL | = lv_empfaengerschl | |
| DATUM | = lv_datum | |
| I_VIAK03 | = lv_i_viak03 | |
| IMPORTING | ||
| ABRECHNUNGSPER | = lv_abrechnungsper | |
| TABLES | ||
| ABRVARIANTEN | = lt_abrvarianten | |
| EXCEPTIONS | ||
| ABREINHEIT_BEFRISTET = 1 | ||
| ABREINHEIT_UNBEKANNT = 2 | ||
| KEINE_GUELTIGE_ABRPER = 3 | ||
| UNGUELTIGES_ABRJAHR = 4 | ||
| . " ABRECHNUNGSPERIODE_ZU_DATUM | ||
ABAP code using 7.40 inline data declarations to call FM ABRECHNUNGSPERIODE_ZU_DATUM
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_abrechvariante) | = ' '. | |||
| DATA(ld_abreinh_nicht_pruefen) | = ' '. | |||
| "SELECT single BUKRS FROM T001 INTO @DATA(ld_bukrs). | ||||
| "SELECT single SWENR FROM VIAK04 INTO @DATA(ld_wirtschafteinheit). | ||||
| "SELECT single SNKSL FROM VIAK04 INTO @DATA(ld_nebenkostenschl). | ||||
| "SELECT single SEMPSL FROM VIAK04 INTO @DATA(ld_empfaengerschl). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_datum). | ||||
Search for further information about these or an SAP related objects