Advanced Table in Table - Error on Deleting the master record
Dear All,
I have a custom EmployeesVO and a ReimbursementsVO.
EmployeesVO is the master and ReimbursementsVO is the child.
They are based on EO which are linked by entity association. The VOs are linked by a viewlink (which is inturn based on the Association)
I have created an advanced table-in-table, where EmployeesVO is the master, and in the detail, I have the reimbursementsVO.
Both inner and outer table have a "Select and Delete Row" functionality. This works fine on the Inner table (Reimbursements).
However on the outer table for Employees, I have two options
1. In the Employees EO , select the "Implement Cascade Delete"
2. In the Employees VORowImpl, create a "Remove" method, iterate through the child rows using view link accessor, delete the child rows first and then call super.remove method. to delete the employee row itself.
In both cases, I get an error saying "error forming SQl statement...Invalid column type" or "Unable to create java.lang.Object". On debugging, I see that it has no issues deleting the child rows and that goes through fine, but when the master row is deleted - :(
Will be grateful if anyone can provide any advise on this.
Thanks !
From MetaLink it looks like bug# 2433386
Not yet resolved.
Similar Messages
-
Attribute change run fails - "Error when deleting the data record /B05/X.."
Hello,
I get the error message "Error when deleting the data record /B05/X.." on doing the change run.
I have already done RSRV on this objects and found no errors, but still the activation fails.
please give your suggestions ASAP to fix the issue as it is on production system.
Thanks.Attribute change run could fails due to 2 reasons-
(1) attribute xchange run is already runnnig for any toher object(monitor lock) (check by thi prog-RSDDS_CHANGERUN_MONITOR)
(2) data is loading deleting from the object on which attribut changerun is running.(go in a manage tab and check)
check this two conditions and rerun the attribute changrun again from program - RSDDS_AGGREGATES_MAINTAIN and give the master data name in the selection.
Hope it helps you. -
Error while deleting the Master data
Hi Friends,
i am getting the below error while deleting the data from a master data:-
The system is unable to delete all of the specified master data,because some of it is still in use. (See log:Object RSDMD, sub-object MD_DEL )
Do you want to delete the data records that are no longer in use?
Could you guide how should i proceed to delete the data.
Regards,
HirdeshHi Hirdesh,
If you are using master data in someother data targets u cant delete master data.So first you have to delete the data in data targets where this particual master data object is used, then remove the data in master data object.
Regards
Prasad -
How to delete the master records when corresponding details records exist.
What is the SQL statement to delete the records of master when the corresponding detail records are present.
Note: No Cascade clause was used at the time of creation of referential integrity constraint.
"M"- Master Table
"D"- Detail Table
I used, "Delete from M cascade". This statement is not working.
Your favour in this will be deeply appreciated.
Cheers
PremChinHi folk,
i appreciate your suggestion,
my crux of the situation is to know whether there is a way to make it without disabling,removing or modifying the referential integrity constraint.
If so, modifying, please help me out how to modify the constraint in order to remove the master records keeping detail records in-tact.
Cheers
Premz -
Hi gurus,
i want to upload the new master records into my system regarding the MM. first thing i want to delete the old records in the system and freshly want to load into the system. please give me the soluion how to do it.
it is a development server..
thanks in advance..
ravii want to upload the new master records into my system regarding the MM. first thing i want to delete the old records in the system and freshly want to load into the system. please give me the soluion how to do it.
>
> it is a development server..
When uploading the new master records, just assign the previous numbers used by the old master records and the new upload will overwrite those old records. In this case deleting/overwriting the old records.
If you dont assign the new upload any numbers, it will append below the exisiting records, that way not deleting the old records. -
DELETE THE MATCHED RECORDS IN DB2 TABLE
DELETE THE MATCHED RECORDS IN DB2 TABLE
sql server table sqlserver_emp(c1,c2,c3,4)
records:1 2 3 4
DB2 table db2_emp(c1 key,c2,c3,c4)
records:1 2 5 6 7 8
Both tables having same structure
Matched records : 1 2
1.Delete the matched records in db2 table : 1 2 (without using truncate option for DB2 in Anywhere)
2.Finally Load all records in sql server(Because duplicate records in db2 already removed so no duplicates occured)
3.NEED final OUTPUT AS:db2 table: 5 6 7 8 1 2 3 4
Note:
1.DB2 truncate doesn't used
2.STARING AREA: ORACLE
3.SQLSERVER AND DB2 CLOSED ENVIRONMENT DOESN'T USED AS STAGING AREA.
HOW MANY INTERFACES AND PROCEDURES SHOULD BE CREATE? WHAT ARE THEY?
HOW TO REACH MY REQUIREMNT?
Answer provider is more appricatable.
Thanks in advance.
Edited by: krishna on Nov 9, 2011 8:40 PM1st option
See in this scenario you can use two interface and one procedure step.
1st interface-->poricedure-->2nd interface
1st interface will bring data to oracle staging-->then procedure will delete matched record from target using keys--->3rd interface will simple insert the the data in oracle staging.
2nd option
Insted of deleting the target matched records, you just update target matched record with latest records in your staging oracle.You can use IKM Merge
Thanks -
How to delete the duplicate records in a table without promary key
I have a table that contains around 1 million records and there is no promary key or auto number coulums. I need to delete the duplicate records from this table. what is the simple effective way to do this.
Please see this link:
Remove duplicate records ...
sqldevelop.wordpress.com -
Delete the parent records and child table records at a time
hi all;
I am facing the pbm like to delete the all records in child table and corresponding records in parent table at a time. so I want to delete the all the records in child table and corresponding parent records in parent table by using single SQL query. plz help me
Thanks in advanceYou want to use one single SQL statement to delete the child records in a table and the corresponding master records in the master table??
That's not quite possible with a single SQL, of course unless you are talking about Oracle Forms, where you have a relation and set the delete behavior to Cascading, like said in the above posts.
Tony -
How to delete the matching records from two internal tables
Hi ,
I have two internal tables say A and B of the same type. If A has 10 records and B has 4 records , I want to delete the 4 records in B from A .
loop at B into wa .
delete A where key = wa - key .
endloop.
takes a long time if the table B is huge. how can I improve the performance.
Thanks.
GayathriHi Gayathri,
You could try field-symbols. It reduces the data transfer from the internal table B to the work area.
field-symbols <fs_itab_b> like line of B.
loop at B assigning <fs_itab_b>.
delete A where key = <fs_itab_b>?-key.
endloop.
Regards,
<a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=zwcc%2fwm4ups%3d">anand Mandalika</a>. -
After folling the instructions to clear a -50 error and deleted the .tmp file, I now am getting a -120 error. I can't find instructions to clear this...What next?
Hello jimlcoff,
I found a couple of articles with steps you can take when you are not able to connect to the iTunes Store. I recommend reviewing the following articles:
Can't connect to the iTunes Store
http://support.apple.com/kb/TS1368
iTunes: Advanced iTunes Store troubleshooting
http://support.apple.com/kb/TS3297
Thank you for using Apple Support Communities.
Best,
Sheila M. -
Error While deleting the Profit Center
Hi I am getting the below error while deleting the Profit center. Please help me how to fix this issue...
Profit center Scenario was activated in New GL Accounting
what configurations do i need to change to fix this error? Kindly advise me..
Thanks
KishoreDear,
while deleting the profit center we have to requrie follow the steps
1) OBR1 - Reset Transaction data
2)OBR2 - Reset the master data
3)OKKS - Set Controlling Area
4)OKC3 - Delete Transcation Data
5) KL14 - Delete Activity Types
6)OKE5 - Profit center De - Active
7)OKE1 - Profit center Transcation data delete
8)OKE2 - profit center delete
if if you follow above steps easily we can make the delete the profitcenter and we donot have to activate profitcenter
i hope solve you r problem
With regards /G chandu -
Error while deleting the agreement
Hi,
I am facing the following error while deleting the agreement.
There was an error deleting agreement.
Error -: AIP-16015: Delete of Internal Delivery Channel Usage failed with error: Cannot delete Internal Delivery Channel Usage which is referenced by Participant Delivery Channel
Error -: AIP-16011: Cannot delete Internal Delivery Channel Usage which is referenced by Participant Delivery Channel
We are getting the same error while deleting the individual TP participants from the agreement.
I don't have any agreements deployed on the B2B.
Can you please let me know the reason for this error?
Regard,
Ravi ShahPlease refer B2B Error:- AIP-16015 and AIP-16016 when deleting a TP Agreement
-
"Error: An error occured deleting the import map"
Hello,
When trying to delete imported data, I get the following message :
Error: An error occured deleting the import map
Detail: Data access error
And the imported data aren't deleted.
The loaded file has around 350000 rows for 12 dimensions.
I never succeeded to load it in one time, only in 3 times with 3 files. It was a first issue.
And I want now to delete the import to do it again and I can't, due to the error.
Thanks
Patrick
PS : FDM version 11.1.1.3.01
Log :
** Begin FDM Runtime Error Log Entry [2013-04-03-08:49:22] **
ERROR:
Code............................................. -2147217900
Description...................................... ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDOTBS1'
DELETE FROM tDataSeg3 WHERE ((PartitionKey) = 749) AND (TO_CHAR(PeriodKey,N'YYYYMMDD') Between N'20111231' And N'20111231') AND ((CatKey) = 12)
Procedure........................................ clsDataManipulation.fExecuteDML
Component........................................ upsWDataWindowDM
Version.......................................... 1111
Thread........................................... 4956
IDENTIFICATION:
User............................................. ollivierp
Computer Name.................................... EPM05
App Name......................................... FDM_MCHII
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB.ORACLE
Data Server......................................
Database Name.................................... poh1
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... HPMCHII
Location ID...................................... 749
Location Seg..................................... 3
Category......................................... COMPTE
Category ID...................................... 12
Period........................................... Dec - 2011
Period ID........................................ 31/12/2011
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... False
Is Auditor....................................... False
** Begin FDM Runtime Error Log Entry [2013-04-03-08:49:22] **
ERROR:
Code............................................. -2147217900
Description...................................... Data access error.
Procedure........................................ clsImpProcessMgr.fClearData
Component........................................ upsWObjectsDM
Version.......................................... 1111
Thread........................................... 4956
IDENTIFICATION:
User............................................. ollivierp
Computer Name.................................... EPM05
App Name......................................... FDM_MCHII
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB.ORACLE
Data Server......................................
Database Name.................................... poh1
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... HPMCHII
Location ID...................................... 749
Location Seg..................................... 3
Category......................................... COMPTE
Category ID...................................... 12
Period........................................... Dec - 2011
Period ID........................................ 31/12/2011
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... False
Is Auditor....................................... False
Edited by: user1104274 on 3 avr. 2013 00:10The quota on the tablespace 'UNDOTBS1' needs to be extended to allow for the tablespace to grow. Right now it has met it's maximum quota.
-
How to Delete the condition record in CRM
HI,
Can you please help me how to delete the condition record from condition table in CRM.
Please explain the usage of FM CRMXIF_CONDITION_SEL_DELETE with examples.
I have also read the documention of the function module. How to use this FM for custom defined condition table.
(this is the code given in Documentation)
DATA-OBJECT_REPRESENTATION = 'E'
DATA-SEL_OPT-CT_APPLICATION = 'CRM'
DATA-SEL_OPT-OBJECT_TASK = 'D'
DATA-SEL_OPT-RANGE-FIELDNAME = 'PRODUCT_ID'
DATA-SEL_OPT-RANGE-R_SIGN = 'I' (Including)
DATA-SEL_OPT-RANGE-R_OPTION = 'EQ'
DATA-SEL_OPT-RANGE-R_VALUE_LOW = 'PROD_1'
Thanks
ShankarHi Shankar,
I am using the same CRMXIF_CONDITION_SEL_DELETE function module to delete condition record present in CRM.
But it is giving me below error in the return table of the FM after i run the program. Can you please correct me if I am doing any thing wrong?
Error in lt_return: SMW3 CND_MAST_SEL_DEL_EXT_VALIDATE CND_M_SD
code:
ls_range-fieldname = 'PRODUCT_ID''.
ls_range-R_SIGN = 'I'.
ls_range-R_OPTION = 'EQ'.
ls_range-R_VALUE_LOW = '123456'.
APPEND ls_range TO lt_range.
MOVE lt_range TO ls_entry-SEL_OPT-range.
ls_data-SEL_OPT-object_task = 'D'.
ls_data-SEL_OPT-ct_application = 'CRM'.
ls_data-object_representation = 'E'.
CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
EXPORTING
DATA = ls_date
IMPORTING
RETURN = lt_return
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
IMPORTING
return = lt_ret.
Edited by: Saravanaprasad Nadar on Jul 7, 2010 1:27 AM -
hi all,
based on the thread i got the list of child tables.
Re: to find the tables which is having link with particular table.
no i have doubt in deletion process.
My ultimate aim is to delete the bl_det records.
let me explain with ex.
i have table
BL_DET --parent table with comp and ref as primary key
which is having child rec.
BL_CON --child of BL_DET(comp,ref) primary key comp,ref and serial
BL_CON_PCK --is child of BL_CON(comp,ref,serial) primary key comp,ref,serial,pck_gp_srl,gp_srl.
DELETE BL_CON_PCK
WHERE BCK_COMP = :GLOBAL.comp
AND BCK_REF = :parameter;
DELETE FROM BL_CON
WHERE BCR_COMP = :GLOBAL.comp
AND BCR_REF = :paramter
DELETE FROM BL_DET
WHERE BL_COMP = :GLOBAL.comp
AND BL_REF - :parameterwill delete the correct set of records.(my doubt area is delete statement written for the table BL_CON_PCK).
Please tell me if i am wrong.
Thanks..(my doubt area is delete statement written for the table BL_CON_PCK).Cannot understand your doubt. What is your doubt, are you getting any error while executing your code?
To delete a record from parent table all child references must be deleted. So your delete statement appears right
-- How delete should progress
BL_CON_PCK >> BL_CON >> BL_DET
{code}
If you have created foreign constraint using ON DELETE CASCADE or ON DELETE SET NULL then you can straight away delete from parent table and all child references are deleted/set as null respectively. Read Oracle Documentation to see details
Short demonstration
{code:sql}
SQL> CREATE TABLE A(a1 NUMBER PRIMARY KEY , a2 NUMBER);
Table created
SQL> CREATE TABLE B(b1 NUMBER PRIMARY KEY , a1 NUMBER);
Table created
SQL> CREATE TABLE C(c1 NUMBER, b1 NUMBER);
Table created
SQL> ALTER TABLE B ADD CONSTRAINT FK_B FOREIGN KEY (a1) REFERENCES A ON DELETE CASCADE;
Table altered
SQL> ALTER TABLE C ADD CONSTRAINT FK_C FOREIGN KEY (b1) REFERENCES B ON DELETE CASCADE;
Table altered
SQL> INSERT INTO A VALUES (1,2);
1 row inserted
SQL> INSERT INTO B VALUES (3,1);
1 row inserted
SQL> INSERT INTO C VALUES (4,3);
1 row inserted
SQL> SELECT * FROM A;
A1 A2
1 2
SQL> SELECT * FROM B;
B1 A1
3 1
SQL> SELECT * FROM C;
C1 B1
4 3
SQL> DELETE FROM A WHERE A1=1;
1 row deleted
SQL> SELECT * FROM A;
A1 A2
SQL> SELECT * FROM B;
B1 A1
SQL> SELECT * FROM C;
C1 B1
{code}
Maybe you are looking for
-
My computer freezes on the HP logo screen can someone help me fix? (details inside)
ok so i wiped my Drive clean because it had some nasty malware on it. i had some stuff backed up on a different drive which i installed an operating system on. after i wiped the first drive clean and tried to boot up the system it wouldnt boot anymor
-
Bandwidth Issues on 1.5 ghz PB
Hey, lately i've been notiving some internet issues with my PowerBook. When i try to do an audio chat in iChat, it says "Connecting" then shows "Insufficient Bandwidth". I can do this on my FW800 PowerMac, and the two computers both connect to the in
-
I am adapting the Flash Form Real Estate tutorial and I am real close to getting everything working. Upon inserting a new listing it puts it in the MS SQL correctly but adds a blank row in the grid. If you refresh it shows up correctly. The only diff
-
How to put an image in Webdynpro
HI, I want to piut a logo in Webdynpro view.I have put the image(logo) in proper place.But I am not able to fetch the data from that folder in to my WD view. pLease suggest Regards -Sandip
-
I need to change my default print settings to black and white. I've changed it in the print dialog box to grayscale, but when I print coupons, that box doesn't come up; it just automatically prints in color. My Dell desktop let me change the default