Crop results of a characteristic in a query

Hello all,
I have developed a query and I want to crop the result of a characteristic e.g. the query should just display the first 4 digits of the material number, which has normally 10 digits
I could embed the query in a workbook and use then th excel functionalty to crop the result, but I want to do this within the query.
Is there a good way to do this. Any help would be great.
Thank you in advance and Best regards,
Stefan from Munich/Germany

Hi,
I haven't tried that but I think it should work.
Make a formula variable on the material number (replacement path type).....this will make sure that it can be used now as a key figure....then divide it by 100000....and then make decimal places as zero....this will make sure that the values in the matrial are first four digits.
Give it a try or you can wait for other answers also.
Thanks

Similar Messages

  • Only overall result need tp be displayed after query execution

    Hello Everyone,
                                        I am requirement on query analysis " OVERALL RESULTS".  The scenario is explained below.
                                I am dealing with  BW HR Reporting. Now if i execute the query  from 2008. 01 to 2008 03. The Result will be displayed for 2008.01, 2008.02, 2008.03. and atlast the overall result. The requirement is , after executing the query for the calday 2008.01. to 2008.03 , i need to get  only the OVERALL RESULT". The details of the individauls months will be taken care at the jump target level.
                               Can somebody give th inputs from your end, so that only the overall results will be displayed.
                               Appreciate your immediate response. Thanks in advance.
    Regards,
    pradeep

    Hi
    How about suppress results on the characteristic properties
    Regards

  • Dump when trying to display characteristic values in QUERY DESIGNER

    Hi Experts,
    Life seems to become a struggle with 7.0 for me :-(.
    My current problem:
    If I try to display characteristic values  in Query Designer (left section of screnn, wthin dimensions) system dumps frequently.
    It's that kind of dump, that doen't help really (to my oponion)_
    What happened?
        The exception 'CX_RSR_X_MESSAGE' was raised, but it was not caught anywhere
         along
        the call hierarchy.
        Since exceptions represent error situations and this error was not
        adequately responded to, the running ABAP program
         'CL_RSBOLAP_BICS_SERVICES======CP' has to be
        terminated.
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "UNCAUGHT_EXCEPTION" "CX_RSR_X_MESSAGE"
        "CL_RSBOLAP_BICS_SERVICES======CP" or "CL_RSBOLAP_BICS_SERVICES======CM003"
        "HANDLE_UNCAUGHT_EXCEPTION"
    ... etc.
    BW 79, SP21
    GUI 7100.4.14.3136
    Any ideas?
    Thanks in Advance and Regards
    Joe

    Hi Vikram,
    Thanks for reply. Reinstalling GUI was successful, but - error still occurs. ..
    Regards
    Joe
    Edited by: J.F.B. on May 28, 2010 3:02 PM

  • Characteristic issue in Query

    Hi:
    I have a question regarding a query. I have a multicube created from the Sales Overview cube and a cube which holds plan data.
    I have a a charactrisitcs 0CUST_SALES__0CUST_GROUP (master data) in Identification checked for the both cubes.
    When I run a query created on this cube for sales wty, The value shows up correctly. But when I drill down by 0CUST_SALES__0CUST_GROUP, the characteristic value is Not assigned.
    I checked 0CUST_SALES and I have the value for the field 0CUST_SALES__0CUST_GROUP. Why system shows #- not assigned when I drill down by this particular characteristic?

    Hi Sunil,
    Do you have any other characteristic in the query rows , or any other characteristic  restricted in the query that is from only one basic Cube?
    Also check by running reports if  you have data in Basic cubes by  0CUST_SALES__0CUST_GROUP .
    Vijay.

  • Refresh characteristic texts in query result without logoff in Bex 7.0

    Dear Experts,
    I'm using a query in BEx 7.0 and switched off all caching parameters in RSRT. For instantly reloading values from Cube/DSO this is working fine.
    Some of my characteristics are shown as key + text in query result. Unfortulately these texts are not updated during the query reloads. I do not want the user to logoff / logon the report to get the updated texts.
    Interestingly, after a refresh the texts for those characteristics are updated immediately for all filter items, but not in the result area.
    Could you give me a hint, how I will be able to refresh those characteristic texts as same as the values in the infoprovider? E.g. using VBA makros or by customizing of specific workbook settings?
    Thanks for your help!
    Kind regards,
    Tim
    Edited by: Tim Kley on Apr 19, 2010 2:42 PM

    Hi,
    what have you achieved so far concerning this.
    My post from today was also going in this topic.
    In Bex update after attribute change run
    The setting of this paramter I mentioned there could maybe help in your case.
       transaction "RS_FRONTEND_INIT" add the parameter "ANA_ENHANCE_REFRESH" with value "X"
       o Open the analyzer and connect to system to open WB
       o Click on the refresh button
       o New functionallity "Full Refresh Of Active Queries" is now available.
    Best regards Harry

  • Hide a row or column for characteristic value # in Query Designer

    Hi gurus,
    I would if we could hide a result row / column if one of the characteristic value is #. The requirement is actually to remove the meaningless row / column from the whole result set. For example, I have a char Material Group in the column. Since not every Material is assigned to a Material Group, I will get the following layout:
    Material_Group A
    Material_Group B
    Material_Group C
    Is it possible to define in query designer so that the column with # will automatically not be displayed?
    Thanks,
    Meng

    Hi Meng,
    I guess we have the same users..
    But there is one thing that is going to make a non sense on the report: if you do not display the "#" for material group, then the total of your query by material group will not be the summation of what is displayed on the screen...and if the user explort the information in Excel (pretty sure they will do so), you will have some calls that your query does not balance....
    Based on that assumption, tell the users to assign a material group to the materials, so that this unassigned column disappears. You could even give them a control report listing all the parts that do not have a material group
    If this is a standard business rule not to have a material group for all parts, then, what you could do is to change the text for empty rows for Material group, then the "#" will disappear and wil be under the text description you defined.
    But keep in mind that your data is made of materials which do not have a material group in their definition, noraml or not ?
    PY

  • Result row display in a Bex query in BW

    Hi ,
      I have a problem where the result rows are not getting displayed for row where only one line is getting displayed.
    Basically, in column i have a 2 columns one is a normal characteristic for customer and another is a hierarchy field (Product Hierarchy) against some key figures.
    But , for a given customer and product hierarchy their is only one line occuring .
    Here, the result line is not appearing .
    This condition is appearing only where their is a single line comming up.But,  where multiple lines are appearing , the result line is getting displayed.
    The results are not visible at the level 1 when there is only one occurrence and even if the option in Query Designer is :- results rows is  u201Calways displayu201D.
    Is their any other setting i need to do in order to correct this.
    Thanks in advance,
    Balaji Raj

    hello Balaji,
    i had a similar problem with a query.
    in this query a resultline was never shown for a characteristic - even when i choose the option "ever show result line" for this characterstic.
    which sap note did you apply?
    regards
    philipp

  • Characteristic texts from Query in APD

    Hello Comiunity,
    In BI 7.0 Iu2019ve created an Query. This Query shows (long) texts for characteristic. When I use the Query in BEx Web Analyzer and BEx Analyzer these texts are displayed correctly.
    Now I have to use the Query as a source in an analysis process in the APD. Result of this analysis process is a CSV file. It seems like the APD doesnu2019t work with the texts for the characteristic. In the result CSV file only the keys of the charactersisics are show u2013 not the texts.
    How can I use characteristics texts in APD? At moment I join the text tables of the characteristics. But is there a more elegant solution for this problem?
    Kind Regards,
    Andreas

    Hi Andreas,
    unfortunately not. APD does only consider the keys (internal presentation) and ignores all kinds of query output properties (display like text, scaling key figures etc.).
    Apparantly, you want to persist the query result in a way which is close to the Bex output, right? I would guess that APD is not suitable for that.
    Cheers!
    Thomas

  • Check and validate the characteristic row in query

    Hi Gurus,
    I am really new to BW, may be a silly question. I Have requirement where I have query, which had characteristic  status having value for open closed items as O and C. Now i need the query to look if status is O,then it should move amount feild as zero .I am not sure where to put the code.
    It is really urgent, any help would be highly appreciable.
    Thanks in adavance

    Hi Amit,
    Thanks for response, I could not find any exit  in the query..So i though I should do the changes and see...on my own. I would repeat my query and may be some one
    can provide me some solution.
    I have rows which have selection for item status as fixed values equal to '#', cleared
    and open. And the query has key figure in colums as amount.
    So i need my query to read item status and if that is open it should display amount as 0.
    I hope i had made this more explainatory  now
    quick response would be highly appreciable.
    its really urgent
    Mona

  • How to restrict values and apply condition for a characteristic in a query.

    Hi,
    I have to add two customer class(characteristic) fields to my query which is available as a navigational attribute in my multiprovider ( from which my query is built ).
    One field should give the values directly from master data. The values would be PV, CV, IT, OT. The other field should give only PV and CV based on the condition - Except CV, all others (ie. IT and OT) should be converted as PV.
    I like this to be achieved in the query level since i dont want to disturb the underlying cubes in the multicube.
    So i have two questions.
    1. How to bring two fields in the query for the same characteristic.
    2. How to achieve the condition in a characteristic for second customer class field mentioned above.
    Could somebody help me in solving this?
    Thanks in advance,
    Somenath

    Hi Somenath,
    you are absolutely right;)
    Besides the Third step
    Try to add two new Selections to your Structure as
    New Selection1 -> Set the Customer Class value to fix 'PV'
    New Selection2 -> Set the Customer Class value to fix 'CV'
    <b>you have to add</b>
    New Selection3 -> Set the Customer Class value to fix 'IT'
    New Selection4 -> Set the Customer Class value to fix 'OT'
    Fourth step
    Hide these four selections
    Fifth step: Add a new formula to your Structure
    (Customer Class == New Selection3)* New Selection1(Customer Class == New Selection4)* New Selection1(Customer Class == New Selection1)* New Selection2+Customer Class == New Selection2)* New Selection2
    Hope it helps
    Gabor
    ps: experts maybe suggest easier way...

  • How to Display Time-Dependent Characteristic Data In Query

    Hi Experts,
       I have encountered a problem. I want to use Time-Dependent Chart. And want to display different value according characteristc's valid from time. For Example,
    The Characteristic 0COSTCENTER has the navigation attribute 0COMPANY, The data as:
    0COSTCENTER   Valid from   Valid To       0COMPANY
    BW2305              20070101   20070430     A
    BW2305              20070501   99991231     B
    I want  the report  can display as :
    0COSTCENTER   Valid from   Valid To       0COMPANY  AMOUNT
    BW2305              20070101   20070430     A                  1000
    BW2305              20070501   99991231     B                  2000
    But when I set the query's key date 20070420, the report display as:
    0COSTCENTER   Valid from   Valid To       0COMPANY  AMOUNT
    BW2305              20070101   20070430     A                  1000
    BW2305              20070501   99991231     A                  2000
    when I set the query's key date 20070520, the report display as:
    0COSTCENTER   Valid from   Valid To       0COMPANY  AMOUNT
    BW2305              20070101   20070430     B                 1000
    BW2305              20070501   99991231     B                  2000
    Can anybody tell me how I can get report expected.
    Thanks in advance.
    SF

    Hi,
    1) Add the characterstics 0COSTCENTER ,0DATETO,DATEFROM and  0COMPANY to the cube.
    2) And also add these 4 IOs to the Communication structures which has update rules with the concern cube.
    3) I hope , you already have  0COSTCENTER in the Commnication structure and mapping for that infoobject at both Update rules and Transfer rules.
    4) Leave to the Blank(no mapping) mappings for the IOs 0DATETO,DATEFROM and  0COMPANY in the Transfer rules.But make 1:1 mapping in the Update rules for these 2 infoobjects.
    5) Write the below code in the strt routine of the Update rules:
    TYPES:  BEGIN OF type4.
          include structure like /BI0/QCOSTCENTER.
    TYPES END OF type4.
    DATA:
      ITAB4 TYPE STANDARD TABLE OF TYPE4
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    SELECT * FROM /BI0/QCOSTCENTER INTO CORRESPONDING FIELDS
    OF TABLE ITAB4
    WHERE OBJVERS = 'A'.
    loop at DATA_PACKAGE.
         READ TABLE ITAB4 WITH KEY COSTCENTER = DATA_PACKAGE-MATERIAL 
    DATETO LE DATA_PACKAGE-PSTNG_DATE
    DATEFROM GE DATA_PACKAGE-PSTNG_DATE.
                  IF SY-SUBRC EQ 0.
                    DATA_PACKAGE-DATETO = ITAB4-DATETO.
                    DATA_PACKAGE-DATEFROM = ITAB4-DATEFROM.
                    DATA_PACKAGE-COMP_CODE = ITAB4-COMP_CODE.
                  ENDIF.
                  Modify DATA_PACKAGE.
      endloop.
      ABORT = 0.
    Here I assumed you have Posting date in the Communication structure and used to map to Fiscalperiod of the cube.
    6) Do the Master data upload to Cost center and active the master data of it always before uploading the data to cube.
    7) Do the uploading to cube from Sratch.
    With rgds,
    Anil Kumar Sharma .P
    Message was edited by:
            Anil Kumar Sharma

  • All Dates displayed for "Characteristic Values" in Query Designer

    Hello Experts,
    We are on BI 7.0, level 13.  I am having an issue within the Query Designer with regards to dates.  I have a write-optimized DSO that contains 3 date fields (for example, ZDATE1, ZDATE2, and ZDATE3).  Each date InfoObject is of type DATS so the system automatically creates it with reference to 0DATE. 
    When I create a query in the Query Designer, on the left hand side, I expand the "Characteristic Values" node under each date field.  The Query Designer shows the same list of values for each of the 3 dates even though they are not valid values posted in the DSO for those fields.
    For example, ZDATE1 only has 1 value posted in the DSO (01/01/2005).
    ZDATE2 only has 1 value posted in the DSO (01/01/2006).
    ZDATE3 only has 1 value posted in the DSO (01/01/2007).
    Bute when I expand the "Characteristic Values" node in the Query Designer, I see ALL THREE values under each date field.  I would expect to only see the 1 value posted for the InfoObject in the DSO.  Also note that each InfoObject is defined to show "Only posted values in InfoProvider".
    It appears that Query Designer will show all values for the reference InfoObject 0DATE instead of the ones posted to the actual InfoObject in the DSO.  If I delete the data in the DSO, the Characteristic Values list still remains because they exist in 0DATE.  Anyone encounter this before?  How can I get the Characteristic Values list to only show posted values for that InfObject?
    Thanks for your help!
    J

    Thanks for the response.  I went into the DSO and right clicked on each of the Date fields.  I looked at the Provider-specific properties and there is the option for "Query Exec.FilterVal" which only restricts what values appear when restricting during execution, not during query creation.
    Is there someplace else I should look or someplace else I can make change to only display posted dates when creating a query?  Thanks!

  • Using Crop results in Rescale

    I've been trying to crop my project using Modify > Rescale project. I select a smaller size, and then select Crop. I click Next, select the Crop position, click Apply to All Slides, and then click Finish. The result is a rescaled project, not a cropped project. What am I doing wrong?
    I'm using Captivate 5.5 on 64-bit Windows 7 Enterprise, Service Pack 1. My computer has 4 GB of RAM. I have run Captivate in Administrator mode, and with Windows XP compatibility. Nothing seems to work.
    See screenshots:
    The orginal size was 800x600.
    I'm trying to crop out most of the browser menues and dead space on the right.
    The result is Rescaled, not cropped.
    And finally, some info about my system.
    I have run Captivate as Administrator.
    And I have run it in XP Compatibility mode.

    Joe,
    I tried 2 tests at my end with Adobe Captivate 5.5
    1> Created a project of just 2 slides and used image on both of them. Crop using Rescale Project option --> Success
    2> Did Autoamtic recording and got 2 slides. Crop -->> Success
    You have tried the 2nd step, try the first one as well. However I would recommend you to Run Captivate as Run as Admin.
    After trying the above steps if you still face the same issue, then recreate the Adobe Captivate Preference file as if it seems to Adobe Captivate 5.5 Specific issue.
    Follow the link mentioned below to recreate the Adobe Captivate 5.5 Preference file.
    http://helpx.adobe.com/captivate/kb/troubleshoot-unexpected-behavior-captivate-4.html
    The link will show you about Captivate 4 and Captivate 5. However for Captivate 5.5 you can follow the Adobe Captivate 5

  • How do I put a label in a null field in the result set of a group-by query

    I run the query:
    select section, count(*) from nparcel group by section
    and get the result
    section1 100
    section2 200
    section3 300
    400
    I would like to modify the query to put a label, perhaps 'BLANK', in the last returned row. Is that possible and if so how.
    Thanks in advance for helping.

    Hi,
    In SQL*Plus you have some additional options, that apply to all queries until you override them or end the session.
    COLUMN section NULL BLANKapplies only to the column called "section".
    SET NULL BLANKApplies to all columns.

  • Returning a result set/record from a dynamic query

    There seems to be plenty of examples for using Native Dynamic Sql to formulate and execute a dynamic query, however there are no examples of returning a result set or records which contain the rows of data that are retrieved by executing the query. Could someone give us an example?

    Welcome to the Oracle forum....
    CREATE OR REPLACE PACKAGE curspkg_join AS
    TYPE t_cursor IS REF CURSOR ;
    Procedure open_join_cursor1 (n_EMPNO IN NUMBER, io_cursor IN OUT t_cursor);
    END curspkg_join;
    Create the following Oracle package body on the Oracle server:
    CREATE OR REPLACE PACKAGE BODY curspkg_join AS
    Procedure open_join_cursor1 (n_EMPNO IN NUMBER, io_cursor IN OUT t_cursor)
    IS
    v_cursor t_cursor;
    BEGIN
    IF n_EMPNO <> 0
    THEN
    OPEN v_cursor FOR
    SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME
    FROM EMP, DEPT
    WHERE EMP.DEPTNO = DEPT.DEPTNO
    AND EMP.EMPNO = n_EMPNO;
    ELSE
    OPEN v_cursor FOR
    SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME
    FROM EMP, DEPT
    WHERE EMP.DEPTNO = DEPT.DEPTNO;
    END IF;
    io_cursor := v_cursor;
    END open_join_cursor1;
    END curspkg_join;
    Dim Oraclecon As New OracleConnection("Password=pwd;" & _
    "User ID=uid;Data Source=MyOracle;")
    Oraclecon.Open()
    Dim myCMD As New OracleCommand()
    myCMD.Connection = Oraclecon
    myCMD.CommandText = "curspkg_join.open_join_cursor1"
    myCMD.CommandType = CommandType.StoredProcedure
    myCMD.Parameters.Add(New OracleParameter("io_cursor", OracleType.Cursor)).Direction = ParameterDirection.Output
    myCMD.Parameters.Add("n_Empno", OracleType.Number, 4).Value = 123
    Dim myReader As OracleDataReader
    Try
    myCMD.ExecuteNonQuery()
    Catch myex As Exception
    MsgBox(myex.Message)
    End Try
    myReader = myCMD.Parameters("io_cursor").Value
    Dim x, count As Integer
    count = 0
    Do While myReader.Read()
    For x = 0 To myReader.FieldCount - 1
    Console.Write(myReader(x) & " ")
    Next
    Console.WriteLine()
    count += 1
    Loop
    MsgBox(count & " Rows Returned.")
    myReader.Close()
    Oraclecon.Close()
    The above code is working in one of our application; which is using ref cursor as result set and get from procedure. I hope you can found more code by google and/or search in this forum as well; if above code is not useful to you.
    HTH
    Girish Sharma

Maybe you are looking for