SAP Reports / Programs | Financial Accounting | General Ledger Accounting | Information System(FI-GL-IS) SAP FI

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







RFWERE00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program analyzes goods receipt/invoice receipt (GR/IR) clearing accounts at a specified key date, and generates adjustment postings if necessary...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 RFWERE00 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

GJ93 - JV Goods receipt inventory orders


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 RFWERE00. "Basic submit
SUBMIT RFWERE00 AND RETURN. "Return to original report after report execution complete
SUBMIT RFWERE00 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: AQTAXKZ = Acquisition tax code
Selection Text: AQTAXTAG = Acquisition tax key date
Selection Text: PAR_BI = Create Postings
Selection Text: PAR_BNAM = Name of batch input session
Selection Text: P_AQTAX = Display acquisition tax
Selection Text: P_BBUDAT = Posting date
Selection Text: P_BBUPEM = Month
Selection Text: P_BKTXT = Posting header text
Selection Text: P_BLART = Document type
Selection Text: P_BLDAT = Document date
Selection Text: P_LVAR = List variant
Selection Text: P_SBUDAT = Reversal posting date
Selection Text: P_SBUPEM = Reversal period
Selection Text: SEL_LSTM = Tax return country
Selection Text: STICHTAG = Key date
Selection Text: S_GRACC = D .
Selection Text: S_MWSKZ = Tax code
Selection Text: TITLE = Additional heading
Selection Text: VERBUND = Partners
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: XNOPL = Read open items only
Selection Text: XWERE = GR/IR clearing
Selection Text: P_LDGRP = D .
Selection Text: S_LIFNR = D .
Selection Text: AKONTO = Reconciliation account
Title: Analyze GR/IR Clearing Accounts and Display Acquisition Tax
Text Symbol: 001 = Acq. tax
Text Symbol: 002 = Postings
Text Symbol: 003 = 1.Start selection &
Text Symbol: 004 = 2.End selection & durtn &
Text Symbol: 005 = 3.End GR/IR & durtn &
Text Symbol: 006 = 4.End List & durtn &
Text Symbol: 007 = Selections
Text Symbol: 008 = Parameters
Text Symbol: 019 = RFWERE00





Text Symbol: 020 = Batch input
Text Symbol: 044 = Messages
Text Symbol: 045 = Text 045
Text Symbol: 100 = Vendor missing in FI
Text Symbol: 102 = Key date
Text Symbol: 114 = Local currency amt
Text Symbol: 115 = Foreign currency amount
Text Symbol: 118 = LC
Text Symbol: 241 = Postings generated
Text Symbol: 242 = Posting proposal
Text Symbol: 243 = In Session &
Text Symbol: 244 = Ledger Group
Text Symbol: 303 = Restrict to GR/IR accounts
Text Symbol: 304 = Posting date falls before key date!
Text Symbol: 402 = Error
Text Symbol: 403 = Postings with Ledger Group Not Possible
Text Symbol: S12 = Error in BI Assignment


INCLUDES used within this REPORT RFWERE00

INCLUDE RKASMAWF.


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:

DDIF_TABL_GET CALL FUNCTION 'DDIF_TABL_GET' EXPORTING name = 'BSEG' IMPORTING dd02v_wa = ls_dd02v_wa_bseg.

FI_SPLIT_FROM_ITEM CALL FUNCTION 'FI_SPLIT_FROM_ITEM' EXPORTING IS_ITEM = ls_spl_item * ID_LEDGER = ' ' IMPORTING ET_SPLDOC = lt_spl_doc EXCEPTIONS * INTERNAL_ERROR = 1 OTHERS = 2.

FI_SPLIT_FROM_ITEM CALL FUNCTION 'FI_SPLIT_FROM_ITEM' EXPORTING IS_ITEM = ls_spl_item * ID_LEDGER = ' ' IMPORTING ET_SPLDOC = lt_spl_doc EXCEPTIONS * INTERNAL_ERROR = 1 OTHERS = 2.

