on 09-01-2008 1:02 PM
Hi experts,
I have a scenario where I have to dlete all entries of a table before inserting new records.
I tried to put an empty key so that it deletes all the entries of the table, but it does not work.
Is there a way to do that?
Thanks a lot, any help would be appreciated.
Regards,
Jamal
U have to provide a key. Provide such a key for which all the fields get selected or use multiple keys.
U may also use a stored procedure to empty the table.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
you can easily achive this by writing SQL_DML query in the message mapping level...
First use DELETE in 'action' and later use INSERT INTO in 'access'
make sure you have the data type created in this format.
refer the below link for documnet format for JDBC
http://help.sap.com/saphelp_erp2004/helpdata/en/43/98f63def83c452e10000000a114084/frameset.htm
regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
as with u can go with STORED PROCEDUREs, i.e if u want to do multiple action's with the table u neeed to go with the stored procedure concept..
else
u can do like this .. this might be an idea i was not clear about this..
u can set a variable field flag by default as 'S' for all the records and check if the flag is S delete all the records and then insert the data.. i think this throw some idea..
regards
Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.