SAP ISM_CONTRACTDEMAND_ISSUESTATUS Function Module for Check Whether Distribution Status of Quantity Planning Allowed
ISM_CONTRACTDEMAND_ISSUESTATUS is a standard ism contractdemand issuestatus SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check Whether Distribution Status of Quantity Planning Allowed 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 contractdemand issuestatus FM, simply by entering the name ISM_CONTRACTDEMAND_ISSUESTATUS into the relevant SAP transaction such as SE37 or SE38.
Function Group: JKSDDEMAND02
Program Name: SAPLJKSDDEMAND02
Main Program: SAPLJKSDDEMAND02
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_CONTRACTDEMAND_ISSUESTATUS 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_CONTRACTDEMAND_ISSUESTATUS'"Check Whether Distribution Status of Quantity Planning Allowed.
EXPORTING
IN_ISSUE = "Media Issue
IN_VKORG = "Sales Organization
IN_VTWEG = "Distribution Channel
* IN_DATE = SY-DATUM "Date and Time, Current (Application Server) Date
IMPORTING
OUT_SAL_STATUS = "Distribution Chain-Specific Material Status
EXCEPTIONS
NOT_FOUND = 1 BLOCKED_ERROR = 2 BLOCKED_WARNING = 3 INVALID = 4
IMPORTING Parameters details for ISM_CONTRACTDEMAND_ISSUESTATUS
IN_ISSUE - Media Issue
Data type: ISMMATNR_ISSUEOptional: No
Call by Reference: Yes
IN_VKORG - Sales Organization
Data type: MVKE-VKORGOptional: No
Call by Reference: Yes
IN_VTWEG - Distribution Channel
Data type: MVKE-VTWEGOptional: No
Call by Reference: Yes
IN_DATE - Date and Time, Current (Application Server) Date
Data type: SYDATUMDefault: SY-DATUM
Optional: No
Call by Reference: Yes
EXPORTING Parameters details for ISM_CONTRACTDEMAND_ISSUESTATUS
OUT_SAL_STATUS - Distribution Chain-Specific Material Status
Data type: VMSTAOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND - Media issue does not exist
Data type:Optional: No
Call by Reference: Yes
BLOCKED_ERROR -
Data type:Optional: No
Call by Reference: Yes
BLOCKED_WARNING -
Data type:Optional: No
Call by Reference: Yes
INVALID -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISM_CONTRACTDEMAND_ISSUESTATUS 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_in_issue | TYPE ISMMATNR_ISSUE, " | |||
| lv_not_found | TYPE ISMMATNR_ISSUE, " | |||
| lv_out_sal_status | TYPE VMSTA, " | |||
| lv_in_vkorg | TYPE MVKE-VKORG, " | |||
| lv_blocked_error | TYPE MVKE, " | |||
| lv_in_vtweg | TYPE MVKE-VTWEG, " | |||
| lv_blocked_warning | TYPE MVKE, " | |||
| lv_invalid | TYPE MVKE, " | |||
| lv_in_date | TYPE SYDATUM. " SY-DATUM |
|   CALL FUNCTION 'ISM_CONTRACTDEMAND_ISSUESTATUS' "Check Whether Distribution Status of Quantity Planning Allowed |
| EXPORTING | ||
| IN_ISSUE | = lv_in_issue | |
| IN_VKORG | = lv_in_vkorg | |
| IN_VTWEG | = lv_in_vtweg | |
| IN_DATE | = lv_in_date | |
| IMPORTING | ||
| OUT_SAL_STATUS | = lv_out_sal_status | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| BLOCKED_ERROR = 2 | ||
| BLOCKED_WARNING = 3 | ||
| INVALID = 4 | ||
| . " ISM_CONTRACTDEMAND_ISSUESTATUS | ||
ABAP code using 7.40 inline data declarations to call FM ISM_CONTRACTDEMAND_ISSUESTATUS
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 VKORG FROM MVKE INTO @DATA(ld_in_vkorg). | ||||
| "SELECT single VTWEG FROM MVKE INTO @DATA(ld_in_vtweg). | ||||
| DATA(ld_in_date) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects