SAP Reports / Programs

RFWERE00A SAP ABAP Report - Analyze GR/IR Clearing Accounts and Display Acquisition Tax







RFWERE00A is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program analyzes the GR/IR clearing accounts at a specified key date, and generates adjustment postings where required...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RFWERE00A into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RFWERE00A. "Basic submit
SUBMIT RFWERE00A AND RETURN. "Return to original report after report execution complete
SUBMIT RFWERE00A VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: AKONTO = Reconciliation account
Selection Text: B-BLART = Document type
Selection Text: B-INPUT = Batch input requested
Selection Text: B-NAME = Session name
Selection Text: BUDATUM = Posting date
Selection Text: ERST = Post acquisition tax
Selection Text: ERSTKZ = Acquisition tax code
Selection Text: ERSTTAG = Acquisition tax key date
Selection Text: LISTSEP = List separation requested
Selection Text: MIKFICHE = Print microfiche line
Selection Text: POSTEN = Line item display
Selection Text: SEL_LSTM = Tax return country
Selection Text: ST-BUDAT = Reversal posting date
Selection Text: ST_BLART = Reversal document type
Selection Text: TITLE = Additional heading
Selection Text: VORST = Post input tax
Selection Text: VOR_EINS = Input tax code for batch input
Selection Text: VOR_NULL = Input tax code 0%
Selection Text: WAEHRUNG = Purchase order currency
Selection Text: XBWERT = Foreign currency valuation
Selection Text: XNOPL = Read open items only
Selection Text: XWERE = GR/IR clearing
Selection Text: ZWKONTO = Interim account
Title: Analyze GR/IR Clearing Accounts and Display Acquisition Tax
Text Symbol: 700 = Posting not successful
Text Symbol: 460 = Is not an acquistion tax since the tax balance is not 0.
Text Symbol: 450 = Error when calculating input tax
Text Symbol: 402 = CoCd Tax code Tax base in LC Tax amount
Text Symbol: 401 = CoCd Tx GR/IR act Doc.no. Itm Tax base in LC Tax amount
Text Symbol: 400 = Input tax display
Text Symbol: 019 = RFWERE00
Text Symbol: 020 = Batch input
Text Symbol: 021 = ---- Output ---------------------------------------------------------------
Text Symbol: 060 = Posting
Text Symbol: 062 = Rever.
Text Symbol: 070 = **Posting cannot be created
Text Symbol: 100 = *** List of the postings carried out in batch input ***
Text Symbol: 101 = *** Posting proposal list ***





Text Symbol: 110 = Trans. PoDte PK Account CoCd BusA Debit/cred. Tax Comment
Text Symbol: 115 = CC G/L acct Recon. act VBUND VSCH BsAr. Amount
Text Symbol: 120 = *** List of errors occurring ***
Text Symbol: 199 = ************************************************************
Text Symbol: 200 = CoCd GR/IR acct Recon.acct Vendor Name
Text Symbol: 201 = BsAr ..Ordr No. ItmNo ..Doc. No. Lne PstDte PK DT Curr. .Amount in FC .Amt in LC MV Key
Text Symbol: 205 = Acquisition tax display
Text Symbol: 210 = CoCd TX GR/IR act Assignment no. .. Doc. no. Itm ..Tax base in LC
Text Symbol: 212 = CoCd Tax code Tax base
Text Symbol: 230 = Missing entries in table T030
Text Symbol: 231 = Tax account not found in T030K:
Text Symbol: 300 = Reversal posting date <= posting date.
Text Symbol: 301 = Further selections
Text Symbol: 302 = Output control
Text Symbol: 303 = Program must be limited to GR/IR accounts
Text Symbol: 310 = Doc. &BUKRS &BELNR: Purch.ord. / Outline agmnt &BSTBR does not exist
Text Symbol: 320 = Vendor &BUKRS &LIFNR do not exist.
Text Symbol: 321 = G/L acct &BUKRS &SAKNR not managed on OI basis
Text Symbol: 330 = Entry &ARG not in table &TABLE.
Text Symbol: 340 = The postings were entered in the session &MAPPE.
Text Symbol: 350 = No postings to be carried out
Text Symbol: 399 = ***************************************************************************


