SAP ISU_S_OWNER_FOR_PREMISE Function Module for EXTERN: Owner of a premise
ISU_S_OWNER_FOR_PREMISE is a standard isu s owner for premise SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EXTERN: Owner of a premise processing and below is the pattern details for this FM, 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 isu s owner for premise FM, simply by entering the name ISU_S_OWNER_FOR_PREMISE into the relevant SAP transaction such as SE37 or SE38.
Function Group: ES51
Program Name: SAPLES51
Main Program: SAPLES51
Appliation area: E
Release date: 02-Nov-1998
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_S_OWNER_FOR_PREMISE 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 'ISU_S_OWNER_FOR_PREMISE'"EXTERN: Owner of a premise.
EXPORTING
* X_VSTELLE = "Premise
* XT_VSTELLE = "Table type for EVBS
* X_KEYDATE = SY-DATUM "Key Date
IMPORTING
Y_OWNER = "Owner
Y_PROPERTY = "Property
YT_EPROP = "All EPROP Records That Meet Selection Criteria
YT_EPROPH = "All EPROPH Records That Meet Selection Criteria
YT_EANL = "All Installations for Premise
EXCEPTIONS
NOT_FOUND = 1 NOT_UNIQUE = 2 GENERAL_FAULT = 3
IMPORTING Parameters details for ISU_S_OWNER_FOR_PREMISE
X_VSTELLE - Premise
Data type: EVBS-VSTELLEOptional: Yes
Call by Reference: No ( called with pass by value option)
XT_VSTELLE - Table type for EVBS
Data type: IEEVBSOptional: Yes
Call by Reference: Yes
X_KEYDATE - Key Date
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISU_S_OWNER_FOR_PREMISE
Y_OWNER - Owner
Data type: EPROP-OWNEROptional: No
Call by Reference: No ( called with pass by value option)
Y_PROPERTY - Property
Data type: EPROP-PROPERTYOptional: No
Call by Reference: No ( called with pass by value option)
YT_EPROP - All EPROP Records That Meet Selection Criteria
Data type: IEEPROPOptional: No
Call by Reference: Yes
YT_EPROPH - All EPROPH Records That Meet Selection Criteria
Data type: IEEPROPHOptional: No
Call by Reference: Yes
YT_EANL - All Installations for Premise
Data type: IEV_EANLOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND - No owner found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_UNIQUE - More than one owner found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GENERAL_FAULT - General Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISU_S_OWNER_FOR_PREMISE 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_y_owner | TYPE EPROP-OWNER, " | |||
| lv_not_found | TYPE EPROP, " | |||
| lv_x_vstelle | TYPE EVBS-VSTELLE, " | |||
| lv_not_unique | TYPE EVBS, " | |||
| lv_xt_vstelle | TYPE IEEVBS, " | |||
| lv_y_property | TYPE EPROP-PROPERTY, " | |||
| lv_yt_eprop | TYPE IEEPROP, " | |||
| lv_x_keydate | TYPE SY-DATUM, " SY-DATUM | |||
| lv_general_fault | TYPE SY, " | |||
| lv_yt_eproph | TYPE IEEPROPH, " | |||
| lv_yt_eanl | TYPE IEV_EANL. " |
|   CALL FUNCTION 'ISU_S_OWNER_FOR_PREMISE' "EXTERN: Owner of a premise |
| EXPORTING | ||
| X_VSTELLE | = lv_x_vstelle | |
| XT_VSTELLE | = lv_xt_vstelle | |
| X_KEYDATE | = lv_x_keydate | |
| IMPORTING | ||
| Y_OWNER | = lv_y_owner | |
| Y_PROPERTY | = lv_y_property | |
| YT_EPROP | = lv_yt_eprop | |
| YT_EPROPH | = lv_yt_eproph | |
| YT_EANL | = lv_yt_eanl | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| NOT_UNIQUE = 2 | ||
| GENERAL_FAULT = 3 | ||
| . " ISU_S_OWNER_FOR_PREMISE | ||
ABAP code using 7.40 inline data declarations to call FM ISU_S_OWNER_FOR_PREMISE
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.| "SELECT single OWNER FROM EPROP INTO @DATA(ld_y_owner). | ||||
| "SELECT single VSTELLE FROM EVBS INTO @DATA(ld_x_vstelle). | ||||
| "SELECT single PROPERTY FROM EPROP INTO @DATA(ld_y_property). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_x_keydate). | ||||
| DATA(ld_x_keydate) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects