SAP ISM_API_CQP_ADD_DEFAULT Function Module for Create Default Service
ISM_API_CQP_ADD_DEFAULT is a standard ism api cqp add default SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Default Service 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 api cqp add default FM, simply by entering the name ISM_API_CQP_ADD_DEFAULT into the relevant SAP transaction such as SE37 or SE38.
Function Group: JKSDCQP_API
Program Name: SAPLJKSDCQP_API
Main Program: SAPLJKSDCQP_API
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_API_CQP_ADD_DEFAULT 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_API_CQP_ADD_DEFAULT'"Create Default Service.
EXPORTING
IM_CONTRACT = "Contract Number
* IM_QUANTITY2 = "Quantity 2 for Constant Quantity Plan
* IM_QUANTITY3 = "Quantity 3 for Constant Quantity Plan
* IM_QUANTITY4 = "Quantity 4 for Constant Quantity Plan
* IM_QUANTITY5 = "Quantity 5 for Constant Quantity Plan
* IM_QUANTITY6 = "Quantity 6 for Constant Quantity Plan
* IM_QUANTITY7 = "Quantity 7 for Constant Quantity Plan
* IM_QUANTITY8 = "Quantity 8 for Constant Quantity Plan
* IM_QUANTITY9 = "Quantity 9 for Constant Quantity Plan
* IM_ACTIVATE = "
* IM_PLANORG_TAB = "Planning Organization
IM_ITEM = "Item Number in Contract
* IM_SUPPLYSTATUS = "Supply Reason for Constant Service (Supply Active)
* IM_DATEFROM = "Start Date
* IM_DATETO = "End Date
* IM_WEEKDAYS = "Weekdays
* IM_REASON = "Constant Service Reason
* IM_COMMENTTEXT = "Constant Service Comment
* IM_QUANTITY = "Delivery Quantity
* IM_QUANTITY1 = "Quantity 1 for Constant Quantity Plan
IMPORTING
EX_RETURN_TAB = "Table of Messages
IMPORTING Parameters details for ISM_API_CQP_ADD_DEFAULT
IM_CONTRACT - Contract Number
Data type: JVBELNCONTRACTOptional: No
Call by Reference: No ( called with pass by value option)
IM_QUANTITY2 - Quantity 2 for Constant Quantity Plan
Data type: JCQPQUANTITY2Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_QUANTITY3 - Quantity 3 for Constant Quantity Plan
Data type: JCQPQUANTITY3Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_QUANTITY4 - Quantity 4 for Constant Quantity Plan
Data type: JCQPQUANTITY4Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_QUANTITY5 - Quantity 5 for Constant Quantity Plan
Data type: JCQPQUANTITY5Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_QUANTITY6 - Quantity 6 for Constant Quantity Plan
Data type: JCQPQUANTITY6Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_QUANTITY7 - Quantity 7 for Constant Quantity Plan
Data type: JCQPQUANTITY7Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_QUANTITY8 - Quantity 8 for Constant Quantity Plan
Data type: JCQPQUANTITY8Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_QUANTITY9 - Quantity 9 for Constant Quantity Plan
Data type: JCQPQUANTITY9Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_ACTIVATE -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_PLANORG_TAB - Planning Organization
Data type: RJKSD_PLANORG_RANGE_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_ITEM - Item Number in Contract
Data type: JPOSNRCONTRACTOptional: No
Call by Reference: No ( called with pass by value option)
IM_SUPPLYSTATUS - Supply Reason for Constant Service (Supply Active)
Data type: SUPPLYSTATUS_SUPPLYOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_DATEFROM - Start Date
Data type: SYDATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_DATETO - End Date
Data type: SYDATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_WEEKDAYS - Weekdays
Data type: ISM_WEEKDAY_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_REASON - Constant Service Reason
Data type: REASONSERVICEOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_COMMENTTEXT - Constant Service Comment
Data type: JKSDCQPCOMMENTOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_QUANTITY - Delivery Quantity
Data type: JDELQUANTITYOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_QUANTITY1 - Quantity 1 for Constant Quantity Plan
Data type: JCQPQUANTITY1Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISM_API_CQP_ADD_DEFAULT
EX_RETURN_TAB - 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_API_CQP_ADD_DEFAULT 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_contract | TYPE JVBELNCONTRACT, " | |||
| lv_ex_return_tab | TYPE BAPIRET2TAB, " | |||
| lv_im_quantity2 | TYPE JCQPQUANTITY2, " | |||
| lv_im_quantity3 | TYPE JCQPQUANTITY3, " | |||
| lv_im_quantity4 | TYPE JCQPQUANTITY4, " | |||
| lv_im_quantity5 | TYPE JCQPQUANTITY5, " | |||
| lv_im_quantity6 | TYPE JCQPQUANTITY6, " | |||
| lv_im_quantity7 | TYPE JCQPQUANTITY7, " | |||
| lv_im_quantity8 | TYPE JCQPQUANTITY8, " | |||
| lv_im_quantity9 | TYPE JCQPQUANTITY9, " | |||
| lv_im_activate | TYPE XFELD, " | |||
| lv_im_planorg_tab | TYPE RJKSD_PLANORG_RANGE_TAB, " | |||
| lv_im_item | TYPE JPOSNRCONTRACT, " | |||
| lv_im_supplystatus | TYPE SUPPLYSTATUS_SUPPLY, " | |||
| lv_im_datefrom | TYPE SYDATUM, " | |||
| lv_im_dateto | TYPE SYDATUM, " | |||
| lv_im_weekdays | TYPE ISM_WEEKDAY_TAB, " | |||
| lv_im_reason | TYPE REASONSERVICE, " | |||
| lv_im_commenttext | TYPE JKSDCQPCOMMENT, " | |||
| lv_im_quantity | TYPE JDELQUANTITY, " | |||
| lv_im_quantity1 | TYPE JCQPQUANTITY1. " |
|   CALL FUNCTION 'ISM_API_CQP_ADD_DEFAULT' "Create Default Service |
| EXPORTING | ||
| IM_CONTRACT | = lv_im_contract | |
| IM_QUANTITY2 | = lv_im_quantity2 | |
| IM_QUANTITY3 | = lv_im_quantity3 | |
| IM_QUANTITY4 | = lv_im_quantity4 | |
| IM_QUANTITY5 | = lv_im_quantity5 | |
| IM_QUANTITY6 | = lv_im_quantity6 | |
| IM_QUANTITY7 | = lv_im_quantity7 | |
| IM_QUANTITY8 | = lv_im_quantity8 | |
| IM_QUANTITY9 | = lv_im_quantity9 | |
| IM_ACTIVATE | = lv_im_activate | |
| IM_PLANORG_TAB | = lv_im_planorg_tab | |
| IM_ITEM | = lv_im_item | |
| IM_SUPPLYSTATUS | = lv_im_supplystatus | |
| IM_DATEFROM | = lv_im_datefrom | |
| IM_DATETO | = lv_im_dateto | |
| IM_WEEKDAYS | = lv_im_weekdays | |
| IM_REASON | = lv_im_reason | |
| IM_COMMENTTEXT | = lv_im_commenttext | |
| IM_QUANTITY | = lv_im_quantity | |
| IM_QUANTITY1 | = lv_im_quantity1 | |
| IMPORTING | ||
| EX_RETURN_TAB | = lv_ex_return_tab | |
| . " ISM_API_CQP_ADD_DEFAULT | ||
ABAP code using 7.40 inline data declarations to call FM ISM_API_CQP_ADD_DEFAULT
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.Search for further information about these or an SAP related objects