SAP Reports / Programs

RFKQST00 SAP ABAP Report - Withholding Tax Return







RFKQST00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for General Report for Withholding Tax Reporting This report evaluates withholding tax transactions and supports classic withholding tax as well as extended withholding tax...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 RFKQST00 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 RFKQST00. "Basic submit
SUBMIT RFKQST00 AND RETURN. "Return to original report after report execution complete
SUBMIT RFKQST00 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: P_BSCHLS = Reposting Key for TO (H)
Selection Text: P_BSCHLH = Reposting Key for TO (H)
Selection Text: P_BEFR = Also Docs with Exemption Numbr
Selection Text: P_ADRID = Address ID
Selection Text: PROTOKOL = Log
Selection Text: PM_UNAME = Name of Batch Input Session
Selection Text: PM_UMBU = Create batch input session
Selection Text: PM_RUECK = PrPer Posting with Exemption
Selection Text: PM_FINA = TO if no Relevant TO entered
Selection Text: NLAMWSKZ = Tax code not subject to tax
Selection Text: LISTSEPA = Separate list
Selection Text: KTOSUMME = Totals per vendor
Selection Text: KANTIVA = Tax on Sales/Pur. Acct Dwn Pyt
Selection Text: FORMULAR = Form printout
Selection Text: FNZSUMME = Totals per Tax Office
Selection Text: EINZELPO = Line items
Selection Text: DTATAB = Fill table for DME
Selection Text: DP_SELEC = Also open down payments
Selection Text: DETAIL_W = Detail display of w/tax
Selection Text: CONVDAT = Translation date
Selection Text: BUCHDT = Posting date
Selection Text: BKRSUMME = Totals per company code
Selection Text: BELNUM = Document number
Selection Text: BELART = Document type
Selection Text: AUGDAT = Clearing date
Selection Text: ALT_CTRY = Country in title
Selection Text: ALTCURR = Alternative local currency
Selection Text: P_EXCL0 = No Items with W/Tax Amount 0
Selection Text: S_FISKU = D .
Selection Text: P_KEEP = D .
Selection Text: PM_ZTERM = D .
Selection Text: PM_PYCUR = D .
Selection Text: PM_BLDAT = D .
Selection Text: PM_BLART = D .
Selection Text: ZUSTITEL = Additional heading
Selection Text: WITHT = Withholding tax type
Selection Text: UNAUSGEG = Also open invoices
Selection Text: UMRECHN = Exchange rate from invoice





Selection Text: TESTDRCK = Number of sample printouts
Selection Text: S_DPDAT = Down payment posting date
Selection Text: SUMMENTB = Totals table for tax types
Selection Text: QSTSUMME = Totals per w/hld.tax type/code
Selection Text: QSTSAKO = G/L account for Enasarco
Selection Text: QSTKZ = Withholding tax code
Selection Text: P_ZAEHL = Consecutive account no.from
Selection Text: P_WITHT = W/Tax Type for Base Determ.
Selection Text: P_VARIA = Country variant
Selection Text: P_UMSKZ = Additional Special Ledger ID
Selection Text: P_UMB = Display Transferred Documents
Selection Text: P_PRINT = Printer
Selection Text: P_NUMB = Display Non-Reposted Docs
Selection Text: P_NULL = Also documents with zero tax
Selection Text: P_KURST = Exch Rate typ - WHT base Amts
Selection Text: P_IMMEA = Print immediately
Selection Text: P_FORID = Form identification
Title: Withholding Tax Return
Text Symbol: ZAH = Payment docs
Text Symbol: PDT = Posting Date
Text Symbol: INV = Invoice
Text Symbol: FDT = Value Date Field
Text Symbol: E01 = Following documents could not be reported (withholding tax information inconsistent)
Text Symbol: DDT = Document Date
Text Symbol: CDT = Clearing Date
Text Symbol: 804 = Country Variant
Text Symbol: 803 = No tax offices have been defined for the following vendors:
Text Symbol: 802 = /BAUABZUG
Text Symbol: 801 = Repost Construction WHT
Text Symbol: 800 = Repost Construction WHT from WHT Account to Tax Office Account
Text Symbol: 702 = Payment & refers to following invoice:
Text Symbol: 200 = Male ,,
Text Symbol: 114 = TaxOffice
Text Symbol: 113 = Tax no.
Text Symbol: 112 = Withholding tax code name Detail Invoice amount Withholding tax amnt
Text Symbol: 111 = Vendor
Text Symbol: 110 = Total paid items for W/hld.tx code
Text Symbol: 109 = Total open items for W/hld.tx code
Text Symbol: 108 = Total





