Duplicate Item via DI

Hi all,
I want to create a duplicate of an existing item. The purpose is to do this via the DI-API
So my Code is as follows
Dim oTemplate as SAPbobsCOM.Items
Dim oItem As SAPbobsCOM.Items
Dim nResult As Integer
oTemplate = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
oTemplate.GetByKey("10000")
oItem = oTemplate
oItem.ItemCode = "ABC"
oItem.ItemName = "ABC"
nResult = oItem.Add
But nResult gives "-5002"
The according Errormessage is "Invalid Code OITW.ItemCode, nnnnn" where nnnnn is the
ItemCode of oTemplate
What is wrong to this?

The loaded item "10000" maintain information about his warehouse(OITW table).
If you only change the code of the item, the sdk don't find the relative OITW record.
I usually use XML to duplicate a ITEM.
SAPbobsCOM.Items oItm = (SAPbobsCOM.Items)Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
                Company.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_AllNodes;
                if (oItm.GetByKey(udsModel.ValueEx)) {
                    string fileName="modello.xml";
                    string xmlModel = oItm.GetAsXML();
                    xmlModel = xmlModel.Replace(oItm.ItemCode, newcode);
                    xmlModel=xmlModel.Replace(oItm.ItemName, newname);
                    xmlModel = xmlModel.Replace("<SHght1Unit>0</SHght1Unit>", "");
                    xmlModel = xmlModel.Replace("<SHght2Unit>0</SHght2Unit>", "");
                    xmlModel = xmlModel.Replace("<SWdth1Unit>0</SWdth1Unit>", "");
                    xmlModel = xmlModel.Replace("<SWdth2Unit>0</SWdth2Unit>", "");
                    xmlModel = xmlModel.Replace("<SLen1Unit>0</SLen1Unit>", "");
                    xmlModel = xmlModel.Replace("<SLen2Unit>0</SLen2Unit>", "");
                    xmlModel = xmlModel.Replace("<SWght1Unit>0</SWght1Unit>", "");
                    xmlModel = xmlModel.Replace("<SWght2Unit>0</SWght2Unit>", "");
                    xmlModel = xmlModel.Replace("<BHght1Unit>0</BHght1Unit>", "");
                    xmlModel = xmlModel.Replace("<BHght2Unit>0</BHght2Unit>", "");
                    xmlModel = xmlModel.Replace("<BWdth1Unit>0</BWdth1Unit>", "");
                    xmlModel = xmlModel.Replace("<BWdth2Unit>0</BWdth2Unit>", "");
                    xmlModel = xmlModel.Replace("<BLen1Unit>0</BLen1Unit>", "");
                    xmlModel = xmlModel.Replace("<BLen2Unit>0</BLen2Unit>", "");
                    xmlModel = xmlModel.Replace("<BWght1Unit>0</BWght1Unit>", "");
                    xmlModel = xmlModel.Replace("<BWght2Unit>0</BWght2Unit>", "");
                    xmlModel = xmlModel.Replace("<OrdrIntrvl>0</OrdrIntrvl>", "");
                    using (StreamWriter stream = File.CreateText(fileName)){
                        stream.Write(xmlModel);
                        stream.Close();
                    Company.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ValidNodesOnly;
                    oItm =(SAPbobsCOM.Items) Company.GetBusinessObjectFromXML(fileName, 0);
                    int ris = oItm.Add();

Similar Messages

  • How do I delete the duplicate items in my library on the new iTunes?

    I just backed up my library on a new external hard drive and noticed that all my media is doubled up. Aside from going through each item is there a way to do this on the latest version of itunes. There use to be a way via the file and clicking on duplicates items....Please help I have over 20000+ items!!!

    Apple has removed that feature along with several others, but
    (5/12/2012) Missing 'Find Duplicates' feature in iTunes 11 to be restored - http://reviews.cnet.com/8301-13727_7-57557280-263/missing-find-duplicates-featur e-in-itunes-11-to-be-restored/    "Some of the features Apple has removed from iTunes will see a return, but others may indicate changes to come elsewhere in Apple's product lines."
    Until then you will have to resort to sorting by a particular label such as artist and manually scanning, third party utilities such as Dougscripts Dupin to deal with duplicates, or revert back to iTunes 10.7.
    Somewhere you're not doing something correctly.  Backing up a library should not produce duplicates.  There's no way it can.

  • How to duplicate Item

    Hi,
    I try to duplicate item with this code
                            Dim vItem As SAPbobsCOM.Items
                            Dim RetVal As Long
                            vItem = oCompany.GetBusinessObject(BoObjectTypes.oItems)
                            'Retrieve a record by its key from the database
                            If vItem.GetByKey("Art_Base") = True Then
                                'Set value to mandatory fields:
                                vItem.ItemCode = "MyNewItem"
                                'Set Value to other fields
                                vItem.ItemName = "MyNewItem Name"
                                vItem.InventoryItem = BoYesNoEnum.tYES
                                vItem.SalesItem = BoYesNoEnum.tYES
                                vItem.PurchaseItem = BoYesNoEnum.tYES
                                'Adding the Item
                                RetVal = vItem.Add
                                'Checking the result
                                If RetVal <> 0 Then
                                    oCompany.GetLastError(sErrCode, sErrMsg)
                                    MsgBox(sErrCode & " " & sErrMsg)
                                    BubbleEvent = False
                                    Exit Sub
                                End If
                            Else
                                oCompany.GetLastError(sErrCode, sErrMsg)
                                MsgBox("Failed to Retrieve the record " & sErrCode & " " & sErrMsg)
                                BubbleEvent = False
                                Exit Sub
                            End If
    It does not work, I have a message  in OITW.ItemCode
    Why ?
    Thanks

    Dear Didier LEVAN,
    You may try to duplicate the item via XML file by use
    oldItem.SaveXML -> change Item code, etc, in xml file ->
    newitem = oCompany.GetBusinessObjectFromXML(xmlfile)
    Best Regards
    Jane Jing
    SAP Business One

  • HT2905 Duplicate items in iTunes

    Is it possible to globally delete all duplicate items in iTunes rather than one at a time?

    Apple's official advice on duplicates is here... HT2905: How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls such as lost ratings and playlist membership.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See thisthread for background, this post for detailed instructions, and please take note of the warning
    to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed.)
    The most recent version of the script can tidy dead links as long as there is at least one live duplicate to merge stats and playlist membership to and should cope sensibly when the same file has been added via multiple paths.
    tt2

  • How to reach Combobox Items via Key pressed (Java5)

    Hallo all,
    I have a question. I have a JCombobox field and assume that it has its items like (Apple, Banana, Pear). How can I manage to jump into Pear item by pressing P in that combobox?

    I am sorry I was wrong. I had to tell that my Combobox value is in my Table and the CellListener doesn't allow to do that. If I am gonna have another Swing problem I am going to send my message to that forum. I don't want to duplicate this question right now. Here is my code.
        public void load() {
            serviceType = data.getMetadata(position).getMetadataValuesSorted().toArray(new MetadataValue[0]);
            String[] metadataValues = new String[serviceType.length];
            for (int i = 0; i < serviceType.length; i++) {
                MetadataValue values = serviceType;
    metadataValues[i] = values.getValue();
    final TableColumn col2 = table.getColumnModel().getColumn(1);
    col2.setCellEditor(new MetadataValueComboBoxEditor(serviceType));
    col2.setCellRenderer(new MetadataValueComboBoxRenderer(serviceType));
    public class MetadataValueComboBoxRenderer extends JComboBox implements TableCellRenderer {
    public MetadataValueComboBoxRenderer(final MetadataValue[] items) {
    super(items);
    final JComboBox newItems = new JComboBox(items);
    setRenderer(new DefaultListCellRenderer() {
    public Component getListCellRendererComponent(final JList list, Object value, final int index, final boolean isSelected, final boolean cellHasFocus) {
    if (value != null && value instanceof MetadataValue) {
    value = ((MetadataValue) value).getValue();
    final String valueString = (String)value;
    newItems.addKeyListener(new KeyAdapter() {
    public void keyTyped(KeyEvent e) {
    for (int i = 0; i < items.length; i++) {
    if (e.getKeyChar() == valueString.charAt(0)) {
    newItems.setSelectedItem(newItems.getComponent(i));
    return super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
    registerComponent(this);
    public Component getTableCellRendererComponent(final JTable table, final Object value,
    final boolean isSelected, final boolean hasFocus, final int row, final int column) {
    if (isSelected) {
    setForeground(table.getSelectionForeground());
    super.setBackground(table.getSelectionBackground());
    } else {
    setForeground(table.getForeground());
    setBackground(table.getBackground());
    setSelectedItem(value);
    return this;
    public class MetadataValueComboBoxEditor extends DefaultCellEditor {
    public MetadataValueComboBoxEditor(final MetadataValue[] items) {
    super(new JComboBox(items));
    final JComboBox newItems = new JComboBox(items);
    registerComponent((JComponent) this.getComponent());
    ((JComboBox) getComponent()).setRenderer(new DefaultListCellRenderer() {
    public Component getListCellRendererComponent(final JList list, Object value, final int index, final boolean isSelected, final boolean cellHasFocus) {
    if (value != null && value instanceof MetadataValue) {
    value = ((MetadataValue) value).getValue();
    final String valueString = (String)value;
    newItems.addKeyListener(new KeyAdapter() {
    public void keyTyped(KeyEvent e) {
    for (int i = 0; i < items.length; i++) {
    if (e.getKeyChar() == valueString.charAt(0)) {
    newItems.setSelectedItem(newItems.getComponent(i));
    return super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
    MetadataValueComboBoxEditor  and MetadataValueComboBoxRenderer inner classes doesn't allow me to select the item via key pressed.
    Edited by: NEO1976 on Mar 24, 2008 10:11 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to delete duplicate items in SQ01 output

    Hi,
       I created a query to extracted fixed asset from table ANLZ join ANLA, ANLZ for legacy fixed asset upload.  But in the output list , every fixed asset line item is output by triple line items. How can I do to delete the duplicate items when output. Thanks.

    Hi,
    could you explain please what you did to remove duplicate / redundant lines?
    I am facing the very same issue in an SQVI report I made recently: the line item results are 5x more then necessary (when document has 5 item lines), etc.
    Thx in advance

  • Stored procedure in purchase order for duplicate item for a vendor

    Hi all
    I have written a stored procedure for duplicate item for vendor the output i need from this SP is whenever for a vendor we will raise purchase order the system should check that their shouldn't be any po in the system for the same item by the selected vendor. Its working fine when only one item is selected but it is behaving wrongly when more than one item is selected.
    If (@object_type='22' and @transaction_type='A')
    BEGIN
    Declare @Vend as varchar(200)
    Declare @ItemCode as varchar(200)
    Select @Vend =CardCode From OPOR Where DocEntry = @list_of_cols_val_tab_del
    Select @ItemCode=ItemCode From POR1 Where DocEntry=@list_of_cols_val_tab_del
    IF 1 !=(Select Count(T0.DocEntry) From OPOR T0  Inner Join POR1 T1 On T0.DocEntry=T1.DocEntry  Where T0.CardCode=@Vend and T1.ItemCode=@ItemCode)
    Begin
    select @error =1
    select @error_message = 'Item Code Already Exists For This Vendor'
    end
    end
    Thanks
    Rashid.

    Hi Rashid,
    Try this,
    if @object_type = N'22' and @transaction_type in (N'A', N'U')
    begin
    declare @line1 int
    declare @lin1 int
    declare @out1 int
    Set @out1 = 0
    SET @lin1 = 0
    Declare @Vend as varchar(200)
    Declare @ItemCode as varchar(200)
    Select @Vend = CardCode From OPOR Where DocEntry = @list_of_cols_val_tab_del
    Select @line1 = Max (LineNum)FROM POR1 WHERE POR1.DocEntry = @list_of_cols_val_tab_del
    While @lin1 < @line1
    Begin
         Select @ItemCode=ItemCode From POR1 Where DocEntry=@list_of_cols_val_tab_del and LineNum = @lin1
          if (SELECT COUNT(T0.DocEntry) FROM POR1 T0 inner join OPOR T1 on T0.DocEntry = T1.DocEntry
          WHERE T0.ItemCode = @ItemCode and T1.CardCode = @Vend)> 1
          Begin
               Set @Out1 = 1
               Break;
          END
               Else
               Begin
               Set @lin1 = @lin1+1
               Continue
          END
    END
    Set @lin1 = @lin1 + 1
    if @out1 = 1
    begin
          Set @error = 1
          Set @error_message = 'Item Code in line ' + CONVERT(nvarchar(4), @lin1) + N'already Exists For This Vendor!'
    End
    END
    Regards,
    Bala

  • Help needed in removing duplicate items of list box  in java

    How to remove duplicate items of list box while dynamically inserting (on-click event)
    It is not identifying duplicate data
    Variable name is HP_G1
    HP_dmg1 = (DefaultListModel) HP_G1.getModel();
    int a = HP_G1.getModel().getSize();
    System.out.println("HP list no--------> "+a);
    if(a!=0)
    for (int j=0; j<a; j++)
    String item1 = String.valueOf(HP_List.getModel().getElementAt(j));
    System.out.println("HP list added--------> "+item1);
    if(HP_dmg1.equals(item1)){
    HP_dmg1.remove(j);
    else
    HP_dmg1.addElement(GPL);
    }

    Your code is unreadable, so I'll ignore it. In the future please press the message editor's CODE button to format code.
    As to your problem, to the point you normally use a Set instead of List when you don't want duplicates in a collection.

  • How to publish a File Content Item via EDK?

    I'm trying to publish a "File Content Item" via the EDK.
    CS EXPLORER
    Recall, that a "File Content Item" is different than a (regular) "Content Item" in that (via CS Explorer) it's a content item with no user-defined data entry template (when you right-click, the "Edit Data Entry Template..." menu item is not listed). Yet, somehow, it can still be published (via the Explorer), --which is great because I need to FTP this file to another server.
    EDK
    However, even though the (file) content item's EDK "Publishable" property indicates "true", it cannot be published via the IContentItemManager.PublishContentItem() method, which is returning the following error message...
    The required object was not found... content item... containing Data Entry Template... with attached Presentation Template (with UUID null)... (DataItemUuidNotFound...)
    In other words, the File Content Item has a (system defined) "/Definitions/File" data entry template, which has no attached presentation template. This leads me to believe that File Content Items are published differently (than Content Items).
    Or, is there a flag that I can pass along to "file_upload.jsp" to get it to auto-publish the File Content Item it creates?
    thanks,
    Michael

    Hey there,
    Animate doesn't publish to HTTPS, but this is something you can control on your own when uploading to a secure server. Also be aware that the Animate runtime is served over HTTP so you'll have to upload this component to serve from your server as well.
    Sarah

  • Duplicate item filename error

    here's the story:
    i had a 1tb drive (drive 1) and a 1tb back-up drive (drive 2). drive 1 crashed and i returned it and got a new drive (drive 3). i copied over the media from drive 2 to drive 3. it finished. then when i restarted, drive 2 was dead too. i can't find my disk warrior so rescuing that drive will have to wait. so now i have drive 3 and i mount it and start fcp 5. looks like most of my copied media has gotten trashed in the move. all looks green and when i go to the finder to try to play the clips, they are corrupt. so i delete all the media and start digitizing everything. (feature length show here and 45 hour long tapes...no fun). i get about 12 tapes in and then move the system from my home to work. restart and go to start digitizing on tape 12 where i left off at home and i get the "additional items found" dialogue box pop up. i respond "add". then i get an error : "duplicate item filename". i have the choice to rename,skip or abort.i trash the preference settings. i reset the scratch disk. there are no media clips on the system with dupe names. what can i do? please do not suggest that i add a 1 to everything. i am batch capturing 30+ more tapes and each tape has 40 clips. i am not going to type 1 after each clip and do them one by one. help please. is this a meta data error on the capture drive...i wouldn't think so as i reset the capture disk to the internal to try to eliminate that as a possibility.

    bump

  • Duplicate Item code

    Hi All,
    My query goes like this
    SELECT DISTINCT(T0.[ItemCode]), T0.[ItemName], T1.[OnHand] as STOCK_IN_METER, T2.[Price] as BASE_PRICE, T0.[U_Length_In_Meter],T1.[OnHand]/T0.[U_Length_In_Meter] as STOCK_IN_PIECE, T0.[U_Weight_kgm], T1.[OnHand]* T0.[U_Weight_kgm] as TOTAL_KG FROM OITM T0  INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OINM T2 ON T0.ItemCode = T2.ItemCode WHERE T1.[WhsCode] ='03' and T0.[ItmsGrpCod] ='102' and  T1.[OnHand] <>0
    Why Duplicate item code is coming and how to solve that?
    Regards,
    Rupa Sarkar

    Hi Rupa,
    There could be many different Prices under OINM for one item. You can only use OITM.LastPurPrc or a specific price under a specific price list for a item.
    Thanks,
    Gordon

  • Duplicate item 'ARCMGTAP/10052' could not be created

    Hi
    Am getting error while am saving the record acutally i implemented a new submit button progamtically and now it is giving error when i click that button and i have extended the controller and i have created one more submit button with SaveContinue ( means to be Save and Continue) but i am getting wrong .
    so plz help me am giving u the error am getting and i will give u the code which i wrote.
    Thankq
    oracle.apps.fnd.framework.OAException: java.sql.SQLException: ORA-20002: 3122: Duplicate item 'ARCMGTAP/10052' could not be created.
    ORA-06512: at "APPS.WF_ENGINE", line 4154
    ORA-06512: at "APPS.AR_CMGT_WF_ENGINE", line 919
    ORA-06512: at line 1
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2176)
    and in extended controller i wrote a new submit button for that the code is here
    process request()
    OAPageButtonBarBean oapagebuttonbarbean = (OAPageButtonBarBean)oawebBean;
    OAViewObject oaviewobject = (OAViewObject)oapageContext.getApplicationModule(oawebBean).findViewObject("creditRequestsVO");
    oaviewobject.setMaxFetchSize(0);
    OASubmitButtonBean oasb= (OASubmitButtonBean)oapageContext.getWebBeanFactory().createWebBean(oapageContext,"BUTTON_SUBMIT");
    oasb.setID("SaveContinue");
    oasb.setUINodeName("SaveContinue");
    oasb.setEvent("SaveContinue");
    oasb.setText("Save&Continue");
    oasb.setLabel("Save&Continue");
    oawebBean.addIndexedChild(oasb);
    oracle.jbo.Row row = oaviewobject.first();
    if(row != null)
    String s1 = row.getAttribute("Status") != null ? row.getAttribute("Status").toString() : "-99";
    if(s1.equals("SaveContinue"))
    OAWebBean oawebbean4 = oapagebuttonbarbean.findIndexedChildRecursive("FndSaveContinueButtonSubmit");
    oawebbean4.setRendered(false);
    Processformrequest()
    String s1 = oapageContext.getParameter("_FORM_SUBMIT_BUTTON");
    String s2 = oapageContext.getParameter("SaveContinue");
    if(oapageContext.getParameter("SaveContinue")!=null)
    OAViewObject oaviewobject1 = (OAViewObject)oapageContext.getApplicationModule(oawebBean).findViewObject("creditRequestsVO");
    oaviewobject1.first().setAttribute("Status", "SAVE");
    } else
    if(s2 == null && s1.equals("YesButton") && !oapageContext.getRootRegionCode().equals("ARCMBANKREFERENCEPAGELAYOUT") && !oapageContext.getRootRegionCode().equals("ARCMGUARANTORPAGELAYOUT") && !oapageContext.getRootRegionCode().equals("ARCMOTHERDATADETAILSPAGE") && !oapageContext.getRootRegionCode().equals("ARCMTRADEREFERENCEPAGELAYOUT"))
    oapageContext.getRootRegionCode().equals("ARCMCOLLATERALDATADETAILSPAGE");
    if(s1.equals("SaveContinue") || s1.equals("ArCmSubmit") || s1.equals("YesRefButtonWarn"))
    oapageContext.getApplicationModule(oawebBean).invokeMethod("saveApplication");
    OAViewObject oaviewobject2 = (OAViewObject)oapageContext.getApplicationModule(oawebBean).findViewObject("creditRequestsVO");
    oracle.jbo.Row row = oaviewobject2.first();
    String s5 = null;
    if(row != null)
    s5 = row.getAttribute("ApplicationNumber").toString();
    String s6 = "OA.jsp?akRegionCode=ARCMCUSTSEARCHPAGE&akRegionApplicationId=222&OASF=ARCMAPPCUSTSEARCH&OAHP=ARCMMENUAPPLICATION";
    MessageToken amessagetoken[] = new MessageToken[1];
    amessagetoken[0] = new MessageToken("APPL_NUMBER", s5);
    if(s1.equals("ArCmSubmit") || s1.equals("YesRefButtonWarn"))
    OAException oaexception = new OAException("AR", "AR_CMGT_APPLN_SUB_CNFRM_DESC", amessagetoken);
    OAException oaexception2 = new OAException("AR", "AR_CMGT_APPLN_SUB_CNFRM_INSTR");
    OADialogPage oadialogpage1 = new OADialogPage((byte)3, oaexception, oaexception2, s6, null);
    oadialogpage1.setReuseMenu(false);
    writeDiagnostics(oapageContext, this, "Before +++++++++++++");
    oapageContext.redirectToDialogPage(oadialogpage1);
    } else
    OAException oaexception1 = new OAException("AR", "AR_CMGT_APPLN_SAVE_CNFRM_DESC", amessagetoken);
    OAException oaexception3 = new OAException("AR", "AR_CMGT_APPLN_SAVE_CNFRM_INSTR");
    OADialogPage oadialogpage2 = new OADialogPage((byte)3, oaexception1, oaexception3, s6, null);
    oadialogpage2.setReuseMenu(false);
    oapageContext.redirectToDialogPage(oadialogpage2);
    //url of the page // here the code i s for return back to the same page after saving the details
    String url ="/oracle/apps/ar/creditmgt/application/webui/ARCMCREDITAPPPAGE";
    //retain am parameter
    String amMode ="true";
    //Computing page_url
    String page = url + "&retainAM=" + amMode + "&fndOAJSPinEmbeddedMode=y" + "&";
    //Computing final url
    String destURL =
    OAWebBeanConstants.APPS_HTML_DIRECTORY + OAWebBeanConstants.APPLICATION_JSP +
    "?" + OAWebBeanConstants.JRAD_PAGE_URL_CONSTANT + "=" + page;
    }

    Hi,
    I'm not sure but it seems that it is trying to invoke WF for item key which already exists.
    Regards,
    Reetesh Sharma

  • Duplicate Item Number Lines Sync

    Hey guys,
    We were having problems with custom information not coming into Netpoint properly and we were able to trace it to some logic that the programmer wrote which prevents custom information from being populated when the number of the lines in Netpoint is not equal to the number of lines in SAP.
    When we reviewed the lines in Netpoint, one line was missing and it happened to be the only line with the same item number as another line in that order. 
    By adding more duplicate item codes in the order in Business One, we were able to establish that if the same item code is entered in two separate lines in SAP, the duplicate item code lines will not be synced!
    What is the logic that determines which lines will be synced and is this an expected result?
    Thanks,
    Kevin Lee

    Yes, it's happened to everyone who has tried to recapture. Are you using Media Manager? If not, try that.
    The upshot is that you need to convince FCP the clips are no longer available regardless of their corporeal existence. That may mean restarting the machine, repairing permissions or deleting your prefs or, at least changing enough of your prefs so that the file is altered significantly.
    Wait, you're saying these files are not associated with your project?

  • Duplicate item checking failed in Form level-urgent

    Hi all
    i have creation page with advanced table
    i need to restrict the duplication at form level as well as save button
    in some cases the validation is failed
    if ("CodeValidation".equals(pageContext.getParameter(EVENT_PARAM)))
    itemcode = vo.getCurrentRow().getAttribute("ItemCode").toString();//advanced table multiple records come
    am.xxItemCodeValidation(itemcode);//checking the item validation at databse level
    am.xxdupitemcode(itemcode);
    method in am
    public void xxdupitemcode(String itemcode)
    System.out.println("The item code is.........."+itemcode);
    int count = 0;
    xxcrmNewItemVOImpl vo = getxxcrmNewItemVO1();
    vo.executeQuery();
    System.out.println("the row are" + vo.getAllRowsInRange().length);
    Row r[] = vo.getAllRowsInRange();
    int n = vo.getAllRowsInRange().length;
    for (int i = 0; i < n; i++)
    System.out.println("entered into this block......for loop" + count);
    if (itemcode.equals(r.getAttribute("ItemCode")))
    System.out.println("entered into this block......" + count);
    count = count + 1;
    System.out.println("the count is........."+count);
    if (count > 1)
    throw new OAException("Duplicate Item found plz change the item",
    OAException.ERROR);
    } else
    System.out.println("Exception block....... ");
    in save button i am calling
    if ("Save".equals(pageContext.getParameter(EVENT_PARAM)))
    am.xxdupitemcode(itemcode);
    am.invokeMethod("xxsavetr");
    in which case it is failing is
    in first row user enter
    ROW-ITEMCODE
    1-A
    2-A
    3-B
    4-B
    in second row and 4 th row exception is raised but user didnt change the itemcode and proceed for next steps
    IN SAVE BUTTON EXCEPTION IS RAISED
    but user will go to 4 th row and B should be change as C and click on save
    records are saving with duplication item of A
    but i need to restrict in save button also
    how its posible
    Regards
    Sreekanth

    Sreekanth,
    The correct way to check for duplicates is to check it both in the VO/EO cache as well as the database. It is possible the user entered duplicate value in the current session. In that case you should first check within the existing VO rows if the values are duplicated or not (in case all the database rows are already queried, you might not need to run an explicit query, otherwise another validation VO needs to be executed to check for duplicates).
    Regards
    Sumit

  • Duplicate Item Filename problem

    Hello,
    I have a number of offline items I am eager to digitize. When I select any of them or all of them and select Batch Capture then press OK in the Batch Capture window I get a window that states "Duplicate Item Filename". It says "A file in use by Final Cut has been found to use the specified filename. Enter a different filename and click Continue or choose one of the options listed below." The options that it lists is greyed out. These filenames it thinks it is using are not on my system. I have searched and searched and found nothing. But if I can't batch capture I can't use FCP. Too many clips already logged. Has anyone experienced this same problem and if so what did you do about it?

    Yes, it's happened to everyone who has tried to recapture. Are you using Media Manager? If not, try that.
    The upshot is that you need to convince FCP the clips are no longer available regardless of their corporeal existence. That may mean restarting the machine, repairing permissions or deleting your prefs or, at least changing enough of your prefs so that the file is altered significantly.
    Wait, you're saying these files are not associated with your project?

Maybe you are looking for