Change of existing ItemCode to another using DIAPI fails

Hi All
I have a requirement from the user which needs to have a temporary ItemCode on the Sales order, and later when the item is confirmed it is updated to the correct itemcode. This updation is done using DIAPI and has no issue if the Sales order is not linked to sales quotation.
If the SO is linked to SQ, when i try to change the itemcode programatically, it gives me an error, "-10, VAT Group is missing or out of date  [RDR1.VatGroup][line: 1]".
I am using the SAME temporary item, actual itemcode to replace, the same warehouse... So the only change I see is that the line is linked to SQ.
We dont need the link to SQ since the user understands that the change in ItemCode will delete the links.....
The lines of code which replaces the item is as follows....
               oOrder.Lines.SetCurrentLine(iVisOrder)
                oOrder.Lines.ItemCode = sItem
                oOrder.Lines.ItemDescription = oRsItem.Fields.Item("ItemName").Value
                oOrder.Lines.VatGroup = oRsDumyItem.Fields.Item("VatGroup").Value
                oOrder.Lines.WarehouseCode = sWhs
                oOrder.Lines.Quantity = oRsDumyItem.Fields.Item("Quantity").Value
                ' oOrder.Lines.BaseEntry = -1 '( i tried with these following lines not commented also)
                'oOrder.Lines.BaseLine = -1
                'oOrder.Lines.BaseType = -1
               lRetVal = oOrder.Update()
Any advice is greatly appreciated.
Thanks in advance
Rashmi

Hi,
Please check the thread given below. You will get some input.
"VAT Code is Missing or out of Date"
VAT Group Missing or out of date
VAT group is missing
VAT Code is Missing or Out Of Date [Message 173-108]
Regards,
Senthil maruthappan.

