Need leading zeros to fill the front of a 10 character parameter being passed-HELP!

I have a prompt 10 character parameter that some people forget to insert the zero at the beginning of the number. ex.(they type "594468010", suppose to be "0594468010").  How can I fill in the leading zeros for them after they type in the prompt box?  My prompt comes from a command.  Here is a sample of the where clause:  WHERE DB.ID_NUMBER = '{?I_IDNO}'
I tried to use LPAD('{?I_IDNO}',10,0), it works with plsql, but not when I run the crystal report.
Does anyone have any ideas?  thanks for your help in advance!

a) you can always use your database specific cast / convert function to convert the text field into a number for the purpose of record selection. then change the prompt type to numeric. crystal commands are database specific so you'd want to check your database help on what specific syntax to use for the cast / convert in the command.
b) the other choice to leave the command & prompt type alone & use an edit mask on the command prompt...this would then force the end user to enter the leading zeroes as the edit mask would force a certain length on the entry. so in the crystal field explorer edit the prompt and put in an edit mask of 000000000 for example if you wish to force the end user to enter 9 numeric characters.

Similar Messages

  • Truncates the leading zeros even though the member is text type

    We have members with data type “TEXT” in planning database. When user enters something with leading zero, it saves the same in relational but not showing the same in planning. It truncates the zero even though it is a text member.
    Planning version 11.1.2
    Example:
    Member name : Issue code (TEXT type)
    Entered value : 011_Issue (saves the same in relational)
    Display value : 11_Issue (Drops the zero)
    is there any workaround?
    Thanks

    I've opened a SR and here is the reply from MOS.
    Apply a fix for Bug 12422049 - DATA TYPE TEXT MEMBER DOES NOT DISPLAY VALUE STARTING WITH ZERO CORRECTLY when its available.
    The issue has been identified as a code bug and development team will fix it in future releases.
    Thanks
    Poorna

  • I have changed my Apple ID name and I want to change it on iCloud, however I am not able to delete the previous account because I need to turn off the Find my iPhone - and for that I need to log in with the old name and that is not working. Help anyone?

    I have changed my Apple ID name and I want to change it on iCloud, however I am not able to delete the previous account because I need to turn off the Find my iPhone - and for that I need to log in with the old name and that is not working. Help anyone?

    Hey tulgan,
    This link will provide information on what to do after you change your Apple ID:
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796
    Welcome to Apple Support Communities!
    Take care,
    Delgadoh

  • Need leading Zeros in the excel sheet which is sent from ABAP

    Hi ,
    I am downloading data from SAP to excel sheet using the WS_DOWNLOAD Function Module. The numeric data in not having leading zeros.  if it is 0010 it is displaying 10 in the excel sheet . i need the leading zeros in the excel sheet. without manulally changing it to Text in the excel sheet .
       Is there any way to do it .
    Thanks,
    Chetan

    Hi Chetan,
      CALL FUNCTION 'WS_DOWNLOAD'
        EXPORTING
          filename                = w_file_path
          filetype                = 'DBF'                       "declare the File type as DBF then leading zeros will appear
          write_field_separator   = 'X'
          confirm_overwrite       = 'X'
        TABLES
          data_tab                = Itab.
    Regards,
    Prabhudas

  • Format strings, need leading zeros

    I have a data input where serial data is converted to a numerical value, then multiplied by a conversion factor, and the result then converted back into a string for outputting to a data file.
    I have not been able to get small numbers, such as "497" to get converted into a string "0497". Have tried the %04d format string, which gives me an output of 4970000 - not quite what I need.
    Am using the FormatIntoString.vi, which has a "format string" input, but values which should work like "%04d" do not give me the leading zeros.
    Ideas? Thx!

    The format string works on the numeric input of the function. The string input is for adding a string prefix to the output and is not a required input. In your example, if you wire the string to a Scan From String function and wire the output of that to the numeric input of the Format Into String, everything will work just fine. I've attached a corrected VI.
    Attachments:
    TestFormat-Fixed.vi ‏14 KB

  • MF50 deletes leading Zero's from the material number.

    We have a case where we have alpha-numeric material numbers that include some leading zero's. MF50 in it's released format automatically truncates leading zero's. In our case these leading zero's are required only for alpha-numeric material numbers.
    Looking on OSS I see multiple notes relating to this issue. Any suggestions to fix this problem would be appreciated.
    Jesse Cornelison

    change data type(char)   to type  n.
    make  a variable  of  type  n  and  store  kunr  value  to  this  variable  and  display  this  variable.

  • Need background photo to fill the space

    Dreamweaver CS3 / Mac 10.5.8
    I am working with a combination of tables and CSS. In one cell of my table, I am trying to get a background image to fill the space. It is filling only about 1/4th of the space. This is the code I have:
    <td height="742" align="center" valign="top" background="images/Hands1.jpg" style="background-repeat: no-repeat;">
    Can anyone tell me what code I can add to enlarge the image to fill the entire space?

    Cohek wrote:
    Dreamweaver CS3 / Mac 10.5.8
    I am working with a combination of tables and CSS. In one cell of my table, I am trying to get a background image to fill the space. It is filling only about 1/4th of the space. This is the code I have:
    <td height="742" align="center" valign="top" background="images/Hands1.jpg" style="background-repeat: no-repeat;">
    Can anyone tell me what code I can add to enlarge the image to fill the entire space?
    You can't enlarge a background image.  Background images are static.
    Make a bigger image in your graphics app, or repeat your background-image with CSS (see link below for details):
    http://w3schools.com/css/css_background.asp.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Leading zeros removed in the mailed Excel

    HI All,
    I have one internal table , whose contents I want to send via mail, as an excel sheet.
    I am able to do that, but the below problem appears .The cell content 0123 , is getting converted to 123,
    in the excel that has been sent through mail. I mean, the leading 0s are getting truncated. This is happening even if i have used character format. Please suggest the needful for the same.
    Regards
    Rudra

    https://forums.sdn.sap.com/click.jspa?searchID=21291658&messageID=6881958
    https://forums.sdn.sap.com/click.jspa?searchID=21291658&messageID=6852860
    check these threads..hope it help.

  • I have updated firefox, yet it still says it needs updating, i have tried the post on here and still no luck! help please

    i have updated firefox from their website, and every time i open the browser i am met with the same message. you are running an older verssion of firefox and it needs updating yet ive downloaded vession 7, it is getting very frustrating as i keep on doing the same thing over and over again. HELP

    Hi, sill no joy with my sound on my iPad .the sound only works on one app ( Annie ) and the ring volume and it works for about 5 seconds after I switch it on . Was talking to apple and they said the reset my iPad and this will fix it .done this and it is still not working only with earphone and Annie. What next ?As they said this is unheard of as it was the upgrade to iso6 that caused this problem . Help

  • Downloadhelper extension stopped functioning. I need to uninstall it but the extension website says to contact Firefox for such help. Will reinstalling it delete and re-create or will I end up with a non-functioning old copy and a functioning new one?

    I use a year-old Macintosh with OS 10.5.8. I tried to change the video output format of downloadhelper extension from FLV to a format playable by Macs and Windows computers. In trying that, downloadhelper disappeared from the upper margin of the open screen and is no longer accessible. I want to dis-install it and then reinstall it, but there is no procedure at either the downloadhelper website or the FireFox website to do so. I am afraid to reinstall without first removing the extension. How can I remove it? The downloadhelper site specifically says to ask Firefox how to do it and offers no help.

    I solved my own problem. Uninstall download helper as follows: Go to Tools|Add-ons. Click on extensions and look for "DownloadHelper in the list. On the bottom you should click on the <Uninstall> button. You'll need to restart Firefox.
    Then, go to the downloadhelper extension install website on the Firefox website and reinstall downloadhelper.

  • How can we put the leading zeros for the extract file.

    hello experts..
           Iam extracting values from one ztable in this for one filed length will be 2, for this field i need leading zero s at the time of extract... please help me....

    Hi,
    Declare the field as NUMC data type, automatically you will get the leading zeroes.
    Regards,
    Subramanian

  • Dashed format & leading zeros

    Hi,
    1)   Iam getting the SSN from P0002.But my client requirement is the SSN format should be in Dashed format like XXX-XX-XXXX.How i will get the dashed format?
    iam getting SSN like this.
    w_MetLife_detail-rdssn = p0002-perid.
    2)How i send the value with leading zeros.
    for example for this query : Hourly employee( PA0008-LGART = 1001): pa0008-BET01
    Send values with leading zeroes
    i written the code like
    w_MetLife_detail-rdempsalary = p0008-bet01.
    Kinldy help me on this.
    Regards,
    Sujan

    Hi Sujan,
    Here is the sample code.
    1) Iam getting the SSN from P0002.But my client requirement is the SSN format should be in Dashed format like XXX-XX-XXXX.
    How i will get the dashed format?
    iam getting SSN like this.
    w_MetLife_detail-rdssn = p0002-perid.
    W_METLIFE_DETAIL-RDSSN = 1234567890.
    WRITE /: W_METLIFE_DETAIL-RDSSN USING EDIT MASK '___-___-____'.
    2)How i send the value with leading zeros.
    for example for this query : Hourly employee( PA0008-LGART = 1001): pa0008-BET01
    Send values with leading zeroes
    i written the code like
    w_MetLife_detail-rdempsalary = p0008-bet01.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT  = W_METLIFE_DETAIL-RDEMPSALARY
      IMPORTING
        OUTPUT = W_METLIFE_DETAIL-RDEMPSALARY.
    Thanks & regards,
    Dileep .C

  • 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.

  • How to update the Field by  Remove Leading Zeroes in Entire table

    Hi all,
    I need an SQL query to update the Table by upadating a particular field(column) by removing all the leading zeroes for all the rows corresponding to that column.
    Ex:;
    Existing To be changed to::(New Table)
    A B New A New B
    000011 1 11 1
    000012 2 12 2
    000013 3 13 3
    Thanks in Advance,
    plz do reply soon..

    Come on, it's not that hard:
    UPDATE your_table
       SET yourcolumn = ltrim(yourcolumn, '0')
    ;You are aware, that you have to commit those changes afterwards, right? If you don't know, what UPDATE / COMMIT in an Oracle database means, you may want to take a look at the user guides first.
    C.

  • Leading zeros in the Product allocation characteristic combinations.

    Hi All,
    I am copying Characteristic combination from planning area to product allocation group, after i complete the transaction system is automatically preceding the zeroes to the product number.
    I have one the following activities before copying CVC of planning area to product allocation group.
    against all the Product allocation settings.
    2.Created the MPOS with product (characteristic length of Product is 18), Customer and Allocation object.
    3.Created planning area and planning book.
    4.Copied cvc combination from planning are to product allocation group and also copied planning area values in to Product allocation group.
    5.Tried to check in the ATP simulation mode, while I was doing system has given no characteristic combination found, when I checked Product is preceding zeros as per the filed MATNR length 40 and this MATNR is selected from the Product allocation field catalog, But when I add zeros to product system is performing Product allocations in simulation mode.
    6.Tried triggering gATP Product allocations by creating Order in ECC, here also it has given same error No characteristic combination exists.
    When I did initial R&D on this. I found that material number in the product allocation characteristic combination is leading by zeros for ex:- 000000000000000002200325.
    Could any one please suggest me what to do on this.
    Thanks and Regards,
    T.Muthyalappa

    Hi Muthyalappa ,
    If i have understood your question properly , then my guess is you should be facing this problem only for numeric material codes. Try out the following things
    1. Execute the same test condition for a non numeric material. I believe it will work perfectly .
    2. For numeric material codes it is not working because of the difference in MATNR length between ECC and APO. In ECC the maximum possible MATNR length is 18 char whereas it is 40 chars in APO. So as per std SAP functionality the numeric materials get concatenated with leading zeros when you try to transfer it (or carry out any kind of processing ) from ECC to APO.
    ex consider material 12345. In ECC it will be stored internally as 13 leading zero's followed by12345 . But in APO it will be stored as 35 leading zero's followed by 12345.  Your issue is the system does not recognize the CVC that has this material as characteristic. At the time of cvc creation / change make sure your material characteristic ( especially for numeric material codes) totally has 40 chars . Pack it with leading zeros and make the material length 40.
    Try this out and update me .
    Thanks
    Saradha

Maybe you are looking for

  • How do you use your Apple mini- DVI to DVI cord?

    Hi. I just went to an apple shop yesterday to get an Apple Mini-DVI to DVI to hook my 17 inch iMac to a 20 inch external display(Samsung SyncMaster 204B) and was surprised by the length of the cord. How can you connect the two displays with such a sh

  • Boot camp on an external hard drive

    Is it possible to use bootcamp and run windows on an external hardrive rather than the built in one with out sacrificing speed. Im looking to get a hard drive for all my windows stuff and I was hoping to be able to run windows straight from it but I

  • Highlight text on black background?

    Does anyone know how to highlight text in acrobat 9 on a black background?

  • Flex SDK 4.5 error in compiled resource bundle

    I have just started using Flex SDK 4.5 (I was using 4.1 before). I am compiling my resource bundles into SWF files and using them. I am including the required framework bundles also when compiling my resources into SWF.I have copied the generated SWF

  • Creating stacked chart on the same measure in Essbase

    Hi: I need to create a stacked bar chart, my data source is an essbase block strorage cube. I´ve tried to duplicate the measure filtered so I can have to measures, when I do it, I get the following error Estado: HY000. Código: 10058. [NQODBC] [SQL_ST