SAP ISU_CA_DOC_CANCEL_METHOD Function Module for INTERNAL: Module for Method PRINTDOC.INVOICECANCEL
ISU_CA_DOC_CANCEL_METHOD is a standard isu ca doc cancel method SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for INTERNAL: Module for Method PRINTDOC.INVOICECANCEL 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 isu ca doc cancel method FM, simply by entering the name ISU_CA_DOC_CANCEL_METHOD into the relevant SAP transaction such as SE37 or SE38.
Function Group: EABILLINGMETHODS
Program Name: SAPLEABILLINGMETHODS
Main Program: SAPLEABILLINGMETHODS
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_CA_DOC_CANCEL_METHOD 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 'ISU_CA_DOC_CANCEL_METHOD'"INTERNAL: Module for Method PRINTDOC.INVOICECANCEL.
EXPORTING
X_OPBEL = "
* X_REASON = "Reversal Reason
* X_POSTINGDATE = "Posting Date in Document
* X_DOCUMENTTYPE = "Document Type
* X_KEEP_BBP = "Keep Budget Billing Plan when Invoicing is Reversed
* X_FIKEY = "Reconciliation Key for General Ledger
IMPORTING
Y_CANCELERROR = "
Y_ST_OPBEL = "Number of a Contract Accounts Receivable and Payable Document
TABLES
* YT_LOGNUMBER = "
EXCEPTIONS
GENERAL_FAULT = 1 NO_FIKEY_FOUND = 2 FOREIGN_LOCK = 3
IMPORTING Parameters details for ISU_CA_DOC_CANCEL_METHOD
X_OPBEL -
Data type: FKKKO-OPBELOptional: No
Call by Reference: No ( called with pass by value option)
X_REASON - Reversal Reason
Data type: ERDK-ICREASONOptional: Yes
Call by Reference: No ( called with pass by value option)
X_POSTINGDATE - Posting Date in Document
Data type: ERDK-BUDATOptional: Yes
Call by Reference: No ( called with pass by value option)
X_DOCUMENTTYPE - Document Type
Data type: BLART_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
X_KEEP_BBP - Keep Budget Billing Plan when Invoicing is Reversed
Data type: ABP_SAVEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_FIKEY - Reconciliation Key for General Ledger
Data type: FIKEY_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISU_CA_DOC_CANCEL_METHOD
Y_CANCELERROR -
Data type: REGEN-KENNZXOptional: No
Call by Reference: No ( called with pass by value option)
Y_ST_OPBEL - Number of a Contract Accounts Receivable and Payable Document
Data type: OPBEL_KKOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISU_CA_DOC_CANCEL_METHOD
YT_LOGNUMBER -
Data type: BALNRIOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
GENERAL_FAULT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_FIKEY_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FOREIGN_LOCK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISU_CA_DOC_CANCEL_METHOD 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_x_opbel | TYPE FKKKO-OPBEL, " | |||
| lt_yt_lognumber | TYPE STANDARD TABLE OF BALNRI, " | |||
| lv_general_fault | TYPE BALNRI, " | |||
| lv_y_cancelerror | TYPE REGEN-KENNZX, " | |||
| lv_x_reason | TYPE ERDK-ICREASON, " | |||
| lv_y_st_opbel | TYPE OPBEL_KK, " | |||
| lv_no_fikey_found | TYPE OPBEL_KK, " | |||
| lv_foreign_lock | TYPE OPBEL_KK, " | |||
| lv_x_postingdate | TYPE ERDK-BUDAT, " | |||
| lv_x_documenttype | TYPE BLART_KK, " | |||
| lv_x_keep_bbp | TYPE ABP_SAVE, " | |||
| lv_x_fikey | TYPE FIKEY_KK. " |
|   CALL FUNCTION 'ISU_CA_DOC_CANCEL_METHOD' "INTERNAL: Module for Method PRINTDOC.INVOICECANCEL |
| EXPORTING | ||
| X_OPBEL | = lv_x_opbel | |
| X_REASON | = lv_x_reason | |
| X_POSTINGDATE | = lv_x_postingdate | |
| X_DOCUMENTTYPE | = lv_x_documenttype | |
| X_KEEP_BBP | = lv_x_keep_bbp | |
| X_FIKEY | = lv_x_fikey | |
| IMPORTING | ||
| Y_CANCELERROR | = lv_y_cancelerror | |
| Y_ST_OPBEL | = lv_y_st_opbel | |
| TABLES | ||
| YT_LOGNUMBER | = lt_yt_lognumber | |
| EXCEPTIONS | ||
| GENERAL_FAULT = 1 | ||
| NO_FIKEY_FOUND = 2 | ||
| FOREIGN_LOCK = 3 | ||
| . " ISU_CA_DOC_CANCEL_METHOD | ||
ABAP code using 7.40 inline data declarations to call FM ISU_CA_DOC_CANCEL_METHOD
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 OPBEL FROM FKKKO INTO @DATA(ld_x_opbel). | ||||
| "SELECT single KENNZX FROM REGEN INTO @DATA(ld_y_cancelerror). | ||||
| "SELECT single ICREASON FROM ERDK INTO @DATA(ld_x_reason). | ||||
| "SELECT single BUDAT FROM ERDK INTO @DATA(ld_x_postingdate). | ||||
Search for further information about these or an SAP related objects