Deletion of Appended searchhelp
Hi Experts,
I got a problem while deleting Appended searchhelp.please help me out with this.
I have appended a serachhelp to the standard searchhelp.when i try to delete the Append serachhelp system is not allowing me delete saying "This is used in SE11 soyoy cannot delete".Can anyone suggest me how to delete an appended searchhelp.
Regards,
Krishna Chaitanya
Hi Krishna,
Just remove the append search help name from the standard search help. Then goto se11 and give the append search help name in the search help option in se11. Then delete the same using the delete buttion from the applicaion tool bar.
Hope, you did in the same way but you forgot to remove it from the standard seach help.
If you did the same and the issue still exists, please let us know.
Regards,
Selva K.
Similar Messages
-
Hi Experts,
I got a problem while deleting Appended searchhelp.please help me out with this.
I have appended a serachhelp to the standard searchhelp.when i try to delete the Append serachhelp system is not allowing me delete saying "This is used in SE11 soyoy cannot delete".Can anyone suggest me how to delete an appended searchhelp.
Regards,
Krishna ChaitanyaHi Krishna,
Just remove the append search help name from the standard search help. Then goto se11 and give the append search help name in the search help option in se11. Then delete the same using the delete buttion from the applicaion tool bar.
Hope, you did in the same way but you forgot to remove it from the standard seach help.
If you did the same and the issue still exists, please let us know.
Regards,
Selva K. -
Delete customs append structure issue
Hi Gurus,
I added a customs append structure with a 'YY' field in one of LO extractr structures.
Now I don't need that field, I need to delete that customs append structure and field from the extract structure. I deleted that 'YY' field but I don't how to delete customs append structure which one I created.
Please advice ?
Thanks
LizaGoto SE11 -> Give append structure name ..should be ZA* and select delete option , This will delete append structrure ref. from extract structure.
Hope it helps.. -
Delete the appended structure of an Extract Structure
Hi All,
I have appended the extract structure of vendor text with additional fields. Now i would like to delete my appended structure along with the fields of my appended structure but i am unable to find the option to delete this. Kindly guide me how to go about it?
Thanks,
P.SHi,
Goto SE11 -> Put append structure name ..should be ZA* .. and select delete option , This will delete append structrure ref. from extract structure.
Hope that helps.
Regards
Mr Kapadia -
How to delete an appended structure
Hi everyone-
I have appended a structure to MC02M_0ITM (2lis_02_itm) and now I want to delete this. Can somebody tell me how can I do this?
Thanks.Hi Punzu,
You need not delete the appended structure, rather just check the "Hide field" column against the field in your datasource(RSA5 or RSA6 in R/3).
This excludes the field in the extraction structure from the data transfer . The field is then no longer available in BW for determining transfer rules and therefore cannot be used for generating transfer structures.
So this accomplishes the task which your are looking for in a wise manner, because if in the future when u require the same field in ur transfer structure u can just uncheck the "Hide field" option and use it.
Hope this helps
Samarasimha -
How to delete the "Appended" custom structure in VBAK?
Hi All,
I have appended a :
structure ZZLAND1
Component: ZZLAND1 (Domain: LAND1).
Now I want to delete the structure that I just appended, so I did:
1. SE11 -> VBAK -> Append Structure Button -> Select ZZLAND1 --> Delete
2. To further ensure that the table is adjusted, I also executed SE14 -> Adjust table
but I have an anonymous error in the DataBaseLog:
Table VBAK could not be activated
(E- Table VBAK (Error adjusting the database) ) [See here the details of dataBase error log|http://www.megaupload.com/?d=TZP3PV9J]
so I did another option,
1. SE11 -> Data Type -> ZZLAND1 --> Delete
2. Execute SE14 again,
And still have the same error.
This thread is close relevant to [Add new field in VBAK|Runtime Error in SE16 after adding fields in VBAK (ABAP-SD);. Now I want to revert back my changes but I cannot now.
Anyone, please enlighten?
ThanksSolution: "I used other laptop" to modify VBAK.
1. SE14
2. SE11>VBAK>Append Structure..
3. Select the structure > Delete
Weird: in my laptop it is always not refreshing. -
How to delete the Append Structure in VBAK Table.
I wrongly appended the structure to the standard VBAK table. Because of this SAP Kernel is get damaged.
So, i cannot able to acces my datasource in R/3 side.
can anyone help me to resolve this problemHi,
Welcome you post on the forum.
However, this forum is for SAP Business One user only. It is not related R/3. Please close your thread and post it on a proper forum.
Thanks,
Gordon -
Delete append of a table with dependend view
Hi there,
I would like to delete an append structure of a table. Therefore I deleted the appended Z structure in SE11.
But I could not activate the table after wards because there is a database view which depends on that table and contains also the appended field. Is there a way to delete this field from the view or regenerate the view without registering the view as a modification?
Thanks in advance,
MartinHi Fisher,
First check the table where used list and check the Include structure fieds are used..
if include structure fields are being used it will not allow you to delete if deleted forcl also the reports go to dump..
when ever you alter the table or adding new field the mainatainance view will not work..
so activate the databse in background --> through menu-->utilities--> data base utilities--> adjust the datase and activate..
regards,
Prabhudas -
hi guru's
is there any way to delete the appended structure? i enhanced a structure by appending it. i want know the way how to delete this append structure. the append structure has a field. it is populated by user exit.i have developer accesskey.
thanks in advance. waiting for reply
regards
anilHi,
Deleting the append structure , you can Delete it directly from SE11 using the APpend structure name.
No need of Access key, Because it is Custoimer name space.
Regards
vijay -
How to delete append in structure of extractor?
Hello
I decided to delete all the fields from append of the structure of extractor. I dont need append at all.
Once I delete all the fields the system generates an error message :
Neither foreign key nor search help maintained for this append
Append has no fields
Can somebod tell me how to delete entire append?
ThanksGo to se 11 ...give your structure name and delete it from there.
Thanks...
Shambhu -
I have appendead a structute to an extract structure but now I want to delete that structure which is appended.Please tell me how to delete an append structure.
Hi Vaishali
Adding to Kishan's inputs, incase the append structure has typical fields like amount remember to <b>adjust the table</b> back via transaction SE14.
Kind Regards
Eswar -
How do I delete cascade with a PL/SQL procedure?
This script will create a PL/SQL procedure that deletes cascade. This is a post to contribute to the Oracle community. Take the code as is and test it before you use it in production. Make sure this is what you want.
Procedure Delete Cascade (prc_delete_cascade)
Description
=============
The principle is very simple. The procedure uses a table called TO_BE_DELETED to keep a list of records to be deleted. This
table keeps the table name and the rowid of those records that need to be deleted. The procedure also uses a function called
DELETE_BOTT_ROW which takes one record of the table and tries to delete it. If the deletion fails with a foreign key constraint
violation, the function parses the SQL error message (SQLERRM) to get the name of the constraint. With the name of the constraint,
the function finds the name of the child table, all the child records that have references to the parent table primary or unique key,
and the parent key primary or unique key column name. Once the child records of the failed delete are identified, the function takes their table name and rowids
and records them into the TO_BE_DELETED table by inserting records of their table name and their rowids. Al the records inserted also contain the level (which
is 1 for the original records, 2 for child records, 3 for granchild records, etc.) and the sequence number of the order in wich they
are recorded. This way, when the function picks up a record to be deleted, it takes the one with the highest level and the highest
inserted sequence, or the "bottom" record. Once all the child records of the failed delete are appended to the TO_BE_DELETED table, it calls itself
recursevely, and the function takes the record at the "bottom" of the table and tries to delete it. If it succeeds, it calls
itself recursevely to delete the next record. If it fails, it goes and finds the child records as described before and once they are
inserted into the TO_BE_DELETED table, it calls itself again recursevely to try to delete again the "bottom" record. All records
that are successfully deleted are flagged as deleted usig the flag_del column so they are not pickt up again. Once all the (parent,
child, grandchild, etc.) records are deleted, the procedure ends without commiting, giving the option to the user to commit or
rollback deletions. The table TO_BE_DELETED is, at the end of the procedure, a list of all the records that were deleted, including their table names
and the order in with they were deleted. The user then can review its content and decide to commit or rollback.
Restrictions
============
1. Single tables only. The procedure only takes one table name and a WHERE clause to identified the records to be deleted.
2. Single columns only. Ther procedure only works with single-column primary, unique and foreign key constraints.
3. Single schema only.
4. Unpredictable results with circular references.
drop table to_be_deleted purge;
create table to_be_deleted
(tname varchar2(30) -- table name
,rid rowid -- rowid
,lvl number -- level: 1=parent, 2=child, 3=grandchild, etc.
,seq_ins number -- sequence order of record inserted
,flg_del char -- flag deleted: Y=record deleted
,seq_del number -- global order of record deletion
set serveroutput on size 1000000
create or replace procedure prc_delete_cascade
(p_tname varchar2 -- table name
,p_where varchar2 -- where clause identifying records to be cascade deleted
is
dummy char;
v_sqlcode number;
v_sqlerrm varchar2(32767);
v_param_val integer := 0;
v_sql varchar2(4000);
v_ret_cde number;
e_bad_params exception;
v_iter number;
v_plvl number;
v_seq_del number;
v_max_iter number := 1000000000;
function delete_bott_row
return number
is
v_sql varchar2(4000);
v_ptname varchar2(30); -- parent table name
v_ppkname varchar2(30); -- parent primary key constraint name
v_ppkcname varchar2(30); -- parnet primary key column name
v_prowid rowid;
v_crowid rowid;
v_ctname varchar2(30); -- child table name
v_cfkname varchar2(30); -- child foreign key constraint name
v_cfkcname varchar2(30); -- child foreign key column name
v_ins number;
v_seq_ins number;
v_sqlerrm varchar2(4000);
v_sqlcode number;
e_const_viol exception;
pragma exception_init(e_const_viol, -2292);
e_max_iter_reached exception;
begin
v_iter := v_iter + 1;
if v_iter >= v_max_iter then
raise e_max_iter_reached;
end if;
dbms_output.put_line('- Iter '||to_char(v_iter));
dbms_output.put_line('----------');
dbms_output.put_line('- Starting function delete_bott_row');
v_sql := 'select tname, rid, lvl, seq_ins from (select * from to_be_deleted where flg_del = ''N'' order by lvl desc, seq_ins desc) where rownum=1';
-- dbms_output.put_line('- SQL: '||v_sql);
execute immediate v_sql into v_ptname, v_prowid, v_plvl, v_seq_ins;
dbms_output.put_line('- Selected row: table name: '||v_ptname||', level: '||v_plvl||', seq: '||v_seq_ins);
v_sql := 'delete from '||v_ptname||' where rowid='''||v_prowid||'''';
dbms_output.put_line('- SQL: '||v_sql);
execute immediate v_sql;
dbms_output.put_line('- Row deleted !!!');
v_ret_cde := 1;
v_seq_del := v_seq_del + 1;
dbms_output.put_line('- Mark the row deleted');
v_sql := 'update to_be_deleted set flg_del = ''Y'', seq_del = '||to_char(v_seq_del)||' where tname='''||v_ptname||''' and rid='''||v_prowid||'''';
-- dbms_output.put_line('- SQL: '||v_sql);
execute immediate v_sql;
-- dbms_output.put_line('- Updated table to_be_deleted, row marked deleted');
-- dbms_output.put_line('- End of iter '||to_char(v_iter));
dbms_output.put_line('----------');
-- call function delete_bott_row recursively
v_ret_cde := delete_bott_row;
return 0;
exception
when no_data_found then
dbms_output.put_line('- Table to_be_deleted is empty, delete cascade has completed successfully.');
v_ret_cde := 0;
return 0;
when e_const_viol then
v_sqlcode := SQLCODE;
v_sqlerrm := SQLERRM;
v_ret_cde := v_sqlcode;
dbms_output.put_line('>Constraint Violation. Record has children');
-- dbms_output.put_line('Error code: '||to_char(v_sqlcode));
v_cfkname := substr(v_sqlerrm,instr(v_sqlerrm,'.')+1,instr(v_sqlerrm,')') - instr(v_sqlerrm,'.')-1);
dbms_output.put_line('>Child FK name: '||v_cfkname);
select table_name, column_name
into v_ctname, v_cfkcname
from user_cons_columns
where constraint_name=v_cfkname;
dbms_output.put_line('>Child table name: '||v_ctname||'. FK column name: '|| v_cfkcname);
select constraint_name, column_name
into v_ppkname, v_ppkcname
from user_cons_columns
where constraint_name = (select r_constraint_name
from user_constraints
where constraint_name=v_cfkname);
dbms_output.put_line('>Parent PK/UK name: '||v_ppkname||'. Parent PK/UK column: '||v_ppkcname);
v_sql := 'insert into to_be_deleted(tname, rid, lvl, seq_ins, flg_del) '||
'select '''||v_ctname||''', rowid, '||to_char(v_plvl+1)||', rownum, ''N'' '||
'from '||v_ctname||' '||
'where '||v_cfkcname||' =any (select '||v_ppkcname||' from '||v_ptname||' where rowid =any (select rid from to_be_deleted where tname = '''||v_ptname||'''))';
-- dbms_output.put_line('- SQL: '||v_sql);
execute immediate v_sql;
select count(*)
into v_ins
from to_be_deleted
where lvl = v_plvl+1
and tname = v_ctname
and flg_del = 'N';
dbms_output.put_line('>Found '||to_char(v_ins)||' child records which were added to table to_be_deleted');
v_ret_cde := delete_bott_row;
return v_ret_cde;
when e_max_iter_reached then
dbms_output.put_line('Maximum iterations reached. Terminating procedure.');
raise;
when others then
raise;
end delete_bott_row;
begin
dbms_output.put_line('Beginning');
dbms_output.put_line('================================');
-- validate p_table
begin
select 'Y'
into dummy
from user_tables
where table_name=upper(p_tname);
exception
when no_data_found then
v_param_val := 1;
dbms_output.put_line('Table '||p_tname||' does not exist.');
raise e_bad_params;
end;
dbms_output.put_line('- Parameter p_tname validated');
-- validate p_where
begin
execute immediate 'select ''Y'' from '||p_tname||' where '||p_where INTO dummy;
exception
when no_data_found then -- where clause returns no records
dbms_output.put_line('Record(s) not found. Check your where clause parameter');
v_param_val := 2;
raise e_bad_params;
when too_many_rows then -- found multiple records means it is ok
null;
when others then -- any other records means where clause has something wrong.
dbms_output.put_line('Where clause is malformed');
v_param_val := 2;
raise e_bad_params;
end;
dbms_output.put_line('- Parameter p_where validated');
if v_param_val > 0 then raise e_bad_params; end if;
v_iter := 0;
v_plvl := 1;
v_seq_del := 0;
v_sql := 'insert into to_be_deleted(tname, rid, lvl, seq_ins, flg_del) select '''||upper(p_tname)||''', rowid, '||to_char(v_plvl)||', rownum, ''N'' from '||p_tname||' where '||p_where;
dbms_output.put_line('- Inserting initial record');
dbms_output.put_line('- SQL: '||v_sql);
execute immediate v_sql;
dbms_output.put_line('- Record(s) inserted');
dbms_output.put_line('- Calling function delete_bott_row to delete last row of table to_be_deleted');
dbms_output.put_line('-----------------------------------');
v_ret_cde := delete_bott_row;
-- dbms_output.put_line('- Back from function delete_bott_row');
-- dbms_output.put_line('Return code: '||to_char(v_ret_cde));
dbms_output.put_line('- End of procedure');
exception
when e_bad_params then
dbms_output.put_line('Bad parameters, exiting.');
end;
show errors
spool prc_delete_cascade.log
-- Call to the procedure
exec prc_delete_cascade('xent','xent_id between 1669 and 1670')
select tname "Table Name", count(*) "Rows deleted"
from to_be_deleted
group by tname;
spool off
set lines 120
select *
from to_be_deleted
order by seq_del;
prompt Now commit or rollaback deletions.
-- commit;
-- rollback;Edited by: Rodolfo4 on Mar 23, 2011 10:45 AMInteresting.
I see a few areas where this could be useful. Elimiating specific test records from a Test DB for example.
Some comments:
<li>Since this is a recursive logic you must add a stop criteria. In this case I would add a max iteration variable. If that one is reached, raise an error message and let the procedure stop with that error.</li>
<li>The when others exception at the end should be removed completely</li>
<li>The when others exception in the middle should be replaced by a specific exception that handles the -2292 error</li>
<li>A list of tables where no record should be deleted could be usefull. If the logic would encounter such a table, it should also stop. This would be to prevent that data from some system critical tables could be deleted per accident.</li>
<li>The reference from the FK constraint to the PK constraint should include the table name and if possible the owner (as long as you use user_* views the owner is always the same. But we could extend this to the ALL_* views). I never met a system where different tables have the identical FK constraint names, however just make this fool proof.</li> -
Deleting a field from itab!!
hi i have a structure with certain fields which i am using for select query...but i dont want this field to get downloaded when i download the required data
the query seem to be like
select tel_number fax_number from adrc into corresponding fields of shipitab where addrnumber eq
shipitab-adrnr
after whihc im appending this as append shipitab.
n want to delete this particular field from shipitab....
tats it..>
anjum ahmed wrote:
>
>
select tel_number fax_number from adrc into corresponding fields of shipitab where addrnumber eq
> shipitab-adrnr
>
anjum,
u are passing the fields to same work area from where u are reading the values in select statement? its not a good practice neither is the use of into corresponding.
and: after selecting (as u r selecting it into a structure) u can just clear the value of adrnr before appending to teh table.
like:
clear: shipitab-adrnr.
append shipitab.
or: if u want to delete after appending to table..
u can loop in the table and clear that variable and modify that record. like:
loop at shipitab.
clear: shipitab-adrnr.
modify shipitab.
endloop.
this will solve ur prob.. but using internal tables with header line is not a good practice as well -
Error while appending structure into BSEG Table
We had appended BSEG table with a ZSTRUCTURE to enable Custom field in MIRO. Subsequently there was a change required in the appended field. After Changing the field there was adjustment required to activate the appended table . However due to slow system performance during that time the Adjustment SE14 timed out. And created inconsistency in BSEG table.
If I Do the Table adjustment now it is showing below error.
We tried to delete the append structure also but the structure is not appearing in the append structure list to delete.
Even if we try deleting the Z structure from se11 it is throwing below error.
Any one could help me out to resolve this..hi Ramesh,
Please First Check if the Database version and disctionary version are in sync.
Also, it could be the case that you would have enhanced an already existing Append stucture. which might be being used in other BKPF dependent tables.
Please check -
JSP, BC4J, Row Tag: what is the best way to delete multiple rows?
Hi all.
I have a JSP Edit page with three datasources on it. The tables these VO's represent (A, B and C) have a Parent --> Child (1:1 between A and B) relationship and then another Parent --> Child (1:n between B and C) relationship. So the user retrieves one row for Table A, 1 matching row for table B and then between 0 and 6 matching rows for Table C (there cannot be more than 6 because the user can only add these rows from a finite list).
In my EditSubmit page, I want to perform a RowTag Update action on Tables A and B and they both work no problem. They can't update any rows from Table C but they can add or delete from the list of 0 - 6 rows (the UI is actually a list of 6 checkboxes that they can turn on or off). I figure that the easiest way to handle this rather than keep a list of original values and compare them is simply to delete all existing rows and then add any that the user checked.
This is causing a problem. I have added a hidden field to the form that picks up the RowKey for each existing row. I can get these RowKeys in the Submit page but cannot find a way of using them with the Delete Row Tag.
In the end, the only way I could get it to work was the following code (which I stole from the RowTag.java file in jbohtmlsrc.zip):
if (stakeMailRowKeys != null) {
for (int counter = 0; counter < stakeMailRowKeys.length; counter++) {
Key stakeMailKey = new Key(stakeMailRowKeys[counter], stakeMailingRS.getViewObject().getKeyAttributeDefs());
stakeMailRows = stakeMailingRS.findByKey(stakeMailKey,1);
stakeMailingRow = stakeMailRows[0];
// Tell the row to delete itself from the database
stakeMailingRow.remove();Is there a simpler way to do this (I figure there probably is)? I have another problem with updating the constrained View Objects but I will leave that out of this thread for now.
TIA,
SimonI don't know if this will help you, but this is what I do:
I separate the logic into a delete.jsp page. If you can create a View Object that will represent the rows you want to delete and append a where clause to select only the rows you want to delete. Then loop through the view deleting each row. Lets just say you have department and employee tables. and you want to delete employees within a given department. Create a view object that brings back all employees.
In your delete.jsp find out the department no. by request.getParameter("dept_id");
then append this to the where clause of your view Object and execute the query:
vo.setWhereClause(request.getParameter("dept_id");
vo.executeQuery;
now loop through and remove the rows:
while(vo.next){
vo.getCurrentRow().remove();
and commit or post changes accordingly.
There are many ways of doing this action. The easiest way I have found is to create the ViewObjects based on what actions you want to take on them. Make bc4j work for you.
regards,
aaron
null
Maybe you are looking for
-
How do I save a file as an unformatted txt file instead of html or rtf?
How do I save a file as an unformatted txt file instead of html or rtf?
-
Black Macbook-2.4ghz HD errors
Hi, i have the last black macbook they made before going to the aluminum body (250gb hd, and x3100 video). Recently when trying to import an MP3 CD i got an error that said attempting to copy to the disk macintosh hd failed could not be read from or
-
Defective earbuds and Apple Product Service
I bought an iPod about 10 days ago and there is already crackling in the right earbud. Has this happened to anyone so quickly? I admit-some of the music gets cranked, but not for an extended amount of time & I don't use the Bass Booster from EQ when
-
Cannot use MAFLogon(iOS native apps) to connect to SMP 3.0 SP05 Server
Hi experts, I have a problem when i try to use MAFLogon to logon/register on my SMP server ( im using iOS native Application). I fill some values, and waiting for login, but it doesnot work. This is my config at MAFLogon UI Screen. This is my applica
-
Hello! I would like to create a script in javascript for Photoshop CC that does the following: 1) Check each layer in the current document 2) If the layer is named "fillMe" then color it in a specific color but lock the transparent pixels (in German