SAP GET_KISK_VIA_VERID Function Module for NOTRANSL: Schlüsselfelder KISK über Material, Werk und Fertigungsversion e
GET_KISK_VIA_VERID is a standard get kisk via verid SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Schlüsselfelder KISK über Material, Werk und Fertigungsversion e 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 get kisk via verid FM, simply by entering the name GET_KISK_VIA_VERID into the relevant SAP transaction such as SE37 or SE38.
Function Group: SAUF
Program Name: SAPLSAUF
Main Program: SAPLSAUF
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function GET_KISK_VIA_VERID 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 'GET_KISK_VIA_VERID'"NOTRANSL: Schlüsselfelder KISK über Material, Werk und Fertigungsversion e.
EXPORTING
IMATNR = "Material
IWERKS = "Plant
IVERID = "Production Version
* IDATUM = SY-DATLO "ABAP System Field: Local Date of Current User
* ISFPRO = "Repetitive manufacturing profile
IMPORTING
EKISK = "Key Fields CKIS
ESUBRC = "ABAP System Field: Return Code of ABAP Statements
EXCEPTIONS
TABLE_ACCESS_ERROR = 1 AUFPL_FIND_ERROR = 2 INVALID_TABLE_ENTRY = 3
IMPORTING Parameters details for GET_KISK_VIA_VERID
IMATNR - Material
Data type: RM61B-MATNROptional: No
Call by Reference: No ( called with pass by value option)
IWERKS - Plant
Data type: RM61B-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
IVERID - Production Version
Data type: RM61B-VERIDOptional: No
Call by Reference: No ( called with pass by value option)
IDATUM - ABAP System Field: Local Date of Current User
Data type: SY-DATLODefault: SY-DATLO
Optional: Yes
Call by Reference: No ( called with pass by value option)
ISFPRO - Repetitive manufacturing profile
Data type: T437S-SFPROOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for GET_KISK_VIA_VERID
EKISK - Key Fields CKIS
Data type: KISKOptional: No
Call by Reference: No ( called with pass by value option)
ESUBRC - ABAP System Field: Return Code of ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
TABLE_ACCESS_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AUFPL_FIND_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_TABLE_ENTRY - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for GET_KISK_VIA_VERID 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_ekisk | TYPE KISK, " | |||
| lv_imatnr | TYPE RM61B-MATNR, " | |||
| lv_table_access_error | TYPE RM61B, " | |||
| lv_esubrc | TYPE SY-SUBRC, " | |||
| lv_iwerks | TYPE RM61B-WERKS, " | |||
| lv_aufpl_find_error | TYPE RM61B, " | |||
| lv_iverid | TYPE RM61B-VERID, " | |||
| lv_invalid_table_entry | TYPE RM61B, " | |||
| lv_idatum | TYPE SY-DATLO, " SY-DATLO | |||
| lv_isfpro | TYPE T437S-SFPRO. " |
|   CALL FUNCTION 'GET_KISK_VIA_VERID' "NOTRANSL: Schlüsselfelder KISK über Material, Werk und Fertigungsversion e |
| EXPORTING | ||
| IMATNR | = lv_imatnr | |
| IWERKS | = lv_iwerks | |
| IVERID | = lv_iverid | |
| IDATUM | = lv_idatum | |
| ISFPRO | = lv_isfpro | |
| IMPORTING | ||
| EKISK | = lv_ekisk | |
| ESUBRC | = lv_esubrc | |
| EXCEPTIONS | ||
| TABLE_ACCESS_ERROR = 1 | ||
| AUFPL_FIND_ERROR = 2 | ||
| INVALID_TABLE_ENTRY = 3 | ||
| . " GET_KISK_VIA_VERID | ||
ABAP code using 7.40 inline data declarations to call FM GET_KISK_VIA_VERID
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 MATNR FROM RM61B INTO @DATA(ld_imatnr). | ||||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_esubrc). | ||||
| "SELECT single WERKS FROM RM61B INTO @DATA(ld_iwerks). | ||||
| "SELECT single VERID FROM RM61B INTO @DATA(ld_iverid). | ||||
| "SELECT single DATLO FROM SY INTO @DATA(ld_idatum). | ||||
| DATA(ld_idatum) | = SY-DATLO. | |||
| "SELECT single SFPRO FROM T437S INTO @DATA(ld_isfpro). | ||||
Search for further information about these or an SAP related objects