INCLUDES used within this REPORT RFWERE00A

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

JV_AUTHORITY_CHECK_PROCESS * call function 'JV_AUTHORITY_CHECK_PROCESS' "JVA_30C * exporting "JVA_30C * process_code = 'MM-REVAL' "JVA_30C * activity = '16' "JVA_30C * bukrs = t001-bukrs. "JVA_30C

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING LOCAL_AMOUNT = POSTAB-DMSHB FOREIGN_CURRENCY = EKKO-WAERS LOCAL_CURRENCY = T001-WAERS * type_of_rate = 'M' "MIttelkurs TYPE_OF_RATE = T003-KURST RATE = EKKO-WKURS "H32285 DATE = BKPF-BUDAT IMPORTING FOREIGN_AMOUNT = POSTAB-WRSHB EXCHANGE_RATE = BKPF-KURSF "verw.Kurs

CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING FOREIGN_AMOUNT = BUCHTAB-WRSHB * FOREIGN_CURRENCY = EKKO-WAERS * LOCAL_CURRENCY = T001-WAERS * TYPE_OF_RATE = 'M' "MIttelkurs * DATE = STICHTAG * IMPORTING LOCAL_AMOUNT = BUCHTAB-DMSHB * EXCHANGE_RATE = BKPF-KURSF "verw.Kurs

POSTING_INTERFACE_END CALL FUNCTION 'POSTING_INTERFACE_END'.

POSTING_INTERFACE_START CALL FUNCTION 'POSTING_INTERFACE_START' EXPORTING I_FUNCTION = 'B' I_GROUP = B-NAME I_KEEP = KEEP I_MODE = 'N' I_USER = USER EXCEPTIONS OTHERS = 4.

POSTING_INTERFACE_DOCUMENT CALL FUNCTION 'POSTING_INTERFACE_DOCUMENT' EXPORTING I_TCODE = TCODE IMPORTING E_MSGID = SY-MSGID E_MSGTY = SY-MSGTY E_MSGNO = SY-MSGNO E_MSGV1 = SY-MSGV1 E_MSGV2 = SY-MSGV2 E_MSGV3 = SY-MSGV3 E_MSGV4 = SY-MSGV4 TABLES T_FTPOST = FTPOST T_BLNTAB = XBLNTAB T_FTTAX = XFTTAX EXCEPTIONS ERROR_MESSAGE = 1 OTHERS = 9.

POSTING_INTERFACE_CLEARING CALL FUNCTION 'POSTING_INTERFACE_CLEARING' EXPORTING I_TCODE = 'FB05' I_AUGLV = 'UMBUCHNG' IMPORTING E_MSGID = SY-MSGID E_MSGTY = SY-MSGTY E_MSGNO = SY-MSGNO E_MSGV1 = SY-MSGV1 E_MSGV2 = SY-MSGV2 E_MSGV3 = SY-MSGV3 E_MSGV4 = SY-MSGV4 TABLES T_FTPOST = FTPOST T_BLNTAB = XBLNTAB T_FTCLEAR = FTCLEAR T_FTTAX = XFTTAX EXCEPTIONS OTHERS = 4.






FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING I_BUKRS = BUCHTAB-BUKRS IMPORTING E_X001 = X001 EXCEPTIONS CURRENCY_2_NOT_DEFINED = 1 CURRENCY_3_NOT_DEFINED = 2 OTHERS = 1.

CALCULATE_TAX_FROM_NET_AMOUNT CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT' EXPORTING I_BUKRS = T001-BUKRS I_MWSKZ = BUCHTAB-MWSKZ I_WAERS = T001-WAERS I_WRBTR = BSEG-WRBTR I_PRSDT = BUDATUM "06.11.1995



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RFWERE00A or its description.