Invoices with only RI TAX

I have a table like this
this table will show the customers , and its invoices and its taxes.
A single customer can have single invoice or many invoices
and a single invoice can have single tax or many taxes
i need invoices which are having on RI taxes...
i dont want invoices which is having other tax along with RI tax.
with t as
select 100 customer_id , 20 invoice_id , 'VAT' tax from dual
union all
select 100 customer_id , 20 invoice_id , 'RI' tax from dual
union all
select 100 customer_id , 21 invoice_id , 'RI' tax from dual
union all
select 100 customer_id , 22 invoice_id , 'VAT' tax from dual
union all
select 101 customer_id , 23 invoice_id , 'RI' tax from dual
select * from t
i need invoices with only RI tax...
in the above example i ouput should be only
invoice_id
21
23
Thanks
Vinoth

suzvino wrote:
I have a table like this
this table will show the customers , and its invoices and its taxes.
A single customer can have single invoice or many invoices
and a single invoice can have single tax or many taxes
i need invoices which are having on RI taxes...
i dont want invoices which is having other tax along with RI tax.
with t as
select 100 customer_id , 20 invoice_id , 'VAT' tax from dual
union all
select 100 customer_id , 20 invoice_id , 'RI' tax from dual
union all
select 100 customer_id , 21 invoice_id , 'RI' tax from dual
union all
select 100 customer_id , 22 invoice_id , 'VAT' tax from dual
union all
select 101 customer_id , 23 invoice_id , 'RI' tax from dual
select * from t
i need invoices with only RI tax...
in the above example i ouput should be only
invoice_id
21
23
Thanks
Vinothwhy is invoice_id = 20 not part of result set?

