FI_PAYMENT_REQUEST_REVERSE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name FI_PAYMENT_REQUEST_REVERSE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
FPRQ
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'FI_PAYMENT_REQUEST_REVERSE' "
* EXPORTING
* i_awkey = " payrq-awkey
* i_awsys = " payrq-awsys
* i_awtyp = " payrq-awtyp
* i_belnr = " payrq-belnr
* i_bukrs = " payrq-bukrs
* i_buzei = " payrq-buzei
* i_gjahr = " payrq-gjahr
* i_keyno = " payrq-keyno Key number for payment request
* i_reverse_date = " bkpf-budat Reverse Doc. Posting Date
* i_reverse_period = " bkpf-monat Reverse Doc. Posting Period
* i_reverse_reason = " bkpf-stgrd Reason for Reversal
* i_reverse_fi_doc = SPACE " boole-boole
* i_rnum = " payrq_origin-prqnum
* i_xcommit = " boole-boole
* i_x_update_task = " boole-boole
* i_x_message = 'X' " boole-boole
* i_x_check_only = " boole-boole Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
IMPORTING
e_return = " bapiret2 Return Parameter(s)
EXCEPTIONS
IMPORT_PARAMETER = 1 "
PRQ_NOT_REVERSABLE = 2 " Other error
ACCOUNT_LOCKED = 3 "
ERROR_FB08 = 4 "
. " FI_PAYMENT_REQUEST_REVERSE
The ABAP code below is a full code listing to execute function module FI_PAYMENT_REQUEST_REVERSE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_e_return | TYPE BAPIRET2 . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_e_return | TYPE BAPIRET2 , |
| ld_i_awkey | TYPE PAYRQ-AWKEY , |
| ld_i_awsys | TYPE PAYRQ-AWSYS , |
| ld_i_awtyp | TYPE PAYRQ-AWTYP , |
| ld_i_belnr | TYPE PAYRQ-BELNR , |
| ld_i_bukrs | TYPE PAYRQ-BUKRS , |
| ld_i_buzei | TYPE PAYRQ-BUZEI , |
| ld_i_gjahr | TYPE PAYRQ-GJAHR , |
| ld_i_keyno | TYPE PAYRQ-KEYNO , |
| ld_i_reverse_date | TYPE BKPF-BUDAT , |
| ld_i_reverse_period | TYPE BKPF-MONAT , |
| ld_i_reverse_reason | TYPE BKPF-STGRD , |
| ld_i_reverse_fi_doc | TYPE BOOLE-BOOLE , |
| ld_i_rnum | TYPE PAYRQ_ORIGIN-PRQNUM , |
| ld_i_xcommit | TYPE BOOLE-BOOLE , |
| ld_i_x_update_task | TYPE BOOLE-BOOLE , |
| ld_i_x_message | TYPE BOOLE-BOOLE , |
| ld_i_x_check_only | TYPE BOOLE-BOOLE . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FI_PAYMENT_REQUEST_REVERSE or its description.