SAP Function Modules

ISP_OBJECT_CALENDAR_SHOW SAP Function module - IS-M: Calendar Display for Objects (Inc. "Select" and "Details")







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

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


Pattern for FM ISP_OBJECT_CALENDAR_SHOW - ISP OBJECT CALENDAR SHOW





CALL FUNCTION 'ISP_OBJECT_CALENDAR_SHOW' "IS-M: Calendar Display for Objects (Inc. "Select" and "Details")
  EXPORTING
    detail_key =                " tjy10-detail_key
*   incl_pf2_selection = SPACE  " rjycal10-xincl_pf02
*   incl_pf5_detail = SPACE     " rjycal10-xincl_pf05
*   month_to_start = '01'       " rjycal10-first_mon
*   number_of_quarters = 4      " rjycal10-n_quarters
*   object_text_plural =        " rjycal10-object_txn
*   object_text_singular =      " rjycal10-object_tx1
*   title_text =                " rjycal10-title_tx1
*   year_to_start = SY-DATUM(4)  " rjycal10-first_year
*   pv_move_sel_wotag = 1       " tjhvber-erster_wochentag  IS-M: First Day of the Week
  TABLES
    object_tab =                " rjycal00
  EXCEPTIONS
    CALENDAR_TIME_NOT_VALID = 1  "
    DETAIL_ACTIVITY_NOT_VALID = 2  "
    .  "  ISP_OBJECT_CALENDAR_SHOW

ABAP code example for Function Module ISP_OBJECT_CALENDAR_SHOW





The ABAP code below is a full code listing to execute function module ISP_OBJECT_CALENDAR_SHOW 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:
it_object_tab  TYPE STANDARD TABLE OF RJYCAL00,"TABLES PARAM
wa_object_tab  LIKE LINE OF it_object_tab .


SELECT single DETAIL_KEY
FROM TJY10
INTO @DATA(ld_detail_key).


DATA(ld_incl_pf2_selection) = some text here

DATA(ld_incl_pf5_detail) = some text here

DATA(ld_month_to_start) = Check type of data required

DATA(ld_number_of_quarters) = Check type of data required

DATA(ld_object_text_plural) = some text here

DATA(ld_object_text_singular) = some text here

DATA(ld_title_text) = some text here

DATA(ld_year_to_start) = Check type of data required

SELECT single ERSTER_WOCHENTAG
FROM TJHVBER
INTO @DATA(ld_pv_move_sel_wotag).


"populate fields of struture and append to itab
append wa_object_tab to it_object_tab. . CALL FUNCTION 'ISP_OBJECT_CALENDAR_SHOW' EXPORTING detail_key = ld_detail_key * incl_pf2_selection = ld_incl_pf2_selection * incl_pf5_detail = ld_incl_pf5_detail * month_to_start = ld_month_to_start * number_of_quarters = ld_number_of_quarters * object_text_plural = ld_object_text_plural * object_text_singular = ld_object_text_singular * title_text = ld_title_text * year_to_start = ld_year_to_start * pv_move_sel_wotag = ld_pv_move_sel_wotag TABLES object_tab = it_object_tab EXCEPTIONS CALENDAR_TIME_NOT_VALID = 1 DETAIL_ACTIVITY_NOT_VALID = 2 . " ISP_OBJECT_CALENDAR_SHOW
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 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_detail_key  TYPE TJY10-DETAIL_KEY ,
it_object_tab  TYPE STANDARD TABLE OF RJYCAL00 ,
wa_object_tab  LIKE LINE OF it_object_tab,
ld_incl_pf2_selection  TYPE RJYCAL10-XINCL_PF02 ,
ld_incl_pf5_detail  TYPE RJYCAL10-XINCL_PF05 ,
ld_month_to_start  TYPE RJYCAL10-FIRST_MON ,
ld_number_of_quarters  TYPE RJYCAL10-N_QUARTERS ,
ld_object_text_plural  TYPE RJYCAL10-OBJECT_TXN ,
ld_object_text_singular  TYPE RJYCAL10-OBJECT_TX1 ,
ld_title_text  TYPE RJYCAL10-TITLE_TX1 ,
ld_year_to_start  TYPE RJYCAL10-FIRST_YEAR ,
ld_pv_move_sel_wotag  TYPE TJHVBER-ERSTER_WOCHENTAG .


SELECT single DETAIL_KEY
FROM TJY10
INTO ld_detail_key.


"populate fields of struture and append to itab
append wa_object_tab to it_object_tab.

ld_incl_pf2_selection = some text here

ld_incl_pf5_detail = some text here

ld_month_to_start = Check type of data required

ld_number_of_quarters = Check type of data required

ld_object_text_plural = some text here

ld_object_text_singular = some text here

ld_title_text = some text here

ld_year_to_start = Check type of data required

SELECT single ERSTER_WOCHENTAG
FROM TJHVBER
INTO ld_pv_move_sel_wotag.

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