Similar Messages

  • How to enter invoice with two different tax codes in one line?

    Dear friends,
    I have this PO for which I enter the invoice.
    I recieve later a subsequent debit for this PO from the transporter. This subsequent invoice has got extra debits, one with 21% VAT and one with 19% VAT, which means two items with two different tax codes.
    I want to enter this subsequent debit for each item of the PO, and I want to enter both debits in every item of the PO.
    How can I enter in one row in MIRO a debit with two different tax codes.
    Thank you.

    I want in the same line item to enter two tax codes.
    Do you Know if there is any way to do this?
    It is a subsequent debit and it has two items with two different tax codes. I want to enter the subsequent debit for a PO with many items and enter the value of the whole subsequent invoice. So there is the need to enter one line item with two tax codes.
    How can this be done?
    Thank you?

  • Printing Four tax Invoice with three diff tax field

    Hi Experts,
    I am preparing PLD for tax invoice the customer. He have to print the four copy of same Invoice with four diff. Tax field..
    Like 1st Copy will be "Original For buyers"  2nd will be "Duplicate for Transporter" 3rd Will be "Triplicate for Assessment" and 4th Will Quadruplicate for Extra"
    Please Reply ASAP.
    Thanks in Advance
    Binod Sharama

    Hi,
    You can handle different tax code in one invoice.
    In PLD at header just type all the options like Original, Duplicate, Triplicate etc.,
    Just take printout with carbon copy or invdividually and leave the relevant one strike the other on each copy.
    Hope this will help you,
    Regards,
    Venkatesan G.

  • Invoice with only a Freight Charge

    Hello,
    We have just identified a strange issue on the sales invoices which we have been creating using the document generation wizard.
    Certain invoices are appearing with only the freight charge on the invoice. The lines from the originating delivery appear on another invoice. There is also no base doc link between the invoice which just has freight and the delivery. Basically we end up with 2 invoices for 1 delivery, one of which has no lines and only the freight charge.
    I would appreciate any help.
    Many Thanks

    Dear Gary,
    This might be a database corruption and that this invoice was create with no row, only header. Therefore I would advise you to log a message on the service market place to ask support to check the datebase.
    Kind Regards,
    Magalie Grolleau
    SAP Business One Product Support

  • Printing invoice with only XML file

    Hi all,
    I have a problem. When the invoice print with XMLP 5.6.2 is OK, but users want the possibility to reprint the same invoice with the same informations when they want (same if the bill's addresse has changed, for example). Is it possible to reprint the invoice with the XML file generated at the first time and how?
    Thanks

    You can do this by running XML Report Publisher and selecting the original request that was run. This will pick up the original XML and apply it to the specified template to recreate the original invoice(s).
    Cheers,
    Dave

  • Error while posting A/R Downpayment Invoice with Excisable Tax Code.

    While posting A/R Dowpayment Invoice with Excisable Tax Code error of "Unbalanced Transaction" appears. This error does not occur while posting A/R Downpayment Invoices with Non-Excisable Tax Codes.
    Kindly provide a solution for the same.

    SAP Note Number: 1179405
    Error -5002 when trying to copy a document with Sales BOM
    In order to create the delivery via the DI, you need to set the oDoc.Lines.BaseLine value to the LineNum value from the RDR1 table (in the above example you should enter the value 2).
    we set oDoc.Lines.BaseLine=0 before starting the lines loop. This has resolved the issue.
    This note was really helpful and it was found in another query.
    You can also refer to this. https://forums.sdn.sap.com/click.jspa?searchID=19070513&messageID=6178079
    Thanks.
    Edited by: Sadanand Manda on Nov 24, 2008 12:16 PM

  • Self billing invoice with input tax code

    Hello experts,
    we are currently trying to implement a billing procedure with credit memos within the module SD. In this set-up the recipient of a service (company using the SAP) creates a credit memo for the renderer of a service (a debitor in SAP) showing the amount the recipient of the service/product has to pay. The credit memo will also show VAT (we currently only try to implement a process for transaction within Germany, no cross-border transactions yet). For the recipient of the service (= issuer of the credit memo) the credit memo is similar to an incoming invoice (self billing invoice). Hence, the shown VAT on this credit memo - if all other requirements are met - can be treated as deductible input tax.
    In order to automatically process the credit memo correctly as incoming invoice it has to be linked to a tax code (Steuerkennzeichen) with tax type "V" (=input tax) (Vorsteuerkennzeichen). To achieve that we have created a new condition record (Konditionssatz) that performs that task.
    So currently we create a credit memo request (Gutschriftsanforderung) which is linked to an input tax code (Vorsteuerkennzeichen) via mentioned condition record. We then create the billing document. During creating the billing document an accounting document should also be created. But that is where our approach does not work properly. The system creates a billing document (credit memo) but does not create the corresponding accounting document. We receive the error message:
    Document .... saved (no accounting document generated)
    Message no. VF050
    When trying to release the document to FI via Transaction VF02 we receive the following, more detailed error message:
    Only output tax is allowed for account 480000 1000, VZ is not allowed
    Message no. FS215
    This problem has to be somehow linked to the usage of an input tax code. If we perform the same procedure with an output tax code (Ausgangsteuerkennzeichen) we will not receive the error message and an accounting document is created.
    It seems that the account determination is responsible for the described problem: Although an input tax code is assigned, the account key (as shown in the overview to the applied conditions on the items within the credit memo request (Item - Condition - Detail)) does not change from "MWS" to "VST" and therefore an output tax account (Account Number 480000) is determined for the tax amount. And for that output tax account the usage of an input tax code is not allowed.
    Has anyone an idea how to solve the described problem or how to implement the billing procedure another way?
    We are aware that there is such a functionality within the module MM called "Evaluated Receipt Settlement (ERS)" but this is not suitable for our purposes since we want to implement this within SD and without the need to create an order first which seems to be necessary for ERS.
    Thanks for your help,
    Bernd

    Hi
    Please check in FS00, of that G/L account  in control data tab what is the Tax Category that has been maintained.Check wheather input tax/output tax has been maintaind or not
    In FS00 in the control tab check the box Posting without tax allowed
    Regards
    Srinath
    Edited by: sri nath on Sep 30, 2011 4:55 PM

  • Problem with Excise Duty tax calcualtion in Invoice

    Hi experts,
    Need your rexpert advise on the below issue.
    We have MM invoice where by the tax is not calucalted correctly.
    The Material is subject to excise duty, on the GR the excise invoice is getting generated with Cenvat clering account with correct amount towards excise duty
    i.e. GR is done for amount - 52951.33 and corresponding Tax code is KE(10% excise duty, 3% Ecess and 2% CST) which comes correctly as 6214.73 approximately which is correct in case of GR
    But however when the Invoice is posted for corresponding GR, the amount of tax calculated is only 1307.50, which should have been 6214.73 as the amount on the GR.
    We really are not able to find out why their is diffrences in the calculation of excise duty.
    Request your expert advise on this regard.
    Thanks.
    Shahid.

    System will fetch the duties from J_1IGRXREF table into MIRO transaction. So firstly check whether duties are correctly updated for the respective Excise invoice in the said table.
    Secondly ensure you have selected the correct tax code in MIRO same as PO tax code. There may be a chance that user had changed the tax code after posting the GRN in the Purchase order.
    Finally check whether the condition records are valid for the selected tax code in FV13 transaction code and are not set to deleted.

  • Problem creating A/R Invoice with Withholding tax data via DI-Server

    Hi!
    Using the following SOAP Request to the DI-Server, I wanted to create an A/R Invoice having a withholding tax data but it always respond with an error saying
    Total taxable amount of all rows exceeds the base amount  [INV5.TaxbleAmnt][line: 1]
    SOAP Request:
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
      <env:Header>
        <SessionID>203A3C01-7808-4638-8322-2307DF3C0F8F</SessionID>
      </env:Header>
      <env:Body>
        <dis:Add xmlns:dis="http://www.sap.com/SBO/DIS">
          <Service>InvoicesService</Service>
          <Document>
            <DocType>dDocument_Items</DocType>
            <HandWritten>tNO</HandWritten>
            <DocDate>2010-02-08</DocDate>
            <DocDueDate>2010-02-08</DocDueDate>
            <TaxDate>2010-02-08</TaxDate>
            <VatDate>2010-02-08</VatDate>
            <CardCode>NPI</CardCode>
            <Comments>test di-server soap message 1</Comments>
            <DocumentLines>
              <DocumentLine>
                <ItemCode>TRC</ItemCode>
                <Quantity>1</Quantity>
                <Price>1000</Price>
                <TaxCode>OVAT</TaxCode>
                <VatGroup>OVAT</VatGroup>
                <TaxLiable>tYES</TaxLiable>
                <WTLiable>tYES</WTLiable>
              </DocumentLine>
            </DocumentLines>
            <WithholdingTaxDataCollection>
              <WithholdingTaxData>
                <WTCode>C140</WTCode>
                <TaxableAmount>1000</TaxableAmount>
                <WTAmount>100</WTAmount>
              </WithholdingTaxData>
            </WithholdingTaxDataCollection>
          </Document>
        </dis:Add>
      </env:Body>
    </env:Envelope>
    OVAT rate above is 10%.
    The withholding tax code C140 is setup as
    rate=10,
    Category=Payment,
    Base Type=Net,
    % Base Amount = 100,
    Rounding Type = Commercial Values.
    We are using the New Zealand/Australia localization in SAP B1 2007A PL49.
    The above code can be successful only if I set the <WithholdingTaxDataCollection> node to:
            <WithholdingTaxDataCollection>
              <WithholdingTaxData>
                <WTCode>C140</WTCode>
                <TaxableAmount>0</TaxableAmount>
                <WTAmount>100</WTAmount>
              </WithholdingTaxData>
            </WithholdingTaxDataCollection>
    setting TaxableAmount equal to 0 which is not desired.
    Can anyone extend me some help, please?
    Thanks.

    Albert,
    Did you try adding this via the DI API and not the DI Server?  Do you get the same error?  Please see this SAP Note ...
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=0001303019
    Eddy

  • India Localization - AP - Asset Invoice with Tax Lines

    Dear Experts,
    In India Localization If I have Asset Invoice with Tax Lines and If I Perform Mass Additions will Tax Lines also Interfaced to FA or only Asset cost will be transferred FA (Excluding Tax Lines)
    Please help me out.
    Thanks
    Bharath

    Bharath,
    even though the tax lines are independently transferred to mass addition and merged ... it is merged to its owning transaction ... like if the invoice in AP is created for a capital asset using the Capital asset clearing account, the tax lines in that invoice is merged automatically to that invoice cost line in the mass addition stage ... similary for CIP clearing account ....
    Regards,
    Ivruksha

  • Document splitting: vendor invoice with VAT cannot be posted because of tax

    Hello
    I try to post a vendor invoice with document splitting active. I can post a document without VAT but with VAT (input tax 21%) I get the message "Posting possible only with zero balance" balance; balance on other line items is 210 EUR.
    001 31       0000105675 Vendo                      1.000,00-                V4
    002 40       0000601000 Purchase of consuma           500,00                 V4
    003 40       0000601000 Purchase of consuma           500,00                 V4
    In customizing for document splliting I have following categories assigned to the GL accounts:
    100     399999     01000     Balance Sheet Account
    411000     411000     05100     Taxes on Sales/Purchases
    440000     441000     03000     Vendor
    451000     451000     05100     Taxes on Sales/Purchases
    500000     580000     01000     Balance Sheet Account
    600000     699999     20000     Expense
    700000     759010     30000     Revenue
    The field status group of the tax gl account has following field optional: cost center, profit center, segment (on which document splitting is require)
    What should I do so that the document splitting works also for the tax accounts so that they appear in the gl document?
    kr
    Arjan

    Hi,
    This problem does not seem to be of Document Splitting. When you post the document, balance of the document does not come to zero. This problem somewhat relates to Parrelel currency configured.
    Please depict entire scenario. Let me know in which currency you are posting document and which transaction and what message system is shooting.
    Straight solution can be you manually change the 210 EUR balance into document by clicking on more data.
    Regards,
    Chitnan Joshi.

  • Tax jurisdiction code creates a difference when posting invoice with PO ref

    I have added a tax jurisdiction code since the client wants to be able to sort taxes by location.  The problem now is that, I have posted a PO with a tax jurisdiction code but upon posting the invoice with reference to this PO, there's an error saying that there still exists a balance even though the balance on the screen is zero.  Any ideas on how this can be solved?

    Hi ,
    Can you please tell us how you resolved? We do facing the same problem.
    Thanks
    Ganesh

  • AP invoice with different tax rate and cost center?

    Dear all,
    We are just upgrade from 11i to R12.1.3. Before in 11i, we can change distribution account in AP invoice distribution line if the type is "Tax". However, after updated to R12, we define tax code (e.g. P1 for particular account combination), so once user selects tax code "P1" and invoice will automatic creates tax line for such invoice but the user cannot change distribution account anymore. Because in 11i, user will change the distribution account (cost center segment) but now in R12 user cannot change it.
    The only work around is defining different tax code for different cost center.
    For example: P1-0001 => 01.0000.999999.00001
    P2-0001 => 01.0000.999999.00002
    We have hundred of tax code and cost center combination.
    Any other work around for this? or anyone encounter the same problem?
    Please advice.
    Thanks.

    Let me explain more in details:
    1) The cost centre will will more. 2 cost centres just a simple example.
    For now, we have 5 cost centres for each of the tax rate. For the work around now, I need to define 5 tax codes for the same tax rate for different distribution combinations:
    Quote
    Tax Code ==>Tax Rate ==> AP Distribution Combination
    A1-3500 ==> 10% ==>001.9999999.3500.00
    A1-3600 ==> 10%==> 001.9999999.3600.00
    A1-3700 ==> 10%==> 001.9999999.3700.00
    A1-3800 ==> 10%==> 001.9999999.3800.00
    A1-3900 ==> 10%==> 001.9999999.3900.00
    2) The driving factor would be 100% percent.
    Please kindly advice.
    Many thanks.
    driving factor for the cost centre

  • F110: how to pay an invoice with Withholding Tax and a credit memo?

    Hi All,
    in my SAP I've defined a Withholding Tax type for Payment Posting.
    I've posted a vendor invoice with with Withholding Tax.
    Later I've posted a credit memo with Withholding Tax which must compensate the prevuois invoice.
    When I launch t.code F110, SAP, in the right manner,  proposes to pay the invoice less the amount of the credit memo. 
    But the calculation of the Withholding Tax (that it should post al the payment time) is wrong: SAP proposes to post the amount of the Withholding Tax recorded in the table WITH_ITEM at the moment of the posting of the invoice. Instead, from it, SAP should detract the amount of the Withholding Tax recorded in the table WITH_ITEM at the moment of the posting of the credit memo.
    Why does SAP doesn't consider the amount of the Withholding Tax of the credit memo?
    Could anyone help me?
    Thanks

    Dear Rossi,
    if You defined the WT TYPE at the payment time this means that the WT amount will be calculated at posted during the F110 run as per the invoice as per the credit memo.
    If they are the same amounts and refer to the same wt type and code, when You run F110, they should match even for the WT calculation. It is clear that if You inserted manually the WT base amount or the WT amount into the invoice, the system will not do any automatic calculation but it will use these amounts that can be different from the one auto matically calculated by the system for the credit memo.
    I hope this can help You.
    Mauri

  • Printing invoices with VF31 in only one spool request

    Hello,
    we want to print a number of invoices with VF31 using only one spool request, as at this time we become one spool request for each document.
    The problem is that VF31 calls indirectly RSNAST00 and this program makes a call to the print program where we have OPEN_FORM and END_FORM each time, so this creates one spool request every time the program is called.
    Is there a way to print in only one spool request without doing big changes to programs?
    Thanks and regards.

    Hi,
    To append to an existing spool, see the SAP Notes 85318 and 16410.
    For spools to be appended the parameters 'New spool request' and 'Do not Append Print Jobs' must be set to 'No' by the application creating the spools.
    For Sapscript, when the application call the function module OPEN_FORM in your print program, you can transfer a structure ITCPO to the parameter OPTIONS. Via ITCPO-TDNEWID, you can select the option 'New Spool Request'.Via ITCPO-TDFINAL, you can can select if the spool is closed.
    Regards,
    Aidan

Maybe you are looking for

  • Purchase Order printed only once

    Hello. I need to print the PO automatically when I create it. But if the PO is changed or release it sholdn't printed again automatically. How can I configure the message for this purpose? Is it possible print only once? Thank you in advance. Regards

  • AIM app won't connect

    Hi I just got my iPad. I downloaded the AIM app and tried to sign in and it seems like it only halfway signed in. my buddy list appears. but I cannot receive any messages and a little red bar keeps appearing and disappearing that says "connecting..."

  • Translation Pattern for a Route Pattern

    I´m trying to make a translation pattern for a route pattern to add a * or a # in the end of the number I'm dialing for example the route pattern is 9.0414XXXXXXX and I want to change to XXXXXXX*. If I dial 904141309131 I see in the phone 4130913*. I

  • Audigy SE and Logitech Z-550

    I recently purchased the . When I go throught the sound test, both front speakers respond to the Left Front test, and no speakers respond to the Front Right test. All the other tests work fine. When playing a CD, only the left front and subwoofer are

  • Considering switching to Droid X..

    I've got some questions about the phone... 1. how does it do in pockets? Is it easy to fit, or is it uncomfortable? 2. Does the alarm have the option of setting an alarm to go off everyday? Or do you have to manually turn on the alarm each time?