LSMW - Withholding taxes - RFBIBL00 program

Hi,
I need to change a LSMW for FI Postings with Withholding Taxes.
The LSMW reads 2 files (Header and Item) and I need to add the 3rd file (withholding taxes).
Header and Item are related by the first field of both structures.
How do I create the source structure for the 3rd file? How is the relationship between the 2nd and 3rd files?
The withholding file can have more than 1 record for each item. Example:
FILE 1 - Header
Header 1
Header 2
FILE 2 - Items
Header 1 - Item 1
Header 1 - Item 2
Header 2 - Item 1
Header 2 - Item 2
FILE 3 - Withholdings Taxes
Header 1 - Item 1 - Withholding 1
Header 1 - Item 1 - Withholding 2
Header 1 - Item 1 - Withholding 3
Header 1 - Item 2 - Withholding 1
Header 1 - Item 2 - Withholding 2
Header 2 - Item 1 - Withholding 1
Header 2 - Item 1 - Withholding 2
Header 2 - Item 1 - Withholding 3
Header 2 - Item 2 - Withholding 1
Thanks in advance,
Thanks,
Janete

Thank you Rob.
Your example is exactly what I want to do. BUT I dont know how to create the fields to relate the three files. If you know please send me an example. I am thinking to do something like this:
Header Structure
Ident1
Document Date
Item Structure
Ident1
Ident2
Account
Amount
Withholding Structure
Ident1
Ident2
Wt_code
Wt_type
thks,
Janete

