SAP Function Modules

ISM_EVENT_0202 SAP Function module - Event 0202: Search Help Exit GPART/VKONT/VTREF







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

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


Pattern for FM ISM_EVENT_0202 - ISM EVENT 0202





CALL FUNCTION 'ISM_EVENT_0202' "Event 0202: Search Help Exit GPART/VKONT/VTREF
  EXPORTING
    i_gpart =                   " dfkkop-gpart
    i_vkont =                   " dfkkop-vkont
    i_vtref =                   " dfkkop-vtref
*   i_n = 250                   " sy-index      Loops, Current Loop Pass
  TABLES
    t_str_shlp_vtref =          " str_shlp_vtref
*   r_gpart =                   "
*   r_vkont =                   "
*   r_vtref =                   "
    .  "  ISM_EVENT_0202

ABAP code example for Function Module ISM_EVENT_0202





The ABAP code below is a full code listing to execute function module ISM_EVENT_0202 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_t_str_shlp_vtref  TYPE STANDARD TABLE OF STR_SHLP_VTREF,"TABLES PARAM
wa_t_str_shlp_vtref  LIKE LINE OF it_t_str_shlp_vtref ,
it_r_gpart  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_r_gpart  LIKE LINE OF it_r_gpart ,
it_r_vkont  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_r_vkont  LIKE LINE OF it_r_vkont ,
it_r_vtref  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_r_vtref  LIKE LINE OF it_r_vtref .


SELECT single GPART
FROM DFKKOP
INTO @DATA(ld_i_gpart).


SELECT single VKONT
FROM DFKKOP
INTO @DATA(ld_i_vkont).


SELECT single VTREF
FROM DFKKOP
INTO @DATA(ld_i_vtref).

DATA(ld_i_n) = '123 '.

"populate fields of struture and append to itab
append wa_t_str_shlp_vtref to it_t_str_shlp_vtref.

"populate fields of struture and append to itab
append wa_r_gpart to it_r_gpart.

"populate fields of struture and append to itab
append wa_r_vkont to it_r_vkont.

"populate fields of struture and append to itab
append wa_r_vtref to it_r_vtref. . CALL FUNCTION 'ISM_EVENT_0202' EXPORTING i_gpart = ld_i_gpart i_vkont = ld_i_vkont i_vtref = ld_i_vtref * i_n = ld_i_n TABLES t_str_shlp_vtref = it_t_str_shlp_vtref * r_gpart = it_r_gpart * r_vkont = it_r_vkont * r_vtref = it_r_vtref . " ISM_EVENT_0202
IF SY-SUBRC EQ 0. "All OK 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_i_gpart  TYPE DFKKOP-GPART ,
it_t_str_shlp_vtref  TYPE STANDARD TABLE OF STR_SHLP_VTREF ,
wa_t_str_shlp_vtref  LIKE LINE OF it_t_str_shlp_vtref,
ld_i_vkont  TYPE DFKKOP-VKONT ,
it_r_gpart  TYPE STANDARD TABLE OF STRING ,
wa_r_gpart  LIKE LINE OF it_r_gpart,
ld_i_vtref  TYPE DFKKOP-VTREF ,
it_r_vkont  TYPE STANDARD TABLE OF STRING ,
wa_r_vkont  LIKE LINE OF it_r_vkont,
ld_i_n  TYPE SY-INDEX ,
it_r_vtref  TYPE STANDARD TABLE OF STRING ,
wa_r_vtref  LIKE LINE OF it_r_vtref.


SELECT single GPART
FROM DFKKOP
INTO ld_i_gpart.


"populate fields of struture and append to itab
append wa_t_str_shlp_vtref to it_t_str_shlp_vtref.

SELECT single VKONT
FROM DFKKOP
INTO ld_i_vkont.


"populate fields of struture and append to itab
append wa_r_gpart to it_r_gpart.

SELECT single VTREF
FROM DFKKOP
INTO ld_i_vtref.


"populate fields of struture and append to itab
append wa_r_vkont to it_r_vkont.
ld_i_n = '123 '.

"populate fields of struture and append to itab
append wa_r_vtref to it_r_vtref.

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