Changing the line vat amount on an invoice using the di api SBO 2005a

Hi
I am using SBO 2005a SP01 PL36.
I have written some code to import sales invoices which works fine apart from the fact I want to overwrite the line vat amount -
oinv.Lines.NetTaxAmount = vatam
SAP seems to ignore this and just calculate it anyway, it's like it's a read only field
Can anyone help me please ?
Thanks
Regards Andy

Paul,
you are true,
NetTaxAmount is readonly field. If you want to modify this field, you should work with lines.
Petr

Similar Messages

  • Does the quadrangle's amount be limited when using the IndexedQuadArray?

    Dear all,
    I use IndexedQuadArray to describe a 3d's surface which is composed of thousands of quadrangle. When the quadrangle's amount is larger than 60000,the JVM is crashed with the following information:
    +++++++++++++++++++++++
    An unexpected error has been detected by Java Runtime Environment:
    SIGSEGV(0xb) at pc=0x000000000dbefebb, ...
    Java VM: Java HotSpot(TM) 64-Bit SErver VM(11.3-b02 mixed mode linux-amd64)
    Problematic frame:
    C [i965_dri.so + 0x31ebb]
    The crash happened outside the Java Virtual Machine in native code.
    See Problem ...
    ++++++++++++++++++++++++++++++++++
    But when the amount is not larger then 60000, everything is ok.
    My os is: 2.6.26.8-57.fc8, Redhat fedora 8, x86_64
    J2SE : 1.6.0_13-b03
    Java3D: 1.5.2
    thanks

    That's a computer problem. Your computer can't handle an amount larger than 60000. I had a similar problem.

  • I want to perform bidirectional i/o using a pci-6534.The problem is that i need to use the same lines for i/p and o/p. is that possible?

    I want to perform bidirectional i/o using a pci-6534.The problem is that i need to use the same lines for i/p and o/p. is that possible? And if it is how an i doing this?

    Hi I Pant,
    The idea that crossed my mind was to tie each of the lines coming from/going to "your device" to two of the DIO lines. Configure one these two ports as input, the other as output.
    When you want to read the state of the line, read from the line configured as input. Similarly, use the other port when it is time to write.
    Provided "your device" uses tri-state drivers/receivers, or can be used in a "wired-OR" configuration, this may work.
    What is "your device"?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Change of line item amount in miro

    hi,
    i have a doubt on the change of line item amount field value at PO reference tab in MIRO.
    1) when vendor invoice price higher than PO, although knowing that the price is incorrectly quoted by vendor, we need to change the amount in PO reference tab line item according to invoice?
    2) the difference in point 1 will hit stock account (map) or price difference.
    3) when vendor later on give CN, we need to do subsequent credit.
    4) in subsequent credit, need to create with reference to PO.
    5) we need to change the amount at PO reference item line according to CN?
    thanks

    Hi,
    1) when vendor invoice price higher than PO, although knowing that the price is incorrectly quoted by vendor, we need to change the amount in PO reference tab line item according to invoice? --- Yes you have to change it to Vemdor invoice amount
    2) the difference in point 1 will hit stock account (map) or price difference. --- Yes
    3) when vendor later on give CN, we need to do subsequent credit. -
    Yes with ref to PO
    4) in subsequent credit, need to create with reference to PO. -
    Yes
    5) we need to change the amount at PO reference item line according to CN? -- yes.
    Other Option
    You can use invoice reduction - System will create Inoice and credit memo in the same document.
    SPRO Steeting require :
    1. G/L account should be assigned to RKA trnsaction ket in OBYC.
    2. Document type KG  should be defined in Transaction code MIRO in customizing for doucment type invoice verification / Valuation in SPRO.
    3. Number range should be defined for Doc type KG.
    Regards,
    Shailesh Mackwan

  • Why the doc total amount is not matched with the total item line amount?

    Hi,
    Recently when i try to update something in sales order via my add-on, i got an error said u201CThere is a difference between the document total and its components.  [ORDR.DocTotal][line: 0] Iu201D Then i checked the sales order in SAP B1, I found the document total amount was not matched with the item line total amount. Actually the item line is quite simple, there is only one item line with qty 1. How comes the document total could be different with the amount from item line? I know the document total amount is a read-only field which is calculated automatically by SAP. This is really weird for us, we don't know how this happened.
    Has anyone experienced similar situation like mine and how this happens?
    Thanks,
    Lan

    I am having this same issue and I have additional information.
    I am on ver. 8.8 PL 16.
    Periodically (mulitiple times a week), when a Sales Order is created, the Doc Total amount is -zero- when there are clearly items that have a price associated with them. This causes an error when Adding the document. Sometimes, I can just change the quantity of one of the items, which forces the Doc Total to update.  Most of the time this does not work, though.  I end up having to restart the SAP client and then everything begins to work as it should.
    This behavior is occuring on mulitple machines in our office.
    Earlier in this thread, Rahul mentioned that they currency rounding was turned off and that this could be part of the problem.  In fact, we were having issues with Currency Rounding and did turn it off not long ago.  Rahul, can you explain better what you meant by "give the proper amount so that you can overcome the error..."
    Randy Davis
    Denver, CO
    Edited by: Randy Davis on May 16, 2011 2:01 PM

  • Clearing an Invoice using the DI

    Hello
    I am experiencing a problem when I generate a Journal Credit that is matched to a invoice using the DI but the balance on the invoice does not reduce or clear. I am using the following code:
    ' Generate the Excess Invoice/Document
    oJournal = oDICompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
    oJournal.TaxDate = Now
    oJournal.Memo = "Excess-" & oCustName.Value
    oJournal.Reference = lDocNum
    oJournal.Lines.AccountCode = sGLTradeAcc
    oJournal.Lines.ContraAccount = oCustAcc.Value
    oJournal.Lines.ShortName = oCustAcc.Value
    oJournal.Lines.Debit = rExcAmt
    oJournal.Lines.Credit = 0
    oJournal.Lines.ReferenceDate1 = Now
    oJournal.Lines.LineMemo = "Excess-" & oCustName.Value
    oJournal.Lines.Reference1 = lDocNum
    oJournal.Lines.Add()
    oJournal.Lines.AccountCode = sGLTradeAcc
    oJournal.Lines.TaxDate = Now
    oJournal.Lines.ContraAccount = oInvParty.Value
    oJournal.Lines.ShortName = oInvParty.Value
    oJournal.Lines.Credit = rExcAmt
    oJournal.Lines.Debit = 0
    oJournal.Lines.ReferenceDate1 = Now
    oJournal.Lines.LineMemo = "Excess-" & oCustName.Value
    oJournal.Lines.Reference1 = lDocNum
    oJournal.Lines.Add()
    If (0 <> oJournal.Add()) Then
      MsgBox("failed to add a journal entry")
      Call oDICompany.GetLastError(nErr, ErrMsg)
      If (0 <> nErr) Then
        MsgBox("Found error:" + Str(nErr) + "," + ErrMsg)
      End If
    End If
    oJournal = Nothing
    Please help !
    Regards
    John

    Hi John,
    You can only "clear" (= "Close"?!) an Invoice by posting a Payment or a Credit Memo, if I am not totally wrong!
    A Journal entry only has a connection to a document (through the Origin / Origin No. fields) when it is generated in the background of the document creation!
    Sorry, Frank

  • Does the Bone tool work with strokes created using the pencil or line tools?

    I have a working bone rig in a document(CS4) that I created using a SINGLE pencil stroke, and applying the armature to it.  Object drawing was off and it was a single piece with no part being a  symbol.  This was accomplished TWICE for two stick figure arms.
    However, when I tried the same thing in a new document, I couldn't apply bone to the pencil stroke or the line stroke.  After going back into the earlier document(where it was still functional) I tried creating a new armature using the exact same technique.  But this time Flash wouldn't allow it.
    Having failed every additional attempt, I'm wondering if Flash may have glitched somehow the first time, allowing this to work when, typically, it doesn't.  Or could I have possibly missed a step somewhere that caused it to fail each attempt at a recreation.

    I agree, it is sometimes difficult to click the sweet spot. Here are 3 suggestions:
    Pay close attention to the cursor icon. It will change when you're over an anchor or direction point.
    Try turning on "Smart Guides". They can be a nuisance, but sometimes they're helpful.
    Use the "Convert Buttons" on the Options bar. They may take a bit longer but they're full-proof, plus, you can convert or delete multiple selected points simultaneously using this method.

  • How to post a cross-company invoice using the BAPI_TRANSACTION_COMMIT?

    Hi
    I would like to post an inter-company invoice using the BAPI_TRANSACTION_COMMIT.
    There is a comp_code in the header strusture. The BAPI's documentation says that this is possible and in the ACCOUNTGL table there is a field COMP_CODE.
    The only problem is that the field is not there…
    Does anybody know whet to do?
    Thanks,
    Magdalena

    BAPI BAPI_TRANSACTION_COMMIT is not used for a specific application, but needs to be called always after any BAPI is called to post the data that were changed in the BAPI to the database.
    You need to find the BAPI that is used to post the invoice and then call BAPI_TRANSACTION_COMMIT.
    Always do:
    call function 'BAPI_application_specific'
    if sy-subrc eq 0.
      call function 'BAPI_TRANSACTION_COMMIT'.
    endif.
    Check the documentation you have to see if you can find the application specific BAPI.
    Hope that helps,
    Michael

  • I am having a problem changing a color in a selected area. Using the Quick Selection tool I am able to select the area I wish to change. Using the Brush tool, color, color mode and click drag in my selected area, nothing happens, no color changes.   I hav

    I am having a problem changing a color in a selected area. Using the Quick Selection tool I am able to select the area I wish to change. Using the Brush tool, color, color mode and click drag in my selected area, nothing happens, no color changes. I have viewed some videos and read numerous articles but haven't found the one to help me. Please point me in the best direction. Thank you Vincent TC

    For the sake of clarity and to save people time, Todd is asking about the behaviour of the Patch tool when using it to repair the area next to the young lad's head.  Todd gets a blurred dark tone pretty much regardless of the options he uses.
    IMO that's what I would expect to happen because of the close proximity of the other image elements i.e. the lad's neck and the strong lines of his shirt.  I would not choose to use the Patch tool in this situation.  Content Aware Fill makes a better stab at it. 

  • I have bought an used Iphone 5. I dont have the password for the existing login id of the old owner. How do i use the phone and change the log in id?

    I have bought an used Iphone 5. I dont have the password for the existing login id of the old owner. How do i use the phone and change the log in id?

    Unfortunatly the only way that you can get it off is to get the old user to input the password.  You may need to contact that old user and see if he can put the old password in.  hope this helps.

  • I purchased a magazine using the Zinio app which I'd recently downloaded on to a recently purchased iPad. I received an error message at the time (can't recall the details) but have since been invoiced for the $8.99. How can I get the Magazine I purchased

    I purchased a magazine using the Zinio app which I'd recently downloaded on to a recently purchased iPad. I received an error message at the time (can't recall the details) but have since been invoiced for the $8.99. How can I get the Magazine I purchased?

    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: [email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    How to Get a Refund from the App Store
    http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
    Canceling a Digital Subscription
    http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
     Cheers, Tom

  • I am trying to change my email address for an Apple ID and it is saying that it is already in use. I then sign in with that Apple ID and it says that the account is not set up yet, I don't want to set up the account, but I do want to use the email address

    I am trying to change my email address for an Apple ID and it is saying that it is already in use. I then sign in with that Apple ID and it says that the account is not set up yet, I don't want to set up the account, but I do want to use the email address in my original Apple ID! HELP!

    Welcome to the Apple community.
    Once you have created a rescue address, you cannot delete it, nor can you change it to the same address as used by your ID. There are numerous providers you can get additional email addresses from, such as Hotmail, Yahoo, Google etc etc.

  • Trying to create Invoice using the API,however i am not able to create the customer accounts in the front end

    when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error:
    Transaction type is invalid with current transaction date
    invalid transaction type
    either an inventory item description must be provided
    Kindly help me here

    Hi Team,
    I  tried creating the invoice and I got the above errors, however, when updated the batch source ID I am now getting this following error only, i am just left with the following Error only
    Either an inventory item or description must be provided.
    Please help me on this.

  • TS5223 i have change my name and my icloud is still using the old account. how do i change it to my new apple ID on my iphone without deleting the backup already in icloud

    have change my name and my icloud is still using the old account. how do i change it to my new apple ID on my iphone without deleting the backup already in icloud

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, and your old ID is an earlier version of your current ID, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • When I load certain websites the the writing is all squashed up. I correct this by changing the character encoding setting. I am using the latest Apple Mac machine. Thanks in advance

    When I load certain websites the the writing is all squashed up. I correct this by changing the character encoding setting. I am using the latest Apple Mac machine. Thanks in advance

    Thanks for that information!
    I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
    In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
    When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
    Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?!

Maybe you are looking for

  • Application Design Issue

    Hi, we are starting a project in Oracle ADF 11g, this is our first project in 11g, till now we were working in 10g deployment on OAS. When we were developing applications in 10g we created separate applications deployed on separated OC4J instances in

  • Invalid date format for 'Created' field in the getVersions web service Response.

    Hi all, I am trying to get all versions for selected document by calling getVersions method Versions.asmxweb service, but getting 'Created' date attribute value is in the format "29-05-2012 12:01" but I am expecting either one of the following date f

  • Newbie: Importing imovie to idvd

    Hello Everyone, I am a new mac user and therefore, a new imovie user. i have created a photo slideshow in imovie(it is about 25 minutes long with many transitions and cued music) and ultimately want to burn it to a dvd. earlier this year i created a

  • Error joining

    Hello. I have just returned from a wifi hotspot where I could not connect. My airport recognized the network but when i clicked to join it stated that there was an error in joining the network. My choices were to click retry or ok. Once I returned ho

  • Classic Report limit the number of rows displayed

    Hi All, In my application I have a classic Report which show the data of a simple query. For lay-out reasons I want to limit the number of display to 5 instead of the default 15. I've looked in several forums and they told me that I have to set the n