Change the ItemCode in a document line

Hello Everybody
I'm looking for help. I try to change an ItemCode in a documentline that is for replacing it by a fake itemcode to let me ignore that line cause i can't remove it but wen i update the document i have an error number -10 concerning the VAT Group!!!
oDoc.lines.itemcode = "CANCELLED"
oDoc.lines.price=0
oDoc.lines.quantity=1
odoc.update()
Help needed!
Best Regards

Hi Sofiane,
Does the CANCELLED item exist?
Does it have a default VAT group?
Try doing exactly the same using the GUI, and it is supposed to give the same error. Try debugging this way.
Regards,
Ibai Peñ

Similar Messages

  • Changing the size of a document in Pages?

    How can you change the size of a document in pages? I need to change a poster size document to 8.5 x 11?

    Nevermind. Found it! Sorry, new to Mac

  • How to change the price list in document?

    Dear All,
    Is it possible to change the price list in document (e.g. Sales Order) by program (UI)?
    If no, any other way to do so? Thanks!
    Regards,
    On

    Dear Gordon,
    It may be Purchase Order or Sales Order. But different target will have different solution?
    Regards,
    On

  • How to change the orientation of a document on iPad?

    How do I change the orientation of a document on my iPad?

    There is no Rotation command within Reader on an iPad. You should use the iPad orientation lock icon (drag from the bottom of the screen to bring up quick settings, and choose it there). Then rotate your device.

  • How to change the language in a document

    How do I change the language in a document in Adobe Acrobat?

    Hi computerflowers,
    You can set the document language in Acrobat: File > Properties > Advanced tab > Language drop down box under Reading Options. This informs screen readers (for example) what language the document is written in.
    I am not sure that is what you are looking for though. If I am steering you wrong please follow up.
    a 'C' student

  • How to change the owner of a document ?

    I am trying to change the owner of a document, when the document meets certain conditions using an Agent (server Extension). The getOwner() method of the PublicObject returns me the DirectoryUser. How do I get the list of DirectoryUsers so that I can select the new owner to be used with the method setOwner() of PublicObject.
    Suggestions?
    Chandra Sekhar

    Use the LibrarySession.getDirectoryUserCollection() method to return a Collection of DirectoryUser objects in the system.

  • Changing the title of multipel documents

    Hi there Apple fans.
    I was wondering if there is a way -- with Applescript (or some other tool) -- to change the title of multiple documents.
    You see I have about 800 "songs" from and Audiobook. And they are called *"The Dark Tower VII - The Dark Tower 001..002..003.. (all the way too 800)"*. It's like this, The Dark Tower is a series, and this is the seventh book, which is also called The Dark Tower.
    And what I want to do is to have them called just *"The Dark Tower 001..002..003"*.
    This is annoying because when I am viewing the files in my iPod, only half the name is shown, *"The Dark Tower VII"* not the file number. So it is a hard time trying to find where you are, which file you are on.
    For Finder documents this is easily done with Automator. Just rename and then use sequence. But there is no such option for iTunes.
    I am almost positive that there should be some way to do this with a rather simple Applescript script. Unfortunatly, I have almost no knowledge of scripting.
    If anyone has any idea please post them here.
    Thanks.

    Maybe you did not understand.
    I want to go from this:
    My Audiobook - Track nr 1
    My Audiobook - Track nr 2
    My Audiobook - Track nr 3
    My Audiobook - Track nr 4
    My Audiobook - Track nr 5
    My Audiobook - Track nr 6
    To this:
    Track 1
    Track 2
    Track 3
    Track 4
    Track 5
    Track 6
    Understand? Please help.

  • Change the exchange rate of a line item manually

    My company has an issue regarding the exchange rates.  We are in a country using EURO.
    Though from one of our vendor we take prices in USD. In our pricing procedure in the sales orders we post the price of the vendor and in the prices we maintain another condition type for our profit.
    In the case of the vendor price that gives us USD, we have want to give the price in the usd and the system to translate the usd in eur (in the next line of the procing procedure) accourding to an exchange rate that the user will give per line item.
    At the moment the system thanslates the price to eur accourding to the exchange rate from the system (automatically) and I haven't have the possibility to change the predifined exchange rate manually as I want to do.

    Hi,
    Exchange rate are maintained in the T.Code "OB08".
    Goto the T.Code "OB08".
    Change the exchange rate as per your requirement.
    If you want to get different currency then goto the T.Code "XD02".
    Enter your customer number,Company code and sales area.
    Goto Sales area data.Sales tab.
    Change the currency to your value as per your requirement.
    If you create a new order with that customer,then we will get this new currency.
    After creating the invoice,pass the accounting document number into "FB03" and enter the company code and fiscal year.
    Enter.
    Click on "Currency".
    It gives you the value in base currency.
    Regards,
    Krishna.

  • HP Scan and Capture Can't change the location that scanned documents go to

    I just upgraded to Windows 8.1.  I scanned a word document using HP Scan and Capture and the default location to save files is now "This PC".  I can see the folders under "This PC" and can save the document to one of the folders, but I can no longer browse to anything else.  If I click on This PC, I have the option to go to OneDrive, This PC or Network.  
    If I click on Network - I can type in \\mycomputer but it just let's me select a folder.  I'm trying to get to an external hard drive and I've tried typing \\external drive,  \\f, \\f:, \\f:\
    Anyone have any suggestions? I've gone to the preference section of HP Scan and Capture and when I select that I want to change the default location where I save the files, it puts me back to the This PC area.

    Hello mnmjackson, and welcome to the HP Forums.
    I see you are running into issues with your scans save location.  I would like to try and assist.
    I would recommend creating a new destination folder, and manually type out the full file path.
    Please let me know if you have any questions.  Thank you for posting on the HP Forums.
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Changing the color of a Basic line object nested in a table cell

    Can anyone help me out here...I have inserted a line object from the Basic palette into a table cell on my web page and it displays fine but is default black color...I would like to change the color but haven't been successful in doing so..any ideas

    Hmm - doesn't sound right.
    "color=#hex" is not appropriate HTML markup.... Can you show us where you
    made this change?
    Murray

  • Changing the status of appraisal document

    dear experts,
    I am working in ECC 6.0
    I have created an appraisal category and template and want to maintain it for evaluations and released the document
    After saving and completing the document, i want to revoke the status from "released " to "non released". I have also deleted all the appraisals thro " transaction -"appchange "
    i am not able to revoke the status from released to non released . what is the solution for this issue ?
    early reply solicited
    nataraj s

    Hi
    You will not be able to change the templates that have been released. This is a part of the standard functionality.
    To unrelease and make the changes execute the following steps
    1. Go to transaction phap_admin
    2. Delete all the open documents (in process, assigned, etc) corresponding to the appraisal template
    3. Right click the appraisal template in phap_catalog and change the status to not release
    Judith

  • Changing the Content of a Document at creation time using Java

    Hi,
    I made a ClassObject 'Division' that is a subclass of the
    oracle.ifs.beans.Document,
    and I want to change the content of a Division instance while it
    is being created because I can't change the editor (Epic) that
    creates this object.
    (and it has to be at creation time!)
    To do this, I made a server-side class S_Division that
    implements the extendedPreUpdate method.
    I was able to get the content of the object when that method was
    called for the 4th time
    and that way I could change some attributes of that object that
    depend on that content.
    My problem is that I need to change the origal content into
    something else using that extendedPreUpdate method
    and I don't know how.
    The bean-side Document class has an easy method setContent
    (DocumentDefinition) for changing the content of its instances,
    but the server-side S_Document doesn't!
    So how can I do that using the server-side classes?
    Maybe using the update(OperationState,
    S_LibraryObjectDefinition) method?
    Can someone give me some help or an example that shows me the
    way?
    Thanx,
    Gerd Vanhoof

    Hi,
    I made a ClassObject 'Division' that is a subclass of the
    oracle.ifs.beans.Document,
    and I want to change the content of a Division instance while it
    is being created because I can't change the editor (Epic) that
    creates this object.
    (and it has to be at creation time!)
    To do this, I made a server-side class S_Division that
    implements the extendedPreUpdate method.
    I was able to get the content of the object when that method was
    called for the 4th time
    and that way I could change some attributes of that object that
    depend on that content.
    My problem is that I need to change the origal content into
    something else using that extendedPreUpdate method
    and I don't know how.
    The bean-side Document class has an easy method setContent
    (DocumentDefinition) for changing the content of its instances,
    but the server-side S_Document doesn't!
    So how can I do that using the server-side classes?
    Maybe using the update(OperationState,
    S_LibraryObjectDefinition) method?
    Can someone give me some help or an example that shows me the
    way?
    Thanx,
    Gerd Vanhoof

  • How to change the color of circles and lines in Acrobat DC

    I'm using the Add Circle and Add Line tools in the Fill & Sign tool set to add markups to a PDF. Is it possible for me to change the color of these tools from the default Black to something else?

    Hi kevh,
    Currently, there is no way to change the properties for the Add Line and Add Circle tools.
    Best,
    Sara

  • Changed the GL Master record for Line item display

    Hi,
    Can anybody please let me know once i changed the GL Master record as a line item display then how i can see my old line items display?
    I know through one standard programe we can do so but i haven't recall it. Can anybody please help me out with this?
    I'll really appreciate your time and help.
    Thanks & Regards,
    Niki Shah

    Hi Eric,
    Thanks for the quick reply. I got it.
    Thanks once again and i assigned the points accordingly.
    Regards,
    Niki Shah

  • Changing the override file via command line arguments

    Is there a way to change name of the file Coherence uses to override coherence-config.xml via a command line argument? I'd like to specify different override filenames in different environments.

    I get the message that:
    2006-02-13 16:53:27.699 Tangosol Coherence 3.0.1/317 <D5> (thread=main, member=n/a): Optional configuration file "/home/noah/tools/tangosol-config/tangosol-coherence-override-dev.xml" is not specified
    I specified the following as the startup:
    java -Dtangosol.coherence.override=/home/noah/tools/tangosol-config/tangosol-coherence-override-dev.xml -Dtangosol.coherence.log.level=5 -classpath /home/ncohen/tools/tangosol-config:/home/noah/tools/tangosol/lib/coherence.jar com.tangosol.net.CacheFactory
    Where the tangosol-config directory contains my override file tangosol-coherence-override-dev.xml
    If I change the name of the override file solely in the cmd prompt, it doesn't find any of them. It just gives me the optional configuration file ..... is not specified. How does one go about fixing this? Thx.
    Message was edited by:
    noah

Maybe you are looking for

  • Why are the fonts in the fillable fields changing in reader?

    Hello, I created a fillable pdf in acrobat. When I open the pdf in reader on my iPad the fonts in the fillable fields change. It is throwing off the fields and things don't line up correctly. I can't figure out how to correct the problem or why it's

  • Alphabetic keys are used for keypad

    I just encountered an odd problem with my PowerBook G4 12". I hadn't used it in awhile but it worked perfectly when I decided to give it to a friend. I reformatted the hard drive and tried to install OS X 10.6, only to learn that this new OS won't wo

  • Database not Open, My system restarted and hanged

    Hi All I have installed Oracle 9i DBA in my company windows 2000 professional work station. I created a database , called TEST. I can able to mount the database. while in the OPEN state my system is hanged and rebooted automatically. The RAM size is

  • Port Assignment SIA and CMS

    Hi, I need to change port assignment on SIA and CMS. How do I change ports on these services? Br, Sonni

  • HT203167 I lost three movies in a computer crash.Is there any possible way to redownload them?

    I had three movies but last year I had a disagreement with my Pc and lost them on my iPad and pc. I started looking for ways to redownload them with no success and decided to turn to the message board six months later. Is there any way I can get thes