Delete repeat fields
Hello.
I have a internal table with some fields, and many fiels are repeat. I would delete the fields that are repeat, but not all the fields of this record.
Example:
Code Name Price Date Num
10 X 20 12-10 9
10 X 20 15-10 12
15 R 14 14-10 8
15 R 14 12-10 5
and i would....
10 X 20 12-10 9
15-10 12
15 R 15 14-10 8
12-10 5
Thanks!!!!
Hi,
Please try this.
data: string_old(5),
string_new(5).
sort itab.
loop at itab.
at first.
move: itab-code(2) to string_old(2),
itab-name(1) to string_old+2(1),
itab-price(2) to string_old+3(2).
continue.
endat.
move: itab-code(2) to string_new(2),
itab-name(1) to string_new+2(1),
itab-price(2) to string_new+3(2).
if string_old = string_new.
move: spaces to itab-code(2),
spaces to itab-name(1),
spaces to itab-price(2).
modify itab.
endif.
string_old = string_new.
endloop.
Regards,
Ferry Lianto
Similar Messages
-
Getting Error while deleting a field from the 'Z' Structure
Hi All,
I have created a 'z' structure in which i have 5 fields, now i want to delete one field from the structure, but it is giving me error like Invalid Change.
Its a structure so i cant activate and adjust as we do for Tables.(se14)
So pls help me out asap.
thanks & Regards,
Dhruv ShahThanks for Quick Reply.
I have not used this field in any FM/ Report.
I have tried log off and then log on. but it make no difference.
Now the Other scenario is that i want to change the datatype of this field to TEXT25.
But it is also not allowing me to change because currently datatype is TEXT20.
So now how can i change the length from 20 to 25.
Regards,
Dhruv Shah -
Hi Team,
I have created Administrator -approved Infopath form template to my site and activated same template in CA.
I have used this template in one of my Form library and i can able to submit the Form with success to the library.
when i click "View Item" or "Edit Item" of the form it throws , "One or more field types are not installed properly. Go to the list settings page to delete these fields." error message.
I have refered my log files also but there is no useful information in that, please find my logs for your reference.
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
Logging Correlation Data
xmnv
Medium
Site=/sites/Prototypes
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
Monitoring
b4ly
High
Leaving Monitored Scope (PostResolveRequestCacheHandler). Execution Time=8.51588679566816
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
General
8kh7
High
One or more field types are not installed properly. Go to the list settings page to delete these fields.
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
General
8sl1
High
DelegateControl: Exception thrown while adding control 'ASP._controltemplates_publishingconsole_ascx': One or more field types are not installed properly. Go to the list settings page to delete these fields.
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
General
8kh7
High
One or more field types are not installed properly. Go to the list settings page to delete these fields.
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
Runtime
tkau
Unexpected
System.Runtime.InteropServices.COMException: One or more field types are not installed properly. Go to the list settings page to delete these fields.
at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback,
ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)
at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEA...
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
Runtime
tkau
Unexpected
...RRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
Monitoring
b4ly
Medium
Leaving Monitored Scope (Request (GET:http://test-sharepoint:80/sites/Prototypes/TRT/TRTLibrary/Forms/EditForm.aspx?ID=47&Source=http%3A%2F%2Ftest%2Dsharepoint%2Fsites%2FPrototypes%2FTRT%2FTRTLibrary%2FForms%2FAllItems%2Easpx&RootFolder=%2Fsites%2FPrototypes%2FTRT%2FTRTLibrary&ContentTypeId=0x01010100E7EE25E5A6898C4587A6B52C808EF03300FD54861D587A7E43BA3E2E6D392A3526&IsDlg=1)).
Execution Time=32.443369199158
w3wp.exe (0x08E4)
0x2C58
Access Services
Data Layer
8jg2
Medium
ResourceManager.PerformCleanup: Disk Manager: CurrentSize=0.
w3wp.exe (0x08E4)
0x2C58
Access Services
Data Layer
5pbr
Medium
ResourceManager.EvictUnusedItems: Disk Manager: Going to evict unused items. CurrentSize: 0.
w3wp.exe (0x08E4)
0x2C58
Access Services
Data Layer
5pbs
Medium
ResourceManager.EvictUnusedItems: Disk Manager: After unused items eviction. CurrentSize: 0
Diff:0.
w3wp.exe (0x2D7C)
0x0774
SharePoint Foundation
Topology
e5mc
Medium
WcfSendRequest: RemoteAddress: 'http://test-sharepoint:32843/4ac2daef5ffe4850be08bd7bbebb5ac2/MetadataWebService.svc' Channel: 'Microsoft.SharePoint.Taxonomy.IMetadataWebServiceApplication' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges'
MessageId: 'urn:uuid:dcba94c3-2764-428c-b44f-60e703328ceb'
w3wp.exe (0x08E4)
0x2E24
SharePoint Foundation
Topology
e5mb
Medium
WcfReceiveRequest: LocalAddress: 'http://test-sharepoint.anca.com.au:32843/4ac2daef5ffe4850be08bd7bbebb5ac2/MetadataWebService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges'
MessageId: 'urn:uuid:dcba94c3-2764-428c-b44f-60e703328ceb'
JeevaHello,
Is there any other content type on library or check if there is any duplicate column? Could you please also show us your library columns detail? (pic is also fine of lib settings page)
If you have any ""Property Promotion" column then SP create those columns as site column and associate them with this template so check "Allow management of content types" for that form library as well.
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Hi ,
I am working in sharepoint 2013, This is a custom timer timer Execute method where i am moving a document item from one library to other once its expired,it was running fine and suddenly giving following error:-
One or more field types are not installed properly. Go to the list settings page to delete these fields.<nativehr>0x81020014</nativehr><nativestack></nativestack>
StackTrace = " at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)\r\n at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName,
String bstrViewName, String bstrView...
I have filled all the meta data(site column) for the item but still same error, Please help me out as i have no clue why it is giving this error
public override void Execute(Guid targetInstanceId)
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite site = new SPSite(sourceUrl))
using (SPWeb web = site.OpenWeb())
//gets the document lib
SPList listFrom = web.Lists[sourceList];
//gets the expired documents items
SPQuery query = new SPQuery();
query.ViewFields = "<FieldRef Name='Expiration_x0020_Date'/>";
query.Query = @"<Where><Leq><FieldRef Name='Expiration_x0020_Date'/><Value Type='DateTime' ><Today /></Value></Leq></Where>";
SPListItemCollection items = listFrom.GetItems(query);
//if expired items found
if (items.Count > 0)
SPFile oFile = null;
foreach (SPListItem item in items)
string strfile = item.File.Name;
oFile = web.GetFile(sourceList + "/" + strfile);
//oFile.CopyTo("Archive/" + strfile);
oFile.MoveTo(destinationList + "/" + strfile);Hi,
I think the issue is related to the internal name of the Expiration Day.
In the caml query code lines, we should use the right internal field name to retrieve and filter the list items.
To avoid such mistake, we can use the CAML Designer tool to generate the caml query code.
We can download the tool here: http://www.camldesigner.com/?p=594
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
We have a publishing website in SharePoint 2010. There are total 4 environments - Development, Test, Stage and Production. For some enhancements, we had to create some new lists and libraries. When we moved changes from Development to Test environment, everything
worked fine. Relevant lists and libraries in lower environments were saved as templates (in .stp format) including content, imported to higher environment, lists/libraries were created in higher environment using imported templates.
Things worked fine from Development to Test. We did similar exercise from Test to Stage environment. Now in Stage, when we access some pages, we get error message - "One or more field types are not installed
properly. Go to the list settings page to delete these fields.". ULS logs don't tell which exact list has got problems.
On searching for this error, I got many articles that explain how this could happen when we migrate from SharePoint 2007 (MOSS) to 2010. Though our case different (as all our environments are in 2010), we still tried following steps.
De-activate 'SharePoint Server Publishing Infrastructure' Site Collection feature
Go to https://site-name/relationships%20list/allitems.aspx. This is a hidden list. Delete this list.
Re-activate 'SharePoint Server Publishing Infrastructure' Site Collection feature.
Make sure that new hidden list with one item is created at https://site-name/relationships%20list/allitems.aspx
However, this didn't help as we are still getting same error message. Appreciate if someone can suggest how this issue can be resolved.
Following are ULS logs:
Unable to execute query: Error 0x81020014
One or more field types are not installed properly. Go to the list settings page to delete these fields.
System.Runtime.InteropServices.COMException: One or more field types are not installed properly. Go to the list settings page to delete these fields.
at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback,
ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)
at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback
pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)
Thanks!Hi Shrishail ,
Some time this issue occurs if you have any custom filed types in the list or library and that field type is not installed on server .
Can you please check that if you are having any custom field types column on the list and library and if that is the case you need to install that field type on the server. sometimes it happens if field types are not properly deployed / Installed then
you have to uninstall that field types (retract solution) and deploy it again.
Thanks,
Ujjwal -
Is there a way to get rid of the space left when I delete a field?
I have a document that I am editing and I have deleted some fields but that leaves big white spaces in the document. Is there some way that I can get rid of those spaces without having to manually move up all the subsequent fields one by one?
Not really. There are things you can do to make the process easier, but you can't just highlight the white space and hit 'delete' to bump everything up.
You can select all of the items below what you removed on the heirarchy tree (that are on the same page) and move them all up at once.
You could make the document flowed and enclose the whole area in a subform, but that presents its own set of challenges if the fields and such do not already take up entire lines (or close to it). It does make the process easier in the future if you have to add/remove more items again. -
Has anyone encountered this error.
I am developing on SP 2010 with VS 2010.
I was following an online tutorial: How to use custom form templates in NewForm.aspx/EditForm.aspx located at:
http://sharepointbox.blogspot.co.at/2010/11/how-to-use-custom-form-templates-in.html
The tutorial was a little lacking on some of the direction, but it included the working source code, and I managed to complete it.
Every time I try to deploy my version I get the error: Error 42 Error occurred in deployment step 'Activate Features': Field type MyCustomField is not installed properly. Go to the list settings page to delete this field.
I have gone through my code line by line and matched it to the working code from the tutorial, so I can only assume that I am missing something in the Procedure to properly deploy.
Any help is greatly Appreciated!It seems that something went wrong with your custom field type installation. Check below line in .xml file of your custom field type and correct it if needed.
<Field Name="FieldTypeClass">DocumentFieldType.DocumentFieldTypeClassName, DocumentFieldType, Version=1.0.0.0, Culture=neutral, PublicKeyToken=379382f3e8928835</Field>
Please recheck respective values of namespace.classname , dllname. and publickeytoken in your code
Thanks. Please mark it as an answer if it helps. -
Creation of HR infotype with repeated fields
Hi,
We have a requirement in our project where in we need to implement the repeat field screen structure.
We have to create an info type with 96 fields in which some of the fields are repeated more than once.
We have tried to create a table control to represent the repeated fields, for this we have a standard way which SAP follows. We have done the same way but we are not able to get the table control in the info type screen.
We have done the following steps using this link
http://help.sap.com/saphelp_erp2005vp/helpdata/en/4f/d52552575e11d189270000e8322f96/frameset.htm
1) I have created a structure with the repeated fields of the info type
2) created the entries in Mapping for Conversion of Repeat Structure/Tables (table T588AUTO_MAP) with the repeated fields
3) For each type LINE screen structure to be used, a corresponding entry was defined in Mapping for Conversion of Repeat Structure/Tables (table T588AUTO_TABLE).
4) I have created an info type with all these fields where in I should get the repeated fields in the table control format, but this was not happening.
Is there any task to be done to link all these transactions before going for creation of the info type?
Can any one suggest me how to get the table format on the screen with all these repeated fields.
with regards,
ramu mullapudiHi Choudhury,
Thanks for your reply. The infotype that you suggested solved my problem.
Regards,
RSS. -
Error in EEWB deleting a field
Hello,
I was supposed to add a new customer field in a tab of CRMD order using EEWB.
When I looked at the extension already created i saw that my field had already been created but it wasn't available in CRMD_ORDER transaction.
So as to get what I wanted, I tried to delete the field from the existing task to create a clean new one.
The problem is that when I deleted the old field (using wizard) and tried to activate the former extension I had and error telling that table had to be adapted. So I went to se14 to adapt it and tried to activate again my extension. But there was no way, it said something like "Project could not be read".
As a result my extension appears red and broken and the wizard is not available any more.
Reading some posts of these forums I arrived to think I had to delete that broken extension and create it again from 0.
I fear I might loose my existing data. What about it?
I tried to delete the extension but it told me that "The order/task XXXX did not exists".
What can I do to go back to the previous version of my extension and to add my new field in my screen.
thanks, I am about to despair...HI Nirmit,
Yes you are right. EEWB will not support the deletion of a project if any errors are found. for your serino (1) u revert back to previous version and when that project is fine u can delete the complete project.
Regard point (2) if PE(1) was fine ( i.e without errors) then u can use start wizard and at the place where u ad fileds u can deelte the fileds . this works fine in CRM 4.0.
Point (3) is the way to overcome but always u can delete ur PE1 if it does not have errors -
Sender FCC , problem with Repeating Field under a Sub-structure
Hi,
I have an Input File as
D,TH_ ,10/31/2008,ABC,pieces
PF, 10/31/2008,11/2/2008,11/3/2008,11/4/2008
P,mat,CS,100,120,130,125,150,170,120
P,mat,CS,100,120,100,110,140,120,110
I need to Implement an FCC to convert this to
a Structure like this
Recorset
Header 1....1
Unique Id
date Time
CustomerCode
Code
Unit
Dates 1
date 1....n
Products 1....n
product 1
unit 1
quantity 1.....n
This this is a Variable recordset type ( i.e each ROW has a Different Structure) the following keys D,PF,P are defined, for the header, dates, and Product Information.
The Following FCC parameters are applied
Document Name : MT_FILE_INPUt
Document NameSpace = http://xyz.com
Recordset Name = "Recordset"
Recordset structure = Header,1,Dates,1,Products,*
keyname = Key
Keytype = String
Header.FieldSeprator = ,
Header.FieldName = Unique Id,date Time,CustomerCode,Code,unit
Header.keyValue = 'H'
Dates.FieldSeprator = ,
Dates.Fieldname = 'date'
Date.keyValue = 'PF'
Products.FieldSeprator = ,
Product.FieldName = product,unit,quantity
Product.KeyValue = 'P'
Now the Problem is as Follows:
1) I have a Repeating Field Quantity under the Product and Date under the Dates Sub-structure, This is not getting Repeated at all.
Is there a Way to achieve the same
2) Another Point is That, i do not want to take the key Value in the XML structure after converion, is there a way to avoid it
Please let me know if any blogs are available
Any help would be appreciated.
Thanks,
Best Regards
Abhishekcan u try.. i haven't tired this.
quantity is occuring multiple times, but if that is fixed no# of occurance,, you can can try with this?
P,mat,CS,100,120,130,125,150,170,120
Product.FieldName = product,unit,quantity,quantity,quantity,quantity,quantity,quantity
let me try ..
As long as the quanitfy defined under Product.FieldName are more than the input msg quantity values (100,120..), you will be safe...
Edited by: Anand on Oct 31, 2008 3:54 PM -
Unable to delete Reconciliation Field
Hi
I have a field in Reconciliation Field mapping of my Resource Object. For some reason I want to delete this field. So I removed mapping for this field in Recon Mapping of Process Definition for this Resource Object. But when I try to delete the same from Recon Fields in Resource Object it says "Field cannot be deleted as it is used in Reconciliation Event Data".
In Reconciliation Manager, there are some 10 events which are in "Event Received" state. I closed all the events and then tried to delete the field but still I get same error.
Any workarounds to resolve this error?You can't delete fields from resource objects which were used even once in mapping. You can leave them as it is, as said above it won't make any harm.
Regards,
GP -
How to delete a field's name in the form of 2014.1
In the 2014 version, you can delete the field's email in html and online everything worked. In version 2014.1 so you can do. Necessary to create a form with the name and telephone. Help!
I would like to know how to delete the email field in the Muse Web Form. I need to create a form which does not require an email field.
-
How to delete a field in Infotype.
Hi All,
Can anyone suggest me how to delete a field in infotype.
Thanks,
Chakradhar.Hi Chakradhar!
Check these links for your taste:
<a href="http://help.sap.com/erp2005_ehp_02/helpdata/en/bb/bdb6c8575911d189240000e8323d3a/frameset.htm">Delete infotype record - OM</a>
<a href="http://help.sap.com/erp2005_ehp_02/helpdata/en/48/35c7414abf11d18a0f0000e816ae6e/frameset.htm">Delete infotype record - PA</a>
Best regards,
Zsolt -
How to delete a field from search help which is delivered
hi
I got a requirement to delete a field from search help which is delivered long back
Regards
krishnaHi
Whether it exists in DEV system or not?
Take the name of that Search Help from PRD/Quality(if it is not there in DEV system) and modify/change it by removing that field from the search help in DEV system and create a Transport request and transport the same request to Quality/PRD systems
Now the New changes (in which the field was removed) will be over written on the old search help in the PRD system, since it is the same Name (search help)
Regards
Anji -
Promoting a repeating field to a header field
I have a field that is a member of a repeating field and has the same value all throughout the report. I need the contents of this field to be placed in the header portion of the report.
I get the error..field F1 (which is my header field) references column (which is the repeating field) at a frequency below its group.
Can anybody suggest how to do it....
Thank you.Hi,
just go to the data model and move the field which u r intended to be in header section move that in to group .
.. and in layout move the field to main group ....
reagards
Kiran
Maybe you are looking for
-
Hi, I have the following issue: we need to make use of BADI 'MD_PURREQ_CHANGE' here I need to use Logical Database 'DBM' in my implimentation method. Shall we make use of Logical Databse in ABAP Objects? If yes, could you give any ideas please? Thank
-
How do I get an actor to wait for its nested actors to stop running before stopping itself?
I'm developing a series of projects that are based on the Actor Framework and my actor dependency hierarchy is starting to get some depth. One of the issues I'm facing now is making sure that each actor will only stop running (and signal this via a L
-
We have been experiencing issues with SSRS over the past 5 weeks, the service goes down frequently. And it comes up only on reboot of the server. We had also disabled the On Access scan in Mcafee. The service is in use for about two years, and the be
-
Hi, I'm using Oracle JDeveloper 11.1.2.2.0 and the eclipselink JPA provider (integrated in Toplink library). I can run my web application in IDE. However, when I deployed my application to the embedded WLS via a WAR file, I got the following error: E
-
Converting Date Into Milliseconds?
I want to convert the following date and time into milliseconds: 4/21/2003 21.50. I know how to convert milliseconds into a date, but not the other way around. Could someone, please, help?