SAP ISM_SD_CREDIT_MEMOS_CANCEL Function Module for IS-M: Reverse Credit Memo Request for Group 01 and 03
ISM_SD_CREDIT_MEMOS_CANCEL is a standard ism sd credit memos cancel 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: Reverse Credit Memo Request for Group 01 and 03 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 credit memos cancel FM, simply by entering the name ISM_SD_CREDIT_MEMOS_CANCEL into the relevant SAP transaction such as SE37 or SE38.
Function Group: JKSDRETURNCANCELBASE
Program Name: SAPLJKSDRETURNCANCELBASE
Main Program: SAPLJKSDORDER2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_SD_CREDIT_MEMOS_CANCEL 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_CREDIT_MEMOS_CANCEL'"IS-M: Reverse Credit Memo Request for Group 01 and 03.
EXPORTING
* SEQUENTIAL = "
* DEBUG = "
* RFC_SERVERGROUP = "Server Group
* TESTRUN = "Test Run
IMPORTING
OUT_LOGID = "Internal Number of Log in System
TABLES
* VKORG = "
* ORDER_VBELN = "
* ORDER_POSNR = "
* VTWEG = "
* SPART = "
* VKGRP = "
* VKBUR = "
* UNSOLD_TYPE = "
* GPNR = "
* EXT_VBELN = "
* INT_VBELN = "
IMPORTING Parameters details for ISM_SD_CREDIT_MEMOS_CANCEL
SEQUENTIAL -
Data type: XFELDOptional: Yes
Call by Reference: Yes
DEBUG -
Data type: XFELDOptional: Yes
Call by Reference: Yes
RFC_SERVERGROUP - Server Group
Data type: RJKSDSERVERGROUP-CLASSNAMEOptional: Yes
Call by Reference: Yes
TESTRUN - Test Run
Data type: XFELDOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ISM_SD_CREDIT_MEMOS_CANCEL
OUT_LOGID - Internal Number of Log in System
Data type: JKSDPROTOCOLHEAD-LOGIDOptional: No
Call by Reference: Yes
TABLES Parameters details for ISM_SD_CREDIT_MEMOS_CANCEL
VKORG -
Data type: RJKSD_VKORG_RANGEOptional: Yes
Call by Reference: Yes
ORDER_VBELN -
Data type: RJKSD_VBELN_RANGEOptional: Yes
Call by Reference: Yes
ORDER_POSNR -
Data type: RJKSD_POSNR_RANGEOptional: Yes
Call by Reference: Yes
VTWEG -
Data type: RJKSD_VTWEG_RANGEOptional: Yes
Call by Reference: Yes
SPART -
Data type: RJKSD_SPART_RANGEOptional: Yes
Call by Reference: Yes
VKGRP -
Data type: RJKSD_VKGRP_RANGEOptional: Yes
Call by Reference: Yes
VKBUR -
Data type: RJKSD_VKBUR_RANGEOptional: Yes
Call by Reference: Yes
UNSOLD_TYPE -
Data type: RJKSD_UNSOLDTYPE_RANGEOptional: Yes
Call by Reference: Yes
GPNR -
Data type: RJKSD_BP_RANGEOptional: Yes
Call by Reference: Yes
EXT_VBELN -
Data type: RJKSD_UNSOLDNUMBER_RANGEOptional: Yes
Call by Reference: Yes
INT_VBELN -
Data type: RJKSD_VBELN_RANGEOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for ISM_SD_CREDIT_MEMOS_CANCEL 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: | ||||
| lt_vkorg | TYPE STANDARD TABLE OF RJKSD_VKORG_RANGE, " | |||
| lv_out_logid | TYPE JKSDPROTOCOLHEAD-LOGID, " | |||
| lv_sequential | TYPE XFELD, " | |||
| lt_order_vbeln | TYPE STANDARD TABLE OF RJKSD_VBELN_RANGE, " | |||
| lt_order_posnr | TYPE STANDARD TABLE OF RJKSD_POSNR_RANGE, " | |||
| lv_debug | TYPE XFELD, " | |||
| lt_vtweg | TYPE STANDARD TABLE OF RJKSD_VTWEG_RANGE, " | |||
| lt_spart | TYPE STANDARD TABLE OF RJKSD_SPART_RANGE, " | |||
| lv_rfc_servergroup | TYPE RJKSDSERVERGROUP-CLASSNAME, " | |||
| lt_vkgrp | TYPE STANDARD TABLE OF RJKSD_VKGRP_RANGE, " | |||
| lv_testrun | TYPE XFELD, " | |||
| lt_vkbur | TYPE STANDARD TABLE OF RJKSD_VKBUR_RANGE, " | |||
| lt_unsold_type | TYPE STANDARD TABLE OF RJKSD_UNSOLDTYPE_RANGE, " | |||
| lt_gpnr | TYPE STANDARD TABLE OF RJKSD_BP_RANGE, " | |||
| lt_ext_vbeln | TYPE STANDARD TABLE OF RJKSD_UNSOLDNUMBER_RANGE, " | |||
| lt_int_vbeln | TYPE STANDARD TABLE OF RJKSD_VBELN_RANGE. " |
|   CALL FUNCTION 'ISM_SD_CREDIT_MEMOS_CANCEL' "IS-M: Reverse Credit Memo Request for Group 01 and 03 |
| EXPORTING | ||
| SEQUENTIAL | = lv_sequential | |
| DEBUG | = lv_debug | |
| RFC_SERVERGROUP | = lv_rfc_servergroup | |
| TESTRUN | = lv_testrun | |
| IMPORTING | ||
| OUT_LOGID | = lv_out_logid | |
| TABLES | ||
| VKORG | = lt_vkorg | |
| ORDER_VBELN | = lt_order_vbeln | |
| ORDER_POSNR | = lt_order_posnr | |
| VTWEG | = lt_vtweg | |
| SPART | = lt_spart | |
| VKGRP | = lt_vkgrp | |
| VKBUR | = lt_vkbur | |
| UNSOLD_TYPE | = lt_unsold_type | |
| GPNR | = lt_gpnr | |
| EXT_VBELN | = lt_ext_vbeln | |
| INT_VBELN | = lt_int_vbeln | |
| . " ISM_SD_CREDIT_MEMOS_CANCEL | ||
ABAP code using 7.40 inline data declarations to call FM ISM_SD_CREDIT_MEMOS_CANCEL
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 LOGID FROM JKSDPROTOCOLHEAD INTO @DATA(ld_out_logid). | ||||
| "SELECT single CLASSNAME FROM RJKSDSERVERGROUP INTO @DATA(ld_rfc_servergroup). | ||||
Search for further information about these or an SAP related objects