SAP Function Modules

ISU_TIMESLICE_SEC_PRORATE SAP Function module







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

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


Pattern for FM ISU_TIMESLICE_SEC_PRORATE - ISU TIMESLICE SEC PRORATE





CALL FUNCTION 'ISU_TIMESLICE_SEC_PRORATE' "
  EXPORTING
    x_datefrom_offset =         " isu_timesl_sec-datefromoffset
    x_dateto_offset =           " isu_timesl_sec-datetooffset
    x_timefrom_offset =         " isu_timesl_sec-timefromoffset
    x_timeto_offset =           " isu_timesl_sec-timetooffset
    x_prorate_date =            " isu_timesl_sec-prorateday
*   x_prorate_time = '000000'   " isu_timesl_sec-proratetime
*   x_prorate_date_limit =      " isu_timesl_sec-prorateday
*   x_prorate_date_limit_upper =   " isu_timesl_sec-prorateday
*   x_prorate_time_limit = '000000'  " isu_timesl_sec-proratetime
*   x_prorate_time_limit_upper = '235959'  " isu_timesl_sec-proratetime
  IMPORTING
    y_lines =                   " sy-index
  TABLES
    t_timesl =                  "
* CHANGING
*   xy_pointer =                " sy-index
  EXCEPTIONS
    NOT_NECESSARY = 1           "
    TABLE_EMPTY = 2             "
    NOT_VALID = 3               "
    BELOW_LIMIT = 4             "
    IN_GAP = 5                  "
    .  "  ISU_TIMESLICE_SEC_PRORATE

ABAP code example for Function Module ISU_TIMESLICE_SEC_PRORATE





The ABAP code below is a full code listing to execute function module ISU_TIMESLICE_SEC_PRORATE 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_y_lines  TYPE SY-INDEX ,
it_t_timesl  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_t_timesl  LIKE LINE OF it_t_timesl .

DATA(ld_xy_pointer) = '123 '.

DATA(ld_x_datefrom_offset) = 123

DATA(ld_x_dateto_offset) = 123

DATA(ld_x_timefrom_offset) = 123

DATA(ld_x_timeto_offset) = 123

DATA(ld_x_prorate_date) = 20210129

DATA(ld_x_prorate_time) = Check type of data required

DATA(ld_x_prorate_date_limit) = 20210129

DATA(ld_x_prorate_date_limit_upper) = 20210129

DATA(ld_x_prorate_time_limit) = Check type of data required

DATA(ld_x_prorate_time_limit_upper) = Check type of data required

"populate fields of struture and append to itab
append wa_t_timesl to it_t_timesl. . CALL FUNCTION 'ISU_TIMESLICE_SEC_PRORATE' EXPORTING x_datefrom_offset = ld_x_datefrom_offset x_dateto_offset = ld_x_dateto_offset x_timefrom_offset = ld_x_timefrom_offset x_timeto_offset = ld_x_timeto_offset x_prorate_date = ld_x_prorate_date * x_prorate_time = ld_x_prorate_time * x_prorate_date_limit = ld_x_prorate_date_limit * x_prorate_date_limit_upper = ld_x_prorate_date_limit_upper * x_prorate_time_limit = ld_x_prorate_time_limit * x_prorate_time_limit_upper = ld_x_prorate_time_limit_upper IMPORTING y_lines = ld_y_lines TABLES t_timesl = it_t_timesl * CHANGING * xy_pointer = ld_xy_pointer EXCEPTIONS NOT_NECESSARY = 1 TABLE_EMPTY = 2 NOT_VALID = 3 BELOW_LIMIT = 4 IN_GAP = 5 . " ISU_TIMESLICE_SEC_PRORATE
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 ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "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_xy_pointer  TYPE SY-INDEX ,
ld_y_lines  TYPE SY-INDEX ,
ld_x_datefrom_offset  TYPE ISU_TIMESL_SEC-DATEFROMOFFSET ,
it_t_timesl  TYPE STANDARD TABLE OF STRING ,
wa_t_timesl  LIKE LINE OF it_t_timesl,
ld_x_dateto_offset  TYPE ISU_TIMESL_SEC-DATETOOFFSET ,
ld_x_timefrom_offset  TYPE ISU_TIMESL_SEC-TIMEFROMOFFSET ,
ld_x_timeto_offset  TYPE ISU_TIMESL_SEC-TIMETOOFFSET ,
ld_x_prorate_date  TYPE ISU_TIMESL_SEC-PRORATEDAY ,
ld_x_prorate_time  TYPE ISU_TIMESL_SEC-PRORATETIME ,
ld_x_prorate_date_limit  TYPE ISU_TIMESL_SEC-PRORATEDAY ,
ld_x_prorate_date_limit_upper  TYPE ISU_TIMESL_SEC-PRORATEDAY ,
ld_x_prorate_time_limit  TYPE ISU_TIMESL_SEC-PRORATETIME ,
ld_x_prorate_time_limit_upper  TYPE ISU_TIMESL_SEC-PRORATETIME .

ld_xy_pointer = '123 '.

ld_x_datefrom_offset = 123

"populate fields of struture and append to itab
append wa_t_timesl to it_t_timesl.

ld_x_dateto_offset = 123

ld_x_timefrom_offset = 123

ld_x_timeto_offset = 123

ld_x_prorate_date = 20210129

ld_x_prorate_time = Check type of data required

ld_x_prorate_date_limit = 20210129

ld_x_prorate_date_limit_upper = 20210129

ld_x_prorate_time_limit = Check type of data required

ld_x_prorate_time_limit_upper = 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 ISU_TIMESLICE_SEC_PRORATE or its description.