Text Symbol: 107 = Acct
Text Symbol: 106 = Withholding Tax Code
Text Symbol: 105 = Reference no. Doc.No. Pstng Date Doc.Date WT Code WT Base Amount
Text Symbol: 102 = Ref.No. Doc.No. PstDte DocDte WT Code Invoice Amount
Text Symbol: 031 = NI Number:
Text Symbol: 030 = Certificate:/ Card
Text Symbol: 022 = Special G/L Indicator
Text Symbol: 021 = Cur. translation
Text Symbol: 018 = SeqNo Acct No. Tax Office Tax Number Address
Text Symbol: 017 = ClgDte Clg Doc. PK S It DT DocDte Doc. No. Gross - TSP Tax on S/P Mat. Costs Subj. to WT With. Tax Net Amount
Text Symbol: 016 = SeqNo Acct No. Address Tax number
Text Symbol: 015 = (O-T acct)
Text Symbol: 014 = Tax code:
Text Symbol: 013 = Licence has now expired
Text Symbol: 012 = Valid until:
Text Symbol: 011 = License no.:
Text Symbol: 010 = W/tax code
Text Symbol: 009 = ClgDte Doc.no. PK S LI DT DocDte Reference no. Invoice amount Base amount Withhold.tax Net amount Tax-exempt amt
Text Symbol: 008 = SeqNo Acct No. Address
Text Symbol: 007 = Withhldg tax report for $
Text Symbol: 006 = PstDt. Doc No. ReDat Reference No. Repost No. Repost Invoice Amnt Base Amount W/Tax Amnt Exemption No.
Text Symbol: 005 = PstDte Doc.no. DocDte Reference no. ClgDte WT code Invoice amnt Base amount Withhold.tax Net amount Tax-exempt amt
Text Symbol: 004 = Cn.no Acct no. Tax number Address
Text Symbol: 003 = WT code Withholding tax name Invoice amount Base amount Withholding tax Net amount Tax-exempt amnt
Text Symbol: 002 = *** No correct report variant has been chosen ***
Text Symbol: 001 = Company Code
Text Symbol: 201 = Female ,,
Text Symbol: 701 = Payment & clears following documents:
Text Symbol: 609 = Clear.Date Document No. PKy SGL DT Document Dt Invoice Amount Base Amount WithholdingTax
Text Symbol: 603 = WT Withholding Tax Name Invoice Amount Withhold. Tax Amount
Text Symbol: 516 = Alternat. Ref. No. Payment Amount TSP Amount Net Amount Enasarco not subj. to tax
Text Symbol: 515 = PstDte Doc. No. DocDte Reference No. ClgN WT Invoice Amount Base Amount Gross Amount Exempt Amt WithholdingTax
Text Symbol: 514 = Payment Amount TSP Amount Net Amount Enasarco not subj. to tax
Text Symbol: 513 = WT Code Withholding Tax Name Invoice Amount Base Amount Gross Amount Exempt Amt WithholdingTax
Text Symbol: 510 = Withholding tax code:
Text Symbol: 509 = With/tax type:
Text Symbol: 453 = Tel.
Text Symbol: 452 = Person Responsible
Text Symbol: 451 = Yr-End Closing



