SAP ISP_DISTRIBUTION_PLAN_VAR_READ Function Module for IS-M/SD: Read Variant for Shipping Schedule
ISP_DISTRIBUTION_PLAN_VAR_READ is a standard isp distribution plan var read 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/SD: Read Variant for Shipping Schedule 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 isp distribution plan var read FM, simply by entering the name ISP_DISTRIBUTION_PLAN_VAR_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: JV21
Program Name: SAPLJV21
Main Program: SAPLJV21
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISP_DISTRIBUTION_PLAN_VAR_READ 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 'ISP_DISTRIBUTION_PLAN_VAR_READ'"IS-M/SD: Read Variant for Shipping Schedule.
EXPORTING
* DRERZ = "
* GUELTIGBIS = '99991231' "
* GUELTIGVON = '19000101' "
* LFART = "Delivery Type
* NOJOIN = 'X' "
* PVA = "Prod.Vers.
* VARIANTE = "
* WERK = "Printing Works
TABLES
OUT_VARIANTE = "
VARIANTEN_TAB = "
VARILART_TAB = "
VARIPVA_TAB = "
VARITIME_TAB = "
IMPORTING Parameters details for ISP_DISTRIBUTION_PLAN_VAR_READ
DRERZ -
Data type: JVTVARZPVA-DRERZOptional: Yes
Call by Reference: No ( called with pass by value option)
GUELTIGBIS -
Data type: JVTVARTIME-GUELTIGBISDefault: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GUELTIGVON -
Data type: JVTVARTIME-GUELTIGVONDefault: '19000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LFART - Delivery Type
Data type: JVTVARLART-LFARTOptional: Yes
Call by Reference: No ( called with pass by value option)
NOJOIN -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PVA - Prod.Vers.
Data type: JVTVARZPVA-PVAOptional: Yes
Call by Reference: No ( called with pass by value option)
VARIANTE -
Data type: JVTVERVARI-VRSNDVARIOptional: Yes
Call by Reference: No ( called with pass by value option)
WERK - Printing Works
Data type: JVTVERVARI-WERKOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISP_DISTRIBUTION_PLAN_VAR_READ
OUT_VARIANTE -
Data type: JVVVERVARIOptional: No
Call by Reference: No ( called with pass by value option)
VARIANTEN_TAB -
Data type: JVTVERVARIOptional: No
Call by Reference: No ( called with pass by value option)
VARILART_TAB -
Data type: JVTVARLARTOptional: No
Call by Reference: No ( called with pass by value option)
VARIPVA_TAB -
Data type: JVTVARZPVAOptional: No
Call by Reference: No ( called with pass by value option)
VARITIME_TAB -
Data type: JVTVARTIMEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISP_DISTRIBUTION_PLAN_VAR_READ 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_drerz | TYPE JVTVARZPVA-DRERZ, " | |||
| lt_out_variante | TYPE STANDARD TABLE OF JVVVERVARI, " | |||
| lv_gueltigbis | TYPE JVTVARTIME-GUELTIGBIS, " '99991231' | |||
| lt_varianten_tab | TYPE STANDARD TABLE OF JVTVERVARI, " | |||
| lv_gueltigvon | TYPE JVTVARTIME-GUELTIGVON, " '19000101' | |||
| lt_varilart_tab | TYPE STANDARD TABLE OF JVTVARLART, " | |||
| lv_lfart | TYPE JVTVARLART-LFART, " | |||
| lt_varipva_tab | TYPE STANDARD TABLE OF JVTVARZPVA, " | |||
| lv_nojoin | TYPE JVTVARZPVA, " 'X' | |||
| lt_varitime_tab | TYPE STANDARD TABLE OF JVTVARTIME, " | |||
| lv_pva | TYPE JVTVARZPVA-PVA, " | |||
| lv_variante | TYPE JVTVERVARI-VRSNDVARI, " | |||
| lv_werk | TYPE JVTVERVARI-WERK. " |
|   CALL FUNCTION 'ISP_DISTRIBUTION_PLAN_VAR_READ' "IS-M/SD: Read Variant for Shipping Schedule |
| EXPORTING | ||
| DRERZ | = lv_drerz | |
| GUELTIGBIS | = lv_gueltigbis | |
| GUELTIGVON | = lv_gueltigvon | |
| LFART | = lv_lfart | |
| NOJOIN | = lv_nojoin | |
| PVA | = lv_pva | |
| VARIANTE | = lv_variante | |
| WERK | = lv_werk | |
| TABLES | ||
| OUT_VARIANTE | = lt_out_variante | |
| VARIANTEN_TAB | = lt_varianten_tab | |
| VARILART_TAB | = lt_varilart_tab | |
| VARIPVA_TAB | = lt_varipva_tab | |
| VARITIME_TAB | = lt_varitime_tab | |
| . " ISP_DISTRIBUTION_PLAN_VAR_READ | ||
ABAP code using 7.40 inline data declarations to call FM ISP_DISTRIBUTION_PLAN_VAR_READ
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 DRERZ FROM JVTVARZPVA INTO @DATA(ld_drerz). | ||||
| "SELECT single GUELTIGBIS FROM JVTVARTIME INTO @DATA(ld_gueltigbis). | ||||
| DATA(ld_gueltigbis) | = '99991231'. | |||
| "SELECT single GUELTIGVON FROM JVTVARTIME INTO @DATA(ld_gueltigvon). | ||||
| DATA(ld_gueltigvon) | = '19000101'. | |||
| "SELECT single LFART FROM JVTVARLART INTO @DATA(ld_lfart). | ||||
| DATA(ld_nojoin) | = 'X'. | |||
| "SELECT single PVA FROM JVTVARZPVA INTO @DATA(ld_pva). | ||||
| "SELECT single VRSNDVARI FROM JVTVERVARI INTO @DATA(ld_variante). | ||||
| "SELECT single WERK FROM JVTVERVARI INTO @DATA(ld_werk). | ||||
Search for further information about these or an SAP related objects