SAP ISH_WP_OCCUPANCY Function Module for
ISH_WP_OCCUPANCY is a standard ish wp occupancy SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for ish wp occupancy FM, simply by entering the name ISH_WP_OCCUPANCY into the relevant SAP transaction such as SE37 or SE38.
Function Group: N0WP
Program Name: SAPLN0WP
Main Program: SAPLN0WP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function ISH_WP_OCCUPANCY pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'ISH_WP_OCCUPANCY'".
EXPORTING
* IT_NORG = "
* I_N_DAYS = "
* I_OU_XVAL = ' ' "
* I_DEP_VIEW = "
* I_NURS_VIEW = "
* I_CURRENT = "
* I_PERIOD_START = "
* I_PERIOD_END = "
* I_PERIOD = "
* I_N_WEEKS = "
* I_N_MONTHS = "
IMPORTING
ET_PIGVALUES1 = "
E_VAL_DATE = "
E_VAL_TIME = "
EXCEPTIONS
WRONG_IMPORT_PARAMETERS = 1 MULTIPLE_PERIODS_SELECTED = 2
IMPORTING Parameters details for ISH_WP_OCCUPANCY
IT_NORG -
Data type: ISH_YT_NORGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_N_DAYS -
Data type: INT_1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OU_XVAL -
Data type: ISH_ON_OFFDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DEP_VIEW -
Data type: ISH_ON_OFFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NURS_VIEW -
Data type: ISH_ON_OFFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CURRENT -
Data type: ISH_ON_OFFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PERIOD_START -
Data type: SCAL-DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PERIOD_END -
Data type: SCAL-DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PERIOD -
Data type: NC1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_N_WEEKS -
Data type: INT_1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_N_MONTHS -
Data type: INT_1Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_WP_OCCUPANCY
ET_PIGVALUES1 -
Data type: ISH_T_PIGVALUESOptional: No
Call by Reference: No ( called with pass by value option)
E_VAL_DATE -
Data type: SCAL-DATEOptional: No
Call by Reference: No ( called with pass by value option)
E_VAL_TIME -
Data type: UZEITOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WRONG_IMPORT_PARAMETERS -
Data type:Optional: No
Call by Reference: Yes
MULTIPLE_PERIODS_SELECTED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISH_WP_OCCUPANCY Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_it_norg | TYPE ISH_YT_NORG, " | |||
| lv_et_pigvalues1 | TYPE ISH_T_PIGVALUES, " | |||
| lv_wrong_import_parameters | TYPE ISH_T_PIGVALUES, " | |||
| lv_i_n_days | TYPE INT_1, " | |||
| lv_i_ou_xval | TYPE ISH_ON_OFF, " ' ' | |||
| lv_e_val_date | TYPE SCAL-DATE, " | |||
| lv_i_dep_view | TYPE ISH_ON_OFF, " | |||
| lv_multiple_periods_selected | TYPE ISH_ON_OFF, " | |||
| lv_e_val_time | TYPE UZEIT, " | |||
| lv_i_nurs_view | TYPE ISH_ON_OFF, " | |||
| lv_i_current | TYPE ISH_ON_OFF, " | |||
| lv_i_period_start | TYPE SCAL-DATE, " | |||
| lv_i_period_end | TYPE SCAL-DATE, " | |||
| lv_i_period | TYPE NC1, " | |||
| lv_i_n_weeks | TYPE INT_1, " | |||
| lv_i_n_months | TYPE INT_1. " |
|   CALL FUNCTION 'ISH_WP_OCCUPANCY' " |
| EXPORTING | ||
| IT_NORG | = lv_it_norg | |
| I_N_DAYS | = lv_i_n_days | |
| I_OU_XVAL | = lv_i_ou_xval | |
| I_DEP_VIEW | = lv_i_dep_view | |
| I_NURS_VIEW | = lv_i_nurs_view | |
| I_CURRENT | = lv_i_current | |
| I_PERIOD_START | = lv_i_period_start | |
| I_PERIOD_END | = lv_i_period_end | |
| I_PERIOD | = lv_i_period | |
| I_N_WEEKS | = lv_i_n_weeks | |
| I_N_MONTHS | = lv_i_n_months | |
| IMPORTING | ||
| ET_PIGVALUES1 | = lv_et_pigvalues1 | |
| E_VAL_DATE | = lv_e_val_date | |
| E_VAL_TIME | = lv_e_val_time | |
| EXCEPTIONS | ||
| WRONG_IMPORT_PARAMETERS = 1 | ||
| MULTIPLE_PERIODS_SELECTED = 2 | ||
| . " ISH_WP_OCCUPANCY | ||
ABAP code using 7.40 inline data declarations to call FM ISH_WP_OCCUPANCY
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_i_ou_xval) | = ' '. | |||
| "SELECT single DATE FROM SCAL INTO @DATA(ld_e_val_date). | ||||
| "SELECT single DATE FROM SCAL INTO @DATA(ld_i_period_start). | ||||
| "SELECT single DATE FROM SCAL INTO @DATA(ld_i_period_end). | ||||
Search for further information about these or an SAP related objects