How can i update/Remove Items from AR Invoice using SDK?

Hi All,
I have 1 problem with update or remove item from sales order. here is the source code of mine.
If inv.GetByKey(DocumentNumber) = True Then
                    inv.CardCode = cardcode
                    Dim ercode As Integer
                    Dim ind As Integer = 1
                    For Each drow As DataGridViewRow In gv.Rows
                        If gv.Rows.Count = ind Then Exit For
                        ercode = drow.Cells("No").Value
                        inv.Lines.SetCurrentLine(ercode)
                        'inv.Lines.ItemCode = drow.Cells("itemcode").Value
                        'inv.Lines.ItemDescription = drow.Cells("itemname").Value
                        inv.Lines.Quantity = drow.Cells("qty").Value
                        inv.Lines.Price = drow.Cells("price").Value
                        ind = ind + 1
                    Next
                    errorcode = inv.Update
                    If errorcode <> 0 Then
                        PublicVariable.oCompany.GetLastError(errorcode, errorsms)
                    Else
                        errorcode = 0
                    End If
                Else
                    errorsms = "Not found Invoice Document Number"
End If
After update, it error "[INV1.Quantity][line:1],'Field cannot be updated (ODBC -1029)'"
Does anybody know about this?
Thanks
TONY

Hi $riniva$ Rachumallu,
This is my mistake that not test manually in application.
Thanks
TONY