Similar Messages

  • How do I copy a list from one site to another that has a column that appends changes to existing text?

    I want to move a list from one SharePoint site to another, within the same collection. I have created a template and included the content but the column that is selected to append changes to existing text, has not copied in all cases, although it has for
    some items.
    I have a limited knowledge so won't be able to implement any solutions that require the use of code.

    Hi,
    According to your post, my understanding is that you wanted to copy a list from one site to another that has a column that appends changes to existing text.
    I recommend to use the custom workflow activity  Copy List Item Extended Activityto
    copy list items and files cross site.
    You can do this with codeless SharePoint Designer workflows as long as you can install the
    Codeplex Custom SharePoint Designer Workflow Activities. 
    These activities are also built-in to SPD2010.
    To install the custom activities, please follow the steps as below:
    Download the solution file form
    Useful Sharepoint Designer Custom Workflow Activities
    Copy the wps file to the Disk C.
    Open the SharePoint 2010 Management Shell.
    Run the command: add spsolution c:\ dp.sharepoint.workflow.wsp
    Open the Center Administration, click System Setting->Manage Farm Solution-> dp.sharepoint.workflow.wsp->Deploy to one or more Web Application.
    Open the SharePoint designer, add action from Custom Actions.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Is there a way we can edit and improve existing youtube videos by using premiere pro? Just simple changes like having professional looking opening and closing credits?

    Is there a way we can edit and improve existing youtube videos by using premiere pro? Just simple changes like having professional looking opening and closing credits?

    Assuming you do not have access to the "original" video/project and the YouTube video is the only copy, there is a method. Try "YouTube Downloader" which is a free software that allows you to download clips from YouTube as .mp4 files. You can then edit with Premiere, and re-encode again for upload to YouTube. Just keep in mind that you are re-compressing the video so there will be some quality loss. The better the quality of the original, the better the copy will hold up.
    Thanks
    Jeff Pulera
    Safe Harbor Computeres

  • I can sign on to the iTunes store using my ID but when I want to check my billing information (to change the existing info) it wont accept my password? What do I do?

    I can sign on to the iTunes store using my ID but when I want to check my billing information (to change the existing info) it wont accept my password? What do I do?

    Adding Open DNS codes to your Network Preferences, should give good results in terms of speed-up as well as added security, (including anti-phishing and redirects) (Full information about Open DNS is here: http://www.opendns.com/home/nobloat ) and further independent information can be read here:
    http://reviews.cnet.com/8301-13727_7-57338784-263/free-dnscrypt-tool-enhances-ma c-web-security/?tag=mncol;txt
    and here:
    http://www.macworld.com/article/1146064/troubleshootdns.html?t=234
    Open System Preferences/Network. Double click on your connection type, or select it in the drop-down menu, and in the box marked 'DNS Servers' add the following two numbers:
    208.67.222.222
    208.67.220.220
    (You can also enter them if you click on Advanced and then DNS)
    Sometimes reversing the order of the DNS numbers can be beneficial in cases where there is a long delay before web pages start to load, and then suddenly load at normal speed:
    http://support.apple.com/kb/TS2296

  • When using tethered capture I often get this notification "The metadata for this photo has been changed by both Lightroom and another application". This slows or stalls the loading of incoming photos. How do I find out which other application is changing

    When using tethered capture I often get this notification "The metadata for this photo has been changed by both Lightroom and another application". This slows or stalls the loading of incoming photos. How do I find out which other application is changing the metadata and stop it?

    Thanks Sean,
    I've had a look at the TC settings dialog and tried to keep it as simple as possible. I also had a copy of LR 4 on the hard drive so have trashed that also incase of any conflicts. LR seems to be running ok now but as said it's an intermittent problem.
    I also have a copy of Capture One on the hard drive so am going to uninstall that also in case it is trying to launch.

  • Change Employee team to another using DI

    Hi There,
    I have a request from customer are they want to change Employee from team to another, i'm using SAP B1 8.81 and i was try to find all property in Object Team, i just founnd property to add employee to Team by
                Dim RetVal As Long
                Dim oTeam As SAPbobsCOM.Teams
                oTeam = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oTeams)
                oTeam.GetByKey(2)
                oTeam.TeamMembers.EmployeeID = EmpID
                oTeam.TeamMembers.RoleInTeam = SAPbobsCOM.BoRoleInTeam.borit_Member
                oTeam.TeamMembers.Add()
                oTeam.Update()
    Any suggestion to remove employee from old team and move them another team by using DI, Pls help
    Thanks and Best Regard.

    Hi,
    Please repost above discussion in http://scn.sap.com/community/business-one-sdk to get quick response.
    Close this thread by marking helpful answer.
    Thanks & Regards,
    Nagarajan

  • The surver for e-mail used as Apple-ID is going to shut down.  How do I change my Apple-ID to another server?

    The surver for e-mail used as Apple-ID is going to shut down.  How do I change my Apple-ID to another server/anothe e-mailadress?

    RISEABOVE wrote:
    HOW?
    Change your Apple ID - Apple Support

  • I have an iphone and ipad but no other computer at home.  I used to have itunes on my work computer. How to I access and make changes to my itunes without another computer?  thanks

    I have an iphone and ipad but no other computer at home.  I used to have itunes on my work computer. How to I access and make changes to my itunes without another computer?  thanks

    At this point you have the option of keeping a device optimized version (lower resolution version) of your photo on your phone while iCloud stores a full resolution version.  Or keeping the full resolution version on both your phone and the iCloud. If you delete the photo on your phone it will be deleted on the iCloud. I know, bummer. Also it should be noted that the photos app and the library are still in beta and to this point i see why.  I would use dropbox or a smiliar app for off device storage.
    So far this is how it has been working/not working for me.  Whether or not I choose to keep originals or optimized on my phone it will only keep the originals and it has only been uploading lower resolution versions of my photos to the iCloud library.  Seems to be working in reverse.
    Again these are still in beta so i am hopeful that this will be fixed in the near future.
    I hope this helps.

  • Change of existing sales order (WCEM 3.0 SP1)

    Hi all,
    does anyone of developed the feature to change a existing sales order?
    Any hint to do it the best way?
    Thanks in advance,
    Meikel

    Hi Meikel,
    personally i haven't modified the sales order, but i did something in relationship to service orders. Both types are transaction documents in kind of the same but both using a different transaction type-id.
    Within WCEM the GenIL Layer has been integrated, which kind of gives you the chance to create, read & modify those transaction documents.  The java interfaces which SAP has build is calling behind the scene the corresponding ABAP RFC function - should be the same as the WebUI does. This function is used for the e-service integration and should provide you what you need.
    Just another hint: Not sure if my change request has been applied, but take a closer look into the toString() output of the GenIL (container) objects. When i was initially using it, the toString returned the string representation from the current object up to the root (excluding the child elements). Unfortunately this made it tought to understand the current status of the document. If my change request was applied, then you should get the output of current objects including all child elements recursively - if not, then just overwrite the toString() and generate a XML like output. That will safe you a lots of time to understand what is actually happening and within a short timeframe you  can implement your logic.
    Cheers,
    Andreas

  • How to make changes in Existing SAP form

    How I can make changes in existing SAP form . I want to make changes in delivery form <b>matrix row enable or disable</b>

    Hi Sagar,
       If you want to disable a row, you can close that row using DIAPI.
    HTH
    B.Ravi Shankar
    null

  • Is it possible to change the title of a webpart using client object model/c#/sharepoint online

    Hi folks!
    I have been busted my butt trying to Write a program changing the title of an existing webpart on on of our subsites on SharePoint online. But I keep getting an error in the very last context.executequery. Tried a bunch of different approaches, but I can't
    make it work. Before I start posting code; I Wonder if anyone have ever done this?
    Its a plain Windows form application, using Visual studio Express and the Client Object model. (Listsing the titles of the webparts Works but changing titles seem impossible. Thought it might be a checkin/out problem but it doesn't make a difference).
    Any help would be highle appreciated.
    Lars

    It depends: are you using the default style for Text Captions? In that case you can change the default style in the Object Style Manager and have it applied to all Captions.
    Or you can change one text caption, and in its Properties panel choose the option 'Save Changes to existing style' from the menu top right (see screenshot). Both methods will work if you didn't override the default Caption Style for those captions. Beware: Quizzing objects can use another style.

  • Mistakenly change file extension while in disk use mode

    I made the mistake of changing the file extension of a file on my Nano (5G) while it was in "disk use" mode. When I unplugged the device and later plugged it in, the modified file was gone. Does the Nano treat unrecognized files as non-existant? I tried using Windows Explorer to find the file, but nothing was there. Also, the overall memory used on the Nano has decreased by what I would guess is the same amount as the missing file. I'd like to get my file back. Any suggestions?

    Processing Raw in a 3rd Party Application
    You can also process your Raw with a 3rd Party app like ACR or Photoshop. But iPhoto does not handle this gracefully and it's a bit of a kludge.
    First off set your preferred app as an external editor in iPhoto:
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Note that iPhoto sends a copy+ of the file to Photoshop, so when you save be sure to use the Save command, not Save As... If you use Save As then you're creating a new file and iPhoto has no way of knowing about this new file. iPhoto is preserving your original anyway.
    Next: In the iPhoto Preferences -> Advanced, elect to use Raw with your External editor:
    Uploaded with plasq's Skitch!
    Now when you go to edit the Raw it will be sent to your external editor.
    Now for the kludge:
    You cannot save a Raw. The work you do must be output to a new file, in a new format (jepg, tiff, whatever). However, as the External Editor is making this new file iPhoto has no knowledge of its existence. Therefore you *must save it to the desktop and then import it back to iPhoto as a new file*.
    This means that you will have your Original Raw and the processed version in iPhoto but they will not be recognised as version and original. iPhoto will see them as two separate shots.

  • HT201342 How do i Change the apple ID email address used to set up my iPad and iCloud?

    I set up my ipad using an @me email address.  but most of my data is stored on a separate iCloud account that is linked to a different email address.  When I try to change the default address on the iPad icloud, I can't add a new apple ID or email address, and am only shown @me or @icloud in a drop down box.  How can I change the setting on my iPad to another apple ID and email address?   

    If you want to change your iCloud ID to another existing ID you'll have to delete the account, create a new account with the other ID, and migrate your data to the new account.
    Before deleting the account, if you have any photos in photo stream that are not in your camera roll or backed up somewhere else save these to your camera roll or you will lose them.  To do this, open the photo stream album in the thumbnail view, tap Edit, tap all the photos you want to save, tap Share, then tap Save to Camera Roll.
    Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account. When prompted about what to do with the iCloud data, be sure to select Keep On iPad.  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.

  • Architecture change in existing application

    Aim: Architecture change in existing application
    Domain: Health Care
    Background: There are 2 application ( Front end: one in oracle forms - deals with accounts module and another in some legacy application - deals with patient, clinical and diagnose module) using and sharing the same Oracle 9i database.
    Patient related modules are moved into another database ( java as a front end, oracle 10g as backend ) which is normalized - eliminating duplicate tables and column, also its tables and columns names are not matching with existing (patient)system.
    Now the requirement is making the existing application related only to Accounts module ( having complicated business logic written in packages ) to work as it is without changing the code, design drastically.
    Questions:
    1. Now how best this task can be completed without affecting existing Accounts system drastically ( with minimal changes )?
    2. what are the possible best approach to achieve this ?
    3. what are the best way for communicating the 2 DB in this scenario ( may be creating synonym, views etc ) ?
    4. What are challenges that needs to be addressed ?
    Any recommendation, suggestion and solution will be very much appreciated.
    Thanks and Regards,
    Lokesh

    Views are one possible approach which make it possible to change the "real" datamodel without changing the appliacation itself. I can't tell you if its the "best" approach for your problem.
    Since most of the Patient related tables ( more than 200 tables ) are modified and if views are created for all this tables, What will be the performance.Performance is not influenced by just the fact that you use views instead of tables. It depends on the structure and complexity of the views you use. This question can not be answered in general.
    If 2 databases resides in 2 different server then, what is the best approach for communicating databases
    ( can you please put a thought on MQ, staging database... ) ?Again, it depends. How much data has to be read from one db in the other one? Are there data changes happending in one db which have to be applied in the other db?
    Based on above two, Is it still view are the best option?I don't know enough of your requirements to answer that question.

  • How to change an Existing  Purchase Requisition Document in MM.

    Hi Folks,
    I want to write a program to change a existing  Purchase Requisition in MM.
    I found two BAPI's BAPI_PR_CHANGE and BAPI_REQUISITION_CHANGE , which could be used to change PR document in  ECC.
    I have following question:
    1) why we have two seprate BAPI's for changing PR.
    2) Do we need to use both BAPI's to change PR, depending on what value we are trying to change.
    3) Is it optional to use any of these two BAPI's
    Or do we have any other way to implement this PR change process.( Bcoz of when i tried to debug standard PR change process, none of these two BAPI's has been called)
    Which FM or method is called when, we try to change and save PR document manually.
    I would appriciate, if some one has any sample code to implement this PR change process.
    Regards
    PG
    Edited by: PG on Aug 23, 2010 3:10 PM

    >
    PG wrote:
    > I have following question:
    > 1) why we have two seprate BAPI's for changing PR.
    BAPI_REQUISITION_CHANGE is the older BAPI, the one based on the older ERP transaction (ME5x family), while BAPI_PR_CHANGE is the newest one, referring to the "recent" Enjoy transaction (ME5xN family).
    They both satisfy you task probably, but if you can chose, I'd go for BAPI_PR_CHANGE.
    >
    PG wrote:
    > 2) Do we need to use both BAPI's to change PR, depending on what value we are trying to change.
    > 3) Is it optional to use any of these two BAPI's
    You can use the first or the second one, it's indifferent. The newest one will also trigger user exits from ME5xN family. Which transactions are used by the users on the ERP? Choose with regards to the transactions used during the normal activity.
    >
    PG wrote:
    > Or do we have any other way to implement this PR change process.( Bcoz of when i tried to debug standard PR change process, none of these two BAPI's has been called)
    Normal PR change operativity doesn't use BAPI. BAPIs are used to create/modify docs from "external" systems (it's not properly true, but let assume it), they provide a simple interface to populate with PR data and the process of creation/modification will trigger every check/userexit already defined for the standard transactions on the ERP.
    In example, suppose that in ME51N you defined a custom check in a specific userexit which don't allow an user to create a material item which have odd quantity (odd example, I know ). Then using BAPI_PR_CREATE you will not be able to create a PR with items with odd quantity, because the same check will be executed.

Maybe you are looking for

  • IMessage is not recognising my phone number

    Myphone number in iMessage has greyed out after installing iOS8 and is not sending iMessagees. also my wife's iPone rings at the same time as mine

  • Cannot install camera raw 6.3

    I downloaded camer raw 6.3 from the adobe downloads site but I cannot install it. There is no camera raw 6.3 installer.exe. There is an AdobePatchInstaller.exe but it returns an error code "update is not applicable" when I run it. Any suggestions. Ji

  • Support for SAX 2

    Any idea when the Oracle Java SAX parser will support SAX2? Thanks, ah.

  • Oracle Database patching

    Hi plz help me. i want to learn oracle database patching from the people like u but before that i tried much hard to find the documentation of patching at oracle documentation center. now after searching it lot i m tired so plz can any one tell me th

  • CTAS optimization

    Hi all, I am trying to create a table as create table temp_table as select a_count, run_yr_mth, segments, product, investor_group, sum(loan_cnt), sum(a_count) from select a_count, run_yr_mth, case when Automobile = 'Car' and product = 'Honda CRV' the