SAP Function Modules

ISHMED_ME_CALL_ADMIN_EVENT SAP Function module







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

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


Pattern for FM ISHMED_ME_CALL_ADMIN_EVENT - ISHMED ME CALL ADMIN EVENT





CALL FUNCTION 'ISHMED_ME_CALL_ADMIN_EVENT' "
  EXPORTING
    i_caller =                  " sy-cprog      Calling Program
    i_einri =                   " tn01-einri    Institution
*   i_enqueue = ON              " ish_on_off
*   i_save = ON                 " ish_on_off    Save Data
*   i_commit = ON               " ish_on_off    Execute COMMIT WORK
*   i_vcode = 'INS'             " ish_vcode
*   it_order =                  " ish_objectlist  IS-H: Table with Object References
*   it_meordid =                " ishmed_t_meordid  IS-H*MED: Table Type for Order ID
*   it_event =                  " ish_objectlist  IS-H: Table with Object References
*   it_meevtid =                " ishmed_t_me_meevtid  IS-H*MED: Medication; Table Type for MEEVTID
*   ir_config =                 " cl_ishmed_con_me_admin  i.s.h.med: Medication, Configuration of Administration
  IMPORTING
    e_rc =                      " ish_method_rc  Return Code
* CHANGING
*   cr_controller =             " cl_ishmed_prc_me_admin_event
*   cs_lock =                   " rn1me_lock_pass  IS-H*MED: Termination and Removal of Various Locks
*   cr_errorhandler =           " cl_ishmed_errorhandling  ISHMED: Class for Error Handling
    .  "  ISHMED_ME_CALL_ADMIN_EVENT

ABAP code example for Function Module ISHMED_ME_CALL_ADMIN_EVENT





The ABAP code below is a full code listing to execute function module ISHMED_ME_CALL_ADMIN_EVENT 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:
ld_e_rc  TYPE ISH_METHOD_RC .

DATA(ld_cr_controller) = 'Check type of data required'.
DATA(ld_cs_lock) = 'Check type of data required'.
DATA(ld_cr_errorhandler) = 'Check type of data required'.
DATA(ld_i_caller) = 'some text here'.

SELECT single EINRI
FROM TN01
INTO @DATA(ld_i_einri).

DATA(ld_i_enqueue) = 'some text here'.
DATA(ld_i_save) = 'some text here'.
DATA(ld_i_commit) = 'some text here'.
DATA(ld_i_vcode) = 'some text here'.
DATA(ld_it_order) = 'some text here'.
DATA(ld_it_meordid) = 'some text here'.
DATA(ld_it_event) = 'some text here'.
DATA(ld_it_meevtid) = 'some text here'.
DATA(ld_ir_config) = 'some text here'. . CALL FUNCTION 'ISHMED_ME_CALL_ADMIN_EVENT' EXPORTING i_caller = ld_i_caller i_einri = ld_i_einri * i_enqueue = ld_i_enqueue * i_save = ld_i_save * i_commit = ld_i_commit * i_vcode = ld_i_vcode * it_order = ld_it_order * it_meordid = ld_it_meordid * it_event = ld_it_event * it_meevtid = ld_it_meevtid * ir_config = ld_ir_config IMPORTING e_rc = ld_e_rc * CHANGING * cr_controller = ld_cr_controller * cs_lock = ld_cs_lock * cr_errorhandler = ld_cr_errorhandler . " ISHMED_ME_CALL_ADMIN_EVENT
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_cr_controller  TYPE CL_ISHMED_PRC_ME_ADMIN_EVENT ,
ld_e_rc  TYPE ISH_METHOD_RC ,
ld_i_caller  TYPE SY-CPROG ,
ld_cs_lock  TYPE RN1ME_LOCK_PASS ,
ld_i_einri  TYPE TN01-EINRI ,
ld_cr_errorhandler  TYPE CL_ISHMED_ERRORHANDLING ,
ld_i_enqueue  TYPE ISH_ON_OFF ,
ld_i_save  TYPE ISH_ON_OFF ,
ld_i_commit  TYPE ISH_ON_OFF ,
ld_i_vcode  TYPE ISH_VCODE ,
ld_it_order  TYPE ISH_OBJECTLIST ,
ld_it_meordid  TYPE ISHMED_T_MEORDID ,
ld_it_event  TYPE ISH_OBJECTLIST ,
ld_it_meevtid  TYPE ISHMED_T_ME_MEEVTID ,
ld_ir_config  TYPE CL_ISHMED_CON_ME_ADMIN .

ld_cr_controller = 'some text here'.
ld_i_caller = 'some text here'.
ld_cs_lock = 'some text here'.

SELECT single EINRI
FROM TN01
INTO ld_i_einri.

ld_cr_errorhandler = 'some text here'.
ld_i_enqueue = 'some text here'.
ld_i_save = 'some text here'.
ld_i_commit = 'some text here'.
ld_i_vcode = 'some text here'.
ld_it_order = 'some text here'.
ld_it_meordid = 'some text here'.
ld_it_event = 'some text here'.
ld_it_meevtid = 'some text here'.
ld_ir_config = '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 ISHMED_ME_CALL_ADMIN_EVENT or its description.