CALCULATE_TAX_FROM_NET_AMOUNT CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT' EXPORTING I_BUKRS = T001-BUKRS I_MWSKZ = IMWSKZ I_WAERS = IWAERS I_WRBTR = lWRBTR I_PRSDT = P_BBUDAT IMPORTING E_FWNAV = EFWNAV E_FWNVV = EFWNVV E_FWSTE = EFWSTE E_FWAST = EFWAST TABLES T_MWDAT = XMWDAT EXCEPTIONS ERROR_MESSAGE = 4 OTHERS = 4.

FI_TAX_GET_TAX_PROCESSINGS CALL FUNCTION 'FI_TAX_GET_TAX_PROCESSINGS' EXPORTING i_ktosl = xmwdat-ktosl IMPORTING e_t007b = ls_t007b EXCEPTIONS ktosl_not_found = 1 others = 2.

CALCULATE_TAX_FROM_NET_AMOUNT CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT' EXPORTING I_BUKRS = T001-BUKRS I_MWSKZ = IMWSKZ I_WAERS = IWAERS I_WRBTR = lWRBTR I_PRSDT = P_BBUDAT IMPORTING E_FWNAV = EFWNAV E_FWNVV = EFWNVV E_FWSTE = EFWSTE E_FWAST = EFWAST TABLES T_MWDAT = XMWDAT EXCEPTIONS ERROR_MESSAGE = 4 OTHERS = 4.

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' EXPORTING I_FIMSG = FIMSG I_XAPPN = ' ' EXCEPTIONS OTHERS = 0.

FI_SPLIT_MOVE_TO_BATCH_INPUT CALL FUNCTION 'FI_SPLIT_MOVE_TO_BATCH_INPUT' EXPORTING COMPANY_CODE = postings-bukrs GL_ACCOUNT_NUMBER = ikto ID_BUDAT = postings-budat X_BS_ACCOUNT = 'X' ADD_ACCT_ASS = postings-addaa ID_LDGRP = p_ldgrp TABLES BATCH_INPUT_DATA = lt_ftpost EXCEPTIONS * ASSIGNMENT_NOT_SET = 1 * INTERNAL_ERROR = 2 OTHERS = 3.

POSTING_INTERFACE_START CALL FUNCTION 'POSTING_INTERFACE_START' EXPORTING I_FUNCTION = FUNC I_GROUP = PAR_BNAM I_KEEP = 'X' I_MODE = MODE I_USER = USER * create batch input when error occurs *not i_xbdcc = 'X' EXCEPTIONS ERROR_MESSAGE = 1 OTHERS = 6.

POSTING_INTERFACE_END





CALL FUNCTION 'POSTING_INTERFACE_END'.

POSTING_INTERFACE_DOCUMENT CALL FUNCTION 'POSTING_INTERFACE_DOCUMENT' EXPORTING I_TCODE = 'FBB1' IMPORTING * e_subrc = subrc E_MSGID = FIMSG-MSGID E_MSGTY = FIMSG-MSGTY E_MSGNO = FIMSG-MSGNO E_MSGV1 = FIMSG-MSGV1 E_MSGV2 = FIMSG-MSGV2 E_MSGV3 = FIMSG-MSGV3 E_MSGV4 = FIMSG-MSGV4 TABLES T_FTPOST = FTPOST T_BLNTAB = XBLNTAB T_FTTAX = XFTTAX EXCEPTIONS ERROR_MESSAGE = 4 OTHERS = 4.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = H_REPID I_CALLBACK_PF_STATUS_SET = H_SET_PF_STATUS I_CALLBACK_USER_COMMAND = H_USER_COMMAND I_DEFAULT = 'X' IS_LAYOUT = T_SLIS_LAYOUT_ALV IS_PRINT = T_SLIS_PRINT_ALV IT_EVENTS = T_EVENTS[] IT_FIELDCAT = T_FIELDCAT[] I_SAVE = 'A' IS_VARIANT = H_VARIANT TABLES T_OUTTAB = LIST_ITEM EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_HIERSEQ_LIST_DISPLAY * call function 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' * exporting * i_callback_program = h_repid * i_callback_pf_status_set = h_set_pf_status * i_callback_user_command = h_user_command * it_fieldcat = t_fieldcat[] * i_default = 'X' * i_save = 'A' * is_variant = h_variant * it_events = t_events[] * it_event_exit = t_event_exit[] * i_tabname_header = h_tabname_header * i_tabname_item = h_tabname_item * is_keyinfo = h_keyinfo * tables * t_outtab_header = list_item * t_outtab_item = list_headx " * exceptions * program_error = 1 * others = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_PROGRAM_NAME = H_REPID I_INTERNAL_TABNAME = I_TAB I_INCLNAME = H_REPID " I_CLIENT_NEVER_DISPLAY = 'X' I_BYPASSING_BUFFER = 'X' CHANGING CT_FIELDCAT = TI_FIELDCAT[] EXCEPTIONS OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING I_LIST_TYPE = 1 IMPORTING ET_EVENTS = T_EVENT[] EXCEPTIONS LIST_TYPE_WRONG = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.

REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING ET_SORT = T_SLIS_SORT EXCEPTIONS OTHERS = 0.

GET_FIELDTAB * CALL FUNCTION 'GET_FIELDTAB' * EXPORTING * tabname = itabname * TABLES * fieldtab = inttab * EXCEPTIONS * OTHERS = 1.

FI_POSTINGS_ALV CALL FUNCTION 'FI_POSTINGS_ALV' EXPORTING I_HEADLINE = HD_TXT IS_VARIANT = H_VARIANT IS_LAYOUT = T_SLIS_LAYOUT_ALV TABLES T_DOC_HDR = T_HEADER T_DOC_LINES = T_ITEM.

FI_MESSAGES_ALV CALL FUNCTION 'FI_MESSAGES_ALV' EXPORTING I_HEADLINE = TEXT-044 IS_VARIANT = H_VARIANT IS_LAYOUT = T_SLIS_LAYOUT_ALV EXCEPTIONS OTHERS = 0.

KPEP_MONI_INIT_RECORD CALL FUNCTION 'KPEP_MONI_INIT_RECORD' EXPORTING LS_DETAIL = Ls_detail LS_WITEM = ls_witem * LS_APPL = * LD_WORKLIST_FLAG = ' ' IMPORTING LS_KEY = LS_key_static TABLES LT_SELKRIT = LT_SELKRIT LT_PARAM = LT_PARAM.

KPEP_MONI_CLOSE_RECORD CALL FUNCTION 'KPEP_MONI_CLOSE_RECORD' EXPORTING LS_KEY = LS_key_static * LS_MESSAGE = * LD_OBJECTS = * LS_EXT = * LS_RL = LS_SCMA_EVENT = ls_scma_event * TABLES * LT_SPOOL = GT_SPONO CHANGING LD_APLSTAT = LD_APLSTAT EXCEPTIONS * NO_ID_GIVEN = 1 OTHERS = 0.

GET_FIELDTAB CALL FUNCTION 'GET_FIELDTAB' EXPORTING TABNAME = 'SAPF100_OUTIN' TABLES FIELDTAB = INTTAB EXCEPTIONS OTHERS = 1.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING FUNCNAME = 'K_PCA_GET_BALANCE_FLAG' exceptions FUNCTION_NOT_EXIST = 1 OTHERS = 2.

K_PCA_GET_BALANCE_FLAG CALL FUNCTION 'K_PCA_GET_BALANCE_FLAG' EXPORTING I_BUKRS = ibukrs IMPORTING E_BIACT = eflag EXCEPTIONS OTHERS = 7.

FAGL_CHECK_GLFLEX_ACTIVE CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIVE' IMPORTING E_GLFLEX_ACTIVE = ld_active.

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING I_BUKRS = i_bukrs IMPORTING E_X001 = e_x001 EXCEPTIONS CURRENCY_2_NOT_DEFINED = 1 CURRENCY_3_NOT_DEFINED = 2 OTHERS = 3.



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 RFWERE00 or its description.