SAP EWCM_CHECK_REROUTING Function Module for NOTRANSL: Umleitung von Kurstypen auf Vollständigkeit checken









EWCM_CHECK_REROUTING is a standard ewcm check rerouting 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: Umleitung von Kurstypen auf Vollständigkeit checken 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 ewcm check rerouting FM, simply by entering the name EWCM_CHECK_REROUTING into the relevant SAP transaction such as SE37 or SE38.

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



Function EWCM_CHECK_REROUTING 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 'EWCM_CHECK_REROUTING'"NOTRANSL: Umleitung von Kurstypen auf Vollständigkeit checken
EXPORTING
* TARGET_KURST_INT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TARGET_KURST_EXT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* TARGET_KURST_INT_EXT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* MAIN_KURST = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* REROUT_DATE = "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
REROUTING_INT_OK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
REROUTING_EXT_OK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
REROUTING_INT_EXT_OK = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
WAERS_LIST = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* RRSOURCE_INT_EXT_INS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* RRSOURCE_INT_EXT_UPD = "
* RRTARGET_INT_EXT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* REROUT_INCONS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* WAERS_NO_CHGE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
KURST_LIST = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* RRSOURCE_INT_INS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* RRSOURCE_INT_UPD = "
* RRTARGET_INT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* RRSOURCE_EXT_INS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* RRSOURCE_EXT_UPD = "
* RRTARGET_EXT = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
OUTPUT_REQUEST_INCONSISTENT = 1 INCONSISTENT_REROUTING_FOUND = 2 INCOMPLETE_INPUT = 3
.



IMPORTING Parameters details for EWCM_CHECK_REROUTING

TARGET_KURST_INT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TARGET_KURST_EXT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TARGET_KURST_INT_EXT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

MAIN_KURST - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

REROUT_DATE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXPORTING Parameters details for EWCM_CHECK_REROUTING

REROUTING_INT_OK - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

REROUTING_EXT_OK - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

REROUTING_INT_EXT_OK - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TABLES Parameters details for EWCM_CHECK_REROUTING

WAERS_LIST - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

RRSOURCE_INT_EXT_INS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

RRSOURCE_INT_EXT_UPD -

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

RRTARGET_INT_EXT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

REROUT_INCONS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

WAERS_NO_CHGE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

KURST_LIST - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

RRSOURCE_INT_INS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

RRSOURCE_INT_UPD -

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

RRTARGET_INT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

RRSOURCE_EXT_INS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

RRSOURCE_EXT_UPD -

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

RRTARGET_EXT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXCEPTIONS details

OUTPUT_REQUEST_INCONSISTENT -

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

INCONSISTENT_REROUTING_FOUND -

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

INCOMPLETE_INPUT -

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

Copy and paste ABAP code example for EWCM_CHECK_REROUTING 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_waers_list  TYPE STANDARD TABLE OF EWWAERLIST, "   
lv_rerouting_int_ok  TYPE BOOLE-BOOLE, "   
lv_target_kurst_int  TYPE TCURV-KURST, "   
lv_output_request_inconsistent  TYPE TCURV, "   
lt_rrsource_int_ext_ins  TYPE STANDARD TABLE OF TCURF, "   
lt_rrsource_int_ext_upd  TYPE STANDARD TABLE OF TCURF, "   
lt_rrtarget_int_ext  TYPE STANDARD TABLE OF TCURF, "   
lt_rerout_incons  TYPE STANDARD TABLE OF TCURF, "   
lt_waers_no_chge  TYPE STANDARD TABLE OF EWWAERLIST, "   
lv_rerouting_ext_ok  TYPE BOOLE-BOOLE, "   
lv_target_kurst_ext  TYPE TCURV-KURST, "   
lv_inconsistent_rerouting_found  TYPE TCURV, "   
lt_kurst_list  TYPE STANDARD TABLE OF EWKURSTLST, "   
lv_incomplete_input  TYPE EWKURSTLST, "   
lv_rerouting_int_ext_ok  TYPE BOOLE-BOOLE, "   
lv_target_kurst_int_ext  TYPE TCURV-KURST, "   
lv_main_kurst  TYPE TCURV-KURST, "   
lt_rrsource_int_ins  TYPE STANDARD TABLE OF TCURF, "   
lv_rerout_date  TYPE TCURF-ABWGA, "   
lt_rrsource_int_upd  TYPE STANDARD TABLE OF TCURF, "   
lt_rrtarget_int  TYPE STANDARD TABLE OF TCURF, "   
lt_rrsource_ext_ins  TYPE STANDARD TABLE OF TCURF, "   
lt_rrsource_ext_upd  TYPE STANDARD TABLE OF TCURF, "   
lt_rrtarget_ext  TYPE STANDARD TABLE OF TCURF. "   

  CALL FUNCTION 'EWCM_CHECK_REROUTING'  "NOTRANSL: Umleitung von Kurstypen auf Vollständigkeit checken
    EXPORTING
         TARGET_KURST_INT = lv_target_kurst_int
         TARGET_KURST_EXT = lv_target_kurst_ext
         TARGET_KURST_INT_EXT = lv_target_kurst_int_ext
         MAIN_KURST = lv_main_kurst
         REROUT_DATE = lv_rerout_date
    IMPORTING
         REROUTING_INT_OK = lv_rerouting_int_ok
         REROUTING_EXT_OK = lv_rerouting_ext_ok
         REROUTING_INT_EXT_OK = lv_rerouting_int_ext_ok
    TABLES
         WAERS_LIST = lt_waers_list
         RRSOURCE_INT_EXT_INS = lt_rrsource_int_ext_ins
         RRSOURCE_INT_EXT_UPD = lt_rrsource_int_ext_upd
         RRTARGET_INT_EXT = lt_rrtarget_int_ext
         REROUT_INCONS = lt_rerout_incons
         WAERS_NO_CHGE = lt_waers_no_chge
         KURST_LIST = lt_kurst_list
         RRSOURCE_INT_INS = lt_rrsource_int_ins
         RRSOURCE_INT_UPD = lt_rrsource_int_upd
         RRTARGET_INT = lt_rrtarget_int
         RRSOURCE_EXT_INS = lt_rrsource_ext_ins
         RRSOURCE_EXT_UPD = lt_rrsource_ext_upd
         RRTARGET_EXT = lt_rrtarget_ext
    EXCEPTIONS
        OUTPUT_REQUEST_INCONSISTENT = 1
        INCONSISTENT_REROUTING_FOUND = 2
        INCOMPLETE_INPUT = 3
. " EWCM_CHECK_REROUTING




ABAP code using 7.40 inline data declarations to call FM EWCM_CHECK_REROUTING

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 BOOLE FROM BOOLE INTO @DATA(ld_rerouting_int_ok).
 
"SELECT single KURST FROM TCURV INTO @DATA(ld_target_kurst_int).
 
 
 
 
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_rerouting_ext_ok).
 
"SELECT single KURST FROM TCURV INTO @DATA(ld_target_kurst_ext).
 
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_rerouting_int_ext_ok).
 
"SELECT single KURST FROM TCURV INTO @DATA(ld_target_kurst_int_ext).
 
"SELECT single KURST FROM TCURV INTO @DATA(ld_main_kurst).
 
 
"SELECT single ABWGA FROM TCURF INTO @DATA(ld_rerout_date).
 
 
 
 
 
 


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!