Similar Messages

  • How can I update cluster items from inside a while loop that does not contain the cluster?

    I have a VI that contains front panel clusters and two while loops. The main cluster contains items such as a doubles "distance" and "stepsize" and boolean "step" (a whole buch of this type stuff). The first loop contains an event structure to detect front panel changes and the second contains code and sub VIs to perform operations based on detected events.
    The operator can enter data into either double or click the boolean. If distance is changed the second loop does what is required to process the change. The same happens with stepsize. If step is clicked the ±stepsize value is added to distance and the result is processed. In each case the front panel should track the result of the input and subsequent processing.
    Because the clusters are outside the while loop, they are not updated unless I click 'highlight execution' which seems to allow updating each time the execution highlight is updated. There are other issues if I move the clusters into one of the loops.
    I've tried referencing the clusters and using local variables and nothing works. It looks like overkill to use shared variables for this.
    Any ideas would be greatly appreciated.
    Thanks,
    Frank    

    Hi Ben,
    Thank you for the response. I followed the link and tried reading everything you posted on AEs but I'm afraid that I didn't understand it all. It seems that each AE example had a single input and a single output (e.g. a double). Is this the case? 
    What I have is a couple of front panel clusters containing (approximately) 18 control doubles, 8 indicator doubles, 5 boolean radio button constructs and 26 boolean control discretes. I clusterized it to make it readable. In addition I'll eventually have a cluster of task references for hardware handles.
    All I want to do is update the front panel values like I would do in a C, VB or any other language. I've tried referencing the cluster and using the reference from inside the loops. I've tied using local variables. Neither works. I'm experimenting with globals but it seems that I have to construct the front panel in the gloabal and then I wouldn't know how to repoduce that on the front panel of the main VI.  Sometimes it seems that more time is spent getting around Labview constructs than benefitting from them.
    I hope the 'Add Attachment' function actuals puts a copy of the VI here and not a link to it.
    Thanks again for the suggestion,
    Frank 
    Attachments:
    Front Panel Reference.vi ‏33 KB

  • How can i delete purchased items from the cloud in iTunes

    how can i delete purchased items from the cloud in iTunes

    I had this problem as well. You can't delete them but you can hide them by swiping across from the cloud to. The other side then pressing hide

  • My  ipod touch is 3rd gen how can i update my ios from 4.2.1 to 5.1.1 when i shift   restore and load the ipod3_5.1.1.ios its always say your firmware is not compatible

    my  ipod touch is 3rd gen how can i update my ios from 4.2.1 to 5.1.1 when i shift + restore and load the ipod3_5.1.1.ios its always say your firmware is not compatible

    I suspect you have a 2G iPod. Those can only go to iOS 4.2.1.
    Identifying iPod models
    iPod touch (3rd generation)
    iPod touch (3rd generation) features a 3.5-inch (diagonal) widescreen multi-touch display and 32 GB or 64 GB flash drive. You can browse the web with Safari and watch YouTube videos with Wi-Fi. You can also search, preview, and buy songs from the iTunes Wi-Fi Music Store on iPod touch.
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

  • How can I take an item from one image and move it to another image?

    How can I take an item from one image and add it to another image, and rotate it to fit?

    Carefully select the objects of interest in one image and then copy, scale and position them into the other image. Then touch up the composite.
    Have to Love Photoshop for Retouching Images!

  • How can I permanently remove apps from my ipad, iphone and ipod (which are in icloud)?

    How can I permanently remove apps from my iphone, ipad, ipod operating in the iCloud?

    Apps don't operate in the cloud - they're either downloaded to your device, or they're in your Purchased list. You can't permanently remove the history of apps you've purchased, but you can hide them. See this link:
    http://support.apple.com/kb/HT4919
    Matt

  • How can I completely remove iMessage from a iPad?

    Sorry I posted this a minute ago but I am not sure it did go through.  Let me post another one here...
    How can I completely remove iMessage from a iPad?  I know how to turn off iMessage on settings but I don't want the iPad to know my iPhone number at all.  How?  Thanks!  Jay

    jay.song wrote:
    Sorry I posted this a minute ago but I am not sure it did go through.  Let me post another one here...
    How can I completely remove iMessage from a iPad?  I know how to turn off iMessage on settings but I don't want the iPad to know my iPhone number at all.  How?  Thanks!  Jay
    Other post is here:
    How can I completely remove iMessage from a iPad (generation 2)?

  • How can I completely remove iMessage from a iPad (generation 2)?

    How can I completely remove iMessage from a iPad (generation 2)?  I know how to turn off iMessage on the iPad but I don't want this iPad to know my iPhone number at all.  Thanks.

    You can't. Default Apple Apps cannot be removed. If you sign out of your Apple Id in Settings->Messages->Send & Receive->Apple ID then the iPad will have no knowledge of your Phone number.

  • How can I send an email from Sharepoint Online using sandbox solution?

    How can I send an email from Sharepoint Online using sandbox solution?
    If possible I do not want to use workflow.
    Is It possible to do it without using workflow?

    hello Steven Andrews,
    when any user sends a message using contact us page in SharePoint online.
    1. We are inserting item in Contact Us List . - This is working fine
    for anonymous users also. We have used Office365 anonymous codeplex wsp and it is working fine. Anonymous user is able to insert new record in the Contact Us List.
    2. Once, new record is inserted in Contact Us list, we want to fire email notifying thanks to the user on his email id as well as to our company x person for notification of new inquiry. 
    We tried using Workflow having impersonation step for  anonymous user but it is not working for Anonymous users. Workflow is able to sent the email if someone logged into system but not working for Anonymous user although workflow is getting started
    but not able to send email although used Imperonsation step.
    We are stuck into implementing second step.

  • How can i unlock iphone 4G from japan to use jn nepal

    How can i unlock iphone 4G from japan to use jn nepal??

    You cannot. Japanese carriers will not unlcok the phone. There is no legitimate way to unlock a Japanese iPhone.

  • How can i update my ios from Iphone 3g

    Hello i need your help my iphone has ios 4.2.1 but i need ios 4.3.1 becouse more aps go with ios 4.3.1 i have iphone 3g 16 gb white
    Hallo ich brauche eure Hilfe mein Iphone hat das ios 4.2.1 aber ich brauche das ios 4.3.1 weil viel mehr apps über ios 4.3.1 laufen ich habe das iphone 3g 16 gb weiß
    How can i update?
    Wie kann ich es updaten?
    I´m German but i can speak a little bit english thx
    Ich bin Deutscher kann aber auch ein bisschen Englisch , danke

    Sorry, you can't. iOS 4.2.1 is the end of the line for an iPhone 3G, there are no further updates available. You'll have to purchase a new phone in order to run a higher iOS.

  • How can I erase deleted items from the hard drive?

    How can I erase deleted files from the hard drive?  Will my machine run faster?

    If you've already deleted the files and emptied the Trash they are already, in effect, erased. At least the disk space they occupied is now available.
    To be able to offer help we need more information about which Mac you have, which OS you are running, how much RAM you have installed, how much hard disk space you have available, etc.
    Go to the Apple Menu>About this Mac - copy and paste the contents of the report here (deleting the serial number of your machine). Once we have that info, I'm sure someone will have some suggestions.

  • How can I update IOS on my friends IPhone using my PC?

    How can I update the IOS on my friends IPhone using my computer. I don't want to erase her contents but just update her IOS.
    Thanks

    updating from iOS4
    http://support.apple.com/kb/HT4972
    from iOS5 onwards you can do it directly from the device
    http://support.apple.com/kb/HT4623

  • How can I save my music from ipod and use another itunes library?

    How can I save my music from my ipod (that I got from limewire), and use another itunes library?

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • How can I delete an item from the main left column of iTunes?

    I'd like to delete an item from the main left hand column in iTunes (the column containing the main headings LIBRARY, STORE, SHARED, PLAYLISTS etc etc). Under the first heading 'LIBRARY' appear the items Library, Music, Movies, iTunes U, Books, Apps and Ringtones. I'd like to remove the item "Library" from that list - it appears immediately after the heading "LIBRARY" and serves no purpose whatsoever. (Neither does it appear to cause any harm, I must say, just a nuisance.) This item does not appear in any of the iTunes viewing options or controls lists. Neither does it appear in iTunes in the other accounts on my Mac and I have yet to see it any other iTunes on any other Mac.
    I've upgraded since about iTunes 8 assuming the problem would eventually disappear through the upgrades but it hasn’t, even through all the providedupgrade increments available for iTunes.
    I'm assuming it's from something I've installed in my main user account at some stage and it entered this item in the iTunes app. But I can't see how to remove it. The only things I can remember installing are "iTunes Batch Column Renamer" and "Join Together", both if which are just Scripts and which I use fairly regularly, but I don't recall either of them installing that particular item.
    Is there any folder I can navigate to to edit the list of items in that main left hand column of iTunes?
    Many thanks in advance for any help offered.

    on second thought, that you have an item "library" is indeed odd - there shouldn't be.
    suggest you try removing iTunes completely (click here and follow the instructions), then reinstall it using the standalone installer from here: http://www.apple.com/itunes/download/.
    note this will not do anything to your media files, playlists, ratings, etc.
    btw, you didn't install any 3rd party tools like this script:
    Change Hidden iTunes Preferences v2.4 
    This application will allow you to invoke hidden iTunes preferences:
    Show "Library" playlist
    Changing view setting is global
    Allow half-stars in ratings
    Hide "Ping" buttons
    Show/hide arrow links -- to either search the iTunes Store or search your library
    Load complete iTunes Store preview before playing
    Create playlists for purchased song collections
    Play songs while importing or converting
    Create file names with track number
    Maintain grid view for Search results
    Option-click zoom button for Mini Player&
    Show buttons horizontally
    Message was edited by: Jolly Giant

