SAP /ACCGO/CAS_APPL_REV_API Function Module for Reverses Application Documents









/ACCGO/CAS_APPL_REV_API is a standard /accgo/cas appl rev api SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reverses Application Documents 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 /accgo/cas appl rev api FM, simply by entering the name /ACCGO/CAS_APPL_REV_API into the relevant SAP transaction such as SE37 or SE38.

Function Group: /ACCGO/CAS_APPL_API
Program Name: /ACCGO/SAPLCAS_APPL_API
Main Program: /ACCGO/SAPLCAS_APPL_API
Appliation area:
Release date: 04-Sep-2020
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function /ACCGO/CAS_APPL_REV_API 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 '/ACCGO/CAS_APPL_REV_API'"Reverses Application Documents
EXPORTING
IV_APPLDOC = "Application Document Number
IV_APPLDOC_ITEM = "Reference Document Item
* IV_COMMIT = ' ' "Single-Character Indicator

IMPORTING
ET_MESSAGES = "Error Messages
ET_APPLDATA = "Table type for application details
.



IMPORTING Parameters details for /ACCGO/CAS_APPL_REV_API

IV_APPLDOC - Application Document Number

Data type: /ACCGO/E_APPLDOC
Optional: No
Call by Reference: No ( called with pass by value option)

IV_APPLDOC_ITEM - Reference Document Item

Data type: /ACCGO/E_REFDOC_ITEM
Optional: No
Call by Reference: No ( called with pass by value option)

IV_COMMIT - Single-Character Indicator

Data type: CHAR1
Default: ' '
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for /ACCGO/CAS_APPL_REV_API

ET_MESSAGES - Error Messages

Data type: BAPIRET2_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

ET_APPLDATA - Table type for application details

Data type: /ACCGO/CAS_TT_APPLDOC_DETAIL
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for /ACCGO/CAS_APPL_REV_API 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_iv_appldoc  TYPE /ACCGO/E_APPLDOC, "   
lv_et_messages  TYPE BAPIRET2_TAB, "   
lv_et_appldata  TYPE /ACCGO/CAS_TT_APPLDOC_DETAIL, "   
lv_iv_appldoc_item  TYPE /ACCGO/E_REFDOC_ITEM, "   
lv_iv_commit  TYPE CHAR1. "   ' '

  CALL FUNCTION '/ACCGO/CAS_APPL_REV_API'  "Reverses Application Documents
    EXPORTING
         IV_APPLDOC = lv_iv_appldoc
         IV_APPLDOC_ITEM = lv_iv_appldoc_item
         IV_COMMIT = lv_iv_commit
    IMPORTING
         ET_MESSAGES = lv_et_messages
         ET_APPLDATA = lv_et_appldata
. " /ACCGO/CAS_APPL_REV_API




ABAP code using 7.40 inline data declarations to call FM /ACCGO/CAS_APPL_REV_API

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.

 
 
 
 
DATA(ld_iv_commit) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!