SAP ISM_CHECK_WRITE_OFF_CONDITION Function Module for IS-M/SD: Check Whether Condition Type Is a Write-Off
ISM_CHECK_WRITE_OFF_CONDITION is a standard ism check write off condition 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: Check Whether Condition Type Is a Write-Off 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 check write off condition FM, simply by entering the name ISM_CHECK_WRITE_OFF_CONDITION into the relevant SAP transaction such as SE37 or SE38.
Function Group: JKLIABACCOUNT
Program Name: SAPLJKLIABACCOUNT
Main Program: SAPLJKLIABACCOUNT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_CHECK_WRITE_OFF_CONDITION 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_CHECK_WRITE_OFF_CONDITION'"IS-M/SD: Check Whether Condition Type Is a Write-Off.
EXPORTING
I_VKORG = "Sales Organization
I_VTWEG = "Distribution Channel
I_SPART = "Division for order header
I_KALSM = "
I_CONDITION_TYPE = "Condition Type
IMPORTING
E_XWRITEOFF = "
IMPORTING Parameters details for ISM_CHECK_WRITE_OFF_CONDITION
I_VKORG - Sales Organization
Data type: JKAK-VKORGOptional: No
Call by Reference: No ( called with pass by value option)
I_VTWEG - Distribution Channel
Data type: JKAK-VTWEGOptional: No
Call by Reference: No ( called with pass by value option)
I_SPART - Division for order header
Data type: JKAK-SPARTOptional: No
Call by Reference: No ( called with pass by value option)
I_KALSM -
Data type: JKAK-KALSMOptional: No
Call by Reference: No ( called with pass by value option)
I_CONDITION_TYPE - Condition Type
Data type: KSCHLOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISM_CHECK_WRITE_OFF_CONDITION
E_XWRITEOFF -
Data type: XFELDOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISM_CHECK_WRITE_OFF_CONDITION 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_i_vkorg | TYPE JKAK-VKORG, " | |||
| lv_e_xwriteoff | TYPE XFELD, " | |||
| lv_i_vtweg | TYPE JKAK-VTWEG, " | |||
| lv_i_spart | TYPE JKAK-SPART, " | |||
| lv_i_kalsm | TYPE JKAK-KALSM, " | |||
| lv_i_condition_type | TYPE KSCHL. " |
|   CALL FUNCTION 'ISM_CHECK_WRITE_OFF_CONDITION' "IS-M/SD: Check Whether Condition Type Is a Write-Off |
| EXPORTING | ||
| I_VKORG | = lv_i_vkorg | |
| I_VTWEG | = lv_i_vtweg | |
| I_SPART | = lv_i_spart | |
| I_KALSM | = lv_i_kalsm | |
| I_CONDITION_TYPE | = lv_i_condition_type | |
| IMPORTING | ||
| E_XWRITEOFF | = lv_e_xwriteoff | |
| . " ISM_CHECK_WRITE_OFF_CONDITION | ||
ABAP code using 7.40 inline data declarations to call FM ISM_CHECK_WRITE_OFF_CONDITION
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 JKAK INTO @DATA(ld_i_vkorg). | ||||
| "SELECT single VTWEG FROM JKAK INTO @DATA(ld_i_vtweg). | ||||
| "SELECT single SPART FROM JKAK INTO @DATA(ld_i_spart). | ||||
| "SELECT single KALSM FROM JKAK INTO @DATA(ld_i_kalsm). | ||||
Search for further information about these or an SAP related objects