Cannot change Tax Code of A/R Invoice line

Hello,
I had this small problem where i cannot change the tax code of A/R invoice line.
ARInvoice.Lines.TaxCode = "O1";
But after i added the invoice, it seems that SAP still used the default TaxCode which is X1. Am i missing something? I've been stuck in this problem for over two weeks now.
Thank you, any help will be appreciated.

Here is my SAP Settings.
G/L Account Determination
   Sales - Tax
          Sales Tax Group (Service) = Exempt Output
Business Partner Master Data
   Accounting - Tax
          Tax Status = Liable
And here is my code snippet for creating and adding of A/R Invoice :
SAPbobsCOM.Documents _oARInvoice = (SAPbobsCOM.Documents)this.COMPANY.GetBusinessObject(BoObjectTypes.oInvoices);
            _oARInvoice.CardCode = pCustomerId;
            _oARInvoice.HandWritten = BoYesNoEnum.tNO;
            _oARInvoice.DocDate = pPostingDate;
            _oARInvoice.DocDueDate = pPostingDate;
double _total = 0;
            if (pInvoiceType == SAPVariables.INVOICETYPE.SERVICE)
                _oARInvoice.DocType = BoDocumentTypes.dDocument_Service;
                for (int i = 0; i < pARInvoice.Rows.Count; i++)
                    if (i > 0) _oARInvoice.Lines.Add();
                    _oARInvoice.Lines.SetCurrentLine(i);
                    _oARInvoice.Lines.ItemDescription = pARInvoice.Rows<i>["SERVICEDESCRIPTION"].ToString();
                    _oARInvoice.Lines.AccountCode = pARInvoice.Rows<i>["GLACCOUNT"].ToString();
                    double _discountPercent = 0;
                    double.TryParse(pARInvoice.Rows<i>["DISCOUNTPERCENT"].ToString(), out _discountPercent);
                    _oARInvoice.Lines.DiscountPercent = _discountPercent;                   
                    double _lineTotal = 0;
                    double.TryParse(pARInvoice.Rows<i>["AMOUNT"].ToString(), out _lineTotal);
                   // This part here, does not reflect in SAP
                    if (_lineTotal >= 2500000)
                        _oARInvoice.Lines.TaxCode = "O1";
                    else
                        _oARInvoice.Lines.TaxCode = "X0";
                    _oARInvoice.Lines.PriceAfterVAT = _lineTotal;                   
                    _total += _lineTotal;
else
                this.ERRORMESSAGE = "Invalid Invoice Type.";
                throw new Exception("Invalid Invoice Type.");
            _oARInvoice.DocTotal = _total;
            _oARInvoice.Comments = pComments;
            this.LASTINSERTINVOICEID = "";
            this.RETURNCODE = _oARInvoice.Add();
            if (this.RETURNCODE != 0)
                int _tempErrorCode = 0;
                string _tempErrorString = "";
                this.COMPANY.GetLastError(out _tempErrorCode, out _tempErrorString);
                this.ERRORCODE = _tempErrorCode;
                this.ERRORMESSAGE = _tempErrorString;
                _result = false;
            else
                this.RECORDSET = (SAPbobsCOM.Recordset)this.COMPANY.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                this.RECORDSET.DoQuery("SELECT MAX(DocEntry) FROM OINV");
                this.LASTINSERTINVOICEID = this.RECORDSET.Fields.Item(0).Value.ToString();
                _result = true;

