SAP ISM_SD_UNSOLDARRANGEMENT_CHECK Function Module for IS-M: Check Return Agreements
ISM_SD_UNSOLDARRANGEMENT_CHECK is a standard ism sd unsoldarrangement check 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: Check Return Agreements 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 unsoldarrangement check FM, simply by entering the name ISM_SD_UNSOLDARRANGEMENT_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: JKSDRETURNCHECK
Program Name: SAPLJKSDRETURNCHECK
Main Program: SAPLJKSDRETURNCHECK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_SD_UNSOLDARRANGEMENT_CHECK 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_UNSOLDARRANGEMENT_CHECK'"IS-M: Check Return Agreements.
EXPORTING
UNSOLD = "IS-M: Returns
POS = "
IMPORTING
RETURN_NOT_ALLOWED = "Returns not allowed
BLOCKED_ISSUE_STATUS = "
BLOCKED_ISSUE_STATUS_SPECIFIC = "
WARNING_ISSUE_STATUS = "
WARNING_ISSUE_STATUS_SPECIFIC = "
RETURN_GREATER_DELIVERY = "
RETURN_TO_EARLY = "Return too Early
RETURN_TO_LATE = "Return too Late
NO_DELIVERY_FOUND = "
RETURN_GREATER_CONTRACT = "
REFERENCE_INVOICE_NEEDED = "
REFERENCE_NO_INVOICE = "
CONTRACT_PERCENT_DIFFERENT = "
EXCEPTIONS
ISSUE_NOT_FOUND = 1 UNIT_INVALID = 2 DIFFERENT_BASIC_UNIT = 3
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLJKSDRETURNCHECK_002 IS-M: Influence Data for Credit Memo Requests
IMPORTING Parameters details for ISM_SD_UNSOLDARRANGEMENT_CHECK
UNSOLD - IS-M: Returns
Data type: CL_ISM_SD_UNSOLDOptional: No
Call by Reference: Yes
POS -
Data type: CL_ISM_SD_UNSOLD_POSOptional: No
Call by Reference: Yes
EXPORTING Parameters details for ISM_SD_UNSOLDARRANGEMENT_CHECK
RETURN_NOT_ALLOWED - Returns not allowed
Data type: XFELDOptional: No
Call by Reference: Yes
BLOCKED_ISSUE_STATUS -
Data type: XFELDOptional: No
Call by Reference: Yes
BLOCKED_ISSUE_STATUS_SPECIFIC -
Data type: XFELDOptional: No
Call by Reference: Yes
WARNING_ISSUE_STATUS -
Data type: XFELDOptional: No
Call by Reference: Yes
WARNING_ISSUE_STATUS_SPECIFIC -
Data type: XFELDOptional: No
Call by Reference: Yes
RETURN_GREATER_DELIVERY -
Data type: XFELDOptional: No
Call by Reference: Yes
RETURN_TO_EARLY - Return too Early
Data type: XFELDOptional: No
Call by Reference: Yes
RETURN_TO_LATE - Return too Late
Data type: XFELDOptional: No
Call by Reference: Yes
NO_DELIVERY_FOUND -
Data type: XFELDOptional: No
Call by Reference: Yes
RETURN_GREATER_CONTRACT -
Data type: XFELDOptional: No
Call by Reference: Yes
REFERENCE_INVOICE_NEEDED -
Data type: XFELDOptional: No
Call by Reference: Yes
REFERENCE_NO_INVOICE -
Data type: XFELDOptional: No
Call by Reference: Yes
CONTRACT_PERCENT_DIFFERENT -
Data type: XFELDOptional: No
Call by Reference: Yes
EXCEPTIONS details
ISSUE_NOT_FOUND - Media issue not found
Data type:Optional: No
Call by Reference: Yes
UNIT_INVALID -
Data type:Optional: No
Call by Reference: Yes
DIFFERENT_BASIC_UNIT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISM_SD_UNSOLDARRANGEMENT_CHECK 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_unsold | TYPE CL_ISM_SD_UNSOLD, " | |||
| lv_issue_not_found | TYPE CL_ISM_SD_UNSOLD, " | |||
| lv_return_not_allowed | TYPE XFELD, " | |||
| lv_blocked_issue_status | TYPE XFELD, " | |||
| lv_blocked_issue_status_specific | TYPE XFELD, " | |||
| lv_warning_issue_status | TYPE XFELD, " | |||
| lv_warning_issue_status_specific | TYPE XFELD, " | |||
| lv_pos | TYPE CL_ISM_SD_UNSOLD_POS, " | |||
| lv_unit_invalid | TYPE CL_ISM_SD_UNSOLD_POS, " | |||
| lv_return_greater_delivery | TYPE XFELD, " | |||
| lv_return_to_early | TYPE XFELD, " | |||
| lv_different_basic_unit | TYPE XFELD, " | |||
| lv_return_to_late | TYPE XFELD, " | |||
| lv_no_delivery_found | TYPE XFELD, " | |||
| lv_return_greater_contract | TYPE XFELD, " | |||
| lv_reference_invoice_needed | TYPE XFELD, " | |||
| lv_reference_no_invoice | TYPE XFELD, " | |||
| lv_contract_percent_different | TYPE XFELD. " |
|   CALL FUNCTION 'ISM_SD_UNSOLDARRANGEMENT_CHECK' "IS-M: Check Return Agreements |
| EXPORTING | ||
| UNSOLD | = lv_unsold | |
| POS | = lv_pos | |
| IMPORTING | ||
| RETURN_NOT_ALLOWED | = lv_return_not_allowed | |
| BLOCKED_ISSUE_STATUS | = lv_blocked_issue_status | |
| BLOCKED_ISSUE_STATUS_SPECIFIC | = lv_blocked_issue_status_specific | |
| WARNING_ISSUE_STATUS | = lv_warning_issue_status | |
| WARNING_ISSUE_STATUS_SPECIFIC | = lv_warning_issue_status_specific | |
| RETURN_GREATER_DELIVERY | = lv_return_greater_delivery | |
| RETURN_TO_EARLY | = lv_return_to_early | |
| RETURN_TO_LATE | = lv_return_to_late | |
| NO_DELIVERY_FOUND | = lv_no_delivery_found | |
| RETURN_GREATER_CONTRACT | = lv_return_greater_contract | |
| REFERENCE_INVOICE_NEEDED | = lv_reference_invoice_needed | |
| REFERENCE_NO_INVOICE | = lv_reference_no_invoice | |
| CONTRACT_PERCENT_DIFFERENT | = lv_contract_percent_different | |
| EXCEPTIONS | ||
| ISSUE_NOT_FOUND = 1 | ||
| UNIT_INVALID = 2 | ||
| DIFFERENT_BASIC_UNIT = 3 | ||
| . " ISM_SD_UNSOLDARRANGEMENT_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM ISM_SD_UNSOLDARRANGEMENT_CHECK
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