Query result shows the same data twice

Hello All,
I've created UDFs like Supplier Name, Supplier Address, and (Excise Details like)Supplier ECC No,
Supplier Range.
And I've created Query for Supplier Name and Supplier Address, and I assigned to FMS, Its working Correctly.
I've created Query for Supplier ECC No. the Query is,
SELECT  T0.[ECCNo],T1.[CardName]
FROM CRD7 T0  INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
WHERE T0.[ECCNo]  Like  '[%]'
I saved the Query, and assigned to FMS.
At this stage (i.e. Query for Supplier ECC No.) the above Query showing the same data twice.
Please suggest to rectify the problem.
Thanks,
Pratheeviraj

You can get rid of the duplicates by changing the query to
SELECT DISTINCT T0.ECCNo,T1.CardName
FROM CRD7 T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
WHERE T0.ECCNo Like '[%]'
But it is always worth understanding why you are getting multiple records to check that you are getting back what you want.  I think you may be seeing this because CRD7 can have multiple records for a business partner - maybe one for each of 'pay-to' and 'ship-to' address?

Similar Messages

  • Sub Report in Table, always showing the same data

    I created a main report with data from a dataset. The DataSet has a column: @Region_ID. The Main Report is Page-Grouped by this @Region_ID and shows a tablix with some datarows foreach region. 
    I now want to include a subreport into the table and pass the parameter @region_ID to the subreport, which also calls a procedure including the passed @region_ID. I set the @region_ID-Parameter to "always refresh"
    I added a textbox on the subreport to display the values which has been passed to the subreport. 
    I now have a multipage report, with a page for every region. The subreport displays various @region_ids in the textbox, but the data for the subreport itsself, shows the same data on every page. It seems like it has called the procedure only once, with the
    first @region_id, and now displays this data on every page, allthough it does not match.
    Any suggestions what I did wrong?

    Hi tkrasinger,
    According to your description, you have the issues on displaying the parameter in subreport. It only shows the first value of the parameters. Right?
    In Reporting Services, when we execute a procedure with parameter, this procedure will only be executed one time. This is the reason why it shows the same value in your subreport.
    In this scenario, we can just right click on the textbox of region_id, go to
    Texobox Properties -> Action -> Go to report. Select the subreport, add the region_id as parameter in
    Use these parameters to run the Report. When you click on the textbox, the region_id will be passed to the subreport. So that the value will be displayed dynamically in the subreport. 
    Reference:
    Add a Subreport and Parameters (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Results showing the same output for any query execution

    Guru's
    Whenever user selects  query in RSRT --> and click on java view it is prompting for user ID and password. After giving the login credentials, the out put remains the same for any query query as input. Please let me know how can we fix this? THis is occuring for only one user. Even I tried copying the user to a new user. THe new user is not facing this problem.
    Regards,
    Suresh

    try clearing the portal cache then try it. ask somebody else to log in and try it, could be authorization.

  • Lookout WebClient Not Showing the Same data as on Server

    Dear All,
    I want to acquired/view the same process data on the lookout web client computer as i have develped on the Server, I completed the following steps.
    Server Machine Steps.
    1. I created the Lookout process on the development machine.
    2. I created the LKWebClient on the C Drive root  e.g C:\LKWebClient
    3. I configured the web Directory as        c:\lkwebclient\
    4. The Server URL was       http://server/llkwebclient/
    5. I exported WebServer Files.
    Note:  I saved the process file process1.l4p in the root directory of lookout    e.g C:\program files\National Instruments\Lookout 5.0\
     as it was suggested by lookout process.
    Client Machine Steps.
    1. I went to Internet Explorer
    2. I type the following     //server/LKWebClient\Process1.htm
    3. It is showing me the same Panel which i have created on the server computer
    than what is problem???
    When i change the value of contorl (Bush Button, Pot ), it is not reflecting on my Client Computer.
    How i can view the changes on my Client Computer.

    Which process do you compare with the web client process?
    You should firts create a client process which connects to the server process. Then compile it into web client process. When you run the .htm file, you will see the client process in IE, and you should also run the server process in Lookout at the same time. The web client process connects to the server process directly.
    If you run the client process in Lookout, does it work fine? Assume you use symbolic link in client process, take care the URL of the symbolic link, it should be absolute path.
    Ryan Shi
    National Instruments

  • Turn a string that shows hex data in normal format, into a string that shows the same data in hex format

    I have a string of arbitrary length - say, 1AB1C0 - in normal format. I would like to have a function which takes that string in, and outputs the same exact characters, but in hex format. So the input will read 1AB1C0 in normal string format, and the output will read 1AB1C0 in hex string format.
    I am doing this because I have found the end device works better if I send the bytes as a hex string vs. as an array of U8. Furthermore, I manipulate a lot of byte streams in my program, and I find the string parsing tools less cumbersome to use vs. the byte array parsing tools - however, they only work on the strings as they appear in normal mode. So I have reasons in different parts of my program to have the string in normal vs. hex formats; but I cannot figure out any remotely elegant way to cast from one to the other.
    Solved!
    Go to Solution.

    CraigRem wrote:
    So the input will read 1AB1C0 in normal string format, and the output will read 1AB1C0 in hex string format.
    Well, you need to scan the hex formatted string two bytes at a time to an U8 numeric and then cast it back to a string. There are many ways to do that, here are two possibilities. (Mkae sure to use the correct representations as labeled).
    (I still don't quite understand your reasoning why you need this).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    NormalToHex1.png ‏12 KB

  • If my iphone, ipad, MAC and macbook pro are all linked, and then I upgrade only my phone to iOS 7.0, does that have an effect on my calendar, etc.  It doesn't seem to be showing the same data it was before the update.  Lost lot of info from calendar.

    If my iphone, ipad, MAC and macbook pro are all linked, and then I upgrade only my ipone to IOS 7.0, does that have an effect on the linking to my other MAC products.  It seems my calendar has lost a lot of information since the upgrade.

    If you purchased Lion for your iMac, just log into the Mac App Store from your MacBook using the Apple ID under which you purchased Lion and go to the Purchases page. You will be able to download and install Lion there. 
    searching the internet i found a link to upgrtade to 10.7
    The only place you get get Lion is from the Mac App Store. If you found some other site, that was an illegal copy and almost certainly tied to someone else's Apple ID and hence unusable by you. If the link was just to the Mac App Store, see above.
    As to the problem with synchronization to iCloud, that's not a 10.6 question, so I'd suggest you take up that specific issue in either the Lion or iCloud forums, providing full details, and someone there can probably help you sort things out.
    Regards.

  • Showing the same band name twice in arist list in music.

    On my ipod touch in the artist section of music it will show the same band twice. I have restored he ipod touch and got rid of the albums from the band and put them back on but it will still list the same band name twice.
    Any way to fix this??

    I noticed in artist info it listed the band's name twice and i corrected but its still messed. up whats goin on is when i got to the list of artist in my ipod touch it will list them twice each one showing the three albums i got from them. i dont know ill look into it further. but keep the advice comin.

  • How to display the same data simultaneously on both a graph and a table.

    I am a beginner.
    I would like to display a reference line(?) on dvt:graph
    whenever a row is selected on the related af:table.
    I would like to show the same data,
    simultaneously on both a graph and a table.
    Is it possible?
    I hope for a good hint. ^-^...

    Hi,
    yes. It depends on how the reference line is getting its data. If e.g you can use EL to bind it to ADF bindings then attribute bindings for attributes of the iterator that also renders the table are enough to get the current selection.
    If this is not possible you can follow http://thepeninsulasedge.com/frank_nimphius/2007/07/02/adf-faces-rc-programmatically-executing-a-button-method-using-javascript/ and create a selection listener for the table to programmatically manipulate the graph
    Frank

  • Why have all my emails now got the same date in Mail?

    All incoming and outgoing emails show the same date in the list of mailboxes and the "sort by" columns. The date is 01/05/2012. How can I change this to show the "real" dates? This has only happened in the past 2 weeks.
    I'm no able the start a discussion in the Mail community, so I hope this is the appropriate alternative.
    Thank you very much.

    Go to Settings/Messages/Receive at/ and disable the mail address or phone number for the device that your sister is using.
    Also have a look here: iMessage on iPad and iPhone Explained and De-Mystified

  • Different results for the same query and same data !  (oracle 9i)

    Hi,
    This is a mystery for me. I've got on my database exactly the same data that my customer (exported schema). We both launch the same query (generated by the software that we sold him). This query has a criteria IN (SELECT MAX()...) to get only data from the last year.
    The query gives 477 rows on my computer (correct answer), but no row on his! We have the same data! The only difference is the Oracle release : 9.2.0.6.0 for him, 9.2.0.1.0 for me.
    If he executes the subquery alone, it gives the expected result.
    If he replaces the MAX() in the subquery by the returned value (year 2016), he gets his 477 rows.
    I've rewritten the query with a NOT EXISTS, and now all is fine. (Less efficient but it works).
    I have no rational explication. Did I miss something ?
    Thanks for any answer.
    This is the query:
    SELECT ...
    FROM
    CRA, GRA, ...
    WHERE
    /* subselect */
    (CRA.COLLCOD, CRA.CRANEXE, CRA.CRANCODBUD, CRA.GRANNUM, CRA.CRANCOD1, CRA.CRANCOD2, CRA.CRANCOD3, CRA.CRANCOD4)
    IN (
    SELECT b.COLLCOD, MAX(cranexe), b.CRANCODBUD, b.GRANNUM, b.CRANCOD1, b.CRANCOD2, b.CRANCOD3, b.CRANCOD4
    FROM CRA b
    GROUP BY b.COLLCOD, b.CRANCODBUD, b.GRANNUM, b.CRANCOD1, b.CRANCOD2, b.CRANCOD3, b.CRANCOD4
    AND... /* other filters and joins */

    v9.2.0.1 was full of bugs. a lot of these bugs had to do with "incorrect results", typically associated with old stats or complex queries (certain types of subqueries were very likely to give wrong resutls, due to the way they were rewritten by the optimizer).
    apply the 9.2.0.6 patch set

  • Multiple reads of the same data from Multiprovider by Query (Bex)

    Hello, guys!
    We're having issue with performance of a query built on Multiprivider. During our investigation, we've found out that within one run of a Query, it several times refers to InfoProvider for the same data (see image attached).
    Do you have ideas what can be a reason for multiply reads of the same data from Multipvovider?

    Hello Nikita,
    By "copy of a query" i meant something like this as shown below :
    *Kindly click on the screenshot for a better view.
    1) See the highlighted portions below in the screenshot . See Query 2 highlighted and name of the BEx query highlighted.
    2) See the highlighted portions . See Query 3 highlighted and name of the BEx query highlighted.
    As you can see from the above screenshots i have used the same BEx query 2 times by the name of Query 2 & Query 3 . Infact i have not attached the complete screenhsot . In that i have used it 6 times.
    I have to analyze this a bit in detail but what i am guessing is that when this WEBi is called the single BEx is also called multiple times. And hence it hits the Info Provider multiple times resulting in a decreased performance.
    But this does not mean that this is wrong approach. There are various areas where you can improve for example :
    1) Either improve your BEx query if possible or use aggregates or something like that .
    2) Use the  Query stripping setting in WEBi so that unused dimensions and measures are not pulled resulting in an improved performance. It's switched on by default.
    Thanks!!
    Regards,
    Ashutosh Singh

  • BAM Combo Chart showing data in 2 graphics for the same data object

    Hi all,
    I’m trying to show 2 views of the same data object in a Combo Chart (e.g. orders created today as a bar chart and orders created yesterday as line chart grouping by hour of day). It was pretty easy adding the same data object twice but the data type of the horizontal axis seems to be lost and it gets sorted as a simple string, leading to strange grouping of the hours with 05:00 representing 5 AM sided with 05:00 representing 5 PM. Also, I’m not able to format such fields using the format values tab.
    Is using the same data object two times in the same report an unsupported scenario?
    Thanks,
    Daniel

    why you want to add the same data object twice? Your use case can be achieved with single data object only.
    1) Create combo chart and select the data object.
    2) On "Choose data fields" page group by datetime field.
    3) You will see UI changed to 3 sections - left one with "Group by" section, middle with "Chart values" and right one with "Time Groups".
    4) In the right "Time Group" section, uncheck checkbox for continuous time series. Time Unit as hour, quantity as 1.
    5) In middle "Chart values" section ,select the fields that you want to display as chart values and respective chart types , in your case orders created today as a bar chart and orders created yesterday as line chart.
    5) Click Next and Finish.
    6) Then you can go to Value format tab, and change the format for the datetime field as timeunit and required format.

  • Creation of a Query to show the values for the current month and the last 12 months data.

    Dear All,
    Good day!
    I have to create a Query with the below requirement.
    I have to create a Query to show the values for the current month and the last 12 months data.
    Can you please guide me how to achieve this ??
    thank you,
    Regards,
    Hema

    Hema
    explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
    you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
    for some more hints..
    http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
    http://scn.sap.com/thread/3217381
    search on SDN you will get many other ways..
    Thanks,
    Bhupesh

  • My old emails and documents are not showing up in email or finder both from the same date and I cannot find them anywhere. I do not believe I have any archive settings on. Any idea how I get them to show up?

    my old emails and documents are not showing up in email or finder both from the same date and I cannot find them anywhere. I do not believe I have any archive settings on. Any idea how I get them to show up?

    Hello gpbondi,
    The following article provdies step-by-step instructions for downloading your purchases both in iTunes and on your devices.
    Download past purchases
    http://support.apple.com/kb/HT2519
    Cheers,
    Allen

  • How can I get iCal not to show the same birthday dates from my iCloud

    How can I get iCal not to show the same birthday dates from my iCloud?

    You don't need them stored locally for a backup. You can manually export your contacts as archive for backup. Also, if you are backing up with Time Machine, you already have a backup. If your hard drive crashed, you would have to rely on your backup or iCloud anyway.
    So, if you're comfortable with that, sign out of iCloud. Choose to delete contacts from the computer. When you sign back into iCloud, you should only have iCloud contacts listed in AB. When you open iCal, you should only have one listing for birthdays.
    The other alternative is to disable the Birthday c.alendar and create one manually.

