# instead of initial value in reports

Hi,
I'm trying to solve the following problem: When I create a report in Query Analyzer, in some columns, instead of the initial value(spaces) for some fields, there is the  # sign.
Do you know from where does this issue come from? Is there an option inside the query analyzer to suppress this?
Thanks in advance,
George Ardeleanu

Hi George,
This is the default property of reports in BW. You see # instead of blank values in the data targets.
Are you using WAD (Web Application Designer) in your scenario. If yes, there is a solution to remove these #es from the report output. You just need to add a small html script in the html tab of the WAD.
Regards,
Yogesh

Similar Messages

  • How to display only Day value instead of DATE in Bex Report

    Hi Experts,
    We have a Month to date Report, in this report we need to display only day value instead of DATE value,
    Like
    if Date is 14.05.2010 we need to show only  14
    Regards,
    Chandra

    Hi ,
    Thanks for Quick Response
    we does have the option to create the char(calday or ...) value variable replacement with char (calday or ...) info object, we can  replace with Report r variable value only not with info object.
    i hope we can replace the with info object only with formula variable with replacement.
    My BEx Report is Designed like
    Columns
    0Calday
    Rows
    Plant
    Keyfigures
    Actual
    Plan
    Report output Looks like month to date
    0CALDAY            01.06.2010   02.06.2010  03.06.2010
    P1  ACTUAL            10                     8                    4
    P1  PLAN                 15                     6                    2
    P2  ACTUAL              5                   10                     7
    P2  PLAN                  4                      8                    3
    Report should be
    0CALDAY            1    2     3
    P1  ACTUAL      10     8      4
    P1  PLAN           15     6     2
    P2  ACTUAL        5    10    7
    P2  PLAN            4      8     3
    please let me know how can i achive this
    Regards
    Chandra

  • How to show fixed values instead of field values in ALV cell.

    Hi colleagues,
    I have a ALV object of type CL_GUI_ALV_GRID.
    I have associted a table with it which has a field called refresh type which is of type char1.
    My program works fine.
    But the problem is,
    The refresh_type field has fixed values in its value range.
    On display of ALV i want to show the associated fixed value instead of actual value in table content.
    I donno the way to do it.
    Please help me.
    -Trupti

    Another way to do this would be to define a conversion exit function for use in the report.
    You can copy a SAP-provided function group like ALFA as a template, but you may need untyped importing/exporting parameters. Name the new functions as CONVERSION_EXIT_Zxxx_OUTPUT and CONVERSION_EXIT_Zxxx_INPUT where Zxxx is some string you choose.
    In this case the input to the ...OUTPUT function will be the code value from the database and the output value will be the corresponding text. So the code of the function CONVERSION_EXIT_Zxxx_OUTPUT will do the conversion suggested in steps 2 & 3 of Marcin's response above.
    Here is an example based on the SFLIGHT model to enhance example report BCALV_GRID_DEMO.
    First the conversion function:  (I used 'zalv' as my identifying string for the conversion.)
    function conversion_exit_zalv_output.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(INPUT)
    *"  EXPORTING
    *"     VALUE(OUTPUT)
      field-symbols:
        <output> type c,
        <carrid> type c.
      assign input  to <carrid> casting.
      assign output to <output> casting.
      select single carrname from  scarr into <output>  " convert code to text
             where  carrid  = <carrid>.
    endfunction.
    In a copy of program BCALV_GRID_DEMO, make changes in the module pbo.
    module pbo output.
      set pf-status 'MAIN100'.
      if g_custom_container is initial.
        create object g_custom_container
          exporting
            container_name = g_container.
        create object grid1
          exporting
            i_parent = g_custom_container.
    * " changes start here
        data: gs_fcat type lvc_s_fcat,
              gt_fcat type lvc_t_fcat.
        tables: dd03l.
        select * from dd03l where tabname = 'SFLIGHT'. " fill field catalog
          if dd03l-fieldname = 'CARRID'.
            gs_fcat-inttype = dd03l-inttype.
            gs_fcat-outputlen = 20.
            gs_fcat-coltext = 'Carrier'.
            gs_fcat-seltext = 'Carrier'.
            gs_fcat-edit_mask = '==ZALV'. " == with the string you used to name the functions
          else.
            clear gs_fcat.
            gs_fcat-ref_table = dd03l-tabname.
          endif.
          gs_fcat-fieldname = dd03l-fieldname.
          append gs_fcat to gt_fcat.
        endselect.
    * " changes end here
        call method grid1->set_table_for_first_display
          exporting
            i_structure_name = 'SFLIGHT'
          changing
            it_fieldcatalog  = gt_fcat
            it_outtab        = gt_sflight.
      endif.
    endmodule.                    "PBO OUTPUT
    If you run this amended program, you see appropriate carrier texts in the ALV grid, where the original program had the IATA codes.
    This approach makes sense if, for example, the same translation is also required elsewhere, as the function can easily be reused.
    best wishes
    Ed

  • Instead of showing 0 in report its getting blank space

    Hi Sap Gurus.
    I am running the query in rsrt, in my report i am getting instead of 0 values it is showing Blank space. But in my source data there is value is 0. But when i execute the query its getting blank space. How to over come this problem.
    could u please let me know.
    Best Regards,
    venkat.

    Hi,
    Check out this.. it might solve your issue.
    in Query Properties
    Tab: value display >> Zero value Display >> Select "zero as Default Text"  under Display Zeros
    And Tab:  Rows/Columns >> Supress Zeros Option  >> "Do not Supress"  is selected.
    Thanks
    Jitu
    Edited by: Jitenderkumar Danduvia on Feb 23, 2010 12:45 PM

  • Setting null values vs Default or initial values in the Database?

    i am working on a system and i have set any field that might optional as Allow Null,, but this is causing me a lot of troubles especially when i am querying the data or perfoming some calculations from the database. So is it valid if i changed all the Allow null field to have initial values an restricting null values to be inserted into them, so example, to set the initial values for an integer to be 0 and string to be empty?

    Hi,
    You can implement business logic on db side or on app side.
    Advantage and disadvantage of implementation business logic on DB side.
    Advantages:
    1.Don't require app server software version changes/compilations (Java, C, C++, C#...)
    2.Stored procedures are stored directly in the db.
    3.DBA can manage and optimize the stored procedures in flexible way; it'll be transparent for app server because the same remaining interface.
    4.Avoidance of network traffic - the stored procedures can run directly within DB engine.
    5.Encapsulation of business logic as API in the database.
    6.Reports can be implemented like PL/SQL functions that return table data type. The functions can be called from application side - sort of API.
    Disadvantages:
    1.DB vendor specific, but when dealing with the same databases (for example Oracle) it's not relevant.
    2.Require DB skills to write the procedures correctly: it will require time for a pure java/c/c++/c# programmer to understand the DB code and to write it in optimal (from db point of view) way.
    3.If it's too complex business logic - the db side implementation can become too complex.
    To overcome issue with null(s) please use NVL function.
    Example:
    drop table  TEST_TABLE;
    create table TEST_TABLE(parameter varchar2(20), val number(10, 2));
    insert into TEST_TABLE values ('A', 23.245);
    insert into TEST_TABLE values ('B', null);
    insert into TEST_TABLE values ('C', 123);
    insert into TEST_TABLE values ('D', null);
    select avg(nvl(val, 0)) from TEST_TABLE;Hope this will help.
    Best Regards,
    http://dba-star.blogspot.com/

  • Problem using default value of report parameter 1 to validate parameter 2 passed in to report

    I am having a problem with an SSRS report using the default value of report parameter 1 to validate parameter 2 passed in to report (via C#) instead of using the value of parameter 1 that is also passed into the report.  Here are the
    simplified details:
    Using SSDT, SQL Server 2008 R2
    SSRS report has 2 parameters:
    P1 -- text, hidden, default value 'R1', ... front-end C# code can pass 'R2' or 'R1'
    P2 -- text, allows multiple values, list of available values provided by stored procedure (sproc_list) that takes P1 value as a parameter.  Hence, sproc_list either provides a list for P1 = 'R1' or P1 = 'R2'.
    List for P1 = 'R1' is 'A', 'B', 'C'
    List for P1 = 'R2' is 'A', 'B', 'D'
    Values for P1 and P2 can be passed in via C# to the report.
    The C# front-end displays 2 report choices to the user, R1 and R2, where both choices call the same RDL; but choice R1 passes in 'R1' for P1, and the choice R2 passes in 'R2' for P1.
    Upon a users 1st time use of the report no parameters are passed in.  Then when the user exits the report, the parameter value for P2 that was chosen is saved off to a file for R1 or R2, and used the next time the user selects the report.
    Everything always works fine for report R1 since the default value for P1 is 'R1'.
    When R2 is chosen and the user selects 'D' as the value for P2, runs the report, then exits, the P2 value of 'D' for R2 is saved to a file.  When the user returns the next day to run report R2, 'R2' is passed for P1, and 'D' is passed for P2.
    This is when the problem occurs.  The value of 'D' for P2 is validated against a list generated for P2 based on the default value of 'R1' for parameter P1.  Hence, SSRS considers 'D' an invalid value for P2 and blanks out the P2 parameter. 
    The user can then use the drop down list for P2 and choose 'D', but this defeats the purpose of saving the parameter values to be used the next time.
    Why is the stored procedure that provides a list of available values for parameter P2 using the default value of 'R1' for parameter P1 instead of using the value of 'R2' passed into the report for parameter P1?

    Hi Tom,
    Sorry for my delay.
    If I understand correctly, you have two parameter in your report. It is a couple of cascading parameter. If we have choose ‘R1’ of P1, the P2 values is A, B, C. ‘R2’ of P1, corresponding P2 values is A, B, D. What your requirement is to save the end use
    select option of these two parameters.
    In SSRS, if we have configure the parameter with default value. When we run the report, the parameter will fill with the default value to filter data. If we want to save the last status we are render the report, we need to update the default value of P1.
    If we are query the default value from database, if possible, we can
    update the database try to resolve the issue.  Alternatively, we can set the dynamic default value for the parameter.
    Hope this helps.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • LOV Initial value on Parameter form

    Hi, I am new to Oracle Reports so I hope this is not a lame question.
    I have a drop down list on my parameter form based on a select query. My problem arises when I run the report, I would like the list to display a blank value as the initial value rather than the first value returned by the select statement. Does anyone have any ideas?

    You could always do something like:
    select ename from
    (select null ename from dual
    union
    select ename from emp)
    order by nvl(upper(ename), 'A')

  • Why won't cfselect fill the initial value?

    I don't understand why the cfselect won't put in the initial value...
                 <cfif #URL.form_action# EQ "update">
                   <cfquery name="details">
                   GET STATE QUERY
                   </cfquery>
                   <cfselect selected="#details.state#" name="states" bind="cfc:_kpcfc_select.get_states()" bindonload="true" required="yes" message="Please select the state."/><span class="red">*</span>
                  </cfif>

    Dude that is the worst response ever.  I arrived at the forums after already reading this page: http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_r-s_14.ht ml
    Actually I think it's pretty good advice.  There's nothing in your post to suggest you had already read the docs, and given the docs actually explain why what you're trying to do doesn't work, it's reasonable to assume you'd not read them.
    Clearly the selected attribute is what I am supposed to use, however it does not work.
    Well.  Hmmm.  You see the docs also say this:
    "This attribute applies only if selection list items are generated from a query."
    My emphasis.  Your <cfselect> is generated from a bind attribute, not a query attribute.  So that would be why it's "not working".
    FWIW, this restriction seems to have been lifted in CF9.  Not that that's much help to you, I imagine.
    Please someone suggest a solution other than retracing my steps.
    OK.
    Suggestion 1: if someone takes the time to try to help you, don't be rude to them, even if you don't like their suggestion.  It will not endear you to the people who are trying to help you, so you might find yourself not being helped.
    Suggestion 2: I guess one approach would be to knock together some JS that runs after the form has rendered which scans down the option collection until it finds the item you want selected, then select it.
    Suggestion 3: maybe just populate the select with a query instead of a bind.
    Adam

  • Initial values in query using multidimensional authorizations

    Hi,
    so far reading here through the topics helped solving my issues, but know I have a problem with displaying the initial values in a query using multidimensional authorizations. We use BI 7 and have to user the authorization check from BW 3.5 (rsr).
    Following situation:
    - We have a two infoobjects "CLUST" and "P_CLUST" referencing to the infoobject "M_COSTELM" and using the same hierarchies.
    - The user should either see a specific value of CLUST and all values of P_CLUST or a specific value of P_CLUST and all values of CLUST in the reports. The values of CLUST and P_CLUST he's allowed to see are the same.
    - The role is declared as following:
    CLUST: * + P_CLUST [] + auth.object for CLUST
    PCLUST: * + CLUST [] + auth.object for PCLUST
    - Only one of those two infoobjects has to be set with a value in the query.
    Using the role as above and running a query, the rights management is working fine and the user only see's what he's allowed to.
    But when the user open's the query he see's the whole hierarchie in the inital values on the left and not only those nodes and leafs he should see.
    For example:
    Hierarchie "costelm_hier"
    ALL_NODES
    - FIRST NODE
       - FN_LEAF 1
       - FN_LEAF 2
    - SECOND NODE
      - SN_LEAF 1
      - SN_LEAF 2
    The user is allowed to see the FIRST_NODE and it's leafs in CLUST and P_CLUST.
    When he now open's a query with CLUST as the input-ready infoobject, in the initial values he see's the whole hierarchie and not only the FIRST_NODE with it's leafs.
    When then browsing through the tree and selecting the FIRST_NODE, in the query, the restrictions are working fine. He can see the FIRST_NODE in the infoobject CLUST and every values in P_CLUST. Also vice versa.
    As it's more user-friendly I only want the user to see the nodes and leafs he's has in his role.
    I also tried using an exit variable with the function 'RSSB_GET_AUTHS_FILTERED', but without success.
    Hope u understand me so far!?
    Thanks for your support!

    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • Placeholder column's "initial value"

    Hello,
    I have a report with 2 queries, the master query contains some placeholder columns, and the detail query contains a formula column that sets values for these placeholders:
    - MASTERQUERY: database columns, PlaceHolder1, PlaceHolder2, PlaceHolder3
    |
    |
    -- DETAILQUERY (linked to MASTERQUERY): database columns, CF_PlaceHolder_Changer (change values of PlaceHolderX)
    The problem is: for a particular record of MASTERQUERY, if the DETAILQUERY doesn't have any row then PlaceHolders are not set.
    (They will keep the values from previous MASTER record). Is there any way that I can specify "initial value" for placeholder columns?
    And another question: what is the formula attached to the placeholder used for?
    Please help!

    You could have a "count" column in the master group that determines how many rows are in the detail group. Then alter the value of the field displaying the placeholder value by adding a format trigger with srw.set_field_char/date/number(0, <initial value>); when the count is '0'.

  • DESNAME Initial Value

    Hello Everyone,
    When I run a report, I filled user:pwd@DB. I would like to save the report in a table ( same DB).
    I have a challenge for Initial Value of DESNAME.
    If you have any more questions for us, please let us know.
    Thanks advance,
    N Y

    Try something like this:
    declare
       l_file       bfile;
       l_blob       blob;
       l_filename   varchar2(20) := 'myfile.pdf';
    begin
       l_file := bfilename('doc_loc', l_filename);
       dbms_lob.fileopen(l_file, dbms_lob.file_readonly);
       dbms_lob.createtemporary (l_blob, false);
       dbms_lob.loadfromfile(l_blob, l_file, dbms_lob.lobmaxsize,1 ,1 );
       dbms_lob.fileclose(l_file);
       insert into test (id, docs)
       values (1, l_blob);
       -- If you want to delete the file after loading:
       utl_file.fremove ('doc_loc', l_filename);
       dbms_lob.freetemporary (l_blob);  
    end;

  • '%_'-initial values in CL_ABAP_CHAR_UTILITIES

    Hello friends,
    Just a matter of interest:
    in CL_ABAP_CHAR_UTILITIES the initial values for attributes are defined like %_CR_LF . Is that a special kind of variable definition ? if i try to get information on that initial value, i get the message '%_CR_LF does not exist' (??). Where is it set, if it's not defined ? How can it work ( it does, that's no doubt ), if it's not defined ?
    Any information would be usefull.
    Regards Wolfgang

    Hi wolfgang,
    1.
    %_NEWLINE
    %_HORIZONTAL_TAB
    2. These are all CONSTANTS
       defined in the CLASS DEFINITION.
    3. in se24, open this class,
    4. Then, use the menu
       GOTO -->  PUBLIC SECTION
    5. THERE u will find the defintion.
    ype-pools ABAP .
      constants BYTE_ORDER_MARK_LITTLE type ABAP_BYTE_ORDER_MARK
    value 'FFFE' .
      constants BYTE_ORDER_MARK_BIG type ABAP_BYTE_ORDER_MARK value 'FEFF'
      constants BYTE_ORDER_MARK_UTF8 type ABAP_BYTE_ORDER_UTF8
    value 'EFBBBF' .
      constants CHARSIZE type I value %_CHARSIZE .
      constants ENDIAN type ABAP_ENDIAN value %_ENDIAN .
      constants MINCHAR type ABAP_CHAR1 value %_MINCHAR .
      constants MAXCHAR type ABAP_CHAR1 value %_MAXCHAR .
      constants HORIZONTAL_TAB type ABAP_CHAR1 value %_HORIZONTAL_TAB .
      constants VERTICAL_TAB type ABAP_CHAR1 value %_VERTICAL_TAB .
      constants NEWLINE type ABAP_CHAR1 value %_NEWLINE .
      constants CR_LF type ABAP_CR_LF value %_CR_LF .
      constants FORM_FEED type ABAP_CHAR1 value %_FORMFEED .
      constants BACKSPACE type ABAP_CHAR1 value %_BACKSPACE .
    6. To make ur own defintion,
      try this code :
    7.
    report abc.
    type-pools : abap.
    data : a type ABAP_CHAR1 value  %_NEWLINE.
    write :/ a.
    regards,
    amit m.

  • What the Initial value for sy-tabix & sy-index

    Hi Folks
       I have a small doubt.
    What the Initial value for sy-tabix & sy-index?
    Can anyone please clarify me?
    Regards,
    Sree

    hi sree,
    both values are initialized to 0 before processing and after processing values are changed according to used scenarios.
    if helpful reward some points.
    with regards,
    suresh babu aluri.

  • Initial value and value in the database

    Hello world ,
    i want to add initial value with value in the database depend on the date
    for example i have initial value for 30/09/2009
    i and to all it with value in the database in 31/12/2009
    take a look what i did
    PROCEDURE pkd_prem IS
    cursor gr_pkd_prem is select
    SUM(DECODE(mark,'01',FM_mark,TM_mark) A,
    SUM(DECODE(FMS,'01',LS,NS) b
    from fr_treaty_profile ftp, fr_monthly_summary
    where
    (ftp.tpr_cgp_id = fr_monthly_summary.fms_cgp_id )
    AND (ftp.tpr_cmp_id = fr_monthly_summary.fms_cmp_id )
    AND (ftp.tpr_treaty_origin = fr_monthly_summary.fms_treaty_origin )
    AND (ftp.tpr_uw_year = fr_monthly_summary.fms_uw_year )
    AND (ftp.tpr_class = fr_monthly_summary.fms_class )
    AND (ftp.tpr_type = fr_monthly_summary.fms_type )
    AND (ftp.tpr_serial = fr_monthly_summary.fms_serial )
    AND
    (fr_monthly_summary.fms_treaty_origin=:BLK1.EO_ORIGIN) AND
    (fr_monthly_summary.fms_uw_year=:BLK1.EO_UW_YEAR) AND
    (fr_monthly_summary.fms_class=:BLK1.EO_CLASS) AND
    (fr_monthly_summary.fms_treaty_type=:BLK1.EO_TYPE) AND
    ( fr_monthly_summary.fms_treaty_serial=:BLK1.EO_SERIAL)
    AND (FMS_TYPE ='P')
    AND FMS_SERIAL = '01'
    AND (FMS_OFC_ID !='X')
    and (FMS_YEAR =substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),7,4))
    and (FMS_PERIOD between substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2)-2 and substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2)) ;
    ---Initial value
    cursor base is select EO_GR_BKD_PREM from FR_EN
    where
    EO_TREATY_ORIGIN=:BLK1.EO_ORIGIN AND
    EO_UW_YEAR=:BLK1.EO_UW_YEAR AND
    EO_CLASS=:BLK1.EO_CLASS AND
    EO_TREATY_TYPE=:BLK1.EO_TYPE AND
    EO_TREATY_SERIAL=:BLK1.EO_SERIAL AND
    EO_YEAR=:BLK1.EO_YEAR;
    A number(18,3);
    B number(18,3);
    v_base number(18,3);
    BEGIN
    open base;
    open gr_pkd_prem;
    fetch gr_pkd_prem into a,b;
    fetch base into v_base;
    :BLK1.EO_GR_BKD_PREM :=nvl(a,0)+ nvl(b,0)+ nvl(v_base,0);
    close gr_pkd_prem;
    close base;
    END;
    the proceudre is correct and the values come as i want
    but here
    FMS_PERIOD between substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2)-2 and substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2))
    suppose i will add from 6 to 9
    the value will come down to add with base value
    but next time i want from 10 to 12
    it will add value 10 to 12 with the base for just period 10 to 12
    i want to keep adding
    if i start from 6 to 9
    then shoud be
    add the value of 6 to 9 to 10 to 12
    but

    look ..
    i created a form and let's say there is one field called Base ..
    and i inert value on that field and saved .
    then
    i created cursor to fetch value from another table
    that value which i fetched from another table must add to past value
    take this scenario
    i started with value 6
    then i fetch by cursor value from 1/1/2010 to 31/3/2010 and that value = 33
    first action
    6+33
    then
    i fecth by using cursor from 1/6/2010 to 30/9/2010 and that value = 2
    the result of first action must add with the last value which is 2
    (6+33) from first action plus(+) 2 and display the result on the secreen

  • What is reason for cl_fpm_factory= get_instance( ) return initial value?

    In DEV system, this piece of code is working fine. However when it moves to Testing system it dump due to cl_fpm_factory=>get_instance( ) return initial value. What could be the reason for this? Thanks!
      data lo_fpm  type ref to if_fpm.
      lo_fpm = cl_fpm_factory=>get_instance( ).
      wd_this->go_message_manager = lo_fpm->mo_message_manager.

    Hi Anthony,
    how sure are you that the DEV and Test system running the same Netweaver SP versions ?.  My doubt is that the test system is not NW7.01 (Ehp-1) . Or some thigs are not enabled in the configuration.
    Regards
    Senthi

