SAP ISU_DB_VERTRAG_SELECT_GP_VS Function Module for Read Contract Numbers Using BP, CA, or Premise
ISU_DB_VERTRAG_SELECT_GP_VS is a standard isu db vertrag select gp vs SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Contract Numbers Using BP, CA, or 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 db vertrag select gp vs FM, simply by entering the name ISU_DB_VERTRAG_SELECT_GP_VS into the relevant SAP transaction such as SE37 or SE38.
Function Group: ES21
Program Name: SAPLES21
Main Program: SAPLES21
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_DB_VERTRAG_SELECT_GP_VS 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_DB_VERTRAG_SELECT_GP_VS'"Read Contract Numbers Using BP, CA, or Premise.
EXPORTING
* X_PARTNER = "Business Partner Number
* X_CRM_OBJECT_ID = "Transaction Number in CRM Document
* X_CRM_OBJECT_POS = "Item Number in CRM Document
* X_CRM_OBJECT_GUID = "Globally Unique Identifier
* X_VKONTO = "Contract Account Number
* X_VSTELLE = "Premise
* X_ANLAGE = "Installation
* X_VERTRAG = "Contract
* X_SPARTE = "Division
* X_GEMFAKT = "Invoice Contracts Jointly (Mandatory Contracts)
* X_DATE = "Date and Time, Current (Application Server) Date
* X_LASTONLY = "Indicator
TABLES
TY_CONTRACT = "Table of contracts and installations
EXCEPTIONS
NOT_FOUND = 1 SYSTEM_ERROR = 2 INSUFFICIENT_SELECTION = 3
IMPORTING Parameters details for ISU_DB_VERTRAG_SELECT_GP_VS
X_PARTNER - Business Partner Number
Data type: GPART_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CRM_OBJECT_ID - Transaction Number in CRM Document
Data type: ECRMT_OBJECT_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CRM_OBJECT_POS - Item Number in CRM Document
Data type: ECRM_ITEM_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CRM_OBJECT_GUID - Globally Unique Identifier
Data type: GUIDOptional: Yes
Call by Reference: No ( called with pass by value option)
X_VKONTO - Contract Account Number
Data type: VKONT_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
X_VSTELLE - Premise
Data type: VSTELLEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_ANLAGE - Installation
Data type: ANLAGEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_VERTRAG - Contract
Data type: VERTRAGOptional: Yes
Call by Reference: No ( called with pass by value option)
X_SPARTE - Division
Data type: SPARTEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_GEMFAKT - Invoice Contracts Jointly (Mandatory Contracts)
Data type: E_GEMFAKTOptional: Yes
Call by Reference: No ( called with pass by value option)
X_DATE - Date and Time, Current (Application Server) Date
Data type: SYDATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
X_LASTONLY - Indicator
Data type: KENNZXOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISU_DB_VERTRAG_SELECT_GP_VS
TY_CONTRACT - Table of contracts and installations
Data type: IEVERTRAGANLAGEOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
SYSTEM_ERROR -
Data type:Optional: No
Call by Reference: Yes
INSUFFICIENT_SELECTION -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISU_DB_VERTRAG_SELECT_GP_VS 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_not_found | TYPE STRING, " | |||
| lv_x_partner | TYPE GPART_KK, " | |||
| lt_ty_contract | TYPE STANDARD TABLE OF IEVERTRAGANLAGE, " | |||
| lv_x_crm_object_id | TYPE ECRMT_OBJECT_ID, " | |||
| lv_x_crm_object_pos | TYPE ECRM_ITEM_NO, " | |||
| lv_x_crm_object_guid | TYPE GUID, " | |||
| lv_x_vkonto | TYPE VKONT_KK, " | |||
| lv_system_error | TYPE VKONT_KK, " | |||
| lv_x_vstelle | TYPE VSTELLE, " | |||
| lv_insufficient_selection | TYPE VSTELLE, " | |||
| lv_x_anlage | TYPE ANLAGE, " | |||
| lv_x_vertrag | TYPE VERTRAG, " | |||
| lv_x_sparte | TYPE SPARTE, " | |||
| lv_x_gemfakt | TYPE E_GEMFAKT, " | |||
| lv_x_date | TYPE SYDATUM, " | |||
| lv_x_lastonly | TYPE KENNZX. " |
|   CALL FUNCTION 'ISU_DB_VERTRAG_SELECT_GP_VS' "Read Contract Numbers Using BP, CA, or Premise |
| EXPORTING | ||
| X_PARTNER | = lv_x_partner | |
| X_CRM_OBJECT_ID | = lv_x_crm_object_id | |
| X_CRM_OBJECT_POS | = lv_x_crm_object_pos | |
| X_CRM_OBJECT_GUID | = lv_x_crm_object_guid | |
| X_VKONTO | = lv_x_vkonto | |
| X_VSTELLE | = lv_x_vstelle | |
| X_ANLAGE | = lv_x_anlage | |
| X_VERTRAG | = lv_x_vertrag | |
| X_SPARTE | = lv_x_sparte | |
| X_GEMFAKT | = lv_x_gemfakt | |
| X_DATE | = lv_x_date | |
| X_LASTONLY | = lv_x_lastonly | |
| TABLES | ||
| TY_CONTRACT | = lt_ty_contract | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| SYSTEM_ERROR = 2 | ||
| INSUFFICIENT_SELECTION = 3 | ||
| . " ISU_DB_VERTRAG_SELECT_GP_VS | ||
ABAP code using 7.40 inline data declarations to call FM ISU_DB_VERTRAG_SELECT_GP_VS
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.Search for further information about these or an SAP related objects