How to delete char index.
Hello everyone
I am having bit of problem to remove an index of letters[] (char array)
the letters [] consists of letters from a-z..i.e.
letters[0]= a
letters[1]=b
..... and so on
now I have a method which has param of char
void
public String unGuessedLetters(char letter)
String str;
for(int i=0;i<=25;i++)
if(letter==letters)
letters.deleteCharAt(i);
str= new String (letters);
return str;
for some reason this is not working, even after importing the java.lang.*; . Please guys any help will be highly appreciated.
Thanks
Edited by: sifatk on Sep 29, 2007 7:30 AM
public String unGuessedLetters(char letter)
String str;
for(int i=0;i<=25;i++)
if(letter==letters)
letters.deleteCharAt(i);
str= new String (letters);
return str;
I think this is your code. When posting use the "code" tags. The idea is you put [[i]code] at the start of your code and [/code] at the end - including the square brackets. It is a good idea to use spaces instead of tabs to indent code.
Similar Messages
-
How to delete the index for the business object BUS0033
Hi to all experts,
I'm applying note 1349496 the error here is no records with F4 help for the funds center .
solution from the note
Implement the attached program corrections. Then, in the transaction, delete the index for the business object BUS0033, reactivate it, and start the indexing in the indexing mode "Full". The system then displays the data correctly in the F4 search help.
how to do the second part i have already applied the note .any help
-
How to delete secondary indexes
Hello Guru's.
I want to delete secondary indexes for my copa cube ZCOPA_CO1.where to see the secondary indexes for this cube..please give me step by step for deleting secondary indexes as well as creating secondary indexes .Its really urgent please give me some good suggestions on this as i was stuck up with this issue.......waiting for your valuable suggestions on this...
Thanks.
sri.Hi,
Secondary index: Additional indexes could be created considering the most frequently accessed dimensions of the table.
How to create secondary index :
1. Go to se11 --> Enter Tablename --> Display --> Click on "Indexes" button on Application Toolbar --> Select "Table Fields" button --> Select field on which you want to create index on (Compound index can be created on more than 1 table).
Generally indexes are created at database level to optimize performance (Select Non-unique Index --> Index on all database systems)
Hope it helps
Regards
Srikanth -
How to delete the index of a deleted account
So here's the deal. I deleted an old Gmail account ( I think it was set up as imap) a few months ago. Last night I'm searching Mail and I find all of these hits, but the mailbox column is blank, I cannot read the message, and I cannot select "Show in Mailbox". I realized these were from my deleted account.
So I went into ~/library/mail and looked, but I found nothing for the deleted account, the actual messages are gone (which is fine), but the listings are still coming up in searches.
I turned Spotlight indexing for mail off, and even put ~/library/mail in the Spotlight privacy list.
No luck.
I've even rebuilt each mailbox (1 at a time), but still cannot get rid of these old email headings.
I know there is a way to force Mail to rebuild its index using a keyboard shortcut on Mail start-up, but I can't remember it.
Any advice would be much appreciated.
Thanks
Oh, in addition, I cannot move these to the trash or delete them either - they won't go away
Message was edited by: J AshleyThanks a lot for all your answers! :)
I finally got to do something with my little knowledge =P
I created a new class containing all the data needed for the dataTable (including a "String id").
And that's what I get:
<h:column>
<a:commandLink
value="#{familyAction.familyDocsByPrj.name}"
action="#{homeAction.search(familyAction.familydocsByPrj.id)}"
reRender="rightAppPanel" />
</h:column> -
How to delete BIA indexes - manually via program?
Dear all
We are currently facing the issue where our BIA indexes are growing at a tremendous rate, due to our use of Full Load and Delete Overlapping Requests activities. Checks shows that our fact indexes are 6999% above the Fact tables and growing by day.
As per suggestion from the SAP Best Practice, we should be deleting and rebuilding the BIA indexes on a regular basis (we plan to do this everytime the loading completes). However, the SAP Best Practice only mention the program to initially activate and fill the BIA indexes (RSDDTREX_BIA_ACTIVATE_FILL), and fail to mention a program to delete the BIA indexes automatically.
Since we are scheduling this activity, is there a program for us to delete the BIA indexes? We will subsequently rebuild it using the RSDDTREX_BIA_ACTIVATE_FILL program.
We don't mind function module as well, as we will create a wrapper program around it.
Thanks for the advise
ChrisHi,
See if these notes are of help.
SAP Note 926609 - BIA index and metadata changes
SAP Note 917803 - Estimating the memory consumption of a BIA index
1012008 - BI accelerator index after activating the InfoCube
There may be few related notes attached to these notes.
check them also.
Hope this helps.
Thanks,
JituK -
Hi all
This is Sudhakar
can any one help me out How to delete the indexes in SE37
Please tell me the steps
i will give the points also It is very Urgent
Thanks and Regards
Sudhakar
[email protected]Hi Sudhakar,
If you want to delete the indexes in SE37 it is a screen for Function Builder and you can drop indexes with the function module and compress rebuild indexes too.
if you are using any FM then fine can you tell what is that FM you are using.
you can do it by going to RSA1 right click on cube and Manage --> Performance->
check indexes>delete indexes>repair indexes
and to compress goto Rollup -->Execute (check for the request id)
Thanks
Shankar -
Dear friends,
How to delete an index properly in SAP ?
The creation was well made in SAP but then it was deleted in Oracle directly.
What is the proper way of deleting an index ?
Can you please help ?
Thank you,
Daniel.Hi Daniel,
Yes, you don't have to do anything explicitly after you drop the index from SE14. This operation will also delete the index from the Oracle too.
You can read more information about SE14 at SAP Help.
http://help.sap.com/saphelp_nw70/helpdata/en/cf/21f0e3446011d189700000e8322d00/frameset.htm
Br,
Venky -
How Do You Delete the Index?
Is there a way to delete the entire index in the online help
project? Or can you only delete one index entry at a time?
I suspect the index is too large and may be responsible for
an error message ("There is not enough memory for this task. Quit
one or more programs to increase availabel memory and then try
again") and a subsequent abnormal program termination.Thisis a duplicate past
click
here to see the original -
How to delete 3 months old ALL partitions from oracle tables
How to delete 3 months old ALL partitions? Here is the query i am executing..but this query delete partitions 90 days old..need help sir..
select 'alter table ABC.'||table_name||' drop partition L_'||to_char(sysdate - 90 ,'DDMONYY') || ' UPDATE GLOBAL INDEXES;' from dba_tables where table_name in ('TABLE1','TABLE2');
Thanks
Ora_userstatic sql :-
alter table TEST1 drop partition L_01DEC10 update global indexes;
alter table TEST1 drop partition L_06DEC10 update global indexes;
Table DDL :-
CREATE TABLE TABLE1
SEQ_CACHE NUMBER(10) NOT NULL,
REQUEST_DATE_TIME DATE NOT NULL,
Manual_load VARCHAR2(30 BYTE) NOT NULL,
SRS_AUTO VARCHAR2(200 BYTE) NOT NULL,
SRS_REM VARCHAR2(30 BYTE) NOT NULL,
TGT_FORM VARCHAR2(200 BYTE) NOT NULL,
TGT_SYS1 VARCHAR2(25 BYTE),
LOCK_TYPE VARCHAR2(30 BYTE) NOT NULL,
AUTO_LEVEL VARCHAR2(20 BYTE) NOT NULL,
SUCCESS_STS CHAR(1 BYTE) NOT NULL,
SOURCE_NAME VARCHAR2(200 BYTE) NOT NULL,
PNAME_SS VARCHAR2(40 BYTE),
ID_CORE VARCHAR2(40 BYTE),
ID_TRAN VARCHAR2(40 BYTE),
TRIP_TIME NUMBER(10),
REMOTE_TIME NUMBER(10),
ERROR_TYPE VARCHAR2(30 BYTE),
ERROR_TOLL VARCHAR2(30 BYTE),
PRG_ID VARCHAR2(30 BYTE),
OPER_ERROR_ID VARCHAR2(30 BYTE),
DES_SYS_ERR VARCHAR2(200 BYTE),
DBS_INS_DT DATE NOT NULL
TABLESPACE DAT01
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
BUFFER_POOL DEFAULT
PARTITION BY RANGE (REQUEST_DATE_TIME)
PARTITION L_06APR11 VALUES LESS THAN (TO_DATE(' 2011-04-06 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE DAT01
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION L_11APR11 VALUES LESS THAN (TO_DATE(' 2011-04-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE DAT01
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION L_16APR11 VALUES LESS THAN (TO_DATE(' 2011-04-16 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE DAT01
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION L_21APR11 VALUES LESS THAN (TO_DATE(' 2011-04-21 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE DAT01
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION L_26APR11 VALUES LESS THAN (TO_DATE(' 2011-04-26 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE DAT01
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION L_01MAY11 VALUES LESS THAN (TO_DATE(' 2011-05-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE DAT01
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION L_06MAY11 VALUES LESS THAN (TO_DATE(' 2011-05-06 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE DAT01
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION L_11MAY11 VALUES LESS THAN (TO_DATE(' 2011-05-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE DAT01
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION L_16MAY11 VALUES LESS THAN (TO_DATE(' 2011-05-16 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE DAT01
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION L_21MAY11 VALUES LESS THAN (TO_DATE(' 2011-05-21 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE DAT01
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION L_26MAY11 VALUES LESS THAN (TO_DATE(' 2011-05-26 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE DAT01
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION L_01JUN11 VALUES LESS THAN (TO_DATE(' 2011-06-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE DAT01
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING
/ -
Reg:How to delete the column in table control also from database table.
Hi Experts,
Once again thank u all for giving the responses.
one more doubt is how to delete the columns of table control and also the record shold delete from ztable.
With Regards,
Saroja.P.Hi,
If you want to delete the rows in the table control and simultaneously delete it from the database table, then you can implement a 'DELETE' functionality specific to your table control. Have a MARK field (you will find that in the screen attributes of the table control -> give a name for the MARK field, you will find an additional MARK column at the beginning of your table control). You can check whatever rows you want to delete from the table control, call the delete module.
"This portion of code inside the LOOP...ENDLOOP.
IF sy-ucomm eq 'F_DELETE'.
gt_itab2-check = mark. " Store the MARK field status into your internal table's correspoding field 'check'
MODIFY gt_itab INDEX tabcontrol-current_line.
ENDIF.
iF sy-ucomm eq 'DELETE1'.
DELETE gt_itab WHERE check eq 'X'. "Your internal table does not have rows that you want to delete
ENDIF.
Now you can modify your database table using the MODIFY statement.
MODIFY ZDB FROM TABLE gt_itab. -
How to delete the duplicate email address in BP master data
Hi,
When you get an email ids from the third party vendor and you are loading into CRM BP master data. how to delete the duplicate email address already exits in the system. In CRM you can create the same BP with different id. I would like to know how to delete the email address during importing email addresses from the third party tool.
During the campaign you are sending email to all your customers, when the customer want to unsubscibe the email address from your list, how to unsubcribe the email address and how to updat the BP master data.
If you are sending the email to customer, you are using html or simple text, if the customer wants only html or simple text, how you to specify in the system?
thanks,
arulHello Arul,
welcome to the SDN CRM Development forum.
1. I think you should clear the data with duplicate E-Mail adresses in the external tool.
2. Unsubscription could be done by a Marketing Attribute which could be set by using a Target Group which is created by Campaign Automation. Have a look at this Toppic. There is also a Best Practice avaliable at http://help.sap.com/bp_crmv340/CRM_DE/index.htm.
3. Also HTML or Simple text can be mained in a Marketing Attribute. You have to use different Mail Forms to which are sent to different Target groups.
Regards
Gregor -
How to delete the selected rows with a condition in alv
dear all,
i am using the code in object oriented alv.
WHEN 'DEL'.
PERFORM delete_rows.
FORM delete_rows.
DATA : lv_rows LIKE lvc_s_row.
data : wa_ROWs like LVC_S_ROW.
FREE : gt_rows.
CALL METHOD alv_grid->get_selected_rows
IMPORTING
et_index_rows = gt_rows.
IF gt_rows[] IS INITIAL.
MESSAGE s000 WITH text-046.
EXIT.
ENDIF.
loop at gt_rows into wa_ROWs .
if sy-tabix ne 1.
wa_ROWs-INDEX = wa_ROWs-INDEX - ( sy-tabix - 1 ).
endif.
delete gt_sim INDEX wa_ROWs-INDEX .
endloop.
the rows to be deleted from int.tab gt_sim not in the alv display.
all the rows should not be deleted if one of the field in gt_sim eq 'R'.
how to check this conditiondear jayanthi,
ok if i am coding like that as u mentioned ,
it will exit the loop when first time the field value is 'R'.
if any of the selected rows contains field value 'R'. it shold not delete all the selected rows.
as u suggested it will not delete after first time the field value is r.
i am deleting it by tab index so,
suppose if i am selecting the row without field value R say its tabix is 1.
the next row with tabix 2 with field value R.
it deletes the first row and exits , it should not delete the first row also. -
How to delete the record in the table without using lead selection?
hi,
I have added the separate column "delete" to the table uielement and so for each record or row of the table the appropriate "delete" link to action will be there................the code below works when the particular row is selected through lead selection only.......
help me how to delete without using lead selection.....
DATA:
NODE_MODULE TYPE REF TO IF_WD_CONTEXT_NODE,
ELEM_MODULE TYPE REF TO IF_WD_CONTEXT_ELEMENT,
STRU_MODULE TYPE IF_V_MODULE=>ELEMENT_MODULE .
data itab TYPE TABLE OF zac_modules.
navigate from <CONTEXT> to <MODULE> via lead selection
NODE_MODULE = WD_CONTEXT->GET_CHILD_NODE( NAME = `MODULE` ).
get element via lead selection
ELEM_MODULE = NODE_MODULE->GET_ELEMENT( ).
get all declared attributes
ELEM_MODULE->GET_STATIC_ATTRIBUTES(
IMPORTING
STATIC_ATTRIBUTES = STRU_MODULE ).
NODE_MODULE->GET_STATIC_ATTRIBUTES_TABLE(
IMPORTING
TABLE = itab )
DELETE itab WHERE zmodule_id = STRU_MODULE-zmodule_id.
CALL METHOD NODE_MODULE->BIND_TABLE
EXPORTING
NEW_ITEMS = itab
SET_INITIAL_ELEMENTS = ABAP_TRUE
INDEX =
ENDMETHOD.Hi ,
The onclick event provides you with a standard paramater "CONTEXT_ELEMENT" which has the element from which the event is triggered.
so you can declare this in the handler(if it is not there) and use it as follows.
CONTEXT_ELEMENT TYPE REF TO IF_WD_CONTEXT_ELEMENT an importing paramater.
DATA:
NODE_MODULE TYPE REF TO IF_WD_CONTEXT_NODE,
ELEM_MODULE TYPE REF TO IF_WD_CONTEXT_ELEMENT,
STRU_MODULE TYPE IF_V_MODULE=>ELEMENT_MODULE .
data itab TYPE TABLE OF zac_modules.
CONTEXT_ELEMENT->GET_STATIC_ATTRIBUTES(
IMPORTING
STATIC_ATTRIBUTES = STRU_MODULE ). "Using the context_element paramater to get the static attributes.
NODE_MODULE->GET_STATIC_ATTRIBUTES_TABLE(
IMPORTING
TABLE = itab ) "getting all the data.
DELETE itab WHERE zmodule_id = STRU_MODULE-zmodule_id. "deleting the particular row from the table and binding it.
CALL METHOD NODE_MODULE->BIND_TABLE
EXPORTING
NEW_ITEMS = itab
* SET_INITIAL_ELEMENTS = ABAP_TRUE
* INDEX =
thanks,
Aditya. -
How to delete old logs in SAP BI, what is the best way to go?
Hi,
below are the issues we are facing,
when executing infopackage job is not getting triggred into source system.
for activation DSO data it is taking huge time. At the time of seqential read to RSREQDONE table.
I think this is due to huge logs in the staandard tables.
What could be the reson behind this.. and let me know how to delete old logs.
Thanks,
HarishHi,
just carry out RSRV for DSO PSA tables and see if there is inconsistency available there in the PSA table.
see if the change log and PSA deletion is happening regularly..else schedule same in PC
check with basis there are certain jobs which needs to run regularly at certain frequency..
http://www.erphowtos.com/guides-a-tutorials/doc_view/1041-how-to-delete-process-chain-logs-in-sap-bw.html
http://www.erphowtos.com/guides-a-tutorials/doc_view/1040-periodic-maintenance-activities-on-sap-bw-best-practices.html
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02ba9e7-bb6f-2c10-09b4-e86b9fcbad41?QuickLink=index&overridelayout=true
Thanks and regards
Kiran -
How to delete the data from partition table
Hi all,
Am very new to partition concepts in oracle..
here my question is how to delete the data from partition table.
is the below query will work ?
delete from table1 partition (P_2008_1212)
we have define range partition ...
or help me how to delete the data from partition table.
Thanks
Sree874823 wrote:
delete from table1 partition (P_2008_1212)This approach is wrong - as Andre pointed, this is not how partition tables should be used.
Oracle supports different structures for data and indexes. A table can be a hash table or index organised table. It can have B+tree index. It can have bitmap indexes. It can be partitioned. Etc.
How the table implements its structure is a physical design consideration.
Application code should only deal with the logical data structure. How that data structure is physically implemented has no bearing on application. Does your application need to know what the indexes are and the names of the indexes,in order to use a table? Obviously not. So why then does your application need to know that the table is partitioned?
When your application code starts referring directly to physical partitions, it needs to know HOW the table is partitioned. It needs to know WHAT partitions to use. It needs to know the names of the partitions. Etc.
And why? All this means is increased complexity in application code as this code now needs to know and understand the physical data structure. This app code is now more complex, has more moving parts, will have more bugs, and will be more complex to maintain.
Oracle can take an app SQL and it can determine (based on the predicates of the SQL), which partitions to use and not use for executing that SQL. All done totally transparently. The app does not need to know that the table is even partitioned.
This is a crucial concept to understand and get right.
Maybe you are looking for
-
We shoot with DVCpro50 at 24p. A few questions. 1. Is there anytime that there is an advantage, or a time when you have to use field dominance ? Interlaced footage looks like crap. Stills look horrible in an interlaced timeline - why ever use it ? It
-
Recording voice for radio transmission
I want to record interviews for transmission on an FM radio station. Someone has suggested I purchase iRig and a microphone to use with my iphone 4s. Does anyone have experience of this please?
-
Can an contact person be independent of a customer master
Hi, I need to create a contact person that will be used by multiple customer masters. Is it possible to set up an independent customer master and then reference it within the partner funcitons of an e.g. sold-to? Regards, Gary
-
Best way to implement particularly Bex query
Hi all, we are on Hana 7.31 and we have a particularly request about Bex. We have a DSO with the monthly income, the key are the ID (User ID) and 0calmonth, as ex ID calmonth income A1 012014 10000 A1 022014 10000 A1 032014
-
[new] Goggles Music Manager
Goggles Music Manager is a music manager and player. Xine/sqlite3 are used as backend, while FOX is used for the gui. Homepage: http://fifthplanet.net/gmm.html # Contributor: Sander Jansen <[email protected]> pkgname=musicmanager pkgver=0.5.2 pkgrel=