Similar Messages

  • Calculate Withholding taxes for VEndor Invoices using ABAP program.

    Hi All,
    I have to upload Vendor Invoices using FB60/Fb01 tcodes. I am able to post the Invoices using FB01/Fb60
    but I have to calculate extended withholding taxes also using this program for the Invoices.
    Is it possible to upload vendor Invoices and calculate withholding taxes using Program?
    If yes,
    Does anyone has any idea how do you calculate extended withholding taxes using any BAPI's?
    I have used these two BAPI's
    BAPI_ACC_DOCUMENT_POST
    BAPI_acc_invoice_receipt_post
    they are working fine but without withholding tax.
    This is a requirement for country India.
    Regards,
    Sushil

    Hi,
    Imho, you need to get (meaning, extract into separate fields) the different supplier types from Table1 first. Your key for Table1 is the vendor no, which is also the key in Table2 (or the key for Table2 is Vendor no & Type).
    For better performance, better select multiple/all required entries from Table1 instead of doing a select endselect.
    Depending on the format of the vendortypes in Table1, put them in a new itab (for our purpose named Table1New where vendor no & type are the only 2 fields. For example, if the type length is fixed to 2 chars, or divided by space,... use your coding accordingly.
    Next step is to select all vendor no's in Table2 which you have selected in Table1. If in Table2, the vendor no is the only key (and the all vendor types are filled in a single record), then loop check the vendor types from Table1New against the types in Table2.
    If the key of Table2 is vendor no & vendor type, then do a read table for the key.
    The logic in pseudo-code:
    Select from Table1 into table. If you'd like to limit the selection size, add package size statement.
         extract the vendor types in to itab Table1New.
         Select the vendor & types from Table2 by using the for all entries option (better performance).
         loop at Table1New
              check in Table2:
                   if the unique key is vendor no: check all fields for the vendor type from Table1New
                   if the unique key combo is vendor no & type: check by using a read table.
              If not found => add entry to Table2
         endloop.
    endselect Table1 (when using package size)
    I guess the most difficult step is to extract the types from Table1 into separate fields, all the rest seems straight forward. Please keep in mind the itab type definitions for a better performance.
    Good luck!
    Best regards,
    Zhou

  • Withholding tax report - electronically?

    In ECC 6, Is it possible to send a data electronically using the Generic Withholding Tax Reporting program (RFIDYYWT)? I dont see any option on the selection screen to do this.
    Alternatively suppose i want to send the data electonically, how do i do it?

    Hi,
    Can u explain me how to create the DME files using Tcode-DMEE1, and how can i attach in WHT reproting program.
    Rgds
    sunfico

  • LSMW RFBIBL00 withholding tax base amount in local currency cannot be updated by manual

    Hi SAP Guru,
    When I try to upload FI docs by program RFBIBL00 in LSMW, the field BWITH-WT_QSSHH(withholding tax base amount in local currency) cannot be updated.
    (1) The LSMW structure is defined as bellow:
         BGR00<--------DOC_HEAD
              BBKPF<--------DOC_HEAD
                   BBSEG<--------DOC_ITEM
                        BWITH <--------DOC_WHTX
    And fields in structure BWITH are defined as bellow:
    Field Name
    Type
    Length
    Field Description
    STYPE
    C
    1
    Batch Input Interface Record Type
    WITHT
    C
    2
    Withholding tax type
    WT_WITHCD
    C
    2
    Withholding tax type
    WT_QSSHB
    C
    21
    W/tax base amount in document currency (batch input
    field)
    WT_QSSHH
    C
    21
    W/tax base amount in Local currency (batch input
    field)
    (2) When I run LSMW, the doc can be posted successfully. All the information can be updated as the data I upload. Only the field WT_QSSHH is calculated by system automatically according to the current foreign exchange rate.
    (3) When I try to post this doc by manual(F-02), the field WT_QSSHH is not editable.
    How can I change the field WT_QSSHH into editable and update this field in LSMW RFBIBL00.
    Thank you very much!
    Eric

    Hi Nikitha,
    I tried posting an invoice in currency other then co. code currency, but the WT amount is getting calculated perfectly.
    also checked vendor with foreign curr recon account. the WT is working for that also
    Can you please share the screen shot of the transaction where after changing currency you are not getting the values picked up for WT
    May be i have not understood your questions
    Regards
    Pragya

  • Standard LSMW for open vendor items with Withholding tax

    Hi All,
    I am searching the direct input LSMW which is having the Withholdig tax. There is a direct input program in LSMW ( RFBIBL00) but it is not uploaded the withholding tax for open vendor and open customer items.
    If anybody know which LSMW is recammanded or anthing related to BAPI or IDOC for this requirements.
    Dhiraj.

    Hi
    If you need to upload the WT tax you have to fill the structure BWITH of std BI RFBIBL00, so your LSMW project should create a file like this:
    ---> Session data
    BGR00
    ---> Document data
    BBKPF (Header data
    BBSEG (Vendor or customer item)
    BWITH (Withholding tax data)
    BBSEG (G/L item)
    Max

  • Withhold taxes not withheld - F110 Program

    Hi SCN members,
    When the users performed the F110 program and generated the txt file to the bank (That is who print the bank slip.), the bank noticed that the gross amount was printed in the bank slip without subtract the taxes.
    These documents were generated from billing process VF04.
    Apparently, the issue is in the billing documents and not in F110 process because with the user, we have reversed a payment of one document and we have tried to pay it on F110. The result was the same.
    All taxes are not been subtract and not only the taxes withheld in F110. The IRRF tax is withheld in billing process and also is not been subtract.
    I’ve never seen something like that. Have you seen?
    Thanks so much!

    Hi ,
    have you configured Withholding tax on Payment .
    System deduct the withholding tax  In f110 when you configure  Withholding tax type for payment and assign to you comapny code . and then Mainatin in Vendor/ customer master.
    Please check the setting and let us know .

  • Driver Program For Withholding tax(USA) Smartform 'idwtcert_us_1099misc1'

    Hai friends,
       i need to print withholding taxes(USA) by using the smartform 'idwtcert_us_1099misc1'. for this purpose
    for driver program i checked in tnapr table. & i have checked in sap Img Path also. but i am unable to find it.
    so please help in this regaurd. & i want to know how to find driver programs for standard FI smartforms.

    Hi Wayne,
    We opened a note with SAP and were told that a US 1042s copy could not be used within the standard system.  Looking into it further we found that the form name was coded into a selection program.  We had an ABAP developer add code that allows us to use a "Z_"  copy form. 
    Regards,
    Gregg

  • How to use BWITH(WithHolding Tax) in RFBIBL00?

    HI,
    I am already using RFBIBL00 . Now i have to do the enhancemant and under this WithHolding Tax has to be used. Iread the documentation that BWITh structure has to be used, but iam not getting how to use it.
    Plz help

    Hi
    U should transfer the data of BWITH, just after the data of BBSEG with vendor item:
    Structure data:
      BWITH-STYPE = '2'.
      BWITH-TBNAM = 'BWITH'.
    Withholding tax codes
      BWITH-WITHT           = <WITHT>.
      BWITH-WT_WITHCD = <WT_WITHCD>.
    Base to calculate the Withholding tax value
      WRITE <base amount> CURRENCY BBKPF-WAERK TO BWITH-WT_QSSHB.
    The Withholding tax codes have to picked up from vendor table LFBK, the base amount has to be calculate (it depends on the percentage stored in T059Z):
    <base amount> = <amount> * T059Z-QPROZ / 100
    Max

  • Withholding taxes not updated when program run in background

    Hi,
    in a z1 report i do:
      SUBMIT z2
      VIA JOB lc_jobname
       NUMBER v_jobcount
         WITH p_fecha  = p_fecha                               
         WITH p_file   = v_file_in
         WITH p_e_file = p_efile 
         WITH p_client = p_client
         WITH p_test   = p_test  
          AND RETURN.
    within this z2 report i do:
              PERFORM mrm_invoice_create_call(saplmrm_bapi)     USING     s_rbkpv
                                                           tab_frseg[]
                                                           tab_co[]
                                                           tab_ma[]
                                                           c_rbstat_posted
                                                           space
                                                 CHANGING  invoicedocnumber
                                                           fiscalyear
                                                           return[]
                                                           f_subrc.
              IF test IS INITIAL.
                COMMIT WORK AND WAIT.
              ELSE.
                ROLLBACK WORK.
              ENDIF.
    the question is that if i run z1 report online there is no problem but if
    i run z1 report in background, withholding taxes are not calculated.
    After debugging this is what i´ve found out:
    1.- in PERFORM mrm_invoice_create_call(saplmrm_bapi) there is a call to fm FI_WT_POST IN UPDATE TASK
    2.- in FI_WT_POST table WITH_ITEM is updated
    i guess this could be due to a delay in updating the table so i´m considering doing a WAIT UP TO X SECONDS.
    why is it working in online mode but not in background mode?
    any idea?
    Best regards.

    Hi,
    in case someone is interested this is how i solved the question:
    i had badi MRM_WT_SPLIT_UPDAT implemented.
    in this badi implementation i had this code (among other checks too):
    CHECK sy-tcode = 'MIR4' OR sy-tcode = 'MIR7'.
    this code avoided the background job case.
    It seems that In a background job sy-tcode is empty.
    so i just needed to add this:
    CHECK sy-tcode = 'MIR4' OR sy-tcode = 'MIR7' OR  sy-batch = 'X'.
    and then withholding taxes reappeared again.
    (so sad, so true... one day of debugging,  sigh)
    Best regards.
    Edited by: Pablo Casamayor on Feb 2, 2012 4:53 PM

  • 1099 Generic Withholding Tax Reporting RFIDYYWT program

    Hello SAP Gurus,
    For US 1099 withholding, does anyone know what the fields for US company codes in transaction OBY6 > Additional details should be filled with and what they represent or how they are used?  Is it the company code's Tax ID number (TIN)?
    Withholding Tax EDI Referen.No
    Withholding Tax Reference No.
    Thanks,
    Linda

    For anyone else who may need a reference, in the US, these fields should be filled with the company's tax id number.

  • Changing Withholding tax base amount- 1099 payment

    The scenario is:
    Classic withholding tax functionality to be used for first time, the configuration was done last year.
    1099 needs to be printed with all payments made out to the vendor.
    There were payments made out to the Vendor in year 2011. There are some payments that show as WT exempt amount  in RC and other payments are displayed as WT base amount in RC while running RFIDYYWT or 1099 print out report.
    I used RFWT0020 program to regenerate the WT and Change to source tax code. It just updates the tax code on the payment document but is not changing the payment document amount from WT exempt to WTax base.
    So the 1099 printout is not showing the total payments made, it is excluding WT exempt amount in total.
    Any suggestions?
    Thanks
    Edited by: Gary_S321 on Jan 11, 2012 10:30 PM

    Rebecca,
    You need to update the WTax base amount field on all the payment documents that are blank.
    For that just go to Vendor line item report FBL1n and run it for all the 1099 vendors. Change the layput to add WT base amount and WT Code in the report output. Filter the documennt type with payment doc types ZP and KZ and WTax base amount zero.
    Extract these transactions into excel and then write LSMW to mass update these tax base amount field.
    To update only Tax code on these transaction you can use RFWT0020 program.
    Hope this helps.
    Thanks

  • Vendor Open items upload- Withholding tax liable tick

    Hi all
    I have uploaded the Vendor open items. At the time of upload, Withholding tax was activated at the co code level. However, the liable to TDS tick was not checked. Now when I activate the liable tick and go to F-53 to pay the open items, I get an error of Items not activated due to Inconsistent Withholding tax. How do i resolve this error. I think there is a program which we need to execute to correct this. Can any1 help me with the program name?
    Thxs in advance
    Hrishi

    RFWT0010 is a programme to run for Open items adjustment.
    Let me know the result.
    thanks
    prabhakar

  • Report RFWT0010 to update withholding tax in open items

    Hi gurus!
    I'm facing a problem with report RFWT0010 after modifying withholding tax information in the vendor master record.
    If I delete a complete line (Withholding Tax Type, W/Tax Code, Liable and so on) when I run report RFWT0010 open items are pulled and updated correctly.
    However, if I have a scenario in which I only need to modify the Withholding Tax Code (leaving WIthholding Tax Type and Liable Flag like they were before) when I run report RFWT0010 no open items are pulled.
    Can anyone indicate me if RFWT0010 is meant only for withholding tax type changes?? or is it a program error??
    Thanks!
    Federico

    Withholding tax is not supported by SAP here...

  • S_P00_07000134 - Generic Withholding Tax Reporting

    When I run program RFW1099M all our 1099 vendors show up with the correct amounts.  However, when I run transaction S_P00_07000134 only 2 vendors print.  I've double checked the selection parameters and everything looks good.  I'm selecting all KZ and ZP documents.
    Also, every vendor has a "Tax Number 1" populated with their SSN and they have a Withholding Tax Code = 07.
    Am I missing something?

    1. Message No. 27 Company code xxx withholding tax reference number is missing
    Check Reference key 3 field (BSEG-XREF3). Basically, this field should be updated by document number.
    2. Message No. 11 Unable to print form IDWTCERT_PH_2307
    Check with your abaper. I guess you are using wrong printer to print your smart form. You should try to use locl in printer name field for testing.
    See more WHT problem at [www.sap-exp.com|http://www.sap-exp.com/SAP/withholding-tax]

  • While posting truncation in   *j1incust* (enter withholding tax certificate

    Dear experts
    while posting truncation in   j1incust (enter withholding tax certificate from customer ) am getting this error
    No unpaid tax lines exist for the given selection criteria.
    Message no. 8I702
    Diagnosis
    The corresponding withholding tax line  &1& is not present in WITH_ITEM table.
    System Response
    For withholding tax recovered from the vendor, tax line is present in table BSIS, but the corresponding entry is missing in table WITH_ITEM , which is necessary for challan updation. Check the entries.
    Procedure
    check entries in table WITH_ITEM for the open tax items chosen for clearing.
    thankx in advance
    Ajeesh.s

    Dear,
    This happens mainly due to wrong or no business place assignment at invoice or payment.
    Try to update the business place and run teh program. You can update the business place using J1INPP.
    check also whether the TDS account is maintained on Open Item basis.
    regards

Maybe you are looking for