Maybe you are looking for

  • How do I read a properties file in WEB-INF without hard-coding a path?

    Hello, How do I read a properties file in WEB-INF without hard-coding a path? I tried: Properties properties = new Properties(); properties.load(new FileInputStream("db.properties")); driver = properties.getProperty("driver"); but it cannot find the

  • Sender RFC from Third Party System

    I have a vendor who is actually communicating through RFC from third party Application to SAP R/3. Now we are trying have XI in between. Where as with minimal impact on both sides. Solution. 1. Have the RFC made as ZRFC in XI. Let the vendor call the

  • Project Management features?

    Has Encore 2.0 any kind of project manager features built in? For example can a project be archived and retrieved with no fear of a major screw-up?? I'm asking as I'm sure both 1.0 and 1.5 crapped out and insisted on absolute paths when re-locating a

  • How to override methods from dynamic instaniated class to call externally?

    Hi, Does anyone knows how to get processWindowEvent() from JFrame to call externally without having to override it in a subclass. public class UserFrame extends JFrame { public class Application { public void main(String[] args) { UserFrame frame = (

  • Sapcheck environment variable

    brconnect jobs in DB13 are failing.  The job log gives me a pretty good indication why: BR0252E Function fopen() failed for '/oracle/BBS/920_64/sapcheck/cdwcvtyd.sta' at location main-9 BR0253E errno 2: No such file or directory From this, it appears