Double records in BW
Hi Gurus,
I have done full repair load from source to target.which I am doing every month. and after that loading I used to get the exact result in BW.
But this time after loading (full repair) the data I am getting the double records as compare to R/3 report.
R/3 report
material no Qty
100000 2
100030 6
100040 8
110000 5
21
bw report
material no Qty
100000 4
100030 12
100040 16
110000 10
42
where is the issue and how to solve the issue
Regards.....
Hi Saha,
Instead of doing Selective deletion, right click to cube --> Delete Data including dimension Tables
then load the Data
Regards
ReddY A
Similar Messages
-
How to delete the double records connected to one or more than one tables in SQL 2008?
Hi
Can anyone please help me with the SQL query. I Im having a table called People with columns names: personno., lastname, firstname and so on. The personno. is having duplicate records,so all the duplicate records i have written with "double" in
the beginning of the numbers. I tried deleting these double records but they are linked to one or more than one tables. I have to find out, all the tables blocking the deleting of double person. And then create select statements which creates update statements
in order to replace the current id of double person with substitute id. (The personno. is in the form of id's in the database)
ThanksYou should not append "double" in the personno. When we append it will not be able to join or relate to other table. Keep the id as it is and use another field(STATUS) to mark as duplicate. Also we will require another field(PRIMARYID) against
those duplicate rows i.e the main or the primary personno.
SELECT * FROM OtherTable a INNER JOIN
(SELECT personno, status, primaryid FROM PEOPLE WHERE status = 'Duplicate') b
ON a.personno = b.personno
UPDATE OtherTable SET personno = b.primaryid
FROM OtherTable a INNER JOIN
(SELECT personno, status, primaryid FROM PEOPLE WHERE status = 'Duplicate') b
ON a.personno = b.personno
NOTE: Please take backup before applying the query. This is not tested.
Regards, RSingh -
Delete double records by coding in Infoset
Hello,
I join 7 tables in a infoset and get later in my datasource double records. My question:
Is it possible to delete these double records( I need only 1 record) by coding in the infoset? And if so how I can do this? I´m a ABAP novice.
Thanks.
MichaelThanks, for the fast answers. The example is very good, but I still have two questions to it.
1. I have also characteristic values, can I use here MIN and MAX?
2. Only the same records with the same key of "KUNNR" and "BUKRS" should be aggregated, how I can do this? (A small example would be helpful).
Many Thanks.
Michael -
How to resolve double records entry
Hi Gurus
Can any body tell if i will be asked like how do you solve the issues regarding double records?
thanks in advance
muralidear murali,
This discussion has happened lot of times in our forums. some of the links for easy access for you...
duplicate records and Issues regarding double records
duplicate records error?
Re: Duplicate Records in Employee MD
Thanks,
Raj -
Hi expert,
I am getting double record in my infocube.Data is going from DSO to infocube
in dso data is fine but when run DTP from infocube to dso so ,im getting
double record.
Note: DSO is runing one delta(daily)
and one full weekly
pls advice how could be resolve
Regards
WasemHi,
Note: DSO is runing one delta(daily)
and one full weekly
That's why you get duplicates. If you run a daily delta, why do you need a full load every week?
Please explain in details how the loads are performed from DSO to Cube, and also some examples of the duplicates you're seeing in the cube..
Besides, what are the key fields of the DSO?
Regards,
Suhas -
Double Records in Update from DSO to CUBE
Hi,
I have a standard flow of DataSource - DSO - InfoCube - Multi Provider
The data in DSO is correct BUT the data in INFOCUBE is DOUBLED.
Question, could this be due to mis match of Key Fields ?
I only have a subset of DSO Key Fields in my InfoCube.
Could this be the reasonHi,
once the DSO loads the request into infocube with some records.But the DSO wont be allowed to load the same request in second time. it transfer only '0' records.please check the request in Infocube.
if that cube have the double data you can delete data in Infocube after compression based on request Id. we can go for Reverse Posting. We can reverse post the data only when we process the data through PSA.
If u reverse post the data for a compressed request, the data for the compressed request is taken from PSA multiplying with -1 for the key figure values and loaded into the data target.Now the data in the data target is available in F table with negative key figure values.then Compression of Info Cube the data moves from F table to E table and nullifies the data in Infocube for the request ID.
Note: for deleting the zero key fig values by check mark zero elimination option in collapse tab. -
Double record make it to single record in Query for perticular period in BW
Hi
In my ODS some of the records got doubled from Mar 17th to May 31st but from 1st of june its correct , its Open orders, i dont want to reload data again to that ODS , because its Open orders anyways its going to be close after some time , automatically it will become "0".
So i want tocalculate in query itself to make it single
please some one suggest me how can i do for that perticular period divided by 2
for example :
Open Orders (its In ODS)
120
140
20
10
50
I need output should be
60
120
10
5
25
Note : BW 3.1 Version
Thanks,
GAl
12hi,
You can create a a formula variable with replacement path on the Period(replace with key of Posting Date/Calday) and use it for comprision in the fomula like below
if posting date is in between date1 and date2
order value = order value/2.
else
ordervalue = ordervale.
In Bex Query designer you will have the below formula
(posting date formula variable >date1 and posting date formula variable <date2) * (Ordervalue/2) + ordervalue
But also note that when the order is closed the value of order value will net become zero since the value is doubled up in the DSO , when the delta records come into DSO the order will be closed but the value will still not become zero since the reverse image will give negative value of the actual order value.
For example if your order value is 100, in your DSO it will currently show the value is 200(doubled up). In the Delta the reverse value come as -100. So the final value will still be 100(200-100).
So the best solution will be to do selective deletion
Thanks,
Praveen
Edited by: Praveen kumar kamineni on Jun 11, 2010 11:06 AM -
Hi,
I am using 8i version and SQL*Plus 8.1.
When spooling a SQL statement to a file the number of records in
the file is doubled (the statement returns 27800, for example,
while the file contains 55600).
Why? How can I prevent it?
By the way, I am very new to oracle, so please be gentle...
Thanks.Are you using both a semi-colon ';' and a slash '/' to terminate
your SQL statement?
In SQL*Plus a SELECT statement can be terminated with either one.
If you subsequently use a '/', then the statement will be run a
second time.
E.g. do:
select * from dept;
and don't do:
select * from dept;
If this is not your problem, can you confirm that the records are
repeated? Or is each record wrapped over two lines?
- CJ -
Unable to delete double records from internal table
Hi all,
The internal table is like this
begin of ta_itab1 occurs 0,
mark type c,
cnt_hedg type c,
kunnr like vbak-kunnr,
vbeln like vbak-vbeln,
posnr like vbap-posnr,
matnr like vbap-matnr,
kwmeng like vbap-kwmeng,
h_kwmeng like vbap-kwmeng,
spart like vbap-spart,
werks like vbap-werks,
component like bom_item_api01-component,
comp_qty like bom_item_api01-comp_qty,
comp_qty1 like bom_item_api01-comp_qty,
base_quan like stko_api02-base_quan,
comp_unit like bom_item_api01-comp_unit,
base_unit like bom_item_api01-comp_unit,
bukrs_vf like vbak-bukrs_vf,
end of ta_itab1.
and used the sytax:
sort ta_itab6 by kunnr vbeln.
DELETE ADJACENT DUPLICATES FROM ta_itab6 comparing COMP_QTY COMP_QTY1.
but Im unable to delete duplicate record .
Thank You.
anuHi ,
You need to use the fields in sort statement on whichyiu wnat to perform Delete Adjacent duplicates..
sort ta_itab6 by kunnr vbeln COMP_QTY COMP_QTY1.
DELETE ADJACENT DUPLICATES FROM ta_itab6 comparing COMP_QTY COMP_QTY1. -
Remove double records during data upload from one InfoCube to another
Dear Experts
We have transactional financial data available in an InfoCube including cummulated values by period . Some companys have 12 reporting periods (0FISCPER3) and some companys have 16 periods (but all 16 periods are not always filled) . The data must be prepared for a consolidation system which expects only 12 periods. Therefore I bulit up a routine with the following logik:
If period > 12, result = 12, else result = source field.
But as the data target is (must be) an InfoCube the new values with reporting period 12 are not overwritten, but summarised instead. This means the original records with period 12 and the new records - see example:
Records before transformation:
Period Amount
12 100
13 120
Records after transformation in the InfoCube:
Period Amount
12 100
12 120
This would lead to the following aggregation:
Period Amount
12 240
But as the values per period are cummulated, the consolidation system only needs the last period. So there should be only one record left in the InfoCube:
Period Amount
12 120
Is it possible to delete dublicate records or do you have any other idea to to keep only the record with the last period (e.g. period 13) and to assign the value 12?
Thanks a lot in advance for your help!
Regards
MarcoHi,
You have two options here, you can put DSO in between the Datasource and infocube, and load the delta using the change log.
Second is use delete the overlapping request from the infocube, it will delete the previuos requests and load the new request.
Check the below article:
[Automatic Deletion of Similar or Identical Requests from InfoCube after Update|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0431c48-5ba4-2c10-eab6-fc91a5fc2719]
Hope this helps...
Rgs,
Ravikanth -
Hi Experts,
Last week, I encountered an odd case at my customer SBO application that I met for the first time.
Sometimes, when he adds a document as Invoice the document is created but the journal entry is created twice. The both journal entries get a different journal number, however they have the same origin number.
This case was created several times. I wondering what could be the reason for that and how can I solve it.
Thank you in advanceOnly on document such as Incoming Payment, etc where cancelling the payment is an option would there be a possibility that 2 JE were created referencing the same DocNum.
I can't think that this could happen with Invoices.
When you open the Invoice and click on the link next to Journal Remark....which ever JE is points to is the JE which it created.
Please compare all the columns of the JE (JDT1 table) and then get back.
Suda -
Hi,
I'm making a chat program and when users log on it should add their name to a mySQL database (it does that fine) when the user logs off it should delete their name from the database but it doesn't do that, it just adds another name, anyone know why? Here's my code:
code for server/adding names to dbase
import java.net.*;
import java.io.*;
import java.sql.*;
public class ChatServer implements Runnable
static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
static final String DATABASE_URL = "jdbc:mysql://localhost/users?user=mike&password=blitz84";
private Connection conn;
private Statement stat;
int index=-1;
SharedMsg sharedMsg;
Socket socket;
DataInputStream input;
PrintStream output;
String alias="";
boolean running=false;
boolean alive()
return running;
public ChatServer(Socket s,SharedMsg sm,int idx)
index=idx;
sharedMsg=sm;
socket=s;
try
input=new DataInputStream(socket.getInputStream());
output=new PrintStream(socket.getOutputStream(),true);
// output=new DataOutputStream(socket.getOutputStream(),true);
catch(IOException e)
System.out.println("Abnormal chat server socket condition 1:"+e);;
public void run()
try
doLoop();
input.close();
output.close();
socket.close();
catch(IOException e)
System.out.println("Abnormal chat server socket condition 2:"+e);;
public void doLoop() throws IOException
String line=null;
String data=null;
char command='W';
char ind=(char)index; //index of sender of msg
char broad=(char)-1; //goes to everybody
running=true;
while(true)
//loop: reads in msg, write it onto sharedmsg
line=input.readLine();
command=line.charAt(0);
data=line.substring(1);
if(command=='X')
sharedMsg.put(broad+"User: "+data+" Logged Out");
break;
else if(command=='S')
//first msg
alias=data;
sharedMsg.put(broad+"New User Logged: "+alias);
else
sharedMsg.put(ind+"From "+alias+": "+data);
String name = alias;
try
Class.forName(JDBC_DRIVER); //adding names here<<
conn = DriverManager.getConnection(DATABASE_URL);
stat = conn.createStatement();
String query = "insert into connected values('"+name+"')";
stat.executeUpdate(query);
stat.close();
catch(Exception e)
System.out.println("Error at "+e);
e.printStackTrace();
//exiting
running=false;
//new message arrived, send it over the socket
public void newMsg(String msg)
char mitt=msg.charAt(0);
String data=msg.substring(1);
//if(!msg.equals("") && msg!=null)
if(mitt!=(char)index)
//send
output.println(data);
output.flush();
synchronized(System.out)
System.out.print(".\b");
System.out.flush();
This is the code that should delete it when they exit
import java.awt.*;
import java.net.*;
import java.io.*;
import java.sql.*;
public class ChatApplet extends Frame implements Runnable
static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
static final String DATABASE_URL = "jdbc:mysql://localhost/users?user=mike&password=blitz84";
private Connection conn;
private Statement stat;
static String command; //shared resource
Socket socket;
static final int portNumber=1666;
//Thread commReader=null;
DataInputStream input;
PrintStream output;
String alias=null;
boolean logging=true;
TextArea textArea;
TextField comm;
Label status;
public static void main(String[] argv) throws IOException
InetAddress clientAddr;
if(argv.length==0)
clientAddr=InetAddress.getLocalHost();
else
clientAddr=InetAddress.getByName(argv[0]);
System.out.println("Connecting to Chat Server at "+clientAddr);
ChatApplet ca=new ChatApplet(clientAddr);
// ca.show();
Thread t=new Thread(ca);
t.start();
public ChatApplet(InetAddress adx)
super("Chat Client");
//AWT
resize(300,400);
setLayout(new BorderLayout());
textArea=new TextArea(20,20);
textArea.setEditable(false);
comm=new TextField(30);
status=new Label("Please type in alias to Connect..");
add("North",comm);
add("Center",textArea);
add("South",status);
//CommandReader cr=new CommandReader(this);
//commReader=new Thread(cr);
command="xXx";
try
socket=new Socket(adx,portNumber);
input=new DataInputStream(socket.getInputStream());
output=new PrintStream(socket.getOutputStream());
//commReader.start();
catch(IOException e)
status.setText("Abnormal chat client socket condition:"+e);
repaint();
public boolean action(Event e,Object o)
if(e.target==comm)
synchronized(command)
command=comm.getText();
comm.setText("");
return true;
return false;
public boolean handleEvent(Event evt)
if (evt.id == Event.WINDOW_DESTROY)
synchronized(command)
command="exit";
try
Class.forName(JDBC_DRIVER);
conn = DriverManager.getConnection(DATABASE_URL);
stat = conn.createStatement();
String ts = alias;//SHOULD DELETE IT FROM HERE
String ss = "delete from connected where name='"+ts+"'";
stat.executeUpdate(ss);
stat.close();
catch (Exception e)
System.out.println("Error at "+e);
/*if (evt.id == Event.ACTION_EVENT)
String text = textField.getText();
textArea.appendText(text + "\n");
textField.selectAll();
return super.handleEvent(evt);
public void run()
show();
try
doLoop();
input.close();
output.close();
socket.close();
System.exit(0);
catch(IOException e)
status.setText("Abnormal chat client socket condition:"+e);;
repaint();
public void doLoop() throws IOException
String nullString=new String("xXx");
String data=nullString;
while(true)
synchronized(command)
//System.out.println("Leggo synch");
if(!command.equals("xXx"))
data=command;
//reset
command="xXx";
//System.out.println("Leggo e prendo");
} //end synch
if(!data.equals("xXx"))
if(logging)
//il primo messaggio
logging=false;
alias=data;
status.setText("Logging as:"+alias);
repaint();
output.println("S"+alias); //Starting new chat
else
status.setText("Sending msg:"+data);
textArea.appendText(">"+data+"\n");
repaint();
output.println("D"+data); //sending data
if(data.equals("exit"))
status.setText("Exiting Chat...");
repaint();
output.println("X"+alias);
break;
//System.out.println("read socket");
data=input.readLine();
if(!data.equals("xXx"))
//System.out.println(data);
textArea.appendText("<"+data+"\n");
repaint();
data=nullString;If that code is being called, you're probably not deleting because the WHERE clause isn't being satisfied.
If I were you, I'd separate all that database code into a single object, outside the applet, that I could test on the command line until I was sure it was perfect. Then I'd just have the applet instantiate it and call its methods.
Right now you've got too much going on: database, applet, etc. Start getting one piece working at a time. JMO - MOD -
Double data records in the cube.
Hi experts
when we are loading the data from DSO to infocube by using DTP ,
the Problem is its updating double records in the infocube, with same record and the key figure values zero .
in the transformations we don't have any start routine, end routine ..
Please could any tell me how to overcome from this
thanks
kumarHi Fredrik,
not all settings in infopackages work in chains in the same way they do while running the package manually. Mostly you can check that with pressing F1 on the setting. In your case, you need to add a process type for deleting the data to the chain. In your chain maintenance, look at process types and then in load processes .... There you will find the type you need.
kind regards
Siggi -
Values are doubled in analyzer??? why???
I have created this query:
free characteristics: calendar day/sold to party/ material
key figures:billed quantity/billing value
when I run this query in analyzer I get the exact double values than the ones I should get. I mean in R3 the correct values that I check from another report there are halpf, which is the correct. In BW analyzer the values are doubled
Why does this happen???
I also have anotheer problem, I can get values up to 07/2008? the job probably has an error ever since and does not run automatically?? any ideas?? where should I look?(transactions)
Thank youHi,
when I run this query in analyzer I get the exact double values than the ones I should get. I mean in R3 the correct values that I check from another report there are halpf, which is the correct. In BW analyzer the values are doubled
Why does this happen???
--> First check data in infocube, i think data loaded wrongly, hence double records. check for particular material or customer for a month.
I also have anotheer problem, I can get values up to 07/2008? the job probably has an error ever since and does not run automatically?? any ideas?? where should I look?(transactions)
--> Please check your other post
Hope it Helps
Srini -
WHEN RECORDING LIVE I HAVE 2 NOTES PER KEY RECORDED? HOW CAN I STOP THIS?
I'm using Axiom 25 and Motu UltraLite mk3,
When i select an instrument within Logic for example Grand Piano then press record and play the piano live i for instance play c3 once only, then when i stop recording and check the Piano Roll edit mode i will c3 key recording twice in the exact same place, i will then have to individually delete each double recorded note.
Can you please help, Do i have the wrong setting on my Axiom 25 keyboard? Do i need to change something within my Motu Ultralite or do i need to change something within Logic preferences???
Please help guys its soooo annoying
Cheers
James
Message was edited by: jamestaylor1012Right now I am a non-f**king legend, alas... &
And another alas: next time might not be so simple...
Anyway... you're welcome!
regards, Erik.
Message was smilied by: Eriksimon
Maybe you are looking for
-
Solution Manager 4.0 CRM 5.0 (TREX)
Dear SDN This is my first time using SDN and I would like to ask you for help, please. This is urgent! We have Solution Manager 4.0 CRM 5.0 We would like to setup the Solution Database function in CRM Software Agent Framework. What version of TREX ca
-
The JVM library could not be found
Hi there my name is javier and I am having a problem trying to get the PFProColdFusion from Verisign to work on my cold fusion administrator. I follow all the steps and then when I ran the test.cfm file is comming up with the following error message:
-
hi experts, What is the difference between ROUTINE,GLOBAL ROUTINE,START ROUTINE AND TRANSFER ROUTINE. What is the advantages and disadvantages from one to another anbody can explain breafly pl. hepl me in this. thanks & regards vijay
-
Why can't w have the YouTube application in iOS6? Can I downgrade to go back to iOS5?
I upgraded to iOS6 yesterday only to find my favorite app gone! Youtube was dropped in facvor of what? Nothing! Can I downgrade to iOS 5 again, so I can get it back? Editorial comment: Apple need to learn to play with others better.... I went away
-
Indesign Fixed Layout ePub to distribute on Amazon
Do I have to convert the file to KF8 format or mobi? There is no plugin in Indesign CC 2014.1 to do that for Fixed Layout ePubs. What shall I do????