SAP ISM_SD_SEQ_SELECT_WITH_PARAM Function Module for Select Issue Sequence with Parameters
ISM_SD_SEQ_SELECT_WITH_PARAM is a standard ism sd seq select with param SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Select Issue Sequence with Parameters 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 sd seq select with param FM, simply by entering the name ISM_SD_SEQ_SELECT_WITH_PARAM into the relevant SAP transaction such as SE37 or SE38.
Function Group: JKSDDEMANDSEQUENCE
Program Name: SAPLJKSDDEMANDSEQUENCE
Main Program: SAPLJISMDELSEQ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_SD_SEQ_SELECT_WITH_PARAM 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_SD_SEQ_SELECT_WITH_PARAM'"Select Issue Sequence with Parameters.
EXPORTING
IM_PRODUCT = "Media Product
* IM_ISSUE_FROM = "Media Issue
* IM_ISSUE_TO = "Media Issue
* IM_DATE_FROM = "Date From
* IM_DATE_TO = "To Date
* IM_COPYNR_FROM = "Copy Number of Media Issue
* IM_COPYNR_TO = "Copy Number of Media Issue
* IM_FLAG_HORIZONT = 'X' "Checkbox Field
IMPORTING
OUT_SEQUENCE_TAB = "IS-M: Table Type for JPTMG0
OUT_RETURN_TAB = "IS-M: BAPIRET2 Table
EXCEPTIONS
SEQUENCE_NOT_FOUND = 1 INVALID_PARAMETER = 2
IMPORTING Parameters details for ISM_SD_SEQ_SELECT_WITH_PARAM
IM_PRODUCT - Media Product
Data type: ISMMATNR_PRODUCTOptional: No
Call by Reference: Yes
IM_ISSUE_FROM - Media Issue
Data type: ISMISSUEFROMOptional: Yes
Call by Reference: Yes
IM_ISSUE_TO - Media Issue
Data type: ISMISSUETOOptional: Yes
Call by Reference: Yes
IM_DATE_FROM - Date From
Data type: ISMDATEFROMOptional: Yes
Call by Reference: Yes
IM_DATE_TO - To Date
Data type: ISMDATETOOptional: Yes
Call by Reference: Yes
IM_COPYNR_FROM - Copy Number of Media Issue
Data type: ISMHEFTNUMMEROptional: Yes
Call by Reference: Yes
IM_COPYNR_TO - Copy Number of Media Issue
Data type: ISMHEFTNUMMEROptional: Yes
Call by Reference: Yes
IM_FLAG_HORIZONT - Checkbox Field
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ISM_SD_SEQ_SELECT_WITH_PARAM
OUT_SEQUENCE_TAB - IS-M: Table Type for JPTMG0
Data type: RJKSEJPTMG0_TABOptional: No
Call by Reference: Yes
OUT_RETURN_TAB - IS-M: BAPIRET2 Table
Data type: BAPIRET2TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
SEQUENCE_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
INVALID_PARAMETER - Incorrect Import Parameter(s)
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISM_SD_SEQ_SELECT_WITH_PARAM 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_im_product | TYPE ISMMATNR_PRODUCT, " | |||
| lv_out_sequence_tab | TYPE RJKSEJPTMG0_TAB, " | |||
| lv_sequence_not_found | TYPE RJKSEJPTMG0_TAB, " | |||
| lv_im_issue_from | TYPE ISMISSUEFROM, " | |||
| lv_out_return_tab | TYPE BAPIRET2TAB, " | |||
| lv_invalid_parameter | TYPE BAPIRET2TAB, " | |||
| lv_im_issue_to | TYPE ISMISSUETO, " | |||
| lv_im_date_from | TYPE ISMDATEFROM, " | |||
| lv_im_date_to | TYPE ISMDATETO, " | |||
| lv_im_copynr_from | TYPE ISMHEFTNUMMER, " | |||
| lv_im_copynr_to | TYPE ISMHEFTNUMMER, " | |||
| lv_im_flag_horizont | TYPE XFELD. " 'X' |
|   CALL FUNCTION 'ISM_SD_SEQ_SELECT_WITH_PARAM' "Select Issue Sequence with Parameters |
| EXPORTING | ||
| IM_PRODUCT | = lv_im_product | |
| IM_ISSUE_FROM | = lv_im_issue_from | |
| IM_ISSUE_TO | = lv_im_issue_to | |
| IM_DATE_FROM | = lv_im_date_from | |
| IM_DATE_TO | = lv_im_date_to | |
| IM_COPYNR_FROM | = lv_im_copynr_from | |
| IM_COPYNR_TO | = lv_im_copynr_to | |
| IM_FLAG_HORIZONT | = lv_im_flag_horizont | |
| IMPORTING | ||
| OUT_SEQUENCE_TAB | = lv_out_sequence_tab | |
| OUT_RETURN_TAB | = lv_out_return_tab | |
| EXCEPTIONS | ||
| SEQUENCE_NOT_FOUND = 1 | ||
| INVALID_PARAMETER = 2 | ||
| . " ISM_SD_SEQ_SELECT_WITH_PARAM | ||
ABAP code using 7.40 inline data declarations to call FM ISM_SD_SEQ_SELECT_WITH_PARAM
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_im_flag_horizont) | = 'X'. | |||
Search for further information about these or an SAP related objects