How to delete a Record in Masterdata and its Child Tables
Hi ,
i want to delete a record in masterdata and its childtable .
I am using generalservices.But it gets error "Attempt to read or write protected memory"
If there is another solution to delete records in all child tables.
Edited by: tharunireddy on Aug 13, 2010 3:08 PM
Hi,
There must be something wrong with your code.
Please post it here so we can determine the problem and present a solution.
Regards,
Vítor Vieira
Similar Messages
-
ADF,how to delete parent record and related child record without manual cod
Hi All,
I'm using 11g adf.
I have one parent table PAR and two child table CHD1 , CHD2 respectively.
I'm inserting values in three tables , making a form having add , delete and edit buttons.
Issue when i want to delete a record from PAR table , it gives child table record exists . i have did manual coding to delete the child records with related to the selected parent table PAR.
Is there any process in ADF to delete the child records with respective selected parent record with out manual coding.
thanks in advance.http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcentities.htm#BABHFJFJ
John -
Regarding how to delete the record in internal table
Hi experts ,
how to delete the record in intarnal table after validating the data,
if record contains invalid fields?
i am giving my code see this and give me the answer?
loop at it_data into wa_data .
Validate Cost Center
READ TABLE it_kostl INTO wa_kostl WITH KEY kostl = wa_data-kostl BINARY SEARCH.
IF sy-subrc NE 0.
PERFORM update_error_log USING wa_data
text-004.
ENDIF.
Validate source file material ( material number )
loop at it_mara into wa_mara .
read table it_ausp into wa_ausp with key atwrt = wa_data-i_matnr .
if sy-subrc NE 0 .
PERFORM update_error_log USING wa_data
text-002.
delete it_data-objek .
else.
read table it_mara into wa_mara with key matnr = wa_ausp-objek .
if sy-subrc EQ 0 .
wa_data-objek = wa_mara-matnr.
wa_data-matkl = wa_mara-matkl.
ENDIF.
Modify it_data from wa_data .
endif.
*endloop.
Validate unit of measure (unit)
READ TABLE it_t006 INTO wa_t006 WITH KEY msehi = wa_data-unit .
IF sy-subrc NE 0.
PERFORM update_error_log USING wa_data
text-003.
endif.
Validate delivery location ( storage location )
READ TABLE it_lgort INTO wa_lgort WITH KEY del_loc = wa_data-del_loc.
IF sy-subrc NE 0.
PERFORM update_error_log USING wa_data
text-001.
if wa_data-flag ='x' .
delete it_data from wa_data .
endif.
ENDIF.
endloop.Hi Naren,
First get the index number of the IT_data table and store it in one variable whose declaration like this.
data: tabix type sy-tabix.
while reading the internal table it_data set the tabix variable.
tabix = sy-tabix.
Instead of the above use below one.
Delete it_data-objek
Use the Below statement it will delete the row from the internal table.
Delete it_data-objek index tabix
Thanks,
Chidanand -
How to delete a record in the target?
Hi all,
In my source i'm having three tables which are joined.My source and target is oracle.
I'm using IKM incremental update oracle.For SCD-1.If i delete a record in any of my source tables i cannot able to delete that particular
record in the target table.I tried by doing CDC(simple) to all my source tables.But still i cannot able to delete a record in the target table.
How to resolve this issue? Please help me.
Thanks in advanceOpen your interface, go to the "flow" tab and then, try to set the option "delete_all" to "Yes". Doing it, all records will be deleted in the target table and only the records that still exists at source will be loaded the next time you run the interface.
I hope this will help with your issue.
Regards,
Daniel Hein -
How to delete the record of saved HRA Details...
Hi Experts,
I have put the details of HRA Correctly.But while updating HRA In 0008 Infotype i wrongly updated the wagetype,How should i change the Wagetype.
When i m trying to delete it is showing RECORD CAN NOT BE DELETED (TIME CONSTRAINT 1).
How can delete the record.
Thanking u .
SaiHi
Hope doing well ........ No need to delete any infotype but u can go to PA30 and in change mode their u can delete the wagetype which is wrongly entered
Rajeshk -
How to delete duplicate records in 10 G.
how to delete duplicate records in 10 G.
--Here is one way to do it using a second table
create table temp1
(col1 char(1));
--Table created.
insert into temp1 (col1) values('A');
insert into temp1 (col1) values('B');
insert into temp1 (col1) values('B');
--1 row created.
--1 row created.
--1 row created.
create table temp2 as select distinct * from temp1;
--Table created.
--now you have a second table with no duplicates
--truncate your old table
truncate table temp1;
--Table truncated.
--and reload it with data from the new table
insert into temp1 select * from temp2;
--2 rows created.
--then drop the temp2 table
drop table temp2 -
How to delete a record from BSEG table
Dear Experts,
How to delete a record from BSEG table.
If there possible to delete some records from transparent table ?
Please help.
Regards,
TanHi,
Deleting a record from a standard table can be done only if table maintenance exists - Cehck tcode - SM30. But it is not advisable to delete records, coz the records may be dependent on many other tables. If u delete in a single place, there may be chance that inconsistency in the data happens and hence will affect ur financial statements.
Pls. assign points, if useful
Regards,
Sridevi -
How to delete a record in database it should be effect in XML
In my application wheni insert a record in database it automatically inserted in XML now my problem is when i delete a record in database it should also effect in XML
plz anybody anything knows about this reply meFirst up all, when u insert a record in database, how the data is inserted in xml file. Is there any application written for that?
So when u delete the record from database,and want that same data should be deleted from the xml file, write a application to delete data from xml, and call that when u delete record from database.
U can Write application using DocumentBuilderFactory.
And using XQuery, you can delete data from xml.
Hope this will help u.
.....yogesh -
How to delete developer's SAP UserID and his SSCR key on SMP?
How to delete developer's SAP UserID and his SSCR key on SMP?
Dear Experts,
Background:
I want to delete developer's SAP UserID and SSCR key in QAS and SMP.
Because as I known, developer's SAP UserID(registered SSCR key) is belonging to the SAP License measurement.
I want to rid of the useless developer's SAP userID and the SSCR key registered on SMP.
====================Here below is the message I created===================
Dear Expert,
One of our developers whom registered SSCR key left, I want to delete
his SAP UserID and his SSCR key.Can you pls tell me how to implement?
What might have happened(expecially the downside) in the corresponding
SAP Client if I delete the developer's SAP UserID and SSCR key? Will
it cause our system screw up?
I've searched the answer on SDN. Someone told me I should carry out the
follow steps below:
(1)Delete the Developer's SSCR key on Service Market Place(SMP).
(2)Cancel all the Jobs defined by the Developer in DEV.
(3)SU01, Replace the value 'Developer' with Blank at the 'LicenceData'
lable.
(4)Delte corresponding item of the Developer in 'DEVACCESS' table.
(5)Lock/Delete the Developer.
Is that right?
Thanks!
Jason
====================Here below is the reply from SAP===================
Dear Customer,
When the SSCR Developer/Object keys are transfered to the system, the
keys are stored in the following tables:
o DEVACCESS : Developer keys
o ADIRACCESS: Object keys
But we do not have any report programs to delete the entries from these
tables. If the customer wants to delete the entries, he has to write a
local program to delete the table entries.
SAP does not recommend ever cleaning out these developer keys, as long
as the user ID is Locked / Deleted, that is the main thing.
please Cancel all the Jobs defined by the Developer in DEV.
So my recommendation to you is to first lock the user id of the user.
Then Assign him a new userid which is not identical to the first one andthen subsequently delete the old userid.
If you have an absolute need to delete a developer key without deleting
a user then the easiest way to do this is probably to
write a report with the instruction :
delete from DEVACCESS where UNAME = ....
Please note :
There is no recording, who did what in the table, that is why SAP strong-ly does not recommend this, and customers will have to take responsibil-ity for this action.
Thanks
====================My question is:===================
Do you have any better suggestions?Hi,Rahul,Raghunandan
Thank you very much!
Her below were the SAP Support's main suggestions:
1. Lock the user id of the user, then Assign him a new userid which is not identical to the first one and then subsequently delete the old userid.
2. If you have an absolute need to delete a developer key without deleting a user then the easiest way to do this is probably to write a report.
I want to know if I can delete the SSCR key directly via a particular TX? If I can, what is it? (I just want to know. For safety, I think I won't delete the SSCR key directly remained in 'DEVACCESS'.)
Thanks!
Jason -
HT5858 HOW TO DELETE A RECORDING on i phone
how to delete a recording on iphone5c
Assuming you mean from the Voice Memo app... with the list of recordings showing, swipe right to left on the recording and tap the red Delete button.
-
how do I delete photo ALBUMS from my iPHONE 4?
I sync via icloud and I can not see any folders selected in itunes.
I searched the internet and basically there is no one who has the answer (so far)
to how you delete the iphone photo library and misc albums
I have also had every iphone and I am not stupid.
charles altmanReplying to my own post - heh. I downloaded iExplorer (http://www.macroplant.com/iexplorer/) which allowed me access to the files on the phone and there was the phantom movie in the DCIM folder. Deleted it, and all is well - although I still have 0.65gb of Other in iTunes.....
-
I recently downloaded Ios 7 and all the songs that i have purchased before, but deleted off my itunes because i didn't want them, showed up. I don't know how to delete them off my ipod and i really don't want them there. Is there a way to get them off? The songs dont show up in my itunes on my computer, just on my ipod with a download button next to them. I don't want them there anymore because i don't like that kind of music anymore and i don't know how to get them to go away.
There is a similar setting for Videos on that Settings screen, so if you leave that 'on' you may have similar happening in the Videos app
-
How to delete older version of itunes and installed the new version? When I try to install the new version (update) a message popup. " The feature you are trying to use is on a network resourse that is unavailable". Please can someone help? Thanks!
Which particular .msi file is the message going on to say can't be found? (Several different msi files can be mentioned in this context: itunes.msi, bonjour.msi, AppleSoftwareUpdate.msi, etc.)
-
How to send multiple records in file2file and file2db or all scenarios//
I'm able to send single record for file2file and file2db,
how to send multiple records in file2file and file2db or all scenarios//
what should add or make changes for dis.1 put Occurance 1 to Unbounded in data type of IR
2 In the test tag of message mappings in IR,select one node and use "duplicate subtree" in its context menu
After that,you can download the test data in XML format with the button "save document source"
for example:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:ZFileDemo xmlns:ns0="http://hand-china.com/mm/po_01">
- <Item>
<ItemNo>1</ItemNo>
<Matnr>2</Matnr>
<Text>3</Text>
</Item>
- <Item>
<ItemNo>4</ItemNo>
<Matnr>5</Matnr>
<Text>6</Text>
</Item>
</ns0:ZFileDemo> -
How to delete a record in custom form
Hi,
I got a requirement,
If a form has 'n' records with start & end dates, such that start date of new record should be last record end date + 1.
Now if the user tries to delete a record between first and last record, it should allow him to delete but when he tries to save it should not allow.
Only way he can delete is either he can create a new record with the same dates or he can adjust remaining record dates such that startdate of new record should be last record end date + 1.
I'm running out of ideas, any suggestion is appreciated.Hi
it should allow him to delete but when he tries to save it should not allow.Play with the KEY-COMMIT Trigger Which is the Best i can see to STOP or PROCESS any Validations during the saving process according to the conditions u specify using...
RAISE FORM_TRIGGER_FAILURE;Prevents the user from Saving in KEY-COMMIT Trigger it's the yellow-black Floppy Disk u use for saving records in the Form's Tool Bar..
Hope this helps...
Regards,
Amatu Allah
Maybe you are looking for
-
HD Upgrade in MacBook Pro (Early 2008 Model) Recommendations?
Hello, I have a MacBook Pro (Early 2008 Model), with Snow Leopard 10.6.6 installed (will probably upgrade to Lion when it's released and stable). I want to upgrade the 200gb drive to something over 500gb. The two drives I am currently interested in a
-
I am learning to use Dragon dictate 2.5 and recently matched with iPhone. When I go to vocabulary training as it processes the document it takes very long and freezes with a multi-coloured circular ball. I cannot exit or force quit most of the time.
-
Hello all, I have created a java applet, the size of the applet itself, along with the swing GUI components were designed using 96 DPI fonts (system default). When viewing the applet on a machine that is set to font size of 120 DPI, the GUI layout is
-
Hi I want to use batch input to clear field in vl02n(dleivery),when the batch input is called from sproxy(XI) there is mix in the screens and he oesn't find the field in the batch input screen and therfore doesn't clear the field. When i copy the bat
-
I installed Flex Builder 2.01 successfully in Vista. When I went to run a simple mxml file I got a message telling me "There is no disk in the drive. Please insert a disk in the drive". I can run it from the html file however. Has anyone else run int