SAP ISM_SD_API_SQP_QUANT_CALC Function Module for Calculate Sales Quantity Planning









ISM_SD_API_SQP_QUANT_CALC is a standard ism sd api sqp quant calc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Calculate 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 calc FM, simply by entering the name ISM_SD_API_SQP_QUANT_CALC 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_CALC 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_CALC'"Calculate Sales Quantity Planning
EXPORTING
IM_MEDIAPRODUCT = "Media Product
* IM_FILTER = "Filter for Quantity Planning View
* IM_PLANT = "Plant
* IM_VKORG = "Sales Organization
* IM_VTWEG = "Distribution Channel
* IM_SPART = "Division
* 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_PLORG = "Planning Organization
IM_METHODID = "Calculation Method in Quantity Planning
* IM_TIME_ID = "Times in Planning Process for Sales Planning
* IM_LOADER = "Loading Method for Historical Sales Figures and Indicators

IMPORTING
EX_RETURN = "Table of Messages
.



IMPORTING Parameters details for ISM_SD_API_SQP_QUANT_CALC

IM_MEDIAPRODUCT - Media Product

Data type: ISMMATNR_PRODUCT
Optional: No
Call by Reference: No ( called with pass by value option)

IM_FILTER - Filter for Quantity Planning View

Data type: JFILTERID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_PLANT - Plant

Data type: RJKSD_WERKS_RANGE_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_VKORG - Sales Organization

Data type: RJKSD_VKORG_RANGE_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_VTWEG - Distribution Channel

Data type: RJKSD_VTWEG_RANGE_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_SPART - Division

Data type: RJKSD_SPART_RANGE_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_TEST - Test Run

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_MEDIAISSUE - Media Issue

Data type: ISMMATNR_ISSUE
Optional: No
Call by Reference: No ( called with pass by value option)

IM_VERSION - Quantity Plan Version

Data type: JSDVERSION
Default: '000 '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_PHASEMDL - Phase Model in Phase-Based Delivery

Data type: RJKSD_PHASEMDL_RANGE_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

IM_PHASENBR - Sequence Number in Phase-Based Delivery

Data type: RJKSD_PHASENBR_RANGE_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

IM_PLORG - Planning Organization

Data type: JPLANORG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_METHODID - Calculation Method in Quantity Planning

Data type: JFUNCID
Optional: No
Call by Reference: No ( called with pass by value option)

IM_TIME_ID - Times in Planning Process for Sales Planning

Data type: JSQPPLANTIME_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_LOADER - Loading Method for Historical Sales Figures and Indicators

Data type: JLOADERID
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ISM_SD_API_SQP_QUANT_CALC

EX_RETURN - Table of Messages

Data type: BAPIRET2TAB
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ISM_SD_API_SQP_QUANT_CALC 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_filter  TYPE JFILTERID, "   
lv_im_plant  TYPE RJKSD_WERKS_RANGE_TAB, "   
lv_im_vkorg  TYPE RJKSD_VKORG_RANGE_TAB, "   
lv_im_vtweg  TYPE RJKSD_VTWEG_RANGE_TAB, "   
lv_im_spart  TYPE RJKSD_SPART_RANGE_TAB, "   
lv_im_test  TYPE XFELD, "   SPACE
lv_im_mediaissue  TYPE ISMMATNR_ISSUE, "   
lv_im_version  TYPE JSDVERSION, "   '000 '
lv_im_phasemdl  TYPE RJKSD_PHASEMDL_RANGE_TAB, "   
lv_im_phasenbr  TYPE RJKSD_PHASENBR_RANGE_TAB, "   
lv_im_plorg  TYPE JPLANORG, "   
lv_im_methodid  TYPE JFUNCID, "   
lv_im_time_id  TYPE JSQPPLANTIME_ID, "   
lv_im_loader  TYPE JLOADERID. "   

  CALL FUNCTION 'ISM_SD_API_SQP_QUANT_CALC'  "Calculate Sales Quantity Planning
    EXPORTING
         IM_MEDIAPRODUCT = lv_im_mediaproduct
         IM_FILTER = lv_im_filter
         IM_PLANT = lv_im_plant
         IM_VKORG = lv_im_vkorg
         IM_VTWEG = lv_im_vtweg
         IM_SPART = lv_im_spart
         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_PLORG = lv_im_plorg
         IM_METHODID = lv_im_methodid
         IM_TIME_ID = lv_im_time_id
         IM_LOADER = lv_im_loader
    IMPORTING
         EX_RETURN = lv_ex_return
. " ISM_SD_API_SQP_QUANT_CALC




ABAP code using 7.40 inline data declarations to call FM ISM_SD_API_SQP_QUANT_CALC

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 '.
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!