Compare characteristics in a query

Hello,
we have an InfoCube for FI transactional data and a Master data InfoObject for 'Terms of Payment'. We would like to create a query which compares the 'Terms of Payment' values in the transactional data, as booked by users, with the 'should-be' values of 'Terms of Payment' in the master data, i.e. how the value was posted compared to the value that should be posted.
Using an infoset our query lists the data of the infocube and infoobject for characteristic 'Terms of Payment'.
However, we would only like to see the values that are not equal to eachother. If 'Terms of Payment' was a keyfigure, we could use conditions or exceptions but the field in question is a characteristic.
We could run a macro in Excel and run the report in BEx but the requirement is for web.
Has anyone an idea how we can compare the characteristic values in a query so that only the unequal values are displayed?
Thank you,
Florian

Hi Florian,
In that case you will have to use virtual Key figure. Include it in the cube. Since, it is populated at query runtime, no need to refresh data in the cube.
In the BADI u can check the terms of payment from transaction data and master data and if found equal u can set the virtual KF as 1. And then u can apply a condition in the query not to show records where the KF is 1.
Best Wishes,
Mayank

Similar Messages

  • How to compare result from sql query with data writen in html input tag?

    how to compare result
    from sql query with data
    writen in html input tag?
    I need to compare
    user and password in html form
    with all user and password in database
    how to do this?
    or put the resulr from sql query
    in array
    please help me?

    Hi dejani
    first get the user name and password enter by the user
    using
    String sUsername=request.getParameter("name of the textfield");
    String sPassword=request.getParameter("name of the textfield");
    after executeQuery() statement
    int exist=0;
    while(rs.next())
    String sUserId= rs.getString("username");
    String sPass_wd= rs.getString("password");
    if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
    exist=1;
    if(exist==1)
    out.println("user exist");
    else
    out.println("not exist");

  • Limitation of Characteristics in a Query

    Hey Guys,
    Is the limit of characteristics in a query restricted to 50?  I have an error message stating that: "Maximun number (50) of drilldown characteristics is exceeded".
    Please advise.
    Timi Jones

    Hi,
    Read note 1117281 "reasons and Prerequisites".
    Rgds
    Manoj kumar

  • Formulas and restrictions on characteristics in a query

    Hi Guys
    This might seem like a strange question but can you perform formulas on characteristics in a query or just key Figures.  
    For instance for one query I have to substring the key to just the last two characters and on another I'd like to be able to display the product id twice based on the product type (like a restricted key figure)
    I can't see how to do this in the query is there a way or should this be done in the info cube or in the report once the results have been obtained?

    hi rachel,
    u can create in routine in either transfer rules or the update rules that would restrict your characteristic value to only the last two characters.Now it is up to you to decide whether to restrict the original characteristic or create another characteristic which gets its value from these routine.
    for the second part of your question i think the restricted keyfigure will do its job.
    reward if it helps,
    ajay

  • Hierarchy nodes as characteristics in a query

    Hi all,
    I would like to ask if there is a way to use hierarchy nodes of InfoObject 0cost_elemnt as characteristics in a query.
    In other words I have a grouping of cost elements in R/3 and uploaded this group as a hierarchy in BW. Now the users want to have the ability to drag and drop in a query report any node of this hierarchy.
    Can this be done?
    Thanks in advance,
    Panos

    Hi,
    I guess, if I am getting you correctly the user wants to see teh hierarchy levels individually or on adhoc basis.
    Is that right?
    Regards,
    Ray

  • Query - Comparing Characteristics

    In out customer sales area master data there is a default plant or shipping point. We would like to compare the ship point on the delivery to the ship point on the master data to display the delivery's not using the default. Can a query be written to display records that the default plant is not equal to the plant on the delivery. The plant key is alphanumeric. I tried with a formula but it did not work. The cube has the delivery as a line item dimension. I am not sure what other info would be needed.
    Any help appreciated.

    srinu
    I guess am looking for a way to compare 2 characteristics - one characteristic that is an attribute of master data and the other in the transaction data. I am looking for results of the query like this
    Delivery #  default Plant     Plant Used
                (from master data)  (from tansaction)
    1000            plt1           plt1
    1001            plt2           plt3
    I would like to only display the delivery 1001 - that delivery used a different plant than the default.
    Hope this helps

  • Table names to get list of characteristics used in Query

    Hello,
    I am trying to get separate list of characteristics & key figures used in query. i want that particular table which will give me the list of characteristics. & other table which will give me list of key figures used in that query. I want these characteristics & keyfigures specifically used in query.I don't want the global list dependant on infoprovider but dependant on query like (ZSJM_ZSD_C05_Q001).
    Can anybody help in getting the table names?
    Thanks in advance.

    Hi Deepak,
    You need to go to RSRREPDIR - to get the GUID of the query.
    Then you can work your way through  RS* X *REF (type in this name in SE11/SE16 and press F4 ) table to find the query elements.
    There is also a text table where you can read the component names... but dont have the system at hand, hence cant furnish you that info... I think, it may be RSZELTTXT.
    Also in my opinion the best way to get this information is from metadata repository view in admin workbench.(RSA1). Keep drilling down from the query to its characteristics.. you shall get what you need.
    Also you may use transport connection to display the elements of the query. Just go to the transport connection , in the object list, choose the required query and and transfer it to the collector area. Diplay the elements as a list... you shall then find all your query elements...
    You may not need to traverse through the tables to retrieve this information.
    Hope it helps,
    Best regards,
    Sunmit.

  • Characteristics in IP Query

    Hi,
    I have to create a Input- ready query. for that purpose i have defined a aggregation level over a customized Sales Cube taking data from 2lis_13_vditm. In my aggregation level below chars are invloved -
    Profit center, controlling are (1 fixed value), Company code (Single value), Calender yr month, version, sales group, currency and two key figures 1- for actual Net item value and other is Planing key figure.
    I have created the ready input query marked it to open in change mode, with planning key figure also as input ready.
    But im facing the problem like if i put all the chars  used in my aggregation level in the rows n query than i get Planning key figure as input enabled, and if i put the characteristics in the free chars which i need not to display in the report like cal month (this char i required to restrict various columns to be displayed in the rport like Value for Quarter, Value for a year etc)  it disables the planning column input option.
    So is it mandatory to put all the chars in the rows in query which are used in aggregation level. If we put them in free chars will it not work ?
    Kindly provide the suggestion
    Thanks
    Edited by: Krishanu Saha on Jul 12, 2010 1:28 PM

    Hi,
    For a query to be input ready you can check for following conditions:
    1.Check if the underlying realtime cube is in "Planning Mode:Loading not allowed" state in rsa1
    2. If you have created an aggregation level, Check if the most detailed information is available at that Aggregation Level(i.e, include characteristics so that the record can be uniquely identified at that aggregation level).Best would be to include all characteristics and create a query first and ensure it works.Then remove unwanted charecteristics one by one, so that you can fix the issue.Best thing to start with is to create the aggregation level on top the real time cube itself.
    3. Check for any characteristic restrictions been defined for the real-time cubes.If so, try removing them temporarily and execute the query
    4.Also check if any data slices has been created on the real time cube. If so, try removing it temporarily and then execute the query.
    5. Set the property for Planning "Start query in Change Mode"- this is for the Query
    6. Set the 'Key Figure' Planning Property to "Can be changed Manually or via Planning Functions" for the appropriate KeyFigures- this is for the key figures
    7. Try removing the currency/unit from row/column. Try restricting them in filters rather than in row/columns.
    8. Check if there are any locks occurring due to filter., i.e if you are using a filter and even if 1 record of this selection locks with another user's selection you lose the input readiness.
    Thanks
    Pratyush

  • Concatenate 4 Characteristics in a Query

    Hello,
    Can someone tell me how to concatenate 4 characteritics into 1 cell in a report without using Visual Basic?
    We want combine these four characteristics into 1 field, so we have something like a very long tekststring in a query.
    Regards,
    Jos

    hi Jos,
    check the how to doc
    basically the idea is hide the other columns and concatenate it to one column using table interface (abap class se24)
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f0aca990-0201-0010-0380-f3aac4127a57
    and search with 'more than 60 char' and 'sdn forum' may lead to some thread discuss this
    Concatinating text char
    60 Character Limitation - Dirk Herzog please help
    Bypassing 60 char limit in an InfoObject
    How to show character length > 60 ,If we split and distribute..??
    hope this helps.

  • Compare CLOBs in a query

    Hi Guys
    How is it possible to compare CLOBs (as a column data) coming in query result and further filter the same query to excluding the excatly similar CLOBs.
    Cheers
    Shabar
    Edited by: shabar on Jun 15, 2011 12:47 AM

    you could use dbms_lob.compare().
    Something like this:
    SQL> create table clob_test
      2   (
      3    clb1 clob, clb2 clob
      4   ) ;
    Table created.
    SQL> insert
      2  into clob_test values
      3   (
      4    'matching', 'matching'
      5   ) ;
    1 row created.
    SQL> insert
      2  into clob_test values
      3   (
      4    'matching', 'not matching'
      5   ) ;
    1 row created.
    SQL> select *
      2  from clob_test
      3  Where Dbms_Lob.Compare(Nvl(Clb1,'NULL'),Nvl(Clb2,'NULL')) = 0;
    CLB1                  CLB2
    matching              matching
    1 row selected.Vivek L

  • Compare Characteristics value to calculate keyfigure.

    Hi all,
    I have a characteristics named 0EXTMATGRP , now if the value of this characteristics is "A" then i have to take 1% value , if it is "B" then 2% . Means based on the value of this characteristic i have to take diffrenet percentage for a keyfigure .. How it could be possible in BEX query designer. I did the same thing in another query but in that query i have to check the divison whose values are number but here the values are letters rather than numbers..
    Could anybody hel[p me in this regard ..
    Thanks in advance.

    Hi,
    PLease check out this PDF it might be helpful in your case.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2056ef93-2004-2d10-21ae-f973bb48d7a1?quicklink=index&overridelayout=true
    Regards,
    AL

  • Issue with compounding characteristics in the query

    Hello guyz
    I have an issue with 2 chars one compounding the other in the query. The 2 chars are : Action Type and Action Reason in HR. Action type is the compounding char. for action reason.
    For example: we have
    Action Type    Action Reason
    01                        A1
    01                        A2
    02                        A1         
    02                        A2
    Now I want to restrict a key figure based on specific action reasons and types. But when I pick AT: 01, AR: A1, it selects AT: 02, AR: A1. The reason why it does this is because, there are 2 A1s under action reason and it picks the one at the end (ie last record with value A1 in the table)
    But my compounding works when i create variables for the same and have them as user entry variables.
    My question: How do i pick specific action reasons for specific action types (for restricting key figures) in the above example?
    Thanks.

    Well.. thank you Ashish for your help so far.
    Now, these Chars. are coming directly from a data source to the cube. From my previous example again, the thing that i dont understand is:
    When i try restrict the KF with AR, on the left hand side of the pop up window i see:
           AR
    [01, A1] --> Very good
    [01, A2] --> Good
    [02, A3[ --> OK
    [02, A4] --> Bad
    [02, A1] --> Very Bad
    But, when i drag 'A1' (Very Good)  to restrict on the KF on the right hand side of the window, I only get:
    A1 (Very good), what i want to drag is [01, A1] --> very good.. action type value should come along with action reason.. right??
    when i save the query, logout and log back in, I see:
    A1 (Very Bad)
    Question: Why dosen't Action type char come along with action reason on the right hand side.. its a compounding char right?? So it should determine what value action reason takes?
    Any idea??

  • Comparing dates in select query.

    Hi Experts,
    I need to select data from one table such that the date field of the table should be either today's date or earlier date.
           How can I write such comparison statement in select query.

    hi,
    select * from <your_table>
                   where <date_field> <= sy-datum.
    endselect .
    regards,
    burak

  • Comparing string in select query

    Hi,
    select single *
           from mara
           where <b>matnr = wa-matnr</b>.
    Here matnr is char18. Can we compare string like this?
    When <b>wa-matnr</b> is in <b>lower case</b> it is setting sy-subrc = 4, even though the matnr exists in mara. When converted to upper case and used it is setting sy-subrc = 0.
    Is there any other solution for the problem? I have checked out with matnr's conversion routine. It is also not working.

    just try  dat way...
    <b>ex...</b>
    data:wa_matnr like mara-matnr.
    data:wa_matnr1 like mara-matnr.
    data: gv_matnr like mara-matnr.
    wa_matnr = 'comptest'.
    CALL FUNCTION 'TERM_TRANSLATE_TO_UPPER_CASE'
      EXPORTING
       LANGU                     = SY-LANGU
        TEXT                     = wa_matnr
    IMPORTING
       TEXT_UC                   = wa_matnr1
    EXCEPTIONS
      NO_LOCALE_AVAILABLE       = 1
      OTHERS                    = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    select single matnr
    from mara into gv_matnr
    where matnr = wa_matnr or matnr = wa_matnr1.
    write : gv_matnr.

  • Problem in date comparing with db2 database,query is not executing

    hi everyone
    i have one jsp page two text box
    1. one for start date
    2.second for end date
    and for date selection have used datepicker
    user selects the start date and end date .then clicks on view button
    then i am retrieving these two dates on next jsp page .uptp here is ok
    here i want display related data from db2 databse between these two dates(start date and end date)on next jsppage
    but it is giving error my db2 dtabse uses the format of YYYY-MM-DD
    the query i am not able execute
    String strsql ="select voucher_master.VOUCHER_TYPE,voucher_master.VOUCHER_NO,dd_master.CHQ_DD_NO,dd_master.DD_DATE from voucher_master,dd_master Where voucher_master.VOUCHER_ID = dd_master.VOUCHER_ID and dd_master.DD_DATE >=" + fromdate + " and dd_master.DD_DATE <=" + todate + "";
    it is giving error
    please help me

    Mutlipost: http://forum.java.sun.com/thread.jspa?threadID=5224616
    Why aren't you checking your earlier posts for replies? Don't multipost, it's irritating and wastes times and energy.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

Maybe you are looking for

  • Photosmart 7510 e all in one series Printer failure Oxc19a0023

    After having been turned off for several months, I plugged in my 7510e and the following message came on the screen. Printer failure, Oxc19a0023, Please turn printer off then on. I did this with no change. I unplugged both electric plus and USB and r

  • What is the best way to connect a daba base from a desktop swing aplication

    I have a java deskopt application which has to connect to a oracle(10g) data base for make some transacctions such as find, insert,delete, update and others batch processes. What i want is to minimize the time that this aplication has to connect to t

  • Best way to get an .avi file out of a Final Cut Project

    Should I export it from the Timeline as an .avi, if so what compressor and settings should I use? Should I export it as a Quicktime movie and convert it to .avi from MPeg Streamclip, if so, what compressor and settings should I use for best effect? (

  • Crystal Reports Grand Totals and int not working

    I am new to Crystal Reports, I am using the Visual Studios version. I have a couple of different questions. My report is a cross tabs report. In one of the cells I want to include a name and the total number of records for the person. To make it visu

  • How do i read a PDB file on my computer?

    How do i read a PDB file on my computer? Ive downloaded a PDB book and id like to view it directly through my laptop. what software would i need? thks Post relates to: Palm TX