SAP Function Modules

EXIT_SAPLE20Q_001 SAP Function module - IS-U: User Exit for Rate Type Input Help







EXIT_SAPLE20Q_001 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 EXIT_SAPLE20Q_001 into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: XERATETYPE
Released Date: 04.11.1998
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM EXIT_SAPLE20Q_001 - EXIT SAPLE20Q 001





CALL FUNCTION 'EXIT_SAPLE20Q_001' "IS-U: User Exit for Rate Type Input Help
  EXPORTING
    x_installation =            " eanl-anlage   Number of Installation
    x_fact =                    " regen-kennzx  Indicator: Installation Fact
    x_refvalue =                " regen-kennzx  Indicator: Reference Value
    x_register =                " regen-kennzx  Indicator: Register
    x_device =                  " regen-kennzx  Indicator: Device
    x_date_from =               " eanlh-ab      Start of Period
    x_date_to =                 " eanlh-bis     End of Period
    x_inst_data =               " eanldata      Installation Data
    x_register_category =       " etdz-zwtyp    Register Category
    x_refvalue_data =           " isu_refvalue_data  Data for Reference Value
    x_etdz =                    " etdz          Technical Data for Installed Register
    x_v_eger =                  " v_eger        Generated Table for View V_EGER
*   x_operand =                 " e_operand     Operand
  TABLES
    xyt_rate_type =             " isu_te069     Table for Rate Types
  EXCEPTIONS
    GENERAL_FAULT = 1           "
    .  "  EXIT_SAPLE20Q_001

ABAP code example for Function Module EXIT_SAPLE20Q_001





The ABAP code below is a full code listing to execute function module EXIT_SAPLE20Q_001 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).

DATA:
it_xyt_rate_type  TYPE STANDARD TABLE OF ISU_TE069,"TABLES PARAM
wa_xyt_rate_type  LIKE LINE OF it_xyt_rate_type .


SELECT single ANLAGE
FROM EANL
INTO @DATA(ld_x_installation).


DATA(ld_x_fact) = some text here

DATA(ld_x_refvalue) = some text here

DATA(ld_x_register) = some text here

DATA(ld_x_device) = some text here

SELECT single AB
FROM EANLH
INTO @DATA(ld_x_date_from).


SELECT single BIS
FROM EANLH
INTO @DATA(ld_x_date_to).

DATA(ld_x_inst_data) = 'Check type of data required'.

SELECT single ZWTYP
FROM ETDZ
INTO @DATA(ld_x_register_category).

DATA(ld_x_refvalue_data) = 'Check type of data required'.
DATA(ld_x_etdz) = 'Check type of data required'.
DATA(ld_x_v_eger) = 'Check type of data required'.
DATA(ld_x_operand) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xyt_rate_type to it_xyt_rate_type. . CALL FUNCTION 'EXIT_SAPLE20Q_001' EXPORTING x_installation = ld_x_installation x_fact = ld_x_fact x_refvalue = ld_x_refvalue x_register = ld_x_register x_device = ld_x_device x_date_from = ld_x_date_from x_date_to = ld_x_date_to x_inst_data = ld_x_inst_data x_register_category = ld_x_register_category x_refvalue_data = ld_x_refvalue_data x_etdz = ld_x_etdz x_v_eger = ld_x_v_eger * x_operand = ld_x_operand TABLES xyt_rate_type = it_xyt_rate_type EXCEPTIONS GENERAL_FAULT = 1 . " EXIT_SAPLE20Q_001
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_x_installation  TYPE EANL-ANLAGE ,
it_xyt_rate_type  TYPE STANDARD TABLE OF ISU_TE069 ,
wa_xyt_rate_type  LIKE LINE OF it_xyt_rate_type,
ld_x_fact  TYPE REGEN-KENNZX ,
ld_x_refvalue  TYPE REGEN-KENNZX ,
ld_x_register  TYPE REGEN-KENNZX ,
ld_x_device  TYPE REGEN-KENNZX ,
ld_x_date_from  TYPE EANLH-AB ,
ld_x_date_to  TYPE EANLH-BIS ,
ld_x_inst_data  TYPE EANLDATA ,
ld_x_register_category  TYPE ETDZ-ZWTYP ,
ld_x_refvalue_data  TYPE ISU_REFVALUE_DATA ,
ld_x_etdz  TYPE ETDZ ,
ld_x_v_eger  TYPE V_EGER ,
ld_x_operand  TYPE E_OPERAND .


SELECT single ANLAGE
FROM EANL
INTO ld_x_installation.


"populate fields of struture and append to itab
append wa_xyt_rate_type to it_xyt_rate_type.

ld_x_fact = some text here

ld_x_refvalue = some text here

ld_x_register = some text here

ld_x_device = some text here

SELECT single AB
FROM EANLH
INTO ld_x_date_from.


SELECT single BIS
FROM EANLH
INTO ld_x_date_to.

ld_x_inst_data = 'Check type of data required'.

SELECT single ZWTYP
FROM ETDZ
INTO ld_x_register_category.

ld_x_refvalue_data = 'Check type of data required'.
ld_x_etdz = 'Check type of data required'.
ld_x_v_eger = 'Check type of data required'.
ld_x_operand = 'Check type of data required'.

SAP Documentation for FM EXIT_SAPLE20Q_001


You can restrict the selection of rate types in the possible entries (F4 help) with this user exit. ...See here for full SAP fm documentation

Contribute (Add Comments)

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 EXIT_SAPLE20Q_001 or its description.