Text Symbol: 450 = Annual Withholding Tax Return
Text Symbol: 416 = Germany
Text Symbol: 415 = Venezuela
Text Symbol: 414 = Japan
Text Symbol: 413 = Portugal
Text Symbol: 412 = Colombia
Text Symbol: 411 = Mexico
Text Symbol: 408 = Puerto Rico
Text Symbol: 407 = Czech Rep.
Text Symbol: 406 = Spain
Text Symbol: 405 = Australia
Text Symbol: 404 = Great Britain
Text Symbol: 403 = Italy
Text Symbol: 402 = Belgium
Text Symbol: 401 = France
Text Symbol: 302 = Number of records entered in QSTRE:
Text Symbol: 301 = Item could not be entered in table QSTRE:
Text Symbol: 300 = No. of deleted records in QSTRE:
Text Symbol: 222 = Withholding Tax Reprt Variant & For Company Code
Text Symbol: 204 = on ,,
Text Symbol: 203 = in ,,
Text Symbol: 202 = Born ,,


INCLUDES used within this REPORT RFKQST00

INCLUDE RFEPOSC1.


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:

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING mode = 'CURRENT' no_dialog = 'X' * BoI 1253173 new_list_id = 'X' immediately = p_immea line_size = '132' line_count = ln_count * EoI 1253173 IMPORTING * OUT_ARCHIVE_PARAMETERS = * BoI 1253173 out_archive_parameters = d_arc_param * EoI 1253173 out_parameters = d_out_param * VALID = EXCEPTIONS archive_info_not_found = 1 invalid_print_params = 2 invalid_archive_params = 3 OTHERS = 4.

FI_WT_READ_WT_INFO CALL FUNCTION 'FI_WT_READ_WT_INFO' EXPORTING i_bukrs = bsik-bukrs i_belnr = bsik-belnr i_gjahr = bsik-gjahr i_buzei = bsik-buzei TABLES t_with_item = x_with_item EXCEPTIONS not_found = 1.

FI_WT_READ_T059Z * Call function 'FI_WT_READ_T059Z' * EXPORTING * I_BUKRS = KTAB-BUKRS * I_type = X_with_item-Witht * I_wt_withcd = X_with_item-Wt_withcd * TABLES * T_T059Z = X_T059Z.

FI_WT_READ_T059Z CALL FUNCTION 'FI_WT_READ_T059Z' EXPORTING i_bukrs = ktab-bukrs i_type = x_with_item-witht i_wt_withcd = x_with_item-wt_withcd TABLES t_t059z = x_t059z EXCEPTIONS not_found = 1 OTHERS = 2.

FI_WT_READ_T059Z * Call function 'FI_WT_READ_T059Z' * EXPORTING * I_BUKRS = KTAB-BUKRS * I_type = X_with_item-Witht * I_wt_withcd = X_with_item-Wt_withcd * TABLES * T_T059Z = X_T059Z.

FI_WT_READ_T059Z CALL FUNCTION 'FI_WT_READ_T059Z' EXPORTING i_bukrs = ktab-bukrs i_type = x_with_item-witht i_wt_withcd = x_with_item-wt_withcd TABLES t_t059z = x_t059z EXCEPTIONS not_found = 1 OTHERS = 2.

FI_WT_READ_T059U CALL FUNCTION 'FI_WT_READ_T059U' EXPORTING i_bukrs = ktab-bukrs i_type = x_with_item-witht TABLES t_t059u = x_t059u EXCEPTIONS not_found = 4.

FI_WT_READ_T059ZT CALL FUNCTION 'FI_WT_READ_T059ZT' EXPORTING i_bukrs = ktab-bukrs i_type = x_with_item-witht i_wt_withcd = x_with_item-wt_withcd i_spras = sy-langu TABLES t_t059zt = x_t059zt EXCEPTIONS not_found = 4.

FI_WT_READ_T059ZT CALL FUNCTION 'FI_WT_READ_T059ZT' EXPORTING i_bukrs = ktab-bukrs i_type = x_with_item-witht i_wt_withcd = x_with_item-wt_withcd i_spras = gs_t001-spras TABLES t_t059zt = x_t059zt EXCEPTIONS not_found = 4.

POPUP_NO_LIST CALL FUNCTION 'POPUP_NO_LIST' EXPORTING force = 'X'.



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