SAP /ACCGO/CTR_REVERSE_CANC_BGRFC Function Module for Cancellation Reversal Process









/ACCGO/CTR_REVERSE_CANC_BGRFC is a standard /accgo/ctr reverse canc bgrfc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Cancellation Reversal Process 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/ctr reverse canc bgrfc FM, simply by entering the name /ACCGO/CTR_REVERSE_CANC_BGRFC into the relevant SAP transaction such as SE37 or SE38.

Function Group: /ACCGO/CTR_APIS
Program Name: /ACCGO/SAPLCTR_APIS
Main Program: /ACCGO/SAPLCTR_APIS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function /ACCGO/CTR_REVERSE_CANC_BGRFC 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/CTR_REVERSE_CANC_BGRFC'"Cancellation Reversal Process
EXPORTING
* IV_TKONN = "Trading Contract
* IT_SEQ_NO = "Cancellation Sequence Number
* IV_UNDERFILL_ID = "Underfill ID
* IS_TRADER_DATA = "Trader Data in a Contract
* IV_TESTRUN = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* IV_COMMIT = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* IV_WITHIN_CONTRACT = 'X' "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
IV_DELAY_DURATION = "4 Byte Signed Integer

IMPORTING
ET_RETURN = "Return table
.



IMPORTING Parameters details for /ACCGO/CTR_REVERSE_CANC_BGRFC

IV_TKONN - Trading Contract

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

IT_SEQ_NO - Cancellation Sequence Number

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

IV_UNDERFILL_ID - Underfill ID

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

IS_TRADER_DATA - Trader Data in a Contract

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

IV_TESTRUN - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

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

IV_COMMIT - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

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

IV_WITHIN_CONTRACT - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

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

IV_DELAY_DURATION - 4 Byte Signed Integer

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

EXPORTING Parameters details for /ACCGO/CTR_REVERSE_CANC_BGRFC

ET_RETURN - Return table

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

Copy and paste ABAP code example for /ACCGO/CTR_REVERSE_CANC_BGRFC 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_tkonn  TYPE TKONN, "   
lv_et_return  TYPE BAPIRET2_T, "   
lv_it_seq_no  TYPE /ACCGO/CTR_TT_CANC_SEQ_NO, "   
lv_iv_underfill_id  TYPE /ACCGO/E_UNDERFILL_ID, "   
lv_is_trader_data  TYPE /ACCGO/CTR_S_AMD_TRAD_FLS_BL, "   
lv_iv_testrun  TYPE BOOLE_D, "   
lv_iv_commit  TYPE BOOLE_D, "   
lv_iv_within_contract  TYPE BOOLE_D, "   'X'
lv_iv_delay_duration  TYPE INT4. "   

  CALL FUNCTION '/ACCGO/CTR_REVERSE_CANC_BGRFC'  "Cancellation Reversal Process
    EXPORTING
         IV_TKONN = lv_iv_tkonn
         IT_SEQ_NO = lv_it_seq_no
         IV_UNDERFILL_ID = lv_iv_underfill_id
         IS_TRADER_DATA = lv_is_trader_data
         IV_TESTRUN = lv_iv_testrun
         IV_COMMIT = lv_iv_commit
         IV_WITHIN_CONTRACT = lv_iv_within_contract
         IV_DELAY_DURATION = lv_iv_delay_duration
    IMPORTING
         ET_RETURN = lv_et_return
. " /ACCGO/CTR_REVERSE_CANC_BGRFC




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

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_within_contract) = 'X'.
 
 


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!