Duplicate Item
Hello,
I want to duplicate an item.
The source item is in two warehouses. The destination item should be not in warehouses (phantom item).
The following code doesn't work. Can you help me please?
Dim Artik as String = "OLDITEM"
Dim OITM As SAPbobsCOM.Items
OITM = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
OITM.GetByKey(Artik)
'New Values
OITM.IsPhantom = SAPbobsCOM.BoYesNoEnum.tYES
OITM.SalesItem = SAPbobsCOM.BoYesNoEnum.tNO
OITM.InventoryItem = SAPbobsCOM.BoYesNoEnum.tNO
OITM.PurchaseItem = SAPbobsCOM.BoYesNoEnum.tNO
OITM.DefaultWarehouse = ""
For j As Integer = OITM.WhsInfo.Count To 0 Step -1
OITM.WhsInfo.SetCurrentLine(j)
OITM.WhsInfo.WarehouseCode = ""
Next j
OITM.ItemCode = "NEWITEM"
lRetCode = OITM.Add
How can I delete the WhsInfo-Part.
Hi Marcel,
Because have tried the same, but because you can't delete rows in whsinfo and in this object there is store old itemcode there i suggest use xml for this here is some very old code which i use hope it will helpfull
oCmp.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode
oItem.SaveXML("C:\itemm.xml")
Dim file As String
Dim xd As New Xml.XmlDocument
xd.Load("c:\itemm.xml")
Dim nod As Xml.XmlNode = xd.SelectSingleNode("/BOM/BO/Items/row/ItemCode[text()='" & oItem.ItemCode.ToString & "']")
nod.InnerText = SAP.GetEditText(oForm.Items.Item("NItem").Specific)
xd.Save("c:\itemm.xml")
'Retrieve the object back from the XML file
oItem2 = oCmp.GetBusinessObjectFromXML("C:\itemm.xml", 0)
''oItem2.ItemCode = SAP.GetEditText(oForm.Items.Item("NItem").Specific)
oItem2.ItemName = SAP.GetEditText(oForm.Items.Item("NItemName").Specific)
oItem2.Properties(64) = SAPbobsCOM.BoYesNoEnum.tYES
''oItem2.WhsInfo.WarehouseCode = "01"
Dim lBomItem As Integer
If oItem2.Add() Then
oCmp.GetLastError(lErrCode, sErrMsg)
oApp.MessageBox("Error " & ": " & sErrMsg, 1, "OK")
End If
Similar Messages
-
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 -
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. -
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. -
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
-
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 SarkarHi 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 LeeYes, 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
SreekanthSreekanth,
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? -
Duplicate Item in Details Block
Dear Expert,
I written some code for checking of the same item in detail block, when I am using keyboard it is runing ok, but when I nevigate the same from mouse to another item, it will not check the duplicate item, my problem is when I move the mouse from one filed to another my Item-Code will be validate every time when I leave the mouse from One Item to another.
Please give me your expert adive.
s mishraHi Mark,
Actually this my code but it doesn't work.....
if :slcl.bulk_question_answer = 'N' then
Set_Item_Instance_Property('SLCL.BULK_ERROR_DETAILS', CURRENT_RECORD, UPDATE_ALLOWED,PROPERTY_TRUE);
elsif :slcl.bulk_question_answer = 'Y' then
Set_Item_Instance_Property('SLCL.BULK_ERROR_DETAILS', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_FALSE);
:SLCL.BULK_ERROR_DETAILS := '';
end if;
Please remember I put this code in the when-checkbox-changed trigger the default if YES.
Any further advice or idea are greatly appreciated....
Thanks.
Regards,
Jun -
Every item has 12 digits code.
Reason of duplicate item code opening:
1. Different description formats for same part
2. Different unit of measurement
3. Different export place(e.g. China and India)
4. Different old code
5. Same use of part in different system leads to different catalog
so different code
Due to these reason the person who create code for items can’t
differentiate between the new item and existing item code. This
leads to opening of new item code for an existing code and hence
duplicate code.Hello,
I think application do not help you with this. This is business problem not application problem. In my company a few person can create items and a few person can request new items. This process should be centralized and you have make some procedure in your organization. You can make some rules to valid new item before creating it.
Regards,
Luko -
How to restrict user to enter duplicate items in Purchase Order Lines?
I have to do form personalization so that user cannot enter duplicate items in the PO.
At when-new-item-instance in PO-Approve field, I have created a database function that is taking the count of items and returning the count value.
In the condition I have given condition:
1<(select func_name(parameter) from dual)
10 message duplicate items in the po
But its not working fine.
Thanks & Regards
SunnyHi,
The issue is resolved on my own exploration. We need to maintain the different authorization keys for the status which we did not want a user to access. If we leave it blank it will allow user to access.
Regards,
Sharath -
Thousands of Duplicate items in iTunes
I have duplicate items in itunes library that were transferred over from external harddrive. Is there a formula that I could use to delete them?
I have that add-on installed and have none of your issues. What Thunderbird version?
-
I now have iTunes ver 11.0.4.4 under Windows 7. I lost all iTunes stuff when updating to Windows 7. I have loaded thousands amd thousands of music files from backup disks, but there are many duplicates. I am attemping to re-establish my old library. I used to be able to remove duplicates quickly with the old iTunes. The new iTunes doesn't seem to offer the same service. Is there any way to remove duplicates quickly, or must I do it one by one?
When deduping use Shift > View > Show Exact Duplicate Items 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. 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 this thread for background 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)
See also HT2905: How to find and remove duplicate items in your iTunes library
tt2
Maybe you are looking for
-
Unable to import tables through ODBC in obiee 11g
Hi all, In obiee 11g, OBIEE 11g is successfully installed but when i am trying to import the tables in RPD through odbc then it is giving a problem. I have tried using the OCI and it is working fine but can anyone tell me why it is not happening thro
-
I have a 2009 MackBook Pro and I want to replace the hard drive. What is a new/ best hard drive to purchase?
-
Passing values to an InternalTable in a Function Module from WebDynpro
Hi, I have created a model from a function module that has a internal table.I have assigned the value as a String to the datamodel context element of the internal table as a Line in the node that represents the input for the funtion module.The in
-
Stopping the Fade to Black on Ken Burns Slide Show?
I am trying to make a slideshow using the Ken Burns template. I want to be able to make a loop-able file (.mov or other), so I can make a looping DVD. At the end of my sideshow, there is a one second fade to black - Is there any way to stop that fade
-
Nat Type question for PS3 (wrt610N)
I have the wrt610N on cable internet and am playing Modern Warefare 2 on the PS3. Since day 1 I have had a Type 2 Nat type according to the PS3's internet connection test. Modern Warfare 2 has a Nat Type indicator on the lobby screen and mine has al