Similar Messages

  • Cannot change Tax Code from the referenced sales order line

    hi,
    Has anyone ever got this error when creating Sales Order(SO): "*cannot change Tax Code from the referenced sales order line*"?
    The error occur with order type Return.
    This SO is created by copying from another SO.
    Please help.
    Regards & thanks,
    eRie

    hi,
    Has anyone ever got this error when creating Sales Order(SO): "*cannot change Tax Code from the referenced sales order line*"?
    The error occur with order type Return.
    This SO is created by copying from another SO.
    Please help.
    Regards & thanks,
    eRie

  • Change tax code for Inbound invoice Idoc

    Hi all,
    My requirement is to change the TAX code in INVOIC01 for inbound idoc ,Basic type in E1EDK04 segment.
    I am using exit EXIT_SAPLMRMH_012 .
    But change tax code is not refleted in IDOC segment.
    Even i put E_CHANGE = 'X'.
    Please any one who have donne this before help me its urgent.

    I got the answer. Actually I should be marking this item as Excise item in Item master which i missed out.
    Thanks.

  • How to change tax code while processing sales order dynamically

    Hi
         we need to change the tax condition value whenever Value inclusive tax more than 5250  then it has to capture different tax code ( 12.5 percent ) else it should capture existing tax code ( 5 percent ), is there any user exits or can we do through configuration
    Regards,
    Sekhar.K

    Hi,
    Please change the Tax code in Purchase order instead in Invoice.
    There  is a facility available in Purchase order  for mass change of any field at PO level.
    Entere the Tax code V0 and keep the cursor in Tax code field , then select Fast Change icon besides Copy item Icon above, you will get New values, enter V0 here and then select the radio button all items below and execute it, you will find all your line items will be having V0 tax code.
    This is a best practise to change Tax code at PO level.
    AMIT

  • Need to change Tax code in po but GR and IR also completed

    Hi Gurus,
                I have one issue in the po, the line item "xxxxxxx" in the PO It shall be 36 instead of 39.but it is GR and IR also completed,now we need to change the Tax code,for this we need to cancel IR and GR or without cancel GR, IR also we can change Tax code,please guide me.,but  i am thinking this below mentioned steps to maintain for change the Tax code.
    (1) cancel IR
    (2) Cancel GR for line item  "xxxxxxx"
    (3) Change tax code for line item "xxxxxx" from 39 into 36
    (4) Re-post GR for line item "xxxxxx".
    (5)Re-Post invoice for line item  "xxxxxx"
    These steps are required to change the Tax code in the po or not
    please guide me,
    Thanks for your reply.
    Regards
    SAP MM

    Hi,
    If the Tax amount is merged to the expense/revenue account as per the Tax configuration.
    Then if the tax code is V1 --Tax amount is 100 Rs
    The system will post that amount to material account and same will be GR/IR.
    When you do the MIRO the GR/IR will match & vendor account will update.
    If the Tax amount is posted to seperate a/c then tax amount will not merge to material account so at GR tax amount has no reflection but in MIRO system will post the tax to seperate G/L account and vendor is updated with Material Price + Tax amount, GR/IR will be same as MIGO .
    hope you understand.
    rgds
    Chidanand

  • INVOIC01 change tax code

    HI,
    I want to change TAX code in INVOIC01 basic type in E1EDK04 segment. I use user exit EXIT_SAPLMRMH_012 in debug mode.
    But change tax code is not refleted in IDOC segment.
    Please help

    Well,
    Is this an inbound scenario or an outbound scenario, if it is outbound then use the exit - EXIT_SAPLVEDF_002.
    If it is inbound, then the data will not be reflected in the new IDOC that is created while testing with WE19, you will have to look at the corresponding inbound document for that.
    If the above info isn't of much help, provide as much info as you can about your scenario.
    Regards,
    Chen

  • Tax code input for Automatically Generated Line Items

    Hi Guys,
    We want to input a tax code for the Automatically generated line item..for exchange rate differences in F-28.
    Once i simulate the F-28 , and i try to input the tax code in the Automatically generated line item for exchange rate difference,
    I cannot input the tax code in that screen..and it is greyed out.
    Is there a way we can assign a tax code for this GL account line item that is automatically generated by the system ?
    Thanks,
    Srikanth.

    Hello,
    you have to add the tax code in GL master data. if that's not possible (several codes possible), I would set up a substitution.
    kr
    Nico

  • R12: Imported Payables Invoices, cannot change currency code

    Hello,
    I am importing payables invoices to Oracle AP in batches using Open Interface table.
    When viewing an invoice from the batch, the invoices are updatable but I cannot change the currency of the invoice to a foreign one..
    Is there a way to change the currency code of an imported invoice?
    Oracle release: R12.0.6

    Hi,
    Please check the Supplier Site Invoice Currency and Payment currency options at the Supplier Header and Site level.
    Navigate to Suppliers-Entry-Query the supplier for which the forg currency not working-select update->click on invoice management and check the currency at the header and site.
    Hope it helps
    Regards,
    Sridhar

  • Allow to change Tax  Amounts in A/R Invoice

    Hi Experts
       I am using Sap B1 2007 . It allows me to change Tax Amount (Tax Amount Distribution Screens) in case of Excise Invoices in A/R Invoice but not in Service Tax Invoices . Why is it so.
    Thanx

    Hello,
    In the Sales A/R module we can not change any tax  amount.
    But you can change in Purchase A/P module in any tax amount.
    This is best business practices according to SAP.
    because when we received the materials then need to round the tax amount and it is totally depend on vendor invoice so it will never fixed for same.
    I also need some time adjustment we client make GRPO .
    But when we make Sales document then we can fixed rounding for all tax code.
    Thanks
    Manvendra Singh Niranjan

  • How to change tax code on multiple items in MIRO?

    Hi all,
    I'm entering an invoice using MIRO. The purchase order contains a lot of items for which the tax code is not correct.
    I would like to know if there is a way to change the tax code of each item using a mass change function.
    If it's not possible in MIRO, is there a way to make the mass change at the purchase order level?
    Thank you!

    Hi,
    If that Error will arise maintain the Tax code tab firstly then tick the Calculate tax button.
    Ex. As per multiple items tax code problem will arise come back and redo the miro then firstly enter the tax code before the PO number it will update for all the line items.
    Regards,
    Kanike

  • Change Tax Code after Partial Delivery for Sales Order

    Dear all,
    The government in my country has changed the GST (Goods & Services Tax) in my country from 5% to 7%. In my system I have created a new 7% Tax Code and assigned it to Condition Type MWST with a new validity date.
    For newly created Sales Order, my pricing procedure gets the correct 7% Tax Code for MWST based on Pricing Date that is later than the validity date I've set.
    However, my problem lies with partially delivered/invoiced Sales Order when updating of prices are not allowed. One possibility I can think of is to allow Condition MWST to be maintained manually and change it during Billing process. But I'm looking for a solution without change the Configuration if possible.
    Can anyone propose a good solution to my problem?
    Thank you.
    Regards,
    Wen Ho

    Hi
    May be you can solve it this way without changing configuration.
    Please take a look at item fields pricing date (sales a tab), service rendered (billing tab - special for taxes). Both fields influences prices and you can change them for instance if you want new tax to be considered you can put an updated date.
    If it does not change prices goto Conditions tab and press the update button (option G copy prices and redetermine taxes could be the appropiatte).
    As a suggestion please test carefully the scenario (taxes are involved) before making any change in Production documents).
    I believe it will work fine. Please rewards points if usefull.
    Best regards
    Max

  • Changing Tax Code in Sales Order

    Hi All,
    I've a requirement to change the tax code of MWST CT from normal value XX to a new tax code in sales order for few excpetion cases.
    For normal cases the tax code will always be XX for MWST CT in the sales order. However for very specific business need the tax code for the existing sales order needs to be changed to a new value. The need for changing the tax code always arise after creating the sales order.
    Kindly suggest the possible ways to meet this requirement.
    Regards,
    Ashish

    Changing the tax code in the sales order is not std sp procedure and I don;t think sp allow tampering with it either.
    The taxes are based on the combination for customer and material and I suggest that you maintain all tax codes at the material and customer level for all combinations possible and each customer is alloted one unique one.
    What are the possible reason why tax changes. It can only be the delivery address is changed. If the material iself changes then you may have to modify the sales order itself but if there is a change in the ship to party then....
    Now if the shipto party changes then you can always redetermine taxes in billing where the actual taxes will be redetermined based on the new conditions.
    If you see the tax line item in the sales order you will see that it is greyed out.
    You can change the excise duty but not taxes.
    This is the default where the condition type is prohibited from changing manually. But if you change the setting to Free or manual then you can change the value of tax bu the tax code will be as determined by the combination of material and shipto.
    regds
    Jude
    Edited by: jude xavier on Sep 7, 2008 8:23 PM
    Edited by: jude xavier on Sep 7, 2008 8:24 PM

  • Tax Code in PO and Invoice

    Is there a config to validate whether Tax code in Purchase Order and Invoice are same ?
    My requirement is as follows:
    PO is created with a specific tax code.  If Invoice in MIRO is created with a different tax code, there should be an error or warning msg saying "Tax code in Invoice differs from PO".  Is there any config to do this ?

    hi
    see this you can control by seeting message as error and the system will give you warining that the tax code you have enterd is different from th ePO.
    this you can check in the message attribute for the LI V.you have see that message number and make it as error in the define attribute for the message.
    Regards
    sunny

  • Change Tax code in sales order

    Hello Friends,
    We have a requirement for the tax code determination - There are two way determination of tax code in sales order
    -> From the tax condtion records
    -> From manual input of tax code in the sales order
    Could you please advice on how we can insert manually the tax code since the standard SAP not supports the requirement.  For your information, business case not supports to maintain condition recors for those tax codes to insert manually.
    Please advice
    Best Regards,
    Goutham

    Hi,
    During sales order creation, the tax classification from the customer master is proposed in the sales order document.
    In condition record, you maintain the tax code for this tax classification along with some other field combinations. Accordingly, teh percentage linked to the tax code will be decided as teh % of tax for the customer. This is the logic.
    If you want to change the tax code in the sales order, it is not possible. However if you really want to change it, you can achieve it by changing the tax classification of the customer in the sales order header. This is available in the billing tab of order header. The field is "Alternate tax classification". You can change the desired tax classification here. Correspondingly by linking the tax code to this tax classification in VK11, you should be able to change the applicable tax code in the sales order.
    In summary, you should change the tax classification in order to change the tax code which is linked to it.

  • Want to change Tax Code Rate

    Hi
    <b>Using SRM 5.0 Ext Class Scenario. Tax calculation occurs in R/3.</b> I want to change the Tax rate.
    As I am creating SC & PO in EBP. I use TAX CODE. Now I want to change the tax rate of Ecess from 2% to 3%. Can u please tell me whether I can change the same in EBP or I have to replicate it from R/3.
    Thanks in advance
    Vinod

    Hi,
    Did you try implementing BADI BBP_DET_TAXCODE_BADI?
    I hope this help you
    Thx

Maybe you are looking for

  • Configure logical systems

    Hi, I have shipping data in 4.6c and they migrated to ECC6.0 . In that my requirement is i have to cofigure logical systems using we20 T.code and By using Inbound Parameter i am providing Message type and Process Code. Regarding this my question is i

  • From FCP timeline...send to soundtrack pro audio file project is greyed out

    The send to multi track is not greyed out but that's not what I need. The stereo audio file is 48KHz and I have 7 tracks of audio in the sequence all of which are stereo except the VO track. If I use "open in editor" to open a stereo file from the ti

  • Advance payment wage type

    My client using existing system Advance payment wage type1524 this is calculation on basic wage type 25% and no months  Ex Basic  =6000 HRA per month 1500 Here schema is Z000 Now we are doing different location now the need same s Adv payment wage ty

  • How to sharpen in photos

    <sigh> Am I correct in thinking that Sharpening is another "feature" that isn't present in Photos? So if not, not a problem, as you can always do that using an external editor like in dear old iPhoto - except of course you can't, as that's another ap

  • HOW CAN I SET MY FAX SENDING REPORT AS PRINT HP LASER JET COLOURE 2840

    sory i want to set my hp laser jet coloure 2840 as fex sending report as a print