SAP ISM_SD_ORDERBOOK_CHANGE Function Module for IS-M: Change Order Book
ISM_SD_ORDERBOOK_CHANGE is a standard ism sd orderbook change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M: Change Order Book 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 orderbook change FM, simply by entering the name ISM_SD_ORDERBOOK_CHANGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: JKSDORDERBOOK_BAPI
Program Name: SAPLJKSDORDERBOOK_BAPI
Main Program: SAPLJKSDORDERBOOK_BAPI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_SD_ORDERBOOK_CHANGE 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_ORDERBOOK_CHANGE'"IS-M: Change Order Book.
EXPORTING
VERSION = "IS-M: Quantity Plan Version
ORDERBOOK = "IS-M: Planned Purchase Order Quantities
ORDERBOOKX = "BAPI Change Table for IS-M Order Book
* TESTRUN = "Switch to Simulation Mode for Write BAPIs
EKORG = "Purchasing Organization
WERKS = "Plant
MED_PROD = "Higher-Level Media Product
MATNR = "Media Issue
PORDER_LFDNR = "IS-M: Sequence Number of Purchase Order Book
PHASEMDL = "Phase Model in Phase-Based Delivery
PHASENBR = "IS-M: Planned Purchase Order Quantities
SPLIT = "
TABLES
RETURN = "Return Parameter(s)
IMPORTING Parameters details for ISM_SD_ORDERBOOK_CHANGE
VERSION - IS-M: Quantity Plan Version
Data type: JKSDORDERBOOK-VERSIONOptional: No
Call by Reference: No ( called with pass by value option)
ORDERBOOK - IS-M: Planned Purchase Order Quantities
Data type: JKSDBAPIISMORDERBOOKOptional: No
Call by Reference: No ( called with pass by value option)
ORDERBOOKX - BAPI Change Table for IS-M Order Book
Data type: JKSDBAPIISMORDERBOOKXOptional: No
Call by Reference: No ( called with pass by value option)
TESTRUN - Switch to Simulation Mode for Write BAPIs
Data type: BAPISFLAUX-TESTRUNOptional: Yes
Call by Reference: No ( called with pass by value option)
EKORG - Purchasing Organization
Data type: JKSDORDERBOOK-EKORGOptional: No
Call by Reference: No ( called with pass by value option)
WERKS - Plant
Data type: JKSDORDERBOOK-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
MED_PROD - Higher-Level Media Product
Data type: JKSDORDERBOOK-MED_PRODOptional: No
Call by Reference: No ( called with pass by value option)
MATNR - Media Issue
Data type: JKSDORDERBOOK-MATNROptional: No
Call by Reference: No ( called with pass by value option)
PORDER_LFDNR - IS-M: Sequence Number of Purchase Order Book
Data type: JKSDORDERBOOK-PORDER_LFDNROptional: No
Call by Reference: No ( called with pass by value option)
PHASEMDL - Phase Model in Phase-Based Delivery
Data type: JKSDORDERBOOK-PHASEMDLOptional: No
Call by Reference: No ( called with pass by value option)
PHASENBR - IS-M: Planned Purchase Order Quantities
Data type: JKSDORDERBOOK-PHASENBROptional: No
Call by Reference: No ( called with pass by value option)
SPLIT -
Data type: JKSDORDERBOOK-SPLITOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISM_SD_ORDERBOOK_CHANGE
RETURN - Return Parameter(s)
Data type: BAPIRET2Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISM_SD_ORDERBOOK_CHANGE 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_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_version | TYPE JKSDORDERBOOK-VERSION, " | |||
| lv_orderbook | TYPE JKSDBAPIISMORDERBOOK, " | |||
| lv_orderbookx | TYPE JKSDBAPIISMORDERBOOKX, " | |||
| lv_testrun | TYPE BAPISFLAUX-TESTRUN, " | |||
| lv_ekorg | TYPE JKSDORDERBOOK-EKORG, " | |||
| lv_werks | TYPE JKSDORDERBOOK-WERKS, " | |||
| lv_med_prod | TYPE JKSDORDERBOOK-MED_PROD, " | |||
| lv_matnr | TYPE JKSDORDERBOOK-MATNR, " | |||
| lv_porder_lfdnr | TYPE JKSDORDERBOOK-PORDER_LFDNR, " | |||
| lv_phasemdl | TYPE JKSDORDERBOOK-PHASEMDL, " | |||
| lv_phasenbr | TYPE JKSDORDERBOOK-PHASENBR, " | |||
| lv_split | TYPE JKSDORDERBOOK-SPLIT. " |
|   CALL FUNCTION 'ISM_SD_ORDERBOOK_CHANGE' "IS-M: Change Order Book |
| EXPORTING | ||
| VERSION | = lv_version | |
| ORDERBOOK | = lv_orderbook | |
| ORDERBOOKX | = lv_orderbookx | |
| TESTRUN | = lv_testrun | |
| EKORG | = lv_ekorg | |
| WERKS | = lv_werks | |
| MED_PROD | = lv_med_prod | |
| MATNR | = lv_matnr | |
| PORDER_LFDNR | = lv_porder_lfdnr | |
| PHASEMDL | = lv_phasemdl | |
| PHASENBR | = lv_phasenbr | |
| SPLIT | = lv_split | |
| TABLES | ||
| RETURN | = lt_return | |
| . " ISM_SD_ORDERBOOK_CHANGE | ||
ABAP code using 7.40 inline data declarations to call FM ISM_SD_ORDERBOOK_CHANGE
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 VERSION FROM JKSDORDERBOOK INTO @DATA(ld_version). | ||||
| "SELECT single TESTRUN FROM BAPISFLAUX INTO @DATA(ld_testrun). | ||||
| "SELECT single EKORG FROM JKSDORDERBOOK INTO @DATA(ld_ekorg). | ||||
| "SELECT single WERKS FROM JKSDORDERBOOK INTO @DATA(ld_werks). | ||||
| "SELECT single MED_PROD FROM JKSDORDERBOOK INTO @DATA(ld_med_prod). | ||||
| "SELECT single MATNR FROM JKSDORDERBOOK INTO @DATA(ld_matnr). | ||||
| "SELECT single PORDER_LFDNR FROM JKSDORDERBOOK INTO @DATA(ld_porder_lfdnr). | ||||
| "SELECT single PHASEMDL FROM JKSDORDERBOOK INTO @DATA(ld_phasemdl). | ||||
| "SELECT single PHASENBR FROM JKSDORDERBOOK INTO @DATA(ld_phasenbr). | ||||
| "SELECT single SPLIT FROM JKSDORDERBOOK INTO @DATA(ld_split). | ||||
Search for further information about these or an SAP related objects