Maybe you are looking for

  • Problem in XI Receiver

    Hi Guys, Im using  SAP XI version 7...im just a beginner using XI.. In runtime workbench...the comm channel for sender and receiver is correctly configured and started but in status its has an error. This is the actual path of my comm channel. *file

  • Windows application design methods?

    New to Java I'm having the same problems as others... totally incomprehensible behaviours and jargon. I need to get Windows application made.   Is there a graphical, drag&drop  layout tool in which I can place 'controls' such as buttons, panels, tool

  • Concatenate name in select query...

    Hi Pals, I was wondering how to directly concetenate client name in the select query itself... Currently the code says : SELECT SINGLE NAME1 NAME2            INTO (V_NAME1,V_NAME2)            FROM KNA1            WHERE KUNNR = I_PROJ-ZZCLIENT. CONCAT

  • GroupWise Mobility Service 2.0 now available

    We're pleased to announce that Novell GroupWise Mobility Service 2.0 is now available. This release, which replaces the former Novell Data Synchronizer Mobility Pack, includes the following enhancements: Performance and scalability improvements, and

  • Is it possible to use same data source for two info cube

    Hi, My Problem is in BW we can not have value of material at storage location level.In R/3 also value is maintained at plant level. Then we searched and we found out one hot to doc for summarized display of stock values on storage location level. Pro