SAP Reports / Programs | Financial Accounting | Accounts Payable | Basic Functions(FI-AP-AP) SAP FI

RFWT0010 SAP ABAP Report - Adjustment of Withholding Tax Information to Relevant Types







RFWT0010 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Adjustment to Withholding Tax Information after Change to Master Data or Change to Withholding Tax Information for the Company Code Extended withholding tax is active in your company code (field T001-WT_NEWWT is set) and you have open vendor or customer items in your system...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 RFWT0010 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 RFWT0010. "Basic submit
SUBMIT RFWT0010 AND RETURN. "Return to original report after report execution complete
SUBMIT RFWT0010 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: VENDOR = Vendor
Selection Text: TEST = Test run
Selection Text: RECURR = Recurring Entry Document
Selection Text: PARKED = Parked
Selection Text: OLD_TYPE = Delete w/tax no longer relev.
Selection Text: NORMAL = Normal
Selection Text: NEW_TYPE = Add new withholding tax types
Selection Text: I_LIFNR = D Vendor
Selection Text: I_KUNNR = D Customer
Selection Text: I_GJAHR = D Fiscal year
Selection Text: I_DBELNR = Document No. of Recurring Doc.
Selection Text: I_BUKRS = D Company code
Selection Text: I_BUDAT = D Posting date
Selection Text: I_BELNR = D Document number
Selection Text: DOWN_PAY = Down Payment
Selection Text: DA_TODAY = Today
Selection Text: DA_OTHER = Other date
Selection Text: DATE = D Posting date
Selection Text: CUSTOMER = Customer
Title: Adjustment of Withholding Tax Information to Relevant Types
Text Symbol: 034 = Parked Documents
Text Symbol: 033 = Normal Docs
Text Symbol: 032 = Also down payments and partial payments with withhold. tax code
Text Symbol: 031 = Deleted withholding tax information:
Text Symbol: 030 = Lock entries
Text Symbol: 029 = Lock Entries
Text Symbol: 028 = Upd. run
Text Symbol: 022 = Test mode
Text Symbol: 021 = Cust.
Text Symbol: 020 = Vendor
Text Symbol: 010 = Test run
Text Symbol: 009 = Withholding tax information changed:
Text Symbol: 008 = Withholding tax information added:
Text Symbol: 007 = Do not enter withholding tax code
Text Symbol: 006 = Copy withholding tax code from master record
Text Symbol: 005 = other date
Text Symbol: 004 = current date
Text Symbol: 003 = Doc. adjustment for relevant withholding tax types by





Text Symbol: 002 = Document >djus.
Text Symbol: 001 = Acct Selectn
Text Symbol: 035 = Rec. docs


INCLUDES used within this REPORT RFWT0010

INCLUDE RFWT0010_TOP.
INCLUDE RFWT0010_ALV.


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:

FI_CHECK_EXTENDED_WT CALL FUNCTION 'FI_CHECK_EXTENDED_WT' EXPORTING I_BUKRS = wa_t001-bukrs EXCEPTIONS COMPONENT_NOT_ACTIVE = 1 NOT_FOUND = 2 OTHERS = 3.

ENQUEUE_EFLFB1A CALL FUNCTION 'ENQUEUE_EFLFB1A' EXPORTING LIFNR = wa_lfb1-lifnr BUKRS = wa_t001-bukrs EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

FI_WT_DETERM_RELEVANT_TYPES CALL FUNCTION 'FI_WT_DETERM_RELEVANT_TYPES' EXPORTING I_BUKRS = wa_t001-bukrs I_ACCT = wa_lfb1-lifnr I_KOART = 'K' I_BUDAT = date I_POSTINGTIME = ' ' TABLES T_WITH = a_x_with_item EXCEPTIONS NOTHING_SELECTED = 1 OTHERS = 2.

ENQUEUE_EFBKPF CALL FUNCTION 'ENQUEUE_EFBKPF' EXPORTING BUKRS = wa_vbsegk-bukrs BELNR = wa_vbsegk-belnr GJAHR = wa_vbsegk-gjahr EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

FI_WT_DETERM_RELEVANT_TYPES CALL FUNCTION 'FI_WT_DETERM_RELEVANT_TYPES' EXPORTING I_BUKRS = wa_t001-bukrs I_ACCT = wa_lfb1-lifnr I_KOART = 'K' I_BUDAT = date I_POSTINGTIME = '2' TABLES T_WITH = a_x_with_item EXCEPTIONS NOTHING_SELECTED = 1 OTHERS = 2.

ENQUEUE_EFBKPF CALL FUNCTION 'ENQUEUE_EFBKPF' EXPORTING BUKRS = wa_bsik-bukrs BELNR = wa_bsik-belnr GJAHR = wa_bsik-gjahr EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

