Hierarchy Problem ( Duplicates records Problem)
Gurus-
I'm having a problem with cost center Hierarchy ,
my problem is if a person is the head of cost center , he can manage 4 to 5 Cost center, I configured in bw Ex: Mr X as a Text Node
Under him is all the Cost center Character under the tedxt node .
But when I'm running my query , I'm getting every thing getting Duplicate Values...One for the MR X & Other for the Cost Center Character
Report out put:
1, MR X (Which is a Text Node) cost center 1001, emp id 100.....
and othe value for Cost center 1001, emp id 100
2 , MR Y Cost center 2001 , emp id 2000
and othe value for Cost center 2001 , emp id 2000
How should i eliminate the Duplicates .Please, help me out....
if thats the case, then the values arent duplicating, it is just the structure ur business wants to display. As MR.X is both the text node as well as the char value. thats the reason they seem to duplicate, but actually they are not. If observe, the totals would be different for both the node and value. As the node would be having mutiple values beneath it .. meaning mr.y and mr.z can aslo be under X.
If this is the case, I dont think there is a way to supress the nodes of hierarchy if the IO has hierarcy set in the properties to display.
Similar Messages
-
Hi everyone,
I'm having a a little difficulty resolving a problem with a repeating field causing duplication of data in a report I'm working on, and was hoping someone on here can suggest something to help!
My report is designed to detail library issues during a particular period, categorised by the language of the item issued. My problem is that on the sql database that out library management system uses, it is possible for an item to have more than one language listed against it (some books will be in more than one language). When I list the loan records excluding the language data field, I get a list of distinct loan records. Bringing the language data into the report causes the loan record to repeat for each language associated with it, so if a book is both in English and French, it will cause the loan record to appear like this:
LOAN RECORD NO. LANGUAGE CODE
123456 ENG
123456 FRE
So, although the loan only occurred once I have two instances of it in my report.
I am only interested in the language that appears first and I can exclude duplicated records from the report page. I can also count only the distinct records to get an accurate overall total. My problem is that when I group the loan records by language code (I really need to do this as there are millions of loan records held in the database) the distinct count stops being a solution, as when placed at this group level it only excludes duplicates in the respective group level it's placed in. So my report would display something like this:
ENG 1
FRE 1
A distinct count of the whole report would give the correct total of 1, but a cumulative total of the figures calculated at the language code group level would total 2, and be incorrect. I've encountered similar results when using Running Totals evaluating on a formula that excludes repeated loan record no.s from the count, but again when I group on the language code this goes out of the window.
I need to find a way of grouping the loan records by language with a total count of loan records alongside each grouping that accurately reflects how many loans of that language took place.
Is this possible using a calculation formula when there are repeating fields, or do I need to find a way of merging the repeating language fields into one field so that the report would appear like:
LOAN RECORD LANGUAGE CODE
123456 ENG, FRE
Any suggestions would be greatly appreciated, as aside from this repeating language data there are quite a few other repeating database fields on the system that it would be nice to report on!
Thanks!if you create a group by loan
then create a group by language
place the values in the group(loan id in the loan header)
you should only see the loan id 1x.
place the language in the language group you should only see that one time
a group header returns the 1st value of a unique id....
then in order to calculate avoiding the duplicates
use manual running totals
create a set for each summary you want- make sure each set has a different variable name
MANUAL RUNNING TOTALS
RESET
The reset formula is placed in a group header report header to reset the summary to zero for each unique record it groups by.
whileprintingrecords;
Numbervar X := 0;
CALCULATION
The calculation is placed adjacent to the field or formula that is being calculated.
(if there are duplicate values; create a group on the field that is being calculated on. If there are not duplicate records, the detail section is used.
whileprintingrecords;
Numbervar X := x + ; ( or formula)
DISPLAY
The display is the sum of what is being calculated. This is placed in a group, page or report footer. (generally placed in the group footer of the group header where the reset is placed.)
whileprintingrecords;
Numbervar X;
X -
Hi gurus
We created a text datasource in R/3 and replicated it into BW 7.0
An infopackage (loading to PSA) and DataTransferProcess was created and included in a process chain.
The job failed because of duplicate records.
We now discovered that the setting of the u201CDelivery of Duplicate recordsu201D for this Datasource in BW is set to u201CUndefinedu201D
When creating the datasource in R/3, there were no settings for the u201CDelivery of duplicate recordsu201D.
In BW, Iu2019ve tried to change the settings of u201CDelivery of Duplicate data recordsu201D to NONE, but when I go into change-mode, the u201CDelivery of duplicateu201D is not changeable.
Does anyone have any suggestion on how to solve this problem?
Thanks,
@nne ThereseHi Muraly,
I do have the same issue. I am loading texts from R/3 to PSA using Infopackage with Full update. From PSA I am using DTP with Delta with the option" vaild records update, No reporting(Request Record).
It was running fine for last few weeks like transfer records and added records are same as in the PSA request every day.
suddenly the load has filed to infoobect . I deleted the request from Infoobject and reloaded using the DTP then again failed. I tried loading full update as it texts then again failed. Now I analised the error it says Duplicate records. So I changed the DTP by checking the option Handling Duplicate records and loaded with full update . It worked fine the transferred records more than 50000 and added records are exact no of the PSA request.
I reset the DTP again back to Delta and loaded today but the transferred records are 14000 and added records(3000) same as PSA request. I am fine if you see the history of loads the no of records in Transfer and Added in infoobjects and the no of records in PSA request are same every day..
Why this difference is now? But in Production I have no issues. Since I changed the DTP if I transport to Production does it make any difference. I am first time doing BI 7.0.
Please suggest me and explain me if I am wrong.
Thanks,
Sudha.. -
Crystal Report Nested Grouping Problem, Duplicate record
Post Author: paltapas4
CA Forum: General
Hi,
I am facing problem while creating 2 individual groups in Crystal report 10.0 .
My first group is Quarter & 2nd one is Department. When I created 2nd group it comes automatically under 1st group i.e Quarter, that why departments are duplicating under quarter. But I want to create 2 individual group.
Present Report output
1st Group u2013 2008 Quarter1
2nd Group u2013 Test1 department
2nd Group u2013 Test2 department
2nd Group u2013 Test3 department
2nd Group u2013 Test4 department
1st Group u2013 2008 Quarter2
2nd Group u2013 Test1 department
2nd Group u2013 Test2 department
2nd Group u2013 Test3 department
2nd Group u2013 Test4 department
1st Group u2013 2008 Quarter3
2nd Group u2013 Test1 department
2nd Group u2013 Test2 department
2nd Group u2013 Test3 department
2nd Group u2013 Test4 department
1st Group u2013 2008 Quarter4
2nd Group u2013 Test1 department
2nd Group u2013 Test2 department
2nd Group u2013 Test3 department
2nd Group u2013 Test4 department
Report output expected
1st Group u2013 2008 Quarter1
1st Group u2013 2008 Quarter2
1st Group u2013 2008 Quarter3
1st Group u2013 2008 Quarter4
2nd Group u2013 Test1 department
2nd Group u2013 Test2 department
2nd Group u2013 Test3 department
2nd Group u2013 Test4 department
Please help me out. Thanks in advance.
Regards,
TapasPost Author: sharonmtowler
CA Forum: General
you created 1 group for the qtr, and then you created a group for department. if you place the department in the group header it should only return the 1st value it hits, and supress the duplication. is that what you did? -
Problem with duplicates record
I have created an SAP_DataMart Fixed Query in SAP MII but I am getting duplicates records.
Also, in my parameters settings I have - PARAM.20 - 20140601 and PARAM.21 - 20140615 for dates
Yet, I have the dates only displaying for 20140601 to 20140608?
Please see attached part of a screenshot.
Thank you.Hi Amr,
It probably looks like an issue with the query itself. I suggest you verify the query by executing it directly in the source data system e.g in SAP using SQ01 and see if you get the same results.
If yes, then it is a query join issue.
Regards,
Saumya Govil -
Problem with duplicate records..
Hi..I am trying to insert the records to the database based on a button click from a Swing frame..I have succeeded in that...But when i try to insert a duplicate record it is showing com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '1' for key 1
My code is
import java.awt.event.*;
import java.sql.*;
public class BarcodeReader extends javax.swing.JFrame implements ActionListener {
static Connection con;
static String url = "jdbc:mysql://localhost:3306/";
static String db = "mynewdatabase";
static String driver = "com.mysql.jdbc.Driver";
static String user = "uname";
static String pass = "pwd";
static Statement stmt;
/** Creates new form BarcodeReader */
public BarcodeReader() {
initComponents();
nb.addActionListener(this);
public static Connection getConnection(){
try{
Class.forName(driver);
con = DriverManager.getConnection(url + db, user, pass);
stmt=con.createStatement();
System.out.println("jdbc driver for mysql : " + driver);
System.out.println("Connection url : " + url + db);
}catch (Exception ex)
ex.printStackTrace();
return con;
private void ActionPerformed(java.awt.event.ActionEvent evt) {
Connection con=getConnection();
String t=newtxt.getText();
int t1=Integer.parseInt(t);
try{
PreparedStatement p=con.prepareStatement("INSERT INTO machine(barcode) values(?)");
ResultSet rs=stmt.executeQuery("SELECT * FROM MACHINE");
while(rs.next()){
String s=rs.getString("barcode");
if(s.equals(t))
System.out.println("this id exists....");
rs.last();
p.setInt(1, t1);
p.executeUpdate();
new NewJFrame().setVisible(true);
}catch(Exception e){
e.printStackTrace();
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new BarcodeReader().setVisible(true);
}When i insert a new record is ok, but when i am inserting the same record again it shows the following exception..
jdbc driver for mysql : com.mysql.jdbc.Driver
Connection url : jdbc:mysql://localhost:3306/mynewdatabase
this id exists....
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '1' for key 1
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3536)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3468)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1957)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2107)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2648)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2086)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2371)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2289)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2274)
at project.BarcodeReader.ActionPerformed(BarcodeReader.java:276)
at project.BarcodeReader.access$000(BarcodeReader.java:17)
at project.BarcodeReader$1.actionPerformed(BarcodeReader.java:138)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)Thanks.shelton141 wrote:
Hi..I am trying to insert the records to the database based on a button click from a Swing frame..I have succeeded in that...But when i try to insert a duplicate record it is showing com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '1' for key 1Of course it is. That is what it is suppossed to do.
Try inserting the same record twice, manually, and see what happens.
There is however, if I remember right, an "IGNORE" "clause/option/whatever" that you can use on INSERT statements in MySQL. Check the manual, if that is what you really want. -
Battery problem while recording videos.
I got my ipod touch 5 1 month ago. I got a problem while recording videos. The battery was around 40 percent, but after I recorded a video for about 1-2 minutes. The 20% was popup, then it turned off automatically. While I turn on it, the battery will be about 30 percent. It happened several times. Is this normal?
Does anyone have the same problem?
Thanks!Hi,
Please refer the below link...
http://www.sapfans.com/forums/viewtopic.php?f=27&t=20842
Kuber -
hi folks,
i'm having problem recording from tv. whenever i start recording, my screen turns to black & white. the device settings switches from PAL B to SECAM. i'm using anthena connection from a cenralized cable connection. I'm here right now in Saudi Arabia, Riyadh. we are using here PAL signal. can anyone tell me what to do and what is causing this problem. regarding recording from VCR no prolems. thanks!The problem is probably caused by a bad or outdated frequency table ...
Try changing your country code to one with Pal-B (Germany). -
Recording problem on my Xi-Fi Fatality?
'Recording problem on my Xi-Fi Fatality?d So I have a Xi-Fi Fatality, and I would like to be able to record directly from my computer so that it's own output is also the input. For example, if I'm on ventrillo or something and I want to play a funny mp3 to show my friends I'd like to be able for the audio to come directly from the output.
Anyways, my microphone seems to work fine, and that's where the trouble begins.
I go to the sound control panel and click on the recording tab. ? It has microphone as the default device and it says "working."
There are also options for "Auxillary" "Line-In" "Digital-In" and "What U Hear"
However, under each of them it says "currently unavailable"
I am unable to get any of them to function even when I set them to the default device.
Is this normal?+ It's funny you should post this because I came here right now to post the exact same thing. I would have posted earlier but I forgot my account information and had to wait to get a reply email.
So... same here (yes I know this was no help).
Actually this is kind of weird. Every now and then my "Aux 2" will become available and my mic is not. I have to restart my computer 4 or 5 times for my mic to become available. -
Stereo Audio Record problem (While recording video as well)
Hi,
I just just bought Sony Xperia C3 dual yesterday. I'm having problem with audio recording. I installed the Sony audio recorder from Google play store but while recording in stereo mode with it the gain suddenly drops after 1/2 second(s). Same problem while recording a video with stock camera app as well, video quality is fine but the audio with it is,just worst. Tried third party app like regorge pro but faced the same problem. Tried disabling the AGC with it, but no good. Recording in mono mode just works fine and I get clear record.
Any solution?
Thanks.@uliwooly This one i recorded today morning. The audio starts good & clear at the begining but just after one second it drops & then you can hear the bus engine sounds like waterfall. Here is the youtube link https://www.youtube.com/watch?v=5H1jNxyYMlw Here's another video uploaded by a review site with the same problem https://www.youtube.com/watch?v=z3vKwydfN6U & more from youtube https://www.youtube.com/watch?v=-GLLj2ommP4 then i used a third party audio recorder with mic switch option https://www.youtube.com/watch?v=D6d4uAEZFRE as usual with the rear mic the gain suddenly drops after second & you can hear some weird sounds like a "movie bomb" sound at 00:04, "rattle snake" sound at 00:05 & 00:12 & with the front mic starts at 00:17 you can hear the difference. It's mono but so clear & sharp. Finally, as i dont have the mic swith option while recording video, all videos i record will have the same problem. This is definitely not the typical "sony" thing to carry on.
-
Anyone know if the long standing duplicate files problem with File History has been fixed yet?
There are loads of public threads about the duplicate files problem
with Windows 8/8.1 File History backup system.
From all the threads I've looked at, there seems to be no solution,
and no acknowledgement from MS that they can even repro the problem
(which surprises me considerably as there are so many people who
notice the problem).
Is anyone aware of whether MS (may) have fixed this for Win10?
Are MS aware of the problem and if they're able to fix it?
Dave - with many GB of duplicated files in File History :)Hmm, is that the attitude MS would recommend? :)
Why would I care what Microsoft would recommend?
Clearly you don't, and you appear to have missed my smiley. Calm down
Noel, many of us are as annoyed by aspects of modern Windows as you
are. :)
I'm all about making Windows actually WORK/./
Aren't we all? Windows is software I use too many hours every day, I
along with many millions of others need it to work really well. You
are not alone.
When they implement something that doesn't work, and even if it did work doesn't do what's needed - and/beyond that/ they remove features people DO need (such as the GUI for Windows Backup), I see no wrong in advising people of the way things
really are.
File History essentially does work - it's saved me a couple of times
in the past couple of weeks. It just has a highly annoying habit of
creating 100% duplicates of some files for no apparent reason. If MS
have fixed that I won't have any known complaints about it.
If you don't like it, you don't have to use it. I generally like it, I
just want to see that its fixed.
Dave -
I'm having a problem while recording a video
'm having a problem while recording a video
When the memory card and the highest quality ..
Stop and is working
I recorded video works normally on the memory card.Nokia C5-00 5MP
-
Duplicate records in hierarchy
In R/3 we can create a set with duplicate values in different nodes, but the same hierarchy cant be loaded into BI due to the duplicate records.
Is there a way i can load the hierarchy with duplicate values?
I dont want to supress the duplicate values. I want the hierarchy with all the duplicate nodes.
Is there a way around?
Any insight or work around would be appreciated?
thanks,
VoodiThats not an option in my case. Its not time dependent.
-
I am using Win7, with CS6, Realtek soundcard and Samson C03U microphone.
There is a problem that's really been bothering me. When I record songs the recorded audio always comes 0.1 seconds after where it's supposed to be and I need to fix the problem every time. How to fix the delay problem while recording? I can't set the Latency to zero. The minimum is 30ms and I still get an obvious delay.
I saw some previous discussions saying that installing ASIO would help. Is it gonna work on my PC?
Thank you in advance guys.You probably should look at a more 'serious' audio interface rather than the Realtek
Yes ASIO drivers are the way to go
If you want zero latency you need to monitor via your audio hardware (hence the 'serious' audio interface suggestion)
There are a heap of reasonable audio interfaces which will do the job for you that are pretty inexpensive and I'm sure that someone will jump in with a suggestion -
Re: Problem in recording VF02 billing transaction
Hi all,
I am having a problem in recording the VFO2 for the processing of Despatch details in third screen Header Texts.
How to write the BDC code for uploading data for this TCODE VF02.particularly with header texts.....
Thanks in Advance
RaviHi
Check this function module : <b>GN_INVOICE_CREATE</b>
<b>CALL FUNCTION 'GN_INVOICE_CREATE'
EXPORTING
DELIVERY_DATE = DELIVERY_DATE
INVOICE_DATE = INVOICE_DATE
INVOICE_TYPE = 'ZFX'
PRICING_DATE = PRICING_DATE
VBSK_I = X_VBSK
WITH_POSTING = 'D'
ID_NO_ENQUEUE = 'X'
TABLES
XKOMFK = IT_KOMFK
XKOMFKGN = IT_KOMFKGN
XKOMFKKO = IT_KOMFKKO
XKOMFKTX = IT_KOMFKTX
XKOMV = IT_KOMV
XTHEAD = IT_HEAD
XVBFS = IT_VBFS
XVBPA = IT_VBPA
XVBRK = IT_VBRK
XVBRP = IT_VBRP
XVBSS = IT_VBSS
SUCCESS_DOC_OUT = IT_SUCCESS.</b>
Or you can use BAPI :- <b>BAPI_BILLINGDOC_CREATEMULTIPLE</b>
<b>CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
EXPORTING
CREATORDATAIN = GS_CREATORDATAIN
TESTRUN = co_x
POSTING = co_x
TABLES
BILLINGDATAIN = GT_BILLINGDATAIN
CONDITIONDATAIN = GT_CONDITIONDATAIN
CCARDDATAIN =
TEXTDATAIN =
ERRORS =
RETURN = GT_RETURN
SUCCESS = GT_SUCCESS.</b>
regards,
Hiren Patel
Don't forget to Reward points
Maybe you are looking for
-
I have a cfform which contains a cfgrid and prior to the 9 to 10 update, upon submission of the cfform, the selected row of the grid was passed/posted to my form action page as: __CFGRID__gridForm__renewalGrid This contained all the data from the sel
-
Hi Friends, I have simple req'. i have one date filed in OAF page...if user has change the date filed..means if he incresed by 2 days..then i need to call one procedure..if not no need to call.... first am picking that date field to by uusing prepare
-
Use multivalue parameter in "in" clause.
Hi expert, I pass a status string 'OPEN;CLOSED;REOPEN' into procedure, and in the procedure I converted it into variable v_status in format 'OPEN','CLOSED','REOPEN', then used it in the procedure as follows: select * from table where status in v_stat
-
How can I iMessage from iPhone to iMac or iPad with same apple ID?
Hello! I have an iPhone, iMac, and iPad with the same apple ID. How can I message between them with out having a duplicate message from "me" showing up on all my devices at once. Is it possible to iMessage between two devices with the same apple ID?
-
How to remove the big delays on adobe photoshop cc
I recently moove my photoshop cs6 to cc and I suffered from big delays. Often struggles and my photoshop manipulations are not taken into account while it struggles. This is very problematic. For example, I often select multiple layers using a Shift