SAP FWBU_POSTING_REVERSAL Function Module for TRTMSE: Reverse Posting Function: Higher-Level Module
FWBU_POSTING_REVERSAL is a standard fwbu posting reversal SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for TRTMSE: Reverse Posting Function: Higher-Level Module 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 fwbu posting reversal FM, simply by entering the name FWBU_POSTING_REVERSAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: FWBU
Program Name: SAPLFWBU
Main Program: SAPLFWBU
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FWBU_POSTING_REVERSAL 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 'FWBU_POSTING_REVERSAL'"TRTMSE: Reverse Posting Function: Higher-Level Module.
EXPORTING
I_COMPANY_CODE = "
I_COMPANY_CODE_CURRENCY = "
I_COMPANY_CODE_NAME = "
I_VWPANLA = "Daten zu Kennummer
I_TWD01 = "Daten zu Depot
EXCEPTIONS
I_BUKRS_INITIAL = 1 I_RANL_INITIAL = 2 I_RLDEPO_INITIAL = 3
IMPORTING Parameters details for FWBU_POSTING_REVERSAL
I_COMPANY_CODE -
Data type: BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_COMPANY_CODE_CURRENCY -
Data type: WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_COMPANY_CODE_NAME -
Data type: BUTXTOptional: No
Call by Reference: No ( called with pass by value option)
I_VWPANLA - Daten zu Kennummer
Data type: VWPANLAOptional: No
Call by Reference: No ( called with pass by value option)
I_TWD01 - Daten zu Depot
Data type: TWD01Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
I_BUKRS_INITIAL - Company code has initial value
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_RANL_INITIAL - ID number has initial value
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_RLDEPO_INITIAL - Depot initial
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FWBU_POSTING_REVERSAL 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_i_company_code | TYPE BUKRS, " | |||
| lv_i_bukrs_initial | TYPE BUKRS, " | |||
| lv_i_ranl_initial | TYPE BUKRS, " | |||
| lv_i_company_code_currency | TYPE WAERS, " | |||
| lv_i_rldepo_initial | TYPE WAERS, " | |||
| lv_i_company_code_name | TYPE BUTXT, " | |||
| lv_i_vwpanla | TYPE VWPANLA, " | |||
| lv_i_twd01 | TYPE TWD01. " |
|   CALL FUNCTION 'FWBU_POSTING_REVERSAL' "TRTMSE: Reverse Posting Function: Higher-Level Module |
| EXPORTING | ||
| I_COMPANY_CODE | = lv_i_company_code | |
| I_COMPANY_CODE_CURRENCY | = lv_i_company_code_currency | |
| I_COMPANY_CODE_NAME | = lv_i_company_code_name | |
| I_VWPANLA | = lv_i_vwpanla | |
| I_TWD01 | = lv_i_twd01 | |
| EXCEPTIONS | ||
| I_BUKRS_INITIAL = 1 | ||
| I_RANL_INITIAL = 2 | ||
| I_RLDEPO_INITIAL = 3 | ||
| . " FWBU_POSTING_REVERSAL | ||
ABAP code using 7.40 inline data declarations to call FM FWBU_POSTING_REVERSAL
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.Search for further information about these or an SAP related objects