SAP Function Modules

HR_TIME_DELIM_BY_TIME_SET SAP Function module







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

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


Pattern for FM HR_TIME_DELIM_BY_TIME_SET - HR TIME DELIM BY TIME SET





CALL FUNCTION 'HR_TIME_DELIM_BY_TIME_SET' "
  EXPORTING
    old_infty =                 " prelp
    new_time_set =              " time_set
*   nts_begda = SPACE06         " datum
*   nts_endda = SPACE06         " datum
    pws_infties =               " hrtim00ws_pws_infties
    sono =                      " intyp
*   simple_mode = 'X'           " c
*   get_propose_infties = 'X'   " c
  IMPORTING
    propose_infties =           " prelp_tab
    original =                  " hrtim00col_original_entry
    delim_forbidden =           " c
    intersect =                 " c
    subrc =                     " sy-subrc
  CHANGING
    errors =                    " hrerror_tab
*   pws_info =                  " hrtim00ws_pws_info_buffer
    .  "  HR_TIME_DELIM_BY_TIME_SET

ABAP code example for Function Module HR_TIME_DELIM_BY_TIME_SET





The ABAP code below is a full code listing to execute function module HR_TIME_DELIM_BY_TIME_SET 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_propose_infties  TYPE PRELP_TAB ,
ld_original  TYPE HRTIM00COL_ORIGINAL_ENTRY ,
ld_delim_forbidden  TYPE C ,
ld_intersect  TYPE C ,
ld_subrc  TYPE SY-SUBRC .

DATA(ld_errors) = 'Check type of data required'.
DATA(ld_pws_info) = 'Check type of data required'.
DATA(ld_old_infty) = 'Check type of data required'.
DATA(ld_new_time_set) = 'Check type of data required'.
DATA(ld_nts_begda) = 'Check type of data required'.
DATA(ld_nts_endda) = 'Check type of data required'.
DATA(ld_pws_infties) = 'Check type of data required'.
DATA(ld_sono) = 'Check type of data required'.
DATA(ld_simple_mode) = 'Check type of data required'.
DATA(ld_get_propose_infties) = 'Check type of data required'. . CALL FUNCTION 'HR_TIME_DELIM_BY_TIME_SET' EXPORTING old_infty = ld_old_infty new_time_set = ld_new_time_set * nts_begda = ld_nts_begda * nts_endda = ld_nts_endda pws_infties = ld_pws_infties sono = ld_sono * simple_mode = ld_simple_mode * get_propose_infties = ld_get_propose_infties IMPORTING propose_infties = ld_propose_infties original = ld_original delim_forbidden = ld_delim_forbidden intersect = ld_intersect subrc = ld_subrc CHANGING errors = ld_errors * pws_info = ld_pws_info . " HR_TIME_DELIM_BY_TIME_SET
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_errors  TYPE HRERROR_TAB ,
ld_propose_infties  TYPE PRELP_TAB ,
ld_old_infty  TYPE PRELP ,
ld_pws_info  TYPE HRTIM00WS_PWS_INFO_BUFFER ,
ld_original  TYPE HRTIM00COL_ORIGINAL_ENTRY ,
ld_new_time_set  TYPE TIME_SET ,
ld_delim_forbidden  TYPE C ,
ld_nts_begda  TYPE DATUM ,
ld_intersect  TYPE C ,
ld_nts_endda  TYPE DATUM ,
ld_subrc  TYPE SY-SUBRC ,
ld_pws_infties  TYPE HRTIM00WS_PWS_INFTIES ,
ld_sono  TYPE INTYP ,
ld_simple_mode  TYPE C ,
ld_get_propose_infties  TYPE C .

ld_errors = 'Check type of data required'.
ld_old_infty = 'Check type of data required'.
ld_pws_info = 'Check type of data required'.
ld_new_time_set = 'Check type of data required'.
ld_nts_begda = 'Check type of data required'.
ld_nts_endda = 'Check type of data required'.
ld_pws_infties = 'Check type of data required'.
ld_sono = 'Check type of data required'.
ld_simple_mode = 'Check type of data required'.
ld_get_propose_infties = '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 HR_TIME_DELIM_BY_TIME_SET or its description.