Delete Multiple Records from Item Master
Hi,
We received wrong master data which has been uploaded and two groups have to be deleted. All the items in those particular groups have also to be deleted. Can anyone suggest how to delete multiple records from Item Master?
Currently I am navigating through each Item and doing a Right Click + Remove. It is very painful given the huge number of records.
Regards
Sudatt
Hi Sudatt.....
I recommend you not to run any kind of delete or update SQL query as it harms DB.
You can create your own front end application with the help of any technical consultant which can be
achieved very easily. Else such problems create a big problem during upgradation to next version.......
Regards,
Rahul
Similar Messages
-
Can not delete record from the master block ,frm-40202 field must be entere
hi ,
i have built a form which contain master and details blocks
the problem is
when i try to delete a record from the master block it gives me new serial for the transaction and when i try to save it, it says
>frm-40202 field must be entered
where this field is required and i cant save it
although in another form when i delete from the master it gives me the previous record and it works properly
if any one has any ideas pls help me
thank u
------- the master block has a trigger when-create-recoder
Declare>v_dummy number;
Begin
Select nvl(max(ERNT_NO),0) + 1 >Into v_dummy
From LM_RENT_EXPNMST >Where cmp_no = :LM_RENT_EXPNMST.cmp_no
And brn_no = :LM_RENT_EXPNMST.brn_no>and fiscal_yr = :LM_RENT_EXPNMST.fiscal_yr;
>:LM_RENT_EXPNMST.ERNT_NO := v_dummy;
END;
IF :PARAMETER.RNT_NO IS NOT NULL THEN
:LM_RENT_EXPNMST.RNT_NO:=:PARAMETER.RNT_NO;
:LM_RENT_EXPNMST.RNT_YR:=:PARAMETER.RNT_YR;
:LM_RENT_EXPNMST.CUST_DESC:=:PARAMETER.RNT_ADESC;
END IF;Edited by: ayadsufyan on May 8, 2013 2:03 PMIf this is a FORMS question you should mark this one ANSWERED and repost your question in the FORMS forum
Forms -
Deleting a record from Master data
Hi all,
I need some help with deleting a record from the master data.I did go to the master dta maintenance screen and selected the record to be deleted. I saved it. I received the message, "master Data record cannot be deleted".
I then went into transaction slg1 to check for the details of the record. A message stating " Master data record XXX is being used in the cube /BIC/Dzzzyyy312.
This record is no longer needed by the end user and was requested to be deleted. Could some one tell me if there is a possibility to delete this unused masterdata record. Your suggestions are appreciated.
Regards!Hi Sumana,
Check this...Similar Post..
MAster data deletion throws a dump
Hope it helps
Srini -
Delete multiple record in tabular with check box.
Hello guys,
I need your suggestion..
I have master detail block. (INSTRUCTOR and SECTION)
At detail block, I add check box item (name: RB_SECTION_ID) with Database Item "No", and value when check :SECTION_ID (on the property).
I make a button DELETE. The trigger was DELETE from SECTION where section_id = :SECTION.RB_SECTION_ID and
instructor_id = :INTRUCTOR.INSTRUCTOR_ID;
but It not work.
How we delete multiple record by check multiple check box then click DELETE button..??
Regard.
Nia..You datablock in the form cannot automaticaly refresh the changes you make with the SQL statements.
For that you need to explicity call certain built-ins to refresh the data
execute_query(no_validate) --> fetches the available data for that session. Here you deleted some records, so those records will not be available until you do a rollback in the same session(i.e, you exit the form without saving). But until you save, those deleted records will be avaiable for the users in other sessions)
Also, your code works only because the records you deleted are all already saved ones.
So it will be a good practice to use built-in of form builder rather than DML stmt.s
Here you can do like this
begin
go_block('TRY_TABLE');
first_record;
loop
if :TRY_TABLE.CCKBOX = 'Y' THEN
delete_record;
END IF;
NEXT_RECORD;
EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
END LOOP;
END;
If your code is like above one, you can revert your deletion by simply giving a F7 (enter-query) and F8 (xecute query). -
Order multiple quantity in item master data
Hello experts,
I cannot import from Excel file new values for order multiple quantity in item master data (in section planning data). After importing I see that records were imported successfully, but all data which we put in past have been changed to zero and planning method is changed from MRP at None. We have 8.81 PL10 (updating at the end of January).
Do you have any similar experience?
Thank you,
jonmar7Dear JonMar7,
I have done this in SAP 8.8.1 PL08 using the Import/Export under utilities and seems to be normal. I have only chosen Item and Order Multiple for my template. -
Urgent: FORMS-III Deleting Multiple Records By Marking X
Deleting Multiple Records By Marking X
In Forms III, i need to delete multiple records by marking X (in non database Item)
i.e.
========================
D Empno Ename Deptno
========================
X 10001 ABC 10
10002 DEF 10
X 10003 GHI 20
X 10004 JKL 20
=======================
How To Do????????????
Rgds,
RashadCreate a button say lable "delete" in a block other than the block from where u want to delete records.
suppose the block's name is emp_blk
now create a WHEN-BUTTON-PRESS trigger for delete button and write the following code
begin
go_block('emp_blk');
first_record;
loop
if :emp_blk.d ='X' then
delete_record;
end if;
if :system.last_record='TRUE' then
exit;
end if;
next_record;
end loop;
end;
filnally commit on save. -
How to Delete Multiple Records using selectbox in jsf
Hi!
My Senario is I want to delete multiple records using checkbox. After selecting multiple records when i click the delete button the selected
rows shuld be deleted.if am doing like this but the edit ,delete for each row functionality is not working.
<h:selectBooleanCheckbox id ="bcb" value="#{item.empno}">
</h:selectBooleanCheckbox>
But other functionality is not wokring.
Can any one plz tell how to select the multiple records and how to send the id to the serverside.
I want code code for jsp and as well as backingBean how to accaess .
Any Reply shuld be apreciatedYou may find this article useful as well: http://balusc.blogspot.com/2006/06/using-datatables.html
Check the chapter "Select multiple rows" for two generic ways to select multiple rows in a datatable. -
hi all,
Can any tell tell me how to delete multiple records in table control of a screen
i have checked the multiple rows in table control attributed and assigned a name.I needhelp in writing code.
Thankshi,
As you have marked multiple fields in the table control your table control is mulple selection enabled.
<b>PROCESS AFTER INPUT.</b>
loop at IT_CONF.
field X_CONF-CHECK
module TC_CONF_mark on request.
endloop.
module TC_CONF_user_command.
MODULE USER_COMMAND_0102.
*this modifies the internal table with check field as X
module tc_conf_mark input.
data: g_tc_conf_wa2 like line of it_conf.
if tc_conf-line_sel_mode = 1.
clear g_tc_conf_wa2.
loop at it_conf into g_tc_conf_wa2
where check = 'X'.
g_tc_conf_wa2-check = ''.
modify it_conf
from g_tc_conf_wa2
transporting check.
endloop.
endif.
modify it_conf
from x_conf
index tc_conf-current_line
transporting check.
endmodule.
module tc_conf_user_command input.
* write code to handle table control scrolling /pageup/pagedown
endmodule
*Check the ok_code
module user_command_0102 input.
case ok_code.
when 'DEL'.
* Delete from internal table where check = X
endcase.
endmodule.
<b>PROCESS BEFORE OUTPUT.</b>
module TC_CONF_change_tc_attr.
loop at IT_CONF
into X_CONF
with control TC_CONF
cursor TC_CONF-current_line.
module TC_CONF_get_lines.
endloop.
module tc_conf_change_tc_attr output.
describe table it_conf lines tc_conf-lines.
endmodule.
module tc_conf_get_lines output.
g_tc_conf_lines = sy-loopc.
endmodule.
Thus you will delete the marked lines from the internal table in PAI and in PBO you can read the refreshed internal table without the table entries that are marked as deleted in the table control and display the same in the table control. This is another way.
Regards,
Richa -
Deleting Multiple Rows From Multiple Tables As an APEX Process
Hi There,
I'm interesting in hearing best practice approaches for deleting multiple rows from multiple tables from a single button click in an APEX application. I'm using 3.0.1.008
On my APEX page I have a Select list displaying all the Payments made and a user can view individual payments by selecting a Payment from the Select List (individual items are displayed below using Text Field (Disabled, saves state) items with a source of Database Column).
A Payment is to be deleted by selecting a custom image (Delete Payments Button) displayed in a Vertical Images List on the same page. The Target is set as the same page and I gave the Request a name of DELETEPAY.
What I tried to implement was creating a Conditional Process On Submit - After Computations and Validations that has a source of a PL/SQL anonymous block as follows:
BEGIN
UPDATE tblDebitNotes d
SET d.Paid = 0
WHERE 1=1
AND d.DebitNoteID = :P7_DEBITNOTEID;
INSERT INTO tblDeletedPayments
( PaymentID,
DebitNoteID,
Amount,
Date_A,
SupplierRef,
Description
VALUES
( :P7_PAYMENTID,
:P7_DEBITNOTEID,
:P7_PAID,
SYSDATE,
:P7_SUPPLIERREF,
:P7_DESCRIPTION
DELETE FROM tblPayments
WHERE 1=1
AND PaymentID = :P7_PAYMENTID;
END;
The Condition Type used was Request = Expression 1 where Expression 1 had a value of DELETEPAY
However this process is not doing anything!! Any insights greatly appreciated.
Many thanks,
Gary....the "button" is using a page level Target,...
I'm not sure what that means. If the target is specified in the definition of a list item, then clicking on the image will simply redirect to that URL. You must cause the page to be submitted instead, perhaps by making the URL a reference to the javaScript doSubmit function that is part of the standard library shipped with Application Express. Take a look at a Standard Tab on a sample application and see how it submits the page using doSubmit() and emulate that.
Scott -
Update multiple records from a list
Just trying to find some tutorials on how to update multiple
records from 1
page of checkboxes
easiest example is hotmail
i would like to be able to give my clients the ability to
delete or update
multiple records from 1 page... mind you that this type of
update woudl only
be for simple status changes, flags that need to be changed
and so on...
Delete... well if they made it to this page they are already
sure and have
been warned that they are going to delete the records..
where can i find such a tutorial on how to complete multiple
record updates
or deletes from 1 form...
thanksServer model and software below.
And hotmail has nothing to do with anything.. its an example
of what i would
like to be able to do...
If you log into hotmail. you have the option to check all the
emails you
want to delete.
well thats what i want to do with my clients sites...
Each record would have its own checkbox, they select the
records they want
to delete or update and they hit submit to process there
request.
Using ASP, SQL2005 and DW8
"bregent" <[email protected]> wrote in
message
news:f21upb$nop$[email protected]..
> >Just trying to find some tutorials on how to update
multiple records from
> >1
>>page of checkboxes
>
> What server model?
>
>>easiest example is hotmail
>
> What does hotmail have to do with this. -
I cannot delete multiple entries from table
Hi
i am trying to delete multiple entries from table while keeping some data.
for example I have the following table
Plant Item
US101 777
US101 888
US101 999
US101 666
I want to keep the rows where the item is 777 and 888 for plant US101 and keep delete the rest data
I wrote the following code
Delete source_package where Plant = 'US101' and Item NE '777' or '888'.
but all the rows get deleted.
I tried deleting single row and it worked.
Delete source_package where Plant = 'US101' and Item NE '777' .
How can I delete multiple rows.
thanksHi Bhat Vaidya,
Plz refer the following code.. IT will solve ur problem..
REPORT ZSDN_TEST.
data: BEGIN OF it_data OCCURS 10,
plant(4),
item_num TYPE string,
END OF it_data.
data: str type string.
data: it_final like it_data OCCURS 10 WITH HEADER LINE.
it_data-plant = 'US01'. it_Data-item_num = 777. append it_data.
it_data-plant = 'US01'. it_Data-item_num = 888. append it_data.
it_data-plant = 'US01'. it_Data-item_num = 999. append it_data.
it_data-plant = 'US01'. it_Data-item_num = 666. append it_data.
delete it_data where plant = 'US01' and item_num ne 777 and item_num ne 888.
LOOP AT it_data.
write:it_data-plant,it_data-item_num.
skip.
ENDLOOP.
Regards,
Apoorv -
Please Help! Deleting multiple record by using checkbox selected
Hello everybody,
I am a new to JSP. I really don't know how to delete multiple record by using checkbox selected and pressing submit button.
For example, deleting webmailbox letters using checkbox selected and delete button. The mail we checked will delete from the inbox.
I like to use my user account deleting system of my project like above example.
How can I do in JSP? I will very please you if you share you knowledge and code for me.
If you have URL address, could you share me for reference?
Please help me...
With Thanks and Regards,
wtdahlTake a look at this thread, I thing it answers your question quite good:
http://forum.java.sun.com/thread.jsp?thread=516658&forum=45&message=2463505 -
Stock Posting List from Item Master Data
Hi,
We just encounter a strange problem. In SAP we could go to an Item record and right click to choose Stock Posting List which will bring out the stock posting report that list all the in and out records for this particular item. The report can be generated shortly.
Over the weekend we enter into a new fiscal year and suddenly the Stock Posting List from item master does not contain any entries from previous fiscal year and it takes very long to show the list.
We could however run the Stock Posting List as normal from Stock Reports which will show all the records.
The problem if the Stocking Posting List from the item master only shows entries in the current fiscal year why suddenly the performance degraded when there is actually less data to be displayed.
Any one encountered such situation as well?
We are on PL44
BR,
JimmyHi Jimmy,
This is the System behaviour in SAP 2007 A. Due to the changes in posting period functionality, it is not possible to choose posting period. That is the reason why if you right click on an Item Master Data, Inventory posting list only for the current year appears. If user wish to see transaction for the other years, he needs to open Inventory Posting List report and set dates in the Selection criteria window.
Regards,
Varun
SAP Business One Forum Team
Edited by: Varun Kumar on Mar 3, 2009 9:36 PM -
Assign all Items from Item Master to a New Inventory Org
Hi Gurus,
Currently we have 1 Item Master Org and 7 Child Orgs in our system. We are adding one more Child Org into our system. How to assign all the Items at once from Item Master to the new Child Org? We have Oracle EBS R12.
Thanks in advance.
KMHello,
In 11.5.10.2 our developer added new organization to items:) I think in R12 you do not have any standard function.
Regards,
Luko
Ps. Look also http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/item-assignment-to-orgs-in-inventory-r12-4688011
Edited by: Luko on 2012-08-20 22:17 -
How to delete multiple rows from ADF table
How to delete multiple rows from ADF table
Hi,
best practices when deleting multiple rows is to do this on the business service, not the view layer for performance reasons. When you selected the rows to delete and press submit, then in a managed bean you access thetable instance (put a reference to a managed bean from the table "binding" property") and call getSeletedRowKeys. In JDeveloper 11g, ADF Faces returns the RowKeySet as a Set of List, where each list conatins the server side row key (e.g. oracle.jbo.Key) if you use ADF BC. Then you create a List (ArrayList) with this keys in it and call a method exposed on the business service (through a method activity in ADF) and pass the list as an argument. On the server side you then access the View Object that holds the data and find the row to delte by the keys in the list
Example 134 here: http://blogs.oracle.com/smuenchadf/examples/#134 provides you with the code
Frank
Maybe you are looking for
-
Hello I got update 23 and when it finished and restarts it cks all my add on's and then its ready to finish updating. but this update the cking for good add ons keeps scanning each time i turn on firefox. so the 1st part of the 2 part scans ok but wh
-
Reg: Creation of Table Types
Hi All, I have a small question regaridng the creation of Table type. Let us suppose I am creating Table type for a custom table zsample which is having 5 fields. I am generally creating a structure similar to custom table and using that structure as
-
How to archive my email to my local mac
Hi All, my email keeps freezing and I thought its better to archive it locally and rebuild it again , any idea how to do it ? thanks Fuad
-
Working with large Avi (DivX) File - PE 2
Hi there I'm trying to use PE2 to edit & generate scene markers in a 1.24GB avi file. The problem I'm having is that frames are very slow to update on the timeline making it very difficult to work with, probably due to the size of the file file & my
-
Using AOL email how do I bring my SMTP password into line with my actual password so I can send email? Thanks.