Value coming from query is chaing in the Table view

Hi experts,
I am new to VC and developing a basic model by using a BI query as a data service.
I have a field "Project Code" which can return value numeric or alpha numeric or Character.
for example
Project Code= 14000000000000002782007 or
ATROVASTATIN
When i am right clicking the query and doing the test query function its displaying correctly but when i am draging from the output port of this query and using a Table view to display the data the numeric values like in our example "14000000000000002782007" is displaying as 1.4e+23 its displaying the same value where ever i have some numeric value in the field.
But its displaying the Char value right "ATROVASTATIN" as it is.
In the table view the field which is getting this value is with Datatype Text.
How can i solve this problem.
Thanks and regards
Neel

Hi Neel,
Have a look at this link,
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/sizeof_key+values&

Similar Messages

  • How to Pass Multiple Value Range From Query ?

    Hi,
    I have searched over SDN to find about how do we pass multiple value ranges from Query to SAP ODATA?
    But I have not found suitable answers so I am posting it here.
    If we need to pass a date parameter in Query which has a multiple range like  sales orders created date between 03/02/2014 to 05/07/2014.
    How do we phrase it in Query ?
    I tried as below but the IT_FILTER_SELECT_OPTIONS of /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_ENTITYSET does not get filled up with the parameters
    How do we pass multiple values in Query?
    http://ctnhsapapp16.corp.ken.com:8000/sap/opu/odata/sap/ZCHAKRABK_MAINT_ORDERS_SRV/Maint_Orders?$filter=Maint_Plant eq 'US19' and B_st_dt gt datetime'2015-02-01T00:00:00' and B_st_dt lt datetime'2015-02-28T00:00:00'
    Thanks in Advance.
    KC.

    Hi,
    I Have Found solution to the Query posted above.
    Please find the URL's below for more clarifications.
    Revert for any suggestions please.
    http://ctnhsapapp16.corp.ken.com:8000/sap/opu/odata/sap/ZCHAKRABK_MAINT_ORDERS_SRV/Maint_Orders?$filter=Maint_Plant eq 'US19' and ( B_st_dt ge (datetime'2015-02-01T00:00:00') or  B_st_dt le (datetime'2015-02-27T00:00:00'))
    http://ctnhsapapp16.corp.ken.com:8000/sap/opu/odata/sap/ZCHAKRABK_MAINT_ORDERS_SRV/Maint_Orders?$filter=Maint_Plant eq 'US19' and ( B_st_dt ge (datetime'2015-02-01T00:00:00') and  B_st_dt le (datetime'2015-02-27T00:00:00'))
    Thanks KC.

  • [Forum FAQ] How to configure a Data Driven Subscription which get multi-value parameters from one column of a database table?

    Introduction
    In SQL Server Reporting Services, we can define a mapping between the fields that are returned in the query to specific delivery options and to report parameters in a data-driven subscription.
    For a report with a parameter (such as YEAR) that allow multiple values, when creating a data-driven subscription, how can we pass a record like below to show correct data (data for year 2012, 2013 and 2014).
    EmailAddress                             Parameter                      
    Comment
    [email protected]              2012,2013,2014               NULL
    In this article, I will demonstrate how to configure a Data Driven Subscription which get multi-value parameters from one column of a database table
    Workaround
    Generally, if we pass the “Parameter” column to report directly in the step 5 when creating data-driven subscription.
    The value “2012,2013,2014” will be regarded as a single value, Reporting Services will use “2012,2013,2014” to filter data. However, there are no any records that YEAR filed equal to “2012,2013,2014”, and we will get an error when the subscription executed
    on the log. (C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles)
    Microsoft.ReportingServices.Diagnostics.Utilities.InvalidReportParameterException: Default value or value provided for the report parameter 'Name' is not a valid value.
    This means that there is no such a value on parameter’s available value list, this is an invalid parameter value. If we change the parameter records like below.
    EmailAddress                        Parameter             Comment
    [email protected]         2012                     NULL
    [email protected]         2013                     NULL
    [email protected]         2014                     NULL
    In this case, Reporting Services will generate 3 reports for one data-driven subscription. Each report for only one year which cannot fit the requirement obviously.
    Currently, there is no a solution to solve this issue. The workaround for it is that create two report, one is used for view report for end users, another one is used for create data-driven subscription.
    On the report that used create data-driven subscription, uncheck “Allow multiple values” option for the parameter, do not specify and available values and default values for this parameter. Then change the Filter
    From
    Expression:[ParameterName]
    Operator   :In
    Value         :[@ParameterName]
    To
    Expression:[ParameterName]
    Operator   :In
    Value         :Split(Parameters!ParameterName.Value,",")
    In this case, we can specify a value like "2012,2013,2014" from database to the data-driven subscription.
    Applies to
    Microsoft SQL Server 2005
    Microsoft SQL Server 2008
    Microsoft SQL Server 2008 R2
    Microsoft SQL Server 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    For every Auftrag, there are multiple Position entries.
    Rest of the blocks don't seems to have any relation.
    So you can check this code to see how internal table lt_str is built whose first 3 fields have data contained in Auftrag, and next 3 fields have Position data. The structure is flat, assuming that every Position record is related to preceding Auftrag.
    Try out this snippet.
    DATA lt_data TYPE TABLE OF string.
    DATA lv_data TYPE string.
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename = 'C:\temp\test.txt'
      CHANGING
        data_tab = lt_data
      EXCEPTIONS
        OTHERS   = 19.
    CHECK sy-subrc EQ 0.
    TYPES:
    BEGIN OF ty_str,
      a1 TYPE string,
      a2 TYPE string,
      a3 TYPE string,
      p1 TYPE string,
      p2 TYPE string,
      p3 TYPE string,
    END OF ty_str.
    DATA: lt_str TYPE TABLE OF ty_str,
          ls_str TYPE ty_str,
          lv_block TYPE string,
          lv_flag TYPE boolean.
    LOOP AT lt_data INTO lv_data.
      CASE lv_data.
        WHEN '[Version]' OR '[StdSatz]' OR '[Arbeitstag]' OR '[Pecunia]'
             OR '[Mita]' OR '[Kunde]' OR '[Auftrag]' OR '[Position]'.
          lv_block = lv_data.
          lv_flag = abap_false.
        WHEN OTHERS.
          lv_flag = abap_true.
      ENDCASE.
      CHECK lv_flag EQ abap_true.
      CASE lv_block.
        WHEN '[Auftrag]'.
          SPLIT lv_data AT ';' INTO ls_str-a1 ls_str-a2 ls_str-a3.
        WHEN '[Position]'.
          SPLIT lv_data AT ';' INTO ls_str-p1 ls_str-p2 ls_str-p3.
          APPEND ls_str TO lt_str.
      ENDCASE.
    ENDLOOP.

  • How to search this value in oracle database to find out the table

    Hi expert,
    I know there is a value in oracle database, please show me how to search this value in oracle database to find out the table holding this value.
    Many Thanks,

    918440 wrote:
    Hi friends,
    this question is really practical, I already know there is value from application saved in database, I want to search the whole database to figure out which table the value is contained.write SQL that writes SQL to query every table.
    Handle:     918440
    Status Level:     Newbie
    Registered:     Mar 2, 2012
    Total Posts:     20
    Total Questions:     10 (10 unresolved)
    why do you waste time here when you NEVER get any answer to any question you post?

  • How to get the count of the entries in the table view

    Hello experts,
             I have got a requirement where i need to display the total number of entries present in the table view, since the result comprises of several pages. This requirement is even applicable for the filter options in the table view i.e., if i use a filter it should count the total number of entries that satisfy the filter criteria.
    Thanks in advance,
    Vijayalakshmi

    hi,
    its simple,just place an input field in the layout and display the cpunt in that field.
    for that do as below,
    first in the layout of the page where you are giving tableview tab,in the next line give
    <b><htmlb:inputField id="Count"
                      value="<%=ln%>"
                      disabled = 'X'/></b>
    to display the count in that input field which is disabled.
    and if i am mot wrong in the Initialization event, you are writing select query right to populate internal table.
    after that write,
    <b>describe table it_mara lines ln.</b>
    and define this ln in page attributes as type i.
    do award points f it helps u,
    regards,
    Message was edited by:
            sowjanya s

  • Problem in the Table view of VC model

    Hi all,
    We have a created a table view using the BI query as source.
    the table view has say 4 fields (Serial NO., Plant key, Material and Quantity) initially before submitting the parameters, once we enter some parameters and press submit button some extra fields are getting added at the end of the existing fields.
    i.e the final result is Serial NO., Plant key, Material and Quantity, Plant, Material, Quantity. last 3 fields are undesired.
    This is happening only when we select few fields in the define / Test Query setting (we are doing this to avoid unwanted fields while exporting data to excel).
    Is there a way to avoid this addition of extra fields in the table view.
    any help is highly appreciated.
    regards,
    Rk.

    Hi
    Are you getting these extra columns in 'Table' or while executing 'Define / Test Query'?
    If you are getting this in table then dont select anything while dragging the table from query. (When the systems ask to select the fields) Select the fields after creating the table & then see what is happening.
    Regards
    Sandeep

  • Is it able to refresh the table view automaticlly after trigger an event?

    Hi expert,
    I have one table view and a "Delete" button, each time when the user click the del button, it will delete the row which is selected via a RFC module in the backend, afterwards, I want this table view to be refreshed and read the real data from backend via another function module, is it possible? how could I do it?
    Thanks and best regards

    Let me do some summarize if my understanding is correct
    1. Use a timer as "start" point of a table view, set the "interval" to be 0.05 minute
    2. use the condition in the timer with a formula (BOOL(STORE@RETURN_CODE==0)).
    3. If I trigger one event in the "table view", for example, a "Delete" event and it will return the result RETURN_CODE = 0 to datastore
    4. Afterwards, if the time interval of the timer has been reached, 1st it will evaluate the value of the datastore and decide whether to refresh the table view.
    Am I right?
    Just as you mentioned before, it is not a perfect solution, as we may still wait for the timer to be triggered after a few seconds.
    Thanks for your answer.

  • Migration from Designer: wrong alias for used table/view in views

    Hello,
    I am using SQL DM version 3.3.0.744.
    when importing a view from Designer, a query is build with aliases for the used tables/views which are the same as the table/view name. When using a where clause in Designer, you refer to the alias of the table/view, like t1.col1= t2.cola. Here t1 and t2 are the aliases of the underlying tables.
    In Designer the following DDL is generated:
    CREATE OR REPLACE FORCE VIEW VIEW5
    (COL2
    ,COL1)
    AS SELECT T2.COLA COL2
    ,T1.COL1 COL1
    FROM TAB2 T2
    ,TAB1 T1
    WHERE t1.col1= t2.cola
    After importing the view in Data Modeler, the following DDL is generated:
    CREATE OR REPLACE VIEW VIEW5 ( COL2,
    COL1 )
    AS SELECT
    TAB2.COLA COL2,
    TAB1.COL1 COL1
    FROM
    TAB2 TAB2,
    TAB1 TAB1
    WHERE
    t1.col1= t2.cola ;
    So by using the wrong alias, the where clause is invalid and the query builder doesn't show the joins.
    The solution for this is to use the alias of the used table/view instead of the table/view name. Can you raise a bug for this?
    Thanks in advance,
    Joop

    Thanks for your time. I did all possible way, but still the same problem. I mean
    EXP 8... IMP 8
    EXP 8... IMP 9
    EXP 9... IMP 9
    Today I found that, NLS_LANG of two databases are different. Oracle 8i is : WE8ISO8859P1
    AND Oracle9i is : WE8MSWIN1252
    So I created a new database from scratch with Oracle 8i character set :WE8ISO8859P1 and then use imp9i to import the file. Still the same problem.
    Thanks,
    Arash

  • The reference to the table, view or sequence is not allowed in this context

    Hi,
    I'm triying to execute the SP that I describe below and the OS give me an error:
    CREATE OR REPLACE PROCEDURE DWARE.P_CSCV_AGR_MONTH_REVENUE
        TBL_NAME VARCHAR2,
        START_DATE DATE,
        RESULT_ OUT NUMBER
      ) AS
      BEGIN
      DECLARE
        v_tbl_name VARCHAR2(30);
        v_start_date DATE;
        v_result NUMBER := 0;
        v_select_aux VARCHAR2(32767) := ' ';
        v_temp_table VARCHAR2(30);
        v_exists NUMBER;
      BEGIN
        v_tbl_name := TBL_NAME;
        v_start_date := START_DATE;
        v_temp_table := 'temp_' || v_tbl_name;
        SELECT count(*) INTO v_exists FROM tab WHERE lower(tname) = lower(v_temp_table);
        IF (v_exists = 1) THEN
          v_select_aux := '
            DROP TABLE ' || v_temp_table || ' CASCADE CONSTRAINTS PURGE
          EXECUTE IMMEDIATE (v_select_aux);
          COMMIT;
        END IF;
        v_select_aux := 'CREATE TABLE ' || v_temp_table || ' AS
                                  SELECT ch.date_ month_revenue,
                                       s.date_sub month_sub,
                                       s.codpromoter,
                                       u.OPERATOR,
                                       SUM (ch.total) AS TOTAL_OK
                                       FROM cscv_sub_charges_' || to_char(v_start_date, 'YYYY_MM')|| ' ch
                                       INNER JOIN cscv_subs s
                                       ON ch.id_sub = s.ID
                                       INNER JOIN cscv_users u
                                       ON s.id_user    = u.ID
                                WHERE ch.STATUS = 0
                                GROUP BY ch.date_, s.date_sub, s.codpromoter, u.OPERATOR';
        EXECUTE IMMEDIATE (v_select_aux);
        COMMIT; 
         v_select_aux := '
    INSERT INTO ' || v_tbl_name || ' (
             month_revenue,
             month_sub,
             codpromoter,
             operator,
             TOTAL_0,
             TOTAL_1,
             TOTAL_2,
             TOTAL_3,
             TOTAL_4,
             TOTAL_5,
             TOTAL_6,
             TOTAL_7,
             TOTAL_8,
             TOTAL_9,
             TOTAL_10,
             TOTAL_11
            SELECT
             month_revenue,
             month_sub,
             codpromoter,
             operator,
             TOTAL_0,
             TOTAL_1,
             TOTAL_2,
             TOTAL_3,
             TOTAL_4,
             TOTAL_5,
             TOTAL_6,
             TOTAL_7,
             TOTAL_8,
             TOTAL_9,
             TOTAL_10,
             TOTAL_11
            FROM
               SELECT
                  month_revenue,
                  month_sub,
                  codpromoter,
                  operator,
                  sum(total_ok) total_0,
                  0 total_1,
                  0 total_2,
                  0 total_3,
                  0 total_4,
                  0 total_5,
                  0 total_6,
                  0 total_7,
                  0 total_8,
                  0 total_9,
                  0 total_10,
                  0 total_11
                 FROM '|| v_temp_table ||'
              WHERE to_char(month_sub,''mm/yyyy'') = to_char(sysdate,''mm/yyyy'')
              GROUP BY month_revenue,month_sub,codpromoter, operator
              UNION ALL
              SELECT
                  month_revenue,
                  month_sub,
                  codpromoter,
                  operator,
                  0,
                  sum(total_ok),
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0
                 FROM '|| v_temp_table ||'
              WHERE to_char(month_sub,''mm/yyyy'') = to_char((to_date(sysdate,''dd/mm/yy'') - INTERVAL ''1'' MONTH),''mm/yyyy'')
              GROUP BY month_revenue,month_sub,codpromoter, operator
            GROUP BY month_revenue,
             month_sub,
             codpromoter,
             operator
        EXECUTE IMMEDIATE (v_select_aux);
        v_result := v_result + SQL%ROWCOUNT;
        COMMIT;
        v_select_aux := '
          DROP TABLE ' || v_temp_table || ' CASCADE CONSTRAINTS PURGE
        EXECUTE IMMEDIATE (v_select_aux);
        COMMIT;
        RESULT_ := v_result;
      END;
      END P_CSCV_AGR_MONTH_REVENUE;
    BEGIN
    DWARE.P_CSCV_AGR_MONTH_REVENUE(CSCV_AGR_MONTH_REVENUE,'01/01/2010');
    END;
    /and the output is:
    Error at line 1
    ORA-06550: líne 2, column 32:
    PLS-00357: The reference to the table, view or sequence 'CSCV_AGR_MONTH_REVENUE'  is not allowed in this context
    ORA-06550: líne 2, column 1:
    PL/SQL: Statement ignoredwhat could I do to resove the problem??
    Thanks in advance...

    Hi,
    Your procedure's signature is
    CREATE OR REPLACE PROCEDURE DWARE.P_CSCV_AGR_MONTH_REVENUE
    TBL_NAME VARCHAR2,
    START_DATE DATE,
    RESULT_ OUT NUMBER
    ) i.e. it is expecting two input parameters, TBL_NAME in VARCHAR2 format and the other START_DATE in DATE format. Also you need a variable with data type as NUMBER to hold the value of OUT parameter RESULT_
    Now look at the way you are calling this procedure
    BEGIN
    DWARE.P_CSCV_AGR_MONTH_REVENUE(CSCV_AGR_MONTH_REVENUE,'01/01/2010');
    END;
    /first parameter has to be a VARCHAR2, so enclose CSCV_AGR_MONTH_REVENUE into single quotes.
    second parameter should be a date, so use to_date() function.
    Lastly declare a variable with data type as Number for holding value of out parameter RESULT_
    Something like this :
    declare
    t_num number;
    begin
    a('CSCV_AGR_MONTH_REVENUE',to_date('01/01/2010','MM/DD/YYYY'),t_num);
    dbms_output.put_line(t_num);
    end;Vivek L

  • Read & Modify the table view data

    Dear Experts,
    CRM 7.0
    I've added few extra custom fields to the table view through Workbench enhancment as AET does not work for my object type. Now, I would like to read the current table entries and accordingly i should fill the other columns. I am not sure how can I proceed. Please advise me asap.
    Many thanks in advance.

    Hi,
    Yes I guess you can do it in DO_PREPARE_OUTPUT.
    Use below code to read values from table:
    DATA:      lv_wrapper         TYPE REF TO cl_bsp_wd_collection_wrapper,
            lr_entity          TYPE REF TO cl_crm_bol_entity,
         lv_attribute         type string,
         LV_ATTRIBUTE_VALUE type string
      TRY.
          lv_wrapper = me->typed_context->ZCONTEXTNODENAME->get_collection_wrapper( ). " Here you will get all values from table into lv_wrapper
          CHECK lv_wrapper IS BOUND.
          lr_entity  ?= lv_wrapper->get_first( ). " Loop at table
          WHILE lr_entity IS BOUND.
            lv_attribute  ?= lr_entity->get_property_as_string( 'ATTRIBUTE NAME' ). " TO read perticular attribute
    *OR as per your requirement you can change the value. Here you can write your logic...
         lr_entity->set_property_as_string( iv_attr_name = 'ATTRIBUTE NAME' iv_value = LV_ATTRIBUTE_VALUE ).  " Change attribute property
          lr_entity  ?= lv_wrapper->get_next( ).
         ENDWHILE.
        CATCH cx_root.
          RETURN.
      ENDTRY.
    Please let me know if it helps.
    Regards,
    Bhushan

  • What are the tables/view used to Compute Dependecies Report

    Hi,
    what are the tables/views we have in APEX, which is used to create the Compute Dependecies Report
    Home -> Application xxxxx > Application Reports > Shared Components > Database Object Dependencies
    thanks,
    Deepak

    Hi Scott,
    thanks for the quick response.
    So my question is then...
    I want to create a APEX Report which will give me the following information.
    1. Application and all the Pages associated with it, which I am getting from apex_applications and
    apex_application_pages. This is OK
    2. List of all the Database Objects (Table/View) which the individual page is using, I mean relation between Page ID and database object. HOW to get that???.....(I want for each individual page, the list all the database objects (tables/views), which that page is using)
    Thanks,
    Deepak

  • How to view the tables/views available in Oracle

    HI,
      I am creating DB connection and importing the data from Oracle TABLES/ Views. I just want know how to view the tables/views available in Oracle. (I have the login details). Can I view thru TOAD? Pl let me know the best way and suggestions/ views / Links/ whitepagers.
    Regards,

    Hi,
    I don't remember exacly: RSA1 -> source system -> "replicate datasources". Works this also in a DB-source system. I think so.
    => you get all tables that your user has authorisation.
    This function execute for example (in oracle there are same information tables: dba_tables, user_tables ...) following select in the database:
    select TABLE_NAME from DBA_TABLES;
    Sven

  • Hide the table view in OBIEE 11g

    Hi All,
    The requirement is to hide the table view and display only the export link on the Dashboard. This could be achieved in 10g by inserting display:none CSS style in each column property. Tried the same in 11.1.1.3, the data is hidden but it still shows empty cells on the screen. Any thoughts?
    Thanks,
    Swati

    Hi All,
    I have got the following code. It works fine ane directly opens a excel with the data. But it does not pass the prompted value. How do i pass the value so that the exxcel contains filtered data?
    <>div class="XUIPromptEntry minibuttonOn" ALIGN="left"> <> a href="saw.dll?Go&Path=%2Fshared%2FData Dump&Options=d&Action=download&Extension=.xls" >Download<>/a>"
    Regards,
    Swati

  • Problem with the table view's _visibleBounds when used on a scroll view

    I've had numerous problems with getting a table view to work on a scroll view since the table view keeps resizing (http://discussions.apple.com/thread.jspa?threadID=2618816&tstart=0)
    I have created the views in IB. The scroll view is attached to the controller's view, and is assigned as the controller's view. The frame size of the scroll view is 320x436. I am manually setting the content size in code:
    UIScrollView* tempScrollView = (UIScrollView*) self.view;
    tempScrollView.contentSize = CGSizeMake(320, 720);
    The table view's frame's width/height is set to 280x88 in IB (i.e the size of two cells), and the header and footer are set to size 0.
    However, when I run the code, the table view is smaller, it is only 280x68. I have looked in the debugger, and the table view's _contentSize (of its scroll view) is 280x88; however, the _visibleBounds property is 280x68.
    I've tried looking into the documentation for the UITableView class, but can't find anything on the _visibleBounds property, or where it is being set and how to force it to the correct size.
    If anybody has any advice, I'd appreciate it.

    I can get around this problem by going to the scrollview which the tableview belongs to, and unchecking the Autoresize Subviews box.
    But if anybody knows about the _visibleBounds property, or the rules which are applied when resizing subviews, I'd be interested.

  • How to not display the column header in the table view?

    I do not want to display the column header in the table view, how can I achieve it?

    If you're using JavaFX 8 you can use the following in an external style sheet:
    .table-view .column-header-background {
      -fx-pref-height : 0 ;
    If you're using JavaFX 2.2, the -fx-pref-height attribute is not available in css, so I think you have to resort to a lookup:
    final Region tableHeader = (Region)table.lookup(".column-header-background");
        tableHeader.setPrefHeight(0);
    As always, I feel obliged to point out that I don't really like lookups. Sometimes they seem to be the only way, though.

Maybe you are looking for