SAP EWU_CUSTOMER Function Module for NOTRANSL: Aufruf des Reports zur Euro-Umstellung
EWU_CUSTOMER is a standard ewu customer 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: Aufruf des Reports zur Euro-Umstellung 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 ewu customer FM, simply by entering the name EWU_CUSTOMER into the relevant SAP transaction such as SE37 or SE38.
Function Group: LC02
Program Name: SAPLLC02
Main Program:
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EWU_CUSTOMER 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 'EWU_CUSTOMER'"NOTRANSL: Aufruf des Reports zur Euro-Umstellung.
EXPORTING
* WAERSOLD = "DE-EN-LANG-SWITCH-NO-TRANSLATION
WAERSNEW = "New currency
* NO_CHGDOC = "Deactivate change documents
* KNVV_GELESEN = "DE-EN-LANG-SWITCH-NO-TRANSLATION
TABLES
* CUSTOMER = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* XKNVV = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
KEINE_DEBITOREN = 1 KEINE_BERECHTIGUNG = 2 KEINE_SPERRE = 3 KEINE_AENDERUNG = 4
IMPORTING Parameters details for EWU_CUSTOMER
WAERSOLD - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: KNVV-WAERSOptional: Yes
Call by Reference: No ( called with pass by value option)
WAERSNEW - New currency
Data type: KNVV-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
NO_CHGDOC - Deactivate change documents
Data type: RVDEB-CHDDEOptional: Yes
Call by Reference: No ( called with pass by value option)
KNVV_GELESEN - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: SY-INPUTOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EWU_CUSTOMER
CUSTOMER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: EWU_WAERS_0603Optional: Yes
Call by Reference: No ( called with pass by value option)
XKNVV - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: KNVVOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
KEINE_DEBITOREN - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KEINE_BERECHTIGUNG - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KEINE_SPERRE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KEINE_AENDERUNG - 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 EWU_CUSTOMER 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_customer | TYPE STANDARD TABLE OF EWU_WAERS_0603, " | |||
| lv_waersold | TYPE KNVV-WAERS, " | |||
| lv_keine_debitoren | TYPE KNVV, " | |||
| lt_xknvv | TYPE STANDARD TABLE OF KNVV, " | |||
| lv_waersnew | TYPE KNVV-WAERS, " | |||
| lv_keine_berechtigung | TYPE KNVV, " | |||
| lv_no_chgdoc | TYPE RVDEB-CHDDE, " | |||
| lv_keine_sperre | TYPE RVDEB, " | |||
| lv_knvv_gelesen | TYPE SY-INPUT, " | |||
| lv_keine_aenderung | TYPE SY. " |
|   CALL FUNCTION 'EWU_CUSTOMER' "NOTRANSL: Aufruf des Reports zur Euro-Umstellung |
| EXPORTING | ||
| WAERSOLD | = lv_waersold | |
| WAERSNEW | = lv_waersnew | |
| NO_CHGDOC | = lv_no_chgdoc | |
| KNVV_GELESEN | = lv_knvv_gelesen | |
| TABLES | ||
| CUSTOMER | = lt_customer | |
| XKNVV | = lt_xknvv | |
| EXCEPTIONS | ||
| KEINE_DEBITOREN = 1 | ||
| KEINE_BERECHTIGUNG = 2 | ||
| KEINE_SPERRE = 3 | ||
| KEINE_AENDERUNG = 4 | ||
| . " EWU_CUSTOMER | ||
ABAP code using 7.40 inline data declarations to call FM EWU_CUSTOMER
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 WAERS FROM KNVV INTO @DATA(ld_waersold). | ||||
| "SELECT single WAERS FROM KNVV INTO @DATA(ld_waersnew). | ||||
| "SELECT single CHDDE FROM RVDEB INTO @DATA(ld_no_chgdoc). | ||||
| "SELECT single INPUT FROM SY INTO @DATA(ld_knvv_gelesen). | ||||
Search for further information about these or an SAP related objects