SAP ISM_SD_API_SQP_QUANT_ADJUST Function Module for Adjust Sales Quantity Planning
ISM_SD_API_SQP_QUANT_ADJUST is a standard ism sd api sqp quant adjust SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Adjust Sales Quantity Planning 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 api sqp quant adjust FM, simply by entering the name ISM_SD_API_SQP_QUANT_ADJUST into the relevant SAP transaction such as SE37 or SE38.
Function Group: JKSDSQP_BATCH
Program Name: SAPLJKSDSQP_BATCH
Main Program: SAPLJKSDSQP_BATCH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function ISM_SD_API_SQP_QUANT_ADJUST 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_API_SQP_QUANT_ADJUST'"Adjust Sales Quantity Planning.
EXPORTING
IM_MEDIAPRODUCT = "Media Product
IM_RECORD_NEW = "
IM_RECORD_NEW_X = "
* IM_TEST = ' ' "Test Run
IM_MEDIAISSUE = "Media Issue
* IM_VERSION = '000 ' "Quantity Plan Version
IM_PHASEMDL = "Phase Model in Phase-Based Delivery
IM_PHASENBR = "Sequence Number in Phase-Based Delivery
IM_METHODID = "Distribution Method in Quantity Planning
* IM_PLANT = "Plant
* IM_LOADER = "Loading Method for Historical Sales Figures and Indicators
IM_PLANORG = "Planning Organization
IMPORTING
EX_RETURN = "Table of Messages
IMPORTING Parameters details for ISM_SD_API_SQP_QUANT_ADJUST
IM_MEDIAPRODUCT - Media Product
Data type: ISMMATNR_PRODUCTOptional: No
Call by Reference: No ( called with pass by value option)
IM_RECORD_NEW -
Data type: RJKSDSQPQUANTITIESOptional: No
Call by Reference: No ( called with pass by value option)
IM_RECORD_NEW_X -
Data type: RJKSDSQPQUANTITIES_XOptional: No
Call by Reference: No ( called with pass by value option)
IM_TEST - Test Run
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_MEDIAISSUE - Media Issue
Data type: ISMMATNR_ISSUEOptional: No
Call by Reference: No ( called with pass by value option)
IM_VERSION - Quantity Plan Version
Data type: JSDVERSIONDefault: '000 '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_PHASEMDL - Phase Model in Phase-Based Delivery
Data type: JKSDDEMAND-PHASEMDLOptional: No
Call by Reference: No ( called with pass by value option)
IM_PHASENBR - Sequence Number in Phase-Based Delivery
Data type: JKSDDEMAND-PHASENBROptional: No
Call by Reference: No ( called with pass by value option)
IM_METHODID - Distribution Method in Quantity Planning
Data type: JMETHODIDOptional: No
Call by Reference: No ( called with pass by value option)
IM_PLANT - Plant
Data type: RJKSD_WERKS_RANGE_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_LOADER - Loading Method for Historical Sales Figures and Indicators
Data type: JLOADERIDOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_PLANORG - Planning Organization
Data type: JPLANORGOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISM_SD_API_SQP_QUANT_ADJUST
EX_RETURN - Table of Messages
Data type: BAPIRET2TABOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISM_SD_API_SQP_QUANT_ADJUST 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_ex_return | TYPE BAPIRET2TAB, " | |||
| lv_im_mediaproduct | TYPE ISMMATNR_PRODUCT, " | |||
| lv_im_record_new | TYPE RJKSDSQPQUANTITIES, " | |||
| lv_im_record_new_x | TYPE RJKSDSQPQUANTITIES_X, " | |||
| lv_im_test | TYPE XFELD, " SPACE | |||
| lv_im_mediaissue | TYPE ISMMATNR_ISSUE, " | |||
| lv_im_version | TYPE JSDVERSION, " '000 ' | |||
| lv_im_phasemdl | TYPE JKSDDEMAND-PHASEMDL, " | |||
| lv_im_phasenbr | TYPE JKSDDEMAND-PHASENBR, " | |||
| lv_im_methodid | TYPE JMETHODID, " | |||
| lv_im_plant | TYPE RJKSD_WERKS_RANGE_TAB, " | |||
| lv_im_loader | TYPE JLOADERID, " | |||
| lv_im_planorg | TYPE JPLANORG. " |
|   CALL FUNCTION 'ISM_SD_API_SQP_QUANT_ADJUST' "Adjust Sales Quantity Planning |
| EXPORTING | ||
| IM_MEDIAPRODUCT | = lv_im_mediaproduct | |
| IM_RECORD_NEW | = lv_im_record_new | |
| IM_RECORD_NEW_X | = lv_im_record_new_x | |
| IM_TEST | = lv_im_test | |
| IM_MEDIAISSUE | = lv_im_mediaissue | |
| IM_VERSION | = lv_im_version | |
| IM_PHASEMDL | = lv_im_phasemdl | |
| IM_PHASENBR | = lv_im_phasenbr | |
| IM_METHODID | = lv_im_methodid | |
| IM_PLANT | = lv_im_plant | |
| IM_LOADER | = lv_im_loader | |
| IM_PLANORG | = lv_im_planorg | |
| IMPORTING | ||
| EX_RETURN | = lv_ex_return | |
| . " ISM_SD_API_SQP_QUANT_ADJUST | ||
ABAP code using 7.40 inline data declarations to call FM ISM_SD_API_SQP_QUANT_ADJUST
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_test) | = ' '. | |||
| DATA(ld_im_version) | = '000 '. | |||
| "SELECT single PHASEMDL FROM JKSDDEMAND INTO @DATA(ld_im_phasemdl). | ||||
| "SELECT single PHASENBR FROM JKSDDEMAND INTO @DATA(ld_im_phasenbr). | ||||
Search for further information about these or an SAP related objects