SAP ISM_PHASE_MODEL_CREATE_FROMSUB Function Module for Create/Extend Phase Model from Subsequent Delivery
ISM_PHASE_MODEL_CREATE_FROMSUB is a standard ism phase model create fromsub 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/Extend Phase Model from Subsequent Delivery 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 phase model create fromsub FM, simply by entering the name ISM_PHASE_MODEL_CREATE_FROMSUB into the relevant SAP transaction such as SE37 or SE38.
Function Group: JVPH
Program Name: SAPLJVPH
Main Program: SAPLJVPH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_PHASE_MODEL_CREATE_FROMSUB 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_PHASE_MODEL_CREATE_FROMSUB'"Create/Extend Phase Model from Subsequent Delivery.
EXPORTING
IM_PHASEMDL = "IS-M: Phase Model in Phase Delivery
* IM_AUART = "Sales Document Type
* IM_VKORG = "Sales Organization
* IM_VTWEG = "Distribution Channel
* IM_SPART = "Division
IM_MEDIAISSUE = "Media Issue
IM_DELIV_DATE = "IS-M: Shipping Date
IM_CONTRACTPOS_TAB = "
* IM_PERCENT = 100 "IS-M/SD: Percentage Factor for Delivery Quantity
* IM_GENERATE = '' "Generate Orders
IMPORTING
EX_FIELDNAME = "
EX_PHASENBR = "IS-M: Sequence Number in Phase Delivery
CHANGING
RETURN = "IS-M: Messages
EXCEPTIONS
CREATE_ERROR = 1 CHANGE_ERROR = 2 GENERATE_ERROR = 3
IMPORTING Parameters details for ISM_PHASE_MODEL_CREATE_FROMSUB
IM_PHASEMDL - IS-M: Phase Model in Phase Delivery
Data type: JVPHASEMDLOptional: No
Call by Reference: Yes
IM_AUART - Sales Document Type
Data type: AUARTOptional: Yes
Call by Reference: Yes
IM_VKORG - Sales Organization
Data type: VKORGOptional: Yes
Call by Reference: Yes
IM_VTWEG - Distribution Channel
Data type: VTWEGOptional: Yes
Call by Reference: Yes
IM_SPART - Division
Data type: SPARTOptional: Yes
Call by Reference: Yes
IM_MEDIAISSUE - Media Issue
Data type: ISMMATNR_ISSUEOptional: No
Call by Reference: Yes
IM_DELIV_DATE - IS-M: Shipping Date
Data type: JVTPHDATE-DELIV_DATEOptional: No
Call by Reference: Yes
IM_CONTRACTPOS_TAB -
Data type: RJKSDCONTQUANTABOptional: No
Call by Reference: Yes
IM_PERCENT - IS-M/SD: Percentage Factor for Delivery Quantity
Data type: JPERCENTQUANDefault: 100
Optional: No
Call by Reference: Yes
IM_GENERATE - Generate Orders
Data type: XFELDDefault: ''
Optional: No
Call by Reference: Yes
EXPORTING Parameters details for ISM_PHASE_MODEL_CREATE_FROMSUB
EX_FIELDNAME -
Data type: FIELDNAMEOptional: No
Call by Reference: Yes
EX_PHASENBR - IS-M: Sequence Number in Phase Delivery
Data type: JVPHASENBROptional: No
Call by Reference: Yes
CHANGING Parameters details for ISM_PHASE_MODEL_CREATE_FROMSUB
RETURN - IS-M: Messages
Data type: CL_ISM_SD_MESSAGEOptional: No
Call by Reference: Yes
EXCEPTIONS details
CREATE_ERROR - Error During Creation
Data type:Optional: No
Call by Reference: Yes
CHANGE_ERROR -
Data type:Optional: No
Call by Reference: Yes
GENERATE_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISM_PHASE_MODEL_CREATE_FROMSUB 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_return | TYPE CL_ISM_SD_MESSAGE, " | |||
| lv_im_phasemdl | TYPE JVPHASEMDL, " | |||
| lv_create_error | TYPE JVPHASEMDL, " | |||
| lv_ex_fieldname | TYPE FIELDNAME, " | |||
| lv_im_auart | TYPE AUART, " | |||
| lv_im_vkorg | TYPE VKORG, " | |||
| lv_ex_phasenbr | TYPE JVPHASENBR, " | |||
| lv_change_error | TYPE JVPHASENBR, " | |||
| lv_im_vtweg | TYPE VTWEG, " | |||
| lv_generate_error | TYPE VTWEG, " | |||
| lv_im_spart | TYPE SPART, " | |||
| lv_im_mediaissue | TYPE ISMMATNR_ISSUE, " | |||
| lv_im_deliv_date | TYPE JVTPHDATE-DELIV_DATE, " | |||
| lv_im_contractpos_tab | TYPE RJKSDCONTQUANTAB, " | |||
| lv_im_percent | TYPE JPERCENTQUAN, " 100 | |||
| lv_im_generate | TYPE XFELD. " '' |
|   CALL FUNCTION 'ISM_PHASE_MODEL_CREATE_FROMSUB' "Create/Extend Phase Model from Subsequent Delivery |
| EXPORTING | ||
| IM_PHASEMDL | = lv_im_phasemdl | |
| IM_AUART | = lv_im_auart | |
| IM_VKORG | = lv_im_vkorg | |
| IM_VTWEG | = lv_im_vtweg | |
| IM_SPART | = lv_im_spart | |
| IM_MEDIAISSUE | = lv_im_mediaissue | |
| IM_DELIV_DATE | = lv_im_deliv_date | |
| IM_CONTRACTPOS_TAB | = lv_im_contractpos_tab | |
| IM_PERCENT | = lv_im_percent | |
| IM_GENERATE | = lv_im_generate | |
| IMPORTING | ||
| EX_FIELDNAME | = lv_ex_fieldname | |
| EX_PHASENBR | = lv_ex_phasenbr | |
| CHANGING | ||
| RETURN | = lv_return | |
| EXCEPTIONS | ||
| CREATE_ERROR = 1 | ||
| CHANGE_ERROR = 2 | ||
| GENERATE_ERROR = 3 | ||
| . " ISM_PHASE_MODEL_CREATE_FROMSUB | ||
ABAP code using 7.40 inline data declarations to call FM ISM_PHASE_MODEL_CREATE_FROMSUB
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 DELIV_DATE FROM JVTPHDATE INTO @DATA(ld_im_deliv_date). | ||||
| DATA(ld_im_percent) | = 100. | |||
| DATA(ld_im_generate) | = ''. | |||
Search for further information about these or an SAP related objects