SAP Function Modules

ISU_DB_ENOTE_DYNAMIC_SELECT SAP Function module - INTERNAL: Reads Note from ENOTE with Release of Placeholder







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

Associated Function Group: EEND
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISU_DB_ENOTE_DYNAMIC_SELECT - ISU DB ENOTE DYNAMIC SELECT





CALL FUNCTION 'ISU_DB_ENOTE_DYNAMIC_SELECT' "INTERNAL: Reads Note from ENOTE with Release of Placeholder
  EXPORTING
    x_objkey =                  " enote-objkey  Object Key
    x_objtype =                 " enote-objtype
*   x_formclass =               " te584-formclass
*   x_formkey =                 " te584-formkey
*   x_date =                    " eabl-adatsoll
*   x_conn_obj =                " ehau
*   x_install =                 " v_eanl
*   x_device =                  " v_eger
*   x_langu = SY-LANGU          " sy-langu
*   x_actual =                  " regen-actual
* TABLES
*   tx_formgroup =              " eenfi_fmtab
*   txy_tab =                   " eenfi_restab
  EXCEPTIONS
    NOT_FOUND = 1               "
    SYSTEM_ERROR = 2            "
    .  "  ISU_DB_ENOTE_DYNAMIC_SELECT

ABAP code example for Function Module ISU_DB_ENOTE_DYNAMIC_SELECT





The ABAP code below is a full code listing to execute function module ISU_DB_ENOTE_DYNAMIC_SELECT 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_tx_formgroup  TYPE STANDARD TABLE OF EENFI_FMTAB,"TABLES PARAM
wa_tx_formgroup  LIKE LINE OF it_tx_formgroup ,
it_txy_tab  TYPE STANDARD TABLE OF EENFI_RESTAB,"TABLES PARAM
wa_txy_tab  LIKE LINE OF it_txy_tab .


SELECT single OBJKEY
FROM ENOTE
INTO @DATA(ld_x_objkey).


SELECT single OBJTYPE
FROM ENOTE
INTO @DATA(ld_x_objtype).


SELECT single FORMCLASS
FROM TE584
INTO @DATA(ld_x_formclass).


SELECT single FORMKEY
FROM TE584
INTO @DATA(ld_x_formkey).


SELECT single ADATSOLL
FROM EABL
INTO @DATA(ld_x_date).

DATA(ld_x_conn_obj) = 'Check type of data required'.
DATA(ld_x_install) = 'Check type of data required'.
DATA(ld_x_device) = 'Check type of data required'.
DATA(ld_x_langu) = 'Check type of data required'.

DATA(ld_x_actual) = some text here

"populate fields of struture and append to itab
append wa_tx_formgroup to it_tx_formgroup.

"populate fields of struture and append to itab
append wa_txy_tab to it_txy_tab. . CALL FUNCTION 'ISU_DB_ENOTE_DYNAMIC_SELECT' EXPORTING x_objkey = ld_x_objkey x_objtype = ld_x_objtype * x_formclass = ld_x_formclass * x_formkey = ld_x_formkey * x_date = ld_x_date * x_conn_obj = ld_x_conn_obj * x_install = ld_x_install * x_device = ld_x_device * x_langu = ld_x_langu * x_actual = ld_x_actual * TABLES * tx_formgroup = it_tx_formgroup * txy_tab = it_txy_tab EXCEPTIONS NOT_FOUND = 1 SYSTEM_ERROR = 2 . " ISU_DB_ENOTE_DYNAMIC_SELECT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_objkey  TYPE ENOTE-OBJKEY ,
it_tx_formgroup  TYPE STANDARD TABLE OF EENFI_FMTAB ,
wa_tx_formgroup  LIKE LINE OF it_tx_formgroup,
ld_x_objtype  TYPE ENOTE-OBJTYPE ,
it_txy_tab  TYPE STANDARD TABLE OF EENFI_RESTAB ,
wa_txy_tab  LIKE LINE OF it_txy_tab,
ld_x_formclass  TYPE TE584-FORMCLASS ,
ld_x_formkey  TYPE TE584-FORMKEY ,
ld_x_date  TYPE EABL-ADATSOLL ,
ld_x_conn_obj  TYPE EHAU ,
ld_x_install  TYPE V_EANL ,
ld_x_device  TYPE V_EGER ,
ld_x_langu  TYPE SY-LANGU ,
ld_x_actual  TYPE REGEN-ACTUAL .


SELECT single OBJKEY
FROM ENOTE
INTO ld_x_objkey.


"populate fields of struture and append to itab
append wa_tx_formgroup to it_tx_formgroup.

SELECT single OBJTYPE
FROM ENOTE
INTO ld_x_objtype.


"populate fields of struture and append to itab
append wa_txy_tab to it_txy_tab.

SELECT single FORMCLASS
FROM TE584
INTO ld_x_formclass.


SELECT single FORMKEY
FROM TE584
INTO ld_x_formkey.


SELECT single ADATSOLL
FROM EABL
INTO ld_x_date.

ld_x_conn_obj = 'Check type of data required'.
ld_x_install = 'Check type of data required'.
ld_x_device = 'Check type of data required'.
ld_x_langu = 'Check type of data required'.

ld_x_actual = some text here

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