SAP Function Modules

ISHMED_CHECK_DATE_TIME SAP Function module







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

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


Pattern for FM ISHMED_CHECK_DATE_TIME - ISHMED CHECK DATE TIME





CALL FUNCTION 'ISHMED_CHECK_DATE_TIME' "
* EXPORTING
*   i_date =                    " char10
*   i_time =                    " char8
*   i_no_date_separators =      " xfeld
*   i_msg_par =                 " bapiret2-parameter
*   i_msg_row =                 " bapiret2-row
*   i_msg_fld =                 " bapiret2-field
*   i_msg_obj =                 " n1objectref
*   i_msg_line_key =            " char100
*   i_date_fill = SPACE         " ish_on_off
*   i_time_fill = SPACE         " ish_on_off
  IMPORTING
    e_date =                    " sy-datum
    e_time =                    " sy-uzeit
    e_date_ext =                " char10
    e_time_ext =                " char8
    e_rc =                      " ish_method_rc
* CHANGING
*   c_errorhandler =            " cl_ishmed_errorhandling
    .  "  ISHMED_CHECK_DATE_TIME

ABAP code example for Function Module ISHMED_CHECK_DATE_TIME





The ABAP code below is a full code listing to execute function module ISHMED_CHECK_DATE_TIME 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_date  TYPE SY-DATUM ,
ld_e_time  TYPE SY-UZEIT ,
ld_e_date_ext  TYPE CHAR10 ,
ld_e_time_ext  TYPE CHAR8 ,
ld_e_rc  TYPE ISH_METHOD_RC .

DATA(ld_c_errorhandler) = 'Check type of data required'.
DATA(ld_i_date) = 'Check type of data required'.
DATA(ld_i_time) = 'Check type of data required'.
DATA(ld_i_no_date_separators) = 'Check type of data required'.

DATA(ld_i_msg_par) = some text here

DATA(ld_i_msg_row) = 123

DATA(ld_i_msg_fld) = some text here
DATA(ld_i_msg_obj) = 'Check type of data required'.
DATA(ld_i_msg_line_key) = 'Check type of data required'.
DATA(ld_i_date_fill) = 'Check type of data required'.
DATA(ld_i_time_fill) = 'Check type of data required'. . CALL FUNCTION 'ISHMED_CHECK_DATE_TIME' * EXPORTING * i_date = ld_i_date * i_time = ld_i_time * i_no_date_separators = ld_i_no_date_separators * i_msg_par = ld_i_msg_par * i_msg_row = ld_i_msg_row * i_msg_fld = ld_i_msg_fld * i_msg_obj = ld_i_msg_obj * i_msg_line_key = ld_i_msg_line_key * i_date_fill = ld_i_date_fill * i_time_fill = ld_i_time_fill IMPORTING e_date = ld_e_date e_time = ld_e_time e_date_ext = ld_e_date_ext e_time_ext = ld_e_time_ext e_rc = ld_e_rc * CHANGING * c_errorhandler = ld_c_errorhandler . " ISHMED_CHECK_DATE_TIME
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_c_errorhandler  TYPE CL_ISHMED_ERRORHANDLING ,
ld_e_date  TYPE SY-DATUM ,
ld_i_date  TYPE CHAR10 ,
ld_e_time  TYPE SY-UZEIT ,
ld_i_time  TYPE CHAR8 ,
ld_e_date_ext  TYPE CHAR10 ,
ld_i_no_date_separators  TYPE XFELD ,
ld_e_time_ext  TYPE CHAR8 ,
ld_i_msg_par  TYPE BAPIRET2-PARAMETER ,
ld_e_rc  TYPE ISH_METHOD_RC ,
ld_i_msg_row  TYPE BAPIRET2-ROW ,
ld_i_msg_fld  TYPE BAPIRET2-FIELD ,
ld_i_msg_obj  TYPE N1OBJECTREF ,
ld_i_msg_line_key  TYPE CHAR100 ,
ld_i_date_fill  TYPE ISH_ON_OFF ,
ld_i_time_fill  TYPE ISH_ON_OFF .

ld_c_errorhandler = 'Check type of data required'.
ld_i_date = 'Check type of data required'.
ld_i_time = 'Check type of data required'.
ld_i_no_date_separators = 'Check type of data required'.

ld_i_msg_par = some text here

ld_i_msg_row = 123

ld_i_msg_fld = some text here
ld_i_msg_obj = 'Check type of data required'.
ld_i_msg_line_key = 'Check type of data required'.
ld_i_date_fill = 'Check type of data required'.
ld_i_time_fill = 'Check type of data required'.

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