CHANGE_DOCUMENT CALL FUNCTION 'CHANGE_DOCUMENT' TABLES T_BKDF = i_bkdf T_BKPF = i_bkpf T_BSEC = i_bsec T_BSED = i_bsed T_BSEG = i_bseg T_BSET = i_bset.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

ENQUEUE_EFKNB1A CALL FUNCTION 'ENQUEUE_EFKNB1A' EXPORTING KUNNR = wa_knb1-kunnr BUKRS = wa_t001-bukrs EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

FI_WT_DETERM_RELEVANT_TYPES CALL FUNCTION 'FI_WT_DETERM_RELEVANT_TYPES' EXPORTING I_BUKRS = wa_t001-bukrs I_ACCT = wa_knb1-kunnr I_KOART = 'D' I_BUDAT = date I_POSTINGTIME = ' ' TABLES T_WITH = a_x_with_item EXCEPTIONS NOTHING_SELECTED = 1 OTHERS = 2.

ENQUEUE_EFBKPF CALL FUNCTION 'ENQUEUE_EFBKPF' EXPORTING BUKRS = wa_vbsegd-bukrs BELNR = wa_vbsegd-belnr GJAHR = wa_vbsegd-gjahr EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

FI_WT_DETERM_RELEVANT_TYPES CALL FUNCTION 'FI_WT_DETERM_RELEVANT_TYPES' EXPORTING I_BUKRS = wa_t001-bukrs I_ACCT = wa_KNB1-kunnr I_KOART = 'D' I_BUDAT = date I_POSTINGTIME = '2' TABLES T_WITH = a_x_with_item EXCEPTIONS NOTHING_SELECTED = 1 OTHERS = 2.

ENQUEUE_EFBKPF CALL FUNCTION 'ENQUEUE_EFBKPF' EXPORTING BUKRS = wa_bsid-bukrs BELNR = wa_bsid-belnr GJAHR = wa_bsid-gjahr EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

CHANGE_DOCUMENT CALL FUNCTION 'CHANGE_DOCUMENT' TABLES T_BKDF = i_bkdf T_BKPF = i_bkpf T_BSEC = i_bsec T_BSED = i_bsed T_BSEG = i_bseg T_BSET = i_bset.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING BUKRS = WA_T001-BUKRS COMPONENT = '**' IMPORTING ACTIVE_COMPONENT = COMPONENT EXCEPTIONS COMPONENT_NOT_ACTIVE = 01.






DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

FI_WT_READ_WT_INFO CALL FUNCTION 'FI_WT_READ_WT_INFO' EXPORTING I_BUKRS = wa_bsik-bukrs I_BELNR = wa_bsik-belnr I_GJAHR = wa_bsik-gjahr I_BUZEI = wa_bsik-buzei TABLES T_WITH_ITEM = i_x_with_item EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

FI_WT_READ_T059P call function 'FI_WT_READ_T059P' EXPORTING i_bukrs = wa_t001-bukrs i_type = i_x_with_item-witht TABLES t_t059p = h_t059p EXCEPTIONS not_found = 1 others = 2.

FI_WT_READ_T059P CALL FUNCTION 'FI_WT_READ_T059P' EXPORTING I_BUKRS = WA_T001-BUKRS I_TYPE = A_X_WITH_ITEM-WITHT TABLES T_T059P = H_T059P EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

FI_WT_READ_WT_INFO CALL FUNCTION 'FI_WT_READ_WT_INFO' EXPORTING I_BUKRS = wa_vbsegk-bukrs I_BELNR = wa_vbsegk-belnr I_GJAHR = wa_vbsegk-gjahr I_BUZEI = wa_vbsegk-buzei TABLES T_WITH_ITEM = i_x_with_item EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

FI_WT_READ_WT_INFO CALL FUNCTION 'FI_WT_READ_WT_INFO' EXPORTING I_BUKRS = wa_bsid-bukrs I_BELNR = wa_bsid-belnr I_GJAHR = wa_bsid-gjahr I_BUZEI = wa_bsid-buzei TABLES T_WITH_ITEM = i_x_with_item EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

FI_WT_READ_T059P call function 'FI_WT_READ_T059P' EXPORTING i_bukrs = wa_t001-bukrs i_type = i_x_with_item-witht TABLES t_t059p = h_t059p EXCEPTIONS not_found = 1 others = 2.

FI_WT_READ_T059P CALL FUNCTION 'FI_WT_READ_T059P' EXPORTING I_BUKRS = WA_T001-BUKRS I_TYPE = A_X_WITH_ITEM-WITHT TABLES T_T059P = H_T059P EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

FI_WT_READ_WT_INFO CALL FUNCTION 'FI_WT_READ_WT_INFO' EXPORTING I_BUKRS = wa_vbsegd-bukrs I_BELNR = wa_vbsegd-belnr I_GJAHR = wa_vbsegd-gjahr I_BUZEI = wa_vbsegd-buzei TABLES T_WITH_ITEM = i_x_with_item EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.



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