SAP ISM_BUILD_ID_CODE_LIST_FREE Function Module for Generate Table of Free ID Codes
ISM_BUILD_ID_CODE_LIST_FREE is a standard ism build id code list free SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generate Table of Free ID Codes 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 ism build id code list free FM, simply by entering the name ISM_BUILD_ID_CODE_LIST_FREE into the relevant SAP transaction such as SE37 or SE38.
Function Group: JPMPD01
Program Name: SAPLJPMPD01
Main Program: SAPLJPMPD01
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_BUILD_ID_CODE_LIST_FREE 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 'ISM_BUILD_ID_CODE_LIST_FREE'"Generate Table of Free ID Codes.
EXPORTING
PVI_IDCODETYP = "Type of identification code
PVI_IDCODEAREA = "Identification Code Area
PVI_IDCODENUMAREA = "
PVI_MAXNUMID = "
PVI_NO_MAXNUM = "
IMPORTING
PTE_IDCODE_TAB = "
TABLES
* PTE_RECORD = "Search Help Result Structure
EXCEPTIONS
NO_FREE_IDCODE = 1 NUMBER_AREA_NOT_EXIST = 2
IMPORTING Parameters details for ISM_BUILD_ID_CODE_LIST_FREE
PVI_IDCODETYP - Type of identification code
Data type: JPTIDCODE-ISMIDCODETYPEOptional: No
Call by Reference: No ( called with pass by value option)
PVI_IDCODEAREA - Identification Code Area
Data type: JPTIDCODE-ISMIDCODEAREAOptional: No
Call by Reference: No ( called with pass by value option)
PVI_IDCODENUMAREA -
Data type: TJPIDCNUMAR-ISMIDCDNUMAREAOptional: No
Call by Reference: No ( called with pass by value option)
PVI_MAXNUMID -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
PVI_NO_MAXNUM -
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISM_BUILD_ID_CODE_LIST_FREE
PTE_IDCODE_TAB -
Data type: JPISM_IDCODE_TABOptional: No
Call by Reference: Yes
TABLES Parameters details for ISM_BUILD_ID_CODE_LIST_FREE
PTE_RECORD - Search Help Result Structure
Data type: SEAHLPRESOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_FREE_IDCODE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NUMBER_AREA_NOT_EXIST -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISM_BUILD_ID_CODE_LIST_FREE 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: | ||||
| lt_pte_record | TYPE STANDARD TABLE OF SEAHLPRES, " | |||
| lv_pvi_idcodetyp | TYPE JPTIDCODE-ISMIDCODETYPE, " | |||
| lv_no_free_idcode | TYPE JPTIDCODE, " | |||
| lv_pte_idcode_tab | TYPE JPISM_IDCODE_TAB, " | |||
| lv_pvi_idcodearea | TYPE JPTIDCODE-ISMIDCODEAREA, " | |||
| lv_number_area_not_exist | TYPE JPTIDCODE, " | |||
| lv_pvi_idcodenumarea | TYPE TJPIDCNUMAR-ISMIDCDNUMAREA, " | |||
| lv_pvi_maxnumid | TYPE I, " | |||
| lv_pvi_no_maxnum | TYPE XFELD. " |
|   CALL FUNCTION 'ISM_BUILD_ID_CODE_LIST_FREE' "Generate Table of Free ID Codes |
| EXPORTING | ||
| PVI_IDCODETYP | = lv_pvi_idcodetyp | |
| PVI_IDCODEAREA | = lv_pvi_idcodearea | |
| PVI_IDCODENUMAREA | = lv_pvi_idcodenumarea | |
| PVI_MAXNUMID | = lv_pvi_maxnumid | |
| PVI_NO_MAXNUM | = lv_pvi_no_maxnum | |
| IMPORTING | ||
| PTE_IDCODE_TAB | = lv_pte_idcode_tab | |
| TABLES | ||
| PTE_RECORD | = lt_pte_record | |
| EXCEPTIONS | ||
| NO_FREE_IDCODE = 1 | ||
| NUMBER_AREA_NOT_EXIST = 2 | ||
| . " ISM_BUILD_ID_CODE_LIST_FREE | ||
ABAP code using 7.40 inline data declarations to call FM ISM_BUILD_ID_CODE_LIST_FREE
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 ISMIDCODETYPE FROM JPTIDCODE INTO @DATA(ld_pvi_idcodetyp). | ||||
| "SELECT single ISMIDCODEAREA FROM JPTIDCODE INTO @DATA(ld_pvi_idcodearea). | ||||
| "SELECT single ISMIDCDNUMAREA FROM TJPIDCNUMAR INTO @DATA(ld_pvi_idcodenumarea). | ||||
Search for further information about these or an SAP related objects