Maybe you are looking for

  • Error using weblogic.deploy tool, while deploying a war

              Hi all, I'm trying to deploy a war with the follw command:           java weblogic.deploy -host localhost -port 7001 -component NewScreenWar:BEAserver           deploy beasystem NewScreenWar d:\newsscreen\weblogic\NewScreenWar.war          

  • Adobe plugin fails to find PDF specified in XDP sent to browser

    We have a private website that sends XDP files to the browser.  These XDP files specify PDF forms on our server.  For some of these XDP files, the browser reports something like this: The file you are attempting to open contains comments or form data

  • Windows 7 on my HP ENVY TouchSmart 17-j137cl

    Can I install windows 7 64x on my HP ENVY TouchSmart 17-j137cl (17.3" Notebook PC - Intel Core i7 4710MQ 2.5GHz 16GB 1TB)? Now there is a window 8. Will i find drivers?

  • Why haven't my Pages files restored after a backup?

    Ok.  I have an ipad 2. I use icloud to back up my important stuff, particularly Pages files.  Today I made the MASSIVE mistake of updating my os.  This killed my ipad & I have had to restore.  No problem I thought. I go to restore & get a 'not all th

  • Trouble updating from 7.0.1 to 7.0.2

    I have downloaded and upgraded to 7.0.2 on my MacBook Pro 2Ghz intel core duo several times. the problem is . . . It still shows that I have version 7.0.1 and my wife's iPod won't work with that. If I select "check for updates" from the iTunes menu i