SAP Function Modules

ISM_WWW_DATES_IN_PAST_F4 SAP Function module - IS-M: Value Help for Date Entries on Template







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

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


Pattern for FM ISM_WWW_DATES_IN_PAST_F4 - ISM WWW DATES IN PAST F4





CALL FUNCTION 'ISM_WWW_DATES_IN_PAST_F4' "IS-M: Value Help for Date Entries on Template
  EXPORTING
    pv_val_fieldname =          " jhaw_screen_name_str
*   pv_aktsprsl = SY-LANGU      " sy-langu      Language
*   pv_bassprsl = SY-LANGU      " sy-langu
    pv_date =                   " sy-datum
*   pv_days_to_show = '50'      " sy-index
*   pv_days_offset = '0'        " sy-index
*   pv_xsort_desc =             " xfeld
    .  "  ISM_WWW_DATES_IN_PAST_F4

ABAP code example for Function Module ISM_WWW_DATES_IN_PAST_F4





The ABAP code below is a full code listing to execute function module ISM_WWW_DATES_IN_PAST_F4 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_pv_val_fieldname) = 'Check type of data required'.
DATA(ld_pv_aktsprsl) = 'Check type of data required'.
DATA(ld_pv_bassprsl) = 'Check type of data required'.
DATA(ld_pv_date) = '20210129'.
DATA(ld_pv_days_to_show) = '123 '.
DATA(ld_pv_days_offset) = '123 '.
DATA(ld_pv_xsort_desc) = '123 '. . CALL FUNCTION 'ISM_WWW_DATES_IN_PAST_F4' EXPORTING pv_val_fieldname = ld_pv_val_fieldname * pv_aktsprsl = ld_pv_aktsprsl * pv_bassprsl = ld_pv_bassprsl pv_date = ld_pv_date * pv_days_to_show = ld_pv_days_to_show * pv_days_offset = ld_pv_days_offset * pv_xsort_desc = ld_pv_xsort_desc . " ISM_WWW_DATES_IN_PAST_F4
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_pv_val_fieldname  TYPE JHAW_SCREEN_NAME_STR ,
ld_pv_aktsprsl  TYPE SY-LANGU ,
ld_pv_bassprsl  TYPE SY-LANGU ,
ld_pv_date  TYPE SY-DATUM ,
ld_pv_days_to_show  TYPE SY-INDEX ,
ld_pv_days_offset  TYPE SY-INDEX ,
ld_pv_xsort_desc  TYPE XFELD .

ld_pv_val_fieldname = '123 '.
ld_pv_aktsprsl = 'Check type of data required'.
ld_pv_bassprsl = 'Check type of data required'.
ld_pv_date = '20210129'.
ld_pv_days_to_show = '123 '.
ld_pv_days_offset = '123 '.
ld_pv_xsort_desc = '123 '.

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