Display Leading Zeros in bex query

Hi,
I am new to BI and need to display leading zeros in bex report.
There is an info-object billing number which is of type CHAR. The values, 00001 - 00010 has been given in the CSV file.
when i generate the same in IP, the leading zeros are mentioned, but the same is not appearing in the bex query.
I have tried ALPHA conversion but this has no affect on the output.
How to achieve the same??
thanks in advance for the answers

Hi,
To answer your question in detail, there is a  conversion routine at infoobject level( Tab- general ), that determines how the values are displayed in the front end. For ex, alpha conversion routine takes away the leading zeros when you display the value in query. ( 0001 displayed as 1 )
Assuming this is custom infoobject, I would suggest you to remove the conversion routine from the infoobject. This will help you in displaying leading zeros in the report.
However, you have to ensure that all the values loaded for this infoobject is properly alpha converted ( packed with leading zeros ) by adding a field routine in the transformation. This will avoid same values getting stored with different internal formats like 01,001 etc.
Hope this explains.
Thanks.

Similar Messages

  • How to remove pound symbol # and preserve leading zeros in BEx Query

    Hi,
    I have two questions regarding the display in BEx Query.
    1. How can I remove the pound symbol # for blanks in BEx Query?
    2. How can I preserve leading zeros? At the moment, value "001" will be displayed as "1". But I need the leading zeros.
    Thanks.
    Joon

    Hi ,
    You can apply these settings in Bex query designer.
    If you need to remove pound symbol jsut make a new formula and use NODIM function you will find this function under data functions.
    So NODIM(Your price keyfigure) this will remove the Pound symbol.
    For # just find out against which  characterstic you are getting # then go to default values panel there you will find all your characterstic which you are using in report---Rt click -Restrict-single valuesdirect input-#-Move to selection(That forward arrow)--select that # and choose exclude from selection (That red square icon).
    And yes for leading zeros check out this thread
    Leading zeros not displaying
    Hope it helps you.
    Regards,
    AL
    Edited by: AL1112 on Jun 9, 2011 1:43 PM
    Edited by: AL1112 on Jun 9, 2011 1:47 PM

  • Displaying leading zeroes

    Hi,
    I am facing a problem in displaying leading zeroes for a char in a BW report. This char has length 4 and it should show the value as 0ABC in the report but instead it displays just ABC. When checked the info providers, the data is right there.
    Technical details: length - 4, Conv Routine - ALPHA, BEx display - Key & text
    Could someone please throw some light on this?
    Thanks a lot in advance.

    Hi Bobs,
    Here is what I understood from your query;
    You have leading zeros for the char info object in the info provider but while running the query it is returning with the rest of the characters but not leading zeros?
    Yes while loading in to info provider ALPHA conversion does add any leading zeros according to the char size to load in to the info provider but while reporting it does the reverse ALPHA. but you have to check the values in the master data for the char info object where the default option for query results on char objects to retrieve key and text values from char object master tables. I think the master data for the char info object might not be have leading zeros.

  • Suppressing Leading Zeroes in the Query output

    Hi,
    I have selected a data field(0MATERIAL) as a free characteristics, It displays text and key and the key has leading zeroes.
    In the infoobject 0MATERIAL, ALPHA conversion routine is not selected, I can't change and insert the ALPHA right now because it would end up with reloading a large volume of data in different targets. To avoid this or to reduce the impact, in the reverse way,
    Could it be possible to suppress this leading zeroes at the query level? I was hoping that there would be a change that I could make at the query level, since it is 0Material and am looking at the point of minimal impact.
    Thank You.

    Hi Senthil,
    create InfoObject ZMATERIAL like a copy of 0MATERIAL, delete all the attributes and insert ALPHA conversion.
    Insert this ZMATERIAL like display attribute of 0MATERIAL. In InfoSource for 0MATERIAL map also ZMATERIAL with the same field that is feeding 0MATERIAL (MATNL). In your query insert 0MATERIAL and ZMATERIAL, and then hide 0MATERIAL (you need to insert also 0MATERIAL because ZMATERIAL is only in display), you will see only the values of ZMATERIAL, that is the material without the zeros in front.
    You can also decide to transform ZMATERIAL like navigational attribute, but in this case you have to change all the structure where do you want ZMATERIAL, because you need to flag it like navigational in that specific structure.
    Ciao.
    Riccardo.

  • F8as2-displaying leading zeros in a dynamic text field

    F8as2-
    Background:
    Currently I have to use two different text fields to display 10000 due to the different font sizes.
    The 10 is a larger font and the 000 is a smaller font.  When I assign '0 'to the dynamic text fields of the smaller font I get just that a '0' not a '000' which is what I want.
    Question:
    Is there an easy way to display leading zeros in a dynamic text field?  Or can a dynamic text field have different character positions displayed in different font sizes?  or both?
    Thanks for the help.

    F8as2-
    Thanks for the reply kglad.
    Are for saying the best way to display numerically calculated numbers that need leading zeros and or different font sizes is to convert them to a string for display purposes with textFormatting??

  • Display leading zeros in the ALV

    Hello All,
    My requirement is to display leading zeros in the ALV. The leading zeros are not getting displayed. Please suggest how do I achieve this. I have tries NO_ZERO = ' ' and lzero = ' '.
    Thanks in advance.
    Regards,
    Anju

    Here is the Sample code for your ref
    type-pools: slis.
    data: begin of t_itab occurs 0,
           col1 type matnr,
           col2 type char10,
          end of t_itab.
    data: t_fieldcat type slis_t_fieldcat_alv,
          w_fieldcat type slis_fieldcat_alv.
    t_itab-col1 = 10.
    t_itab-col2 = 'A'.
    append t_itab.
    clear t_itab.
    t_itab-col1 = 11.
    t_itab-col2 = 'B'.
    append t_itab.
    clear t_itab.
    loop at t_itab.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input         = t_itab-col1
       IMPORTING
         OUTPUT        = t_itab-col1 .
       modify t_itab index sy-tabix.
    endloop.
    w_fieldcat-fieldname = 'COL1'.
    w_fieldcat-lzero = 'X'.
    append w_fieldcat to t_fieldcat.
    clear w_fieldcat.
    w_fieldcat-fieldname = 'COL2'.
    append w_fieldcat to t_fieldcat.
    clear w_fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = sy-repid
       IT_FIELDCAT                       = t_fieldcat
       I_SAVE                            = 'X'
      TABLES
        t_outtab                          = t_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.
    Regards,
    Bhavana

  • Display leading zeros in OLE

    Hi Friends,
    When I am writing report in OLE( excel ), some of the fields which are having leading zeros automatically deleted . It shoud not happen . I have to display leading zeros also.
    Please tell me which class and method to do this ...
    Thanks ,
    Varma

    Use OLE itself to set the formatting of the cell (or column itself) to character type
    * character type for columns
    data: h_columns        TYPE ole2_object,
          h_cell           TYPE ole2_object.
    CALL METHOD OF excel 'Columns' = h_columns
      EXPORTING
        #1 = 'F:K'.
    set property of h_columns 'NumberFormat' = '@'.
    CALL METHOD OF excel 'Cells' = h_cell
      EXPORTING
        #1 = 14
        #2 = 7.
    SET PROPERTY OF h_cell 'Value' = '0001'.

  • How to display leading zeros in a report

    Hi folks,
    I am doing a HR report and the users are very much used to seeing a two digit numeric value as the pay scale since their legacy days.
    In BW, I have the Pay Scale defined as a character (2) and it shows the values on the report as follows:
    Pay Scale
    0
    1
    2
    3
    11, etc.
    But the users would like to see 00, 01, 02, 03, 11, etc.
    Under the query properties, display tab, there are four separate options - display zeros, show zeros as, etc. I tried all the options but the pay scale still does not show the leading zeros. I remember seeing a SAP note a while back that talks about this. Does anybody know how to force the leading zeros on the BEx report.
    Thanks.
    Abdul

    Try removing the ALPHA Conversion from info object defintion.

  • Remove the leading Zero from the Query output in SAP BW ?

    Hi
    Experts,
    Vendor Number loaded  as   (0000010076) from R/3 to SAP BW.
    How to remove  Prefix  of Zero for  the Vendor Number(0000010076)  from Quey outpt.
    Regards.
    ASIT

    Hi,
    Please check out this thread.
    Remove leading zeros
    Also check if there is any conversion routine used for that particular infoobject.
    If ALPHA conversion is selected for your infoobject then it will automatically take away the leading zeros at query level.
    Regards,
    AL
    Edited by: AL1112 on Sep 16, 2011 9:15 AM

  • Displaying leading zeros in ALV

    Hi experts,
      I have a field of length 12 char. I want to display the field in grid.
    My requirement is if the field is below 6 char(such as 101) i want to display as 000101 .I added logic for adding zeros up to six char but the leading zeros are supressed in my grid.
    I want as 000101 but it is showing as 101.
    I am using REUSE_ALV_FIELDCATALOG_MERGE for building the field catalog.
    How to solve this.
    Thanks & regards,
    karthik.

    Hi,
    you must work with a mask for your field like this:
      repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                i_program_name     = repid
                i_internal_tabname = 'MY_TABLE'
                i_inclname         = repid
           CHANGING
                ct_fieldcat        = field_catal.
      Modify field for leading 000
      LOOP AT field_catal INTO w_fieldcat_alv.
        CASE w_fieldcat_alv-fieldname.
          WHEN 'NUM_FELD'.                                    "<-- this is your field
            w_fieldcat_alv-edit_mask   = '000000'.
            MODIFY field_catal FROM w_fieldcat_alv.
        ENDCASE.
      ENDLOOP.

  • Displaying Leading Zeros

    Having recently switched to Mac and trying to embrace the iWork applications I've struggled with something that I really couldn't find help with. Since I think this is a relatively common need I am posting this message in the event others need to present a Numbers cell that has leading zeros.
    The way I have found to create leading zeros in numbers is by using the CONCATENATE and RIGHT functions. Say for example you have zip codes stored in numeric format (perhaps pulled in from a database) but need them to display in a cell properly. The zip code for Salem, NH is 03079. If you have the value 3079 stored you need that leading zero added.
    Assuming 3079 is stored in A1 you could add the following formula into an adjoining field:
    =RIGHT(CONCATENATE("00000",A1),5)
    CONCATENATE turns A1 into a string ("000003079") and RIGHT grabs the 5 right-most characters from that string.
    If someone else has a better way of handling this please do comment.

    DRAlison wrote:
    Having recently switched to Mac and trying to embrace the iWork applications I've struggled with something that I really couldn't find help with.
    Funny comment, this 'question' was asked and responded many times in this forum.
    Here are some links:
    http://discussions.apple.com/thread.jspa?messageID=8278267
    http://discussions.apple.com/thread.jspa?messageID=6639837
    http://discussions.apple.com/thread.jspa?messageID=6126095
    http://discussions.apple.com/thread.jspa?messageID=6856405
    http://discussions.apple.com/thread.jspa?messageID=7474228
    http://discussions.apple.com/thread.jspa?messageID=5270661
    http://discussions.apple.com/thread.jspa?messageID=9394800
    grabbed with a simple search in the existing threads using the keystring "leading AND zero"
    Yvan KOENIG (from FRANCE mardi 30 juin 2009 16:48:06)

  • Display leading zeros

    How to take an integer with no leading zeros and display it
    with leading zeros?
    Thank you in advance.

    There are a couple of ways. Let's say you are looking for 7
    digits altogether.
    Method 1
    NewString = '0000000' & thenumber;
    NewString = right(newString, 7);
    Method 2
    while (len(thenumber) lt 7)
    thenumber = '0' & thenumber;

  • Access/display BW Document in BEx Query

    Hello,
    I have a request to create a BEx query to access BW documents.  These BW documents are created in documents manager via WEB planning screens.  I can see in Analyzer where we have queries created to do this but I am unable to get any of these to work.   I have tried searching SAP Help and SCN and see no direction on how to do this.  I am not sure if I am stating this request correctly.   We are on BW/Analyzer 7.3.
    Any help would be greatly appreciated.
    Thanks,
    Roseanne

    Hi Roseanne,
    well, if the document was created in BPS, I doubt that it can be shown in a query. I think the kind of document and the data it is connected to is different, but I am not sure about this.
    This might be mor a question for portal or knowledge management, so maybe it´s better to find a forum for these topics here in SCN.
    also have a look here
    http://scn.sap.com/community/data-warehousing/business-planning
    that´s where questions for BPS are asked. maybe you can find something about BPS-Dosuments.
    Sorry, but it´s not my favourite topic ;-)
    regards
    Cornelia

  • How to display 0 Percentage in BEx Query Designer

    The BEx queries which I'm doing are ported to EP & client views all charts & data in portal only.
    I have a small requirement. My client requires to display 0% in the data output.
    Sample data is like
    Mon/Grade     A | B | C | D | E | F             " These are headings
    April                |     |    | 3  | 5 | 4 |  |           " These are data I got in BEx
    Required O/p
    Mon/Grade     A | B | C | D | E | F                  " These are headings
    April                |   0  | 0   | 3  | 5 | 4 | 0 |           " These are data I got in BEx
    My current formula is like
    > NODIV0( ( TEST1 * 12) %A TEST2 )
    What changes must I make so that 0% is displayed in the O/p? Please let me know earliest.
    P.S . The values TEST1 and TEST2 are 'Selections', which holds no data for those displaying values.

    Hi Kavitha,
    The problem  is I'm viewing the data in Web based BEX & not in BEX Analyser. So only.
    >            GROUP E GROUP D2 GROUP D1 GROUP C2
    >APR              6.0      46.0
    >MAY %           14.3      48.0      11.4      16.9
    >JUN %             11.6      16.2
    As you can see there's no data for the months-grade (Apr-GroupD1 etc).. Now, how to view it in portal with 0s for all the ones with no data?

  • Removing Leading zeros from query output.

    Hello Experts,
    Is it possible to remove leading zeros from the query output for a particular column?
    I have a characteristics 'Reference Document' which has values like '000001386'. The users just need '1386' to be displayed and have asked us to remove the leading zeros.
    Is there something that can be done for this at a query level? I can't modify the underlying InfoProvider because this requirement is just for one set of users, the other users need the document nmber in the original format.
    Thanks
    Arvind

    Hi,
    you can use ALPHA conversion option in the definition of that particular characteristic.
    Try this code  in a routine.,in query designer;
    data a(9) value '000001386'.
    SHIFT a LEFT DELETING LEADING '0'.
    write:/ a.
    Output will be : 1386
    Or use this method also
    data a(9) value '000001386'.
    Call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
    Exporting
    input = a
    Importing
    output = a.
    write a.
    output:
    1386
    Regards
    CSM Reddy

Maybe you are looking for

  • Why does iphone use cellular data to contact internet when wifi is available?

    If I leave Mobile Data (or Cellular Data) enabled on my iphone, I find that the phone uses my carrier phone service to access the internet about 10 times per day. The accesses tend to be mostly very small data transfers (say about 10KB). I have no id

  • Need to protect my application software

    Hello ni,                     I want to protect my application software developed by labview.... i dont have internet facilities, i am developing application package of datalogger for Thirdparty instruments. my aplication software should installed in

  • Take long time to change server and log on

    Hi, I am useing vb.net and crystal report 8.5 for rpt i am trying to load report in vb.net windows i useing SQL server 2005 exp.  my code heare i is wroking but still its take 1 to 2 mintus to log on i any idia please help me Dim myconnectioninfo As

  • Last Login Time

    <p>Trying to create a report which would include the last logintime of each user. I can see that value is being stored somewherebecause when you select users in EAS it gives you a column 'LastLogin Time'.</p><p> </p><p>Is there any way to have that d

  • Verizon Surreptitious Phase-Out of DSL

    Ever since Verizon has began offering FiOS in my community, my DSL internet service has been inadequate. When I attempt to log on to the internet I receive a message stating "Connection timeout." In response to my service needs I have been solicited