How to perform this kind of requirement

Hi Experts,
User wants a report to track customer attitute history and also the change indicator. I created a DSO  and set a key figure to record the customer attitude (key are customer ID and system date). use number 1,2,3,4,5 instead of five different kinds of attitude in DSO. In query, I create two restrict key figures and use user input two date variable to restrict the value of that key figure. current issue is that the value display in report is as number 1,2,3,4,5. user can't get the description as five kinds of attitude. Could you please give some comment and solution about this kind of requirement. Thanks.
Br, Delve

Hi,
"Attitude" has to be present in the DSO/Cube. It could be a Data field in DSO but it has to be a dimension in the Cube. Only then you will be able to pull it in the query.
Being in dimension, every new value of the attitude will create a new record in the cube. So for 5 different days you will get 5 records. Then in query if you drag this dimension, it will show you 5 different attitudes as per date.
You can choose to display only the latest attitude by restricting this field in the query to the last date in the date range.
Regards,
Nishant.

Similar Messages

  • How can I perform this kind of range join query using DPL?

    How can I perform this kind of range join query using DPL?
    SELECT * from t where 1<=t.a<=2 and 3<=t.b<=5
    In this pdf : http://www.oracle.com/technology/products/berkeley-db/pdf/performing%20queries%20in%20oracle%20berkeley%20db%20java%20edition.pdf,
    It shows how to perform "Two equality-conditions query on a single primary database" just like SELECT * FROM tab WHERE col1 = A AND col2 = B using entity join class, but it does not give a solution about the range join query.

    I'm sorry, I think I've misled you. I suggested that you perform two queries and then take the intersection of the results. You could do this, but the solution to your query is much simpler. I'll correct my previous message.
    Your query is very simple to implement. You should perform the first part of query to get a cursor on the index for 'a' for the "1<=t.a<=2" part. Then simply iterate over that cursor, and process the entities where the "3<=t.b<=5" expression is true. You don't need a second index (on 'b') or another cursor.
    This is called "filtering" because you're iterating through entities that you obtain from one index, and selecting some entities for processing and discarding others. The white paper you mentioned has an example of filtering in combination with the use of an index.
    An alternative is to reverse the procedure above: use the index for 'b' to get a cursor for the "3<=t.b<=5" part of the query, then iterate and filter the results based on the "1<=t.a<=2" expression.
    If you're concerned about efficiency, you can choose the index (i.e., choose which of these two alternatives to implement) based on which part of the query you believe will return the smallest number of results. The less entities read, the faster the query.
    Contrary to what I said earlier, taking the intersection of two queries that are ANDed doesn't make sense -- filtering is the better solution. However, taking the union of two queries does make sense, when the queries are ORed. Sorry for the confusion.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to realize this kind of ALV(with two headerlines)?

    Dear all:
      could anyony provide some advice on how to realize this kind of ALV?
    |--|--
    field2
    |--|||--
         field11  |  field12   |  field21  |  field212      |
    |--|||--
    wait your kindly advice

    I had similar kind of requirement. Have a look at below code. It will help you. You can execute it. You can see the report output which contains two header lines.
    REPORT  ztestvib    MESSAGE-ID zz  LINE-SIZE 50.
    TYPE-POOLS: slis.
    DATA: x_fieldcat TYPE slis_fieldcat_alv,
          it_fieldcat TYPE slis_t_fieldcat_alv,
          l_layout TYPE slis_layout_alv,
          x_events TYPE slis_alv_event,
          it_events TYPE slis_t_event.
    DATA: BEGIN OF itab OCCURS 0,
          vbeln LIKE vbak-vbeln,
          posnr LIKE vbap-posnr,
          male TYPE i,
          female TYPE i,
         END OF itab.
    SELECT vbeln
           posnr
           FROM vbap
           UP TO 20 ROWS
           INTO TABLE itab.
    x_fieldcat-fieldname = 'VBELN'.
    x_fieldcat-seltext_l = 'VBELN'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 1.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'POSNR'.
    x_fieldcat-seltext_l = 'POSNR'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 2.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'MALE'.
    x_fieldcat-seltext_l = 'MALE'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 3.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'FEMALE'.
    x_fieldcat-seltext_l = 'FEMALE'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 3.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_events-name = slis_ev_top_of_page.
    x_events-form = 'TOP_OF_PAGE'.
    APPEND x_events  TO it_events.
    CLEAR x_events .
    l_layout-no_colhead = 'X'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        i_callback_program = sy-repid
        is_layout          = l_layout
        it_fieldcat        = it_fieldcat
        it_events          = it_events
      TABLES
        t_outtab           = itab
      EXCEPTIONS
        program_error      = 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.
    *&      Form  top_of_page
          text
    FORM top_of_page.
    *-To display the headers for main list
      FORMAT COLOR COL_HEADING.
      WRITE: / sy-uline(103).
      WRITE: /   sy-vline,
            (8) ' ' ,
                 sy-vline,
            (8)  ' ' ,
                 sy-vline,
            (19) '***'(015) CENTERED,
                 sy-vline.
      WRITE: /   sy-vline,
            (8) 'VBELN'(013) ,
                 sy-vline,
            (8) 'POSNR'(014) ,
                 sy-vline,
            (8) 'MALE'(016) ,
                 sy-vline,
             (8)  'FMALE'(017) ,
                 sy-vline.
      FORMAT COLOR OFF.
    ENDFORM.                    "top_of_page
    The header lines are as below:
    VBELN      POSNR      MALE       FMALE
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • How to parse this kind of XML documents and store in a relational tables

    Can u guys help me out ,..how to parse these kind of XML documents..like under PR there Sr,CreationDate and DoBID.. Again under Sr...there are LD, CID,TID, RID and so on.....
    so how to parse this kind of data..how to create the structure of the table....pls help me out..
    <nk8:PR>
              <nk8:Sr>
                   <nk8:LD>---------</nk8:LID>
                   <nk8:CID>---------</nk8:CID>
                   <nk8:TID>---------</nk8:TID>
                   <nk8:RID>---------</nk8:RID>
                   <nk8:CC>OnError</nk8:CC>
                   <nk8:AID>---------</nk8:AID>
              </nk8:Sr>
              <nk8:CreationDateTime>2002-07-01</nk8:CreationDateTime>
              <nk8:DOBID>---------</nk8:DOBID>
         </nk8:PR>
         <ssm:ER>
              <ssm:PN>---------</ssm:PN>
              <ssm:SN>---------</ssm:SN>
              <ssm:SCt>---------</ssm:SC>
              <ssm:IA>
                   <ssm:NT>---------</ssm:NT>
                   <nk8:LID>---------</nk8:LID>
                   <nk8:CID>---------</nk8:CID>
                   <ssm:AN>---------</ssm:AN>
              </ssm:A>
         </ssm:ER>
         </nk8:PR>

    First, your XML document is not well formatted. Once you're done with that you can extract the values and store it in a table column.
    sql> WITH xml_table AS
      2  (SELECT XMLTYPE(
      3  '
      4  <nk8:PR xmlns:nk8="http://www.w3.org">
      5  <nk8:Sr>
      6  <nk8:LID>LID Value</nk8:LID>
      7  <nk8:CID>CID Value</nk8:CID>
      8  <nk8:TID>TID Value</nk8:TID>
      9  <nk8:RID>RID Value</nk8:RID>
    10  <nk8:CC>OnError</nk8:CC>
    11  <nk8:AID>---------</nk8:AID>
    12  </nk8:Sr>
    13  </nk8:PR>') XMLCOL FROM DUAL)
    14  SELECT extractvalue(t.column_value,'//nk8:LID','xmlns:nk8="http://www.w3.org"') "LID",
    15   extractvalue(t.column_value,'//nk8:CID','xmlns:nk8="http://www.w3.org"') "CID",
    16   extractvalue(t.column_value,'//nk8:RID','xmlns:nk8="http://www.w3.org"') "RID",
    17  extractvalue(t.column_value,'//nk8:CC','xmlns:nk8="http://www.w3.org"') "CC"
    18  FROM xml_table, table(xmlsequence(extract(xmlcol,'/nk8:PR/nk8:Sr','xmlns:nk8="http://www.w3.org"'))) t;
    LID        CID        RID        CC
    LID Value  CID Value  RID Value  OnError

  • How to get this kind number?

    I have a float number,e.g myfloat=123.34???. When the first "?">=5,
    myfloat=123.35,or myfloat=123.34.Can anyone tell me how to get this kind number.
    Thanks in advance.

    In fact, not very clear of your problem.
    Supposing you want to get fix position's value after ".",
    you could firsly convert it to a string,
    then position "." ,use subString() to get the value.
    compare it, reconvert it back.

  • How to make this kind of mouseover?? URGENT!!

    Please PROFESSIONAL help me T^T
    URGENT for this T^T
    http://superjunior.smtown.com/
    I want to know how to make that kind of mouseover ^^
    Hope PROFESSIONAL can teach me ^^
    http://starimg.smtown.com/superjunior/version04/site/images/main_navi.swf

    Hi, I don't know what program you are using, but perhaps the Flash forum would be helpful. This is the Flash Player forum . You could also check the other Adobe Forums that would be for your Adobe program.
    Thanks,
    eidnolb

  • Particle effect -how to achieve this kind of effect exactly

    Hello   please help me to achieve this type of flickering particle effect.  how to achieve this in After effect  which is shown at 0.8 sec to 0.11  in the attached link video. http://www.istockphoto.com/stock-video-2682258-hearts.php

    I can't give you the exact settings but you could use Trapcode Particular with a custom particle or CC Particle world. Just turn gravity to 0 and set up a custom particle.
    Your particle layer will be behind the spinning hearts layer. This should get you going in the right direction.

  • How to get this kind component?

    I want to get this kind component.It's like a web's link.When i point to it,it's highlight.When i cliked it,it invoke other (such as program,URL).

    try this:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Atest extends JFrame 
         JPanel pan = new JPanel();
    public Atest()
         super();
         setContentPane(pan);
         setBounds(1,1,600,450);     
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
                   dispose();     
                   System.exit(0);
         pan.setLayout(null);
         Alink alink = new Alink("Is this what you want?");
         alink.setBounds(50,90,128,22);
         pan.add(alink);
           setVisible(true);
    public class Alink extends JLabel implements MouseListener
         Color fcolor = Color.blue;
         Color lcolor = Color.red;
    public Alink(String s)
         super(s);
         addMouseListener(this);
         setForeground(fcolor);
    public void paintComponent(Graphics g)
         super.paintComponent(g);
         g.setColor(Color.darkGray);
         g.fillRect(0,getHeight()-2,getWidth(),1);
    public void mouseClicked(MouseEvent e)
         fcolor = Color.black;
         lcolor = Color.magenta;
    public void mouseEntered(MouseEvent e)
         setForeground(lcolor);
    public void mouseExited(MouseEvent e)
         setForeground(fcolor);
    public void mousePressed(MouseEvent e)
    public void mouseReleased(MouseEvent e)
    public static void main (String[] args)
         new Atest();  
    }       Noah

  • How to Perform this calculaction in Query

    Hi Experts
    How can i achieve this Calculaction at query Level.
    Data:
    Emp_ID--Wage_IDPayroll_Date--Amount
    1--03925.01.2008-5000
    1--03925.02.2008-5000
    1--03925.03.2008-5000
    1--03925.04.2008-6000
    1--03925.07.2008-6000
    The employee will have No of different Wage types in his pay run.
    But as per my requirment i want to calculacte Employee Salarly.
    Lets Consider Wage Type 039 which is Salarly
    The Cal i need to perform is
    Select the Wage Type 039 and then Select the Latest (25.07.2008) Payroll date and then select the amount assiociated with it for and the 12* amount give salarly
    In the above case aslarly should be 72,000

    Hi,
    Soluition can be the following:
    Put Pay_Roll_date also as a key-figure in your cube and add to columns.
    Add condition (top 1) on keyfigure,
    In Character Assignment tick ïndividual char. and Char combinations.
    Tick also Emp_id and Wage ID. do not tick Pay_Roll_date (the characteristics, not the keyfigure)
    Hide key-figure Pay_roll_date & Amount
    Make calculated keyfigure Salary = 12 * Amount.
    That should do it.
    Udo

  • How to perform this loop Sum?

    Hi,
    This is my issue:
    Position       Seq        Amount
    10                 0             1000  
    10                 1               500
    10                 2               250
    20                 0             1000
    30                 0             2000
    What i wanted to do is if under the same Position and have Seq > 0 then sum up the Amount with Seq > 0 ONLY which is 750 for the Position 10. If the Position only have Seq = 0 then only take Amount where Seq = 0 which is 1000 for Position 20 and 3000 for Position 30.
    Can anyone teach me on how to use the For Loop to perform the above task? Or if there is any other solution to it also is very much appreciate.
    Thank you very much.
    Ng

    Hi Ng,
    You need to use a running total to sum the values. 
    1)  Create a group on Position.  Format the Detail section to Hide. 
    2)  Create a formula like:
    NumberVar TotalAmount := 0;
    Drop this formula into the Group Header section and format the formula to suppress. 
    3)  Create another formula like below and drop into the Detail section. 
    NumberVar TotalAmount;
    If > 0 Then
         TotalAmount := TotalAmount + ;
    4)  Create one last formula and drop it into the Group Footer. 
    NumberVar TotalAmount;
    What happens is the formula in the Group Header will initialize the variable called TotalAmount to 0 when the value of Position changes. 
    The second formula is the one that does the summing.  Because it's in the detail section, you do not want to show this.  To troubleshoot you may want to see it but all it does is increment with each record. 
    The last formula will show the total for each Position. 
    Good luck,
    Brian

  • How to handle this kind of scenario in SBO

    Hello, I am new to SAP Business One. I would like to know how to handle Transporation Company scenario below in SBO.
    QUESTION 1: A transportation company has 30 truck. The company receives orders from the customer and use the trucks to deliver the goods from Point A to Point B everyday. The cost for delivery is $0.50 per-KG.
    The way I handle above:
    1. In ITEM MASTER DATA:
    Create a new item > Item Type: Labor > Description: Delivery from Point A to Point B > and determine the delivery price is $0.50.
    2. Use the item created in no 1 above when creating Sales order/Invoice.
    If the weight is 5000kg then simply put QTY 5000 in Sales Order with the price of $0.50/KG, which has been set in Item Master Data.
    Is the above method correct or there is better way to handle?
    QUESTION 2: TRACKING EACH TRUCK EXPENSES BY ITS LICENSE PLATE:
    Each truck has Spare Parts expense (e.g. bulbs, oil, battery, tires etc) that the company would like to track.
    The company purchased the spare parts from suppliers and keep it in the warehouse. When a truck needs to replace its spare parts, the company will issue the parts and record it under that truck's license number as that truck's expense.
    The goal is SBO must be able to provide detail monthly expense report for each truck when inquired by its license plate. I prefer NOT to manually input "directly" in Journal Entry to prevent error.
    Thanks.

    Hi,
    welcome to sbo forum!
    For your question 1, it will depend if you will only have 1 route for all of your deliveries.If your point of origin is always point a then destination is point B w/ price of $0.50,then you are right with your process... but if you will have to expand and move into different places, i think it will best for you to create a UDT for your pricing.
    in summary:
    1.create UDT pricing(with origin,destination and price)
    2.Create UDF in row level of Sales order(U_origin,_U_destination)
    3.) create FMs for your Sales order Origin and destination based on UDT Pricing table.
    4.) create automatic fms for your price( based on origin and destination selection).
    for question 2, all your repairs and maintenance will pass through AP invoice( either by item or service). in our country we normally use Ap service,since a truck has normally several types of spare parts. This figures will will surely add up to the number of item master data record in your system ,since you will need create a unique item for each and every item available.
    -To monitor all your expenses, you will need to create a UDF in the header of PO, GRPO or AP invoice, place your plate number here. so that when you extract your reports, you will easily identify your expenses per truck.
    in summary:
    1.create UDF for header of PO,GRPO or AP( Udf_Plate number) you can set valid values for you udf or by FMS with default values.
    2.Create Udf for lines of PO,GRPO or ap(UDF_spare part type) --note: if you will use the Item type document for repairs and  maintenance then i guess you dont need to add UDF_spare parts.
    Hope i was able to help you.
    Regards,
    Darius Gragasin

  • How to perform this type of search in Pages

    I have a list of over a thousand words and need to do a search for general words that would fit in a particular space, i.e. a crossword puzzle and needs 8 letters.
    How do you search a list of words in Pages for all words that have the fifth letter as an E?
    or... how would you search for a word that has the following that you know...
    ???A??SE
    So you are looking of a specific list for a word, or in my case could be a name, that would be on that list that has an A as the fourth letter and ends in SE and is 8 letters long?
    I have to do search strings off this list and it has thousands of names and words.
    Thank you.
    Randal

    Thank you for that. Any suggestions on a program that can. Just tried Bean and no luck there either. Bummer. Sometimes I do miss Windows, but never enough to go back to it. So need a text editor that can GREP...

  • How to perform this action..

    am having a condition in where clause like :-
    "and decode(si1.common_cat_id,4,si1.site_id,1, si1.site_id) = td.site_id(+)"
    now my query is running with condition but not giving the desired results..
    My requirement is like :-
    if si1.common_cat id = 4/1 then si1.site_id = td.site_id(+) else this condition sould not make any diffrence to my query..
    Any suggestions??
    Thanks
    Kapil

    OK. Great.
    :"else this condition should not make any diffrence to my query"?
    So, you have two queries.
    one query has following conditions (in addition to other conditions):
    AND si1.common_cat id IN (4,1)
    AND si1.site_id = td.site_id(+)
    the second query does not have these two conditions.
    Is this what you mean by "else this condition should not make any diffrence to my query"?
    null

  • How to perform this?by copying the IE URL of successfully logged in to another IE Browser and the user still logs in which is wrong.

      I have a problem. the user had successfully logged in in an IE Browser. Then I copy the URL of the IE
      to another IE Browser. The output must be, the browser will ask the user to log in again which is correct.
      In my application, the output was still logged in which is wrong.
      Kindly help

    I have the Application.cfm
    I dont use parameter such as CFID and CFTOKEN for my code.
    Is it possible to do it without using this parameter?
    Can
    you give me simple code that if it is successfully logged in, then it
    will perfom that the browser will ask you to log in again.
    Thank you for the reply and knowledge.
    jepoy1

  • How to establish this kind of connection string

    I am using the model: Multiple Embedded Application Clients Accessing Remote Database. There is a database named ServerDB, a DSN named ServerDSN and a muti-user service on the server machine. Plus, there is a DSN named ClientDSN which will route to server machine on the client machine. Then how to establish the connection string for a client application under this condition in C# language? Thanks. It seems that the following connection model in the document doesn't work: OracleConnection conn = new OracleConnection
    ("DataDirectory=\\orace;Database=polite;DSN=*;uid=system;pwd=manager"); I don't know how to fill those parameters.
    I also tried this: conn = new OracleConnection("DSN=ClientDSN;UID=System;PWD=Manager"); But still failed.
    Thanks very much if someone can help me. Urgent problem.
    Message was edited by:
    user474792

    You can read section 1.4.3 in dev.pdf of Oracle Lite for more detail. There is a model like above.
    There is no main database like Oracle server. And there is only one odb file for all the clients. On every client machine, there is a DSN which include the information about server machine.
    I think you'd better read the document first, thanks.
    Hope you can continue to discuss with me, ^_^

Maybe you are looking for

  • Report Server: RTF format on Solaris gives Core Dump

    We have Report Server 6.0.8.11.2 on Solaris. We are running reports thru URL and it is working fine for PDF and HTML. When we specify the desformat as RTF it gives Segmentation Fault Core dumped. We have tried using rwcli60 thru command line and it g

  • Variable substitution in external XML

    I'm loading an external xml file using the Loader class, and then assigning the loaded content to a variable when the loading is complete, like this: function x_loaded(e:Event) { var rotation_value:String = "-180"; mc_xml = XML(x_loader.data); If I i

  • My ipod nano will not sync with my new PC???

    I have moved all my music to my itunes library on my new computer. All of my itunes purchased music appears in my library on new computer as well. The new computer is registered. Every time I plug my ipod into the computer, it will not sync. It says

  • Variable Values in BADI's

    Hello All We have a requirement where we need to pass the value of a characteristic variable entered by the user to a cutomer exit variable and based on that need to perform a validation and return back the same value if it is correct else to return

  • How do i Tether my Iphone 5c to my PC?, How do i Tether my Iphone 5c to my PC?

    I am trying to synchronize and tether my new iphone to my computer, but I cannot find the networking option within the phone.  When I connect the two my computer does not even recognize the phone.