Zero and space in Data

Hi,
I have Table
If there is no value few fields are showing space(blank) and few fields are showing zero's.
Please let me know what formatting option should i select to make same.
Thanks
Sudhakar

If all fields in table are of type text then don't assign value to the field when it is ZERO(in the back end itself). If some are numeric and some are text then use the formula (formatting->custom) for numeric fields :
if(@X==0,'',@X).

Similar Messages

  • How to padding the zeroes and space befoer sending from XI to R3 system.

    Hi Experts,
       How to padding the zeroes and space befoer sending any data from XI to R3 during mapping, how to write a java code to implement this logic, please help me with the coding or any other alternative.
    thanks
    dhanush

    to pad spaces you need to write a simple UDF
    for right padding use the following
    while( inputField.length() < Integer.parseInt(totalLength))
    inputField = inputField + " ";
    return inputField;
    for left padding use the following
    while( inputField.length() < Integer.parseInt(totalLength))
    inputField = " " + inputField ;
    return inputField;
    Note:in the above examples <i>inputField</i> will be the input to UDF i.e. the sender field which you need to pad and send to receiver , and <i>totalLength</i> will be a constant i.e length of the field you want on receiver side after padding.
    also i m not a Java expert so please check for syntax and semantics for code:) to me it looks correct
    Thanx
    Aamir
    Message was edited by:
            Aamir Suhail

  • Remove zero and spaces

    Hi All
    I have a form with two fields
    code and name
    code           name
    0100           vikas
    01002         singh
    10025           niki
    2555            tomi want when i save data then no spaces will save in database in starting the name and in code spaces and zero
    will remove automatically
    Regards
    Vikas

    Hi,
    your question isn't clear.
    describe your table.
    If code is data type of number, oracle doesnt store leading zero's , trims leading space.
    SQL> create table t (x number);
    Table created.
    SQL> insert into t (x) values(001000);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select *from t;
             X
          1000
    SQL> insert into t (x) values(            100000);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select *from t;
             X
          1000
        100000
    SQL> select Length(x)len,x from t;
           LEN          X
             4       1000
             6     100000Edited by: user291283 on Sep 24, 2009 5:09 PM
    Edited by: user291283 on Sep 24, 2009 5:12 PM

  • Get Total DB size , Total DB free space , Total Data & Log File Sizes and Total Data & Log File free Sizes from a list of server

    how to get SQL server Total DB size , Total DB free space , Total Data  & Log File Sizes and Total Data  & Log File free Sizes from a list of server 

    Hi Shivanq,
    To get a list of databases, their sizes and the space available in each on the local SQL instance.
    dir SQLSERVER:\SQL\localhost\default\databases | Select Name, Size, SpaceAvailable | ft -auto
    This article is also helpful for you to get DB and Log File size information:
    Checking Database Space With PowerShell
    I hope this helps.

  • Removing leading zeros and leading blank spaces from an input field

    Hi All,
    I have an input field which is alphanumeric and i need to remove the leading zeros and blank spaces in it , but intermediate spaces should be kept .
    so i used the UDF
            String output = input.replaceFirst("^0+","");
            return output;
    but this code does not remove the leading blank spaces . Can anybody help in modifying this code so that even the leading blank spaces along with leading zeros  can be removed .
    Regards ,
    Loveena .

    lets say input is a
    then
    int len = a.length();
    for(int i;i< length;i++)
    if(a.substring(0,1).equals(" ") || a.substring(0,1).equals("0"))
    a = a.substring(1,len);
    return a;
    hope you got the logic so that you can enhance it better

  • Labview XY graph with space between data and top/bottom of graph

    In Labview, how do I modify the properties of the XY Graph so that there is some empty space (of say 1 unit) between the top and bottom of my graph and the data points I'm plotting. For example, I have a sine wave and when its autoscaled, the top point is at the very top of the graph but I want some space between the top of the graph and the highest point of the sine wave.  I could "unautoscale it" and edit the minimum and maximum to be 1 above and below the data points but is there a way to set it so it stays that way regardless of the data points that I input?
    Thanks,
    Kevin

    elset191 wrote:  
    I don't know how big of a cushion it gives, but it's there.
    if you want to programmatically set it you can also do this (as I learned a bit ago right here on these forums!)
    Message Edited by for(imstuck) on 05-24-2010 03:45 PM
    Message Edited by for(imstuck) on 05-24-2010 03:46 PM
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    graphScale.PNG ‏9 KB

  • NULL and SPACE

    Hello Gurus:
    I have had to use BOTH 'null' and 'space' (ofcourse I tried 'initial' too...) when selecting data from PRPS table, otherwise all the required records were not fetched. I had to do this on two different occassions. The first is a SAP provided field and the other is customer's enhancement. I have cut-paste the two code blocks. Any ideas why?
    Thanks in advance,
    Sard.
    ***********(1)**************
    select posid objnr func_area zzfunct from prps into
                    corresponding fields of table it_wbs
                              where func_area is null or
                                    func_area eq space.
    ************(2)**************
    select prps-pspnr prps-posid prps-post1
       into (wa_test1-pspnr, wa_test1-posid, wa_test1-post1,
       from prps
      where prps-posid in s_wbs and
            ...                 and
           ( prps-zzmlind is null or prps-zzmlind eq space ).
    append wa_test1 to it_test1.
    clear wa_test1.
    endselect.

    Hello Richard,
    the Requirement to check for NULL corresponds to the definition of the database (field) within the DDIC. Check the flag initialize (it has also some documentation).
    This flag is intended to be used if the definition of the db table is changed at SAP while the table already is used at customer side.
    After deploying the corresponding patch or upgrade such a changed definition may result into the need to convert all entries. For tables with many entries this would result into inacceptable downtime. So such changes are done without the initialiazation/conversion of existing entries.
    The tradeoff is the syntax you noticed.
    Kind regards
    Klaus

  • No distinction between NULL and space

    No distinction between NULL and space. When you see the resultset, in PL/SQL developer, you will see that the NULL value is in yellow colour while column data having spaces is in white colour. In the new tool, there is not distinction between the two, so each time we will have to use the NVL function to determine the value in the column, which I would not like to do.

    An option in Preferences could be created, so that it was possible to choose as values NULL would be shown, as already it occurs in other tools.

  • How to get the Full and final settelment date from PC_payresults

    Hi Experts..sairam.
    We are preparing Functional specification  for a report on Full and final settelement.
    We need to extract the  full and final settelement date from  payresults.
    Full and final settelement would be an offcycle run.
    How can we identify the particular Offcycle is meant for full and final settelment.
    Full and final settelement can be done after date of relieving.
    Please share your ideas to get the field names and logic to fetch.
    Thanks in advance.
    Regards,
    Sairam.

    Hi Praveen,
    I found it from HRPY_RGDIR through SE11.
    But im in confusion in thinking on Logic to find the Full and final settelment processed date.
    First of all..Report has to check WPBP table weather Employment status is Zero.
    Later..It has to read the HRPY_RGDIR table.
    Here what the system to check.What conditions to be validated to fetch the Full and final settelment processed date.Will it be FPPER and INPER as 00000000 or shall we do it from offcycle reason.
    Please share your ideas.Thanks in advance.
    Regards,Sairam.

  • I'm unclear on settings and misplaced some data, Please help?

    I have been using Media player for music but decided to finally use my airport express since the software is fixed. I downloaded Itunes to my Windows XP notebook. All the Mp3 that were in Media Player (ie. my music) transferred just fine. I then decided I need more room in my home so began importing all my CD's so I could store the original discs. I imported as .wav files so as to retain as much clarity as possible. I made the assumption that Apples' lossless would be as limiting as Media Player's which won't let you play your on other music players such as Itunes.
    I only have 90GBs on my hard drive so it was filling up fast. I then decide to move all the music files to an external HD (attached to my notebook currently) which, upon completion of the CD importation, I could attach to my home server and make available to all home computers. The new directory was F:music. I moved all music files in my music that consisted of MP3 and imported wav files. I then continued to import to my notebook.
    After another round of moving the files, I realized that I should leave the external drive attached to my notebook and Import the files to the external drive. Here is where the wheels BEGIN to fall off. I should have attached the External drive from the beginning but hindsight is 20/20.
    Bare in mind, the rest of this is likely out of sequence because I have made so many changes and tried to fix things.
    I went to edit, then preferences and changed "Itune Music folder location" to F:music. Within the music folder I now had all my artist's folders. Within the artist's folders were the albums. Within the albums are all the individual tracks from the albums. Incidentally, when I imported the CDs as wav, all info was available and copied. I could see all the data (ie wav file itself, album cover, year, artist, album name, genre, etc...) in Itunes and in the folders by checking the properties of the songs. In addition to all the artist's folders in alphabetical order in F:music, Itunes folder was also listed next to the INXS folder. Within the itunes folder, were the subfolders: itunes Music, itunes Library.itl, and itunes Music Library.xml. However, the same were still in the my music folder in my documents on the C:. I'm not sure it was there as a pointer of some sort or not.
    Ok, not sure what was going on, I began trying to fix, what I percieved as little problems. I tried various things like checking and unchecking "keep itunes music folder organized". I also checked and unchecked "copy files to itunes music folder when adding to library". Probably tried to combine the Library.itl at some point.
    After a while, I when I started itunes the MP3 files were theere and listed all data. However, the imported files, althought available, only listed the track # and song title. All other data was missing in itunes. I could play the songs but they were sorted by track and titles. I had dozens of track 01 through 09 and etc... The info was still in the original artist's folder but not in itunes.
    I then tried restores to previous times to fix this with out success. I moved things around uninstalled and maybe even accidentally deleted things, however unlikly. I also restored everything in my recycling folder just in case.
    I now have a totally screwed up list, with exception of the original MP3s. The song data in now missing from the folders, although track # and song title still exist.
    95% of the music is in an unknown artist's file in F:
    Is there a way to rebuild this without loading in the individual CDs?
    I've seen at Gracenote that there seems to be a software provider that has something for DJs that only use vinyl recordings.
    I can apparently use just the name and the software will propose all options.
    Does anyone have experience with this?
    Can itunes do this?
    Should there be itunes music and library folders in the default C:My documents/my music folder and in the F: or should they be combined or one deleted?
    Should I check "keep itunes music folder organized" and "copy files to itunes music folder when adding to library".
    And if so, how do I keep from duplicating files which takes up massive space in any drive?
    Is wav the best format to use for true Audio file duplication.
    If itunes lossless is better, can other media players play the files?
    I've search forums and can't seem to find my answers. I have read contradictory informatin and am looking for a clear instruction. I realize that my be difficult based on all the changes that I made but moving forward, I'd like to know the correct proceedures.
    I appreciate any help I can get.
    charlie
    Charlie
    Sony VAIO   Windows XP   Maxtor external drive

    Well, in my opionion, you've moved things around so much, it would be better to just clear your current iTunes library and rebuild it.
    IMPORTANT - I am talking about clearing the iTunes library file, not deleting song files from your hard drive.
    I personally never use WAV files, because I like the tags that come with MP3. I'm a pleasure listener - I don't need WAV files for professional reasons.
    When I first got iTunes, yeah, I took the default settings and ripped all my CDs in AAC format (they have .m4a file extensions). I regret this, in one way, because they won't work in other Windows applications & other portable devices. But, they sound great on my iPod and don't take up so much drive space as other formats.
    edit: I've no idea what you're talking about with the GraceNotes vinyl lookup. AFAIK, you're going to have to re-rip the CDs in a non-WAV format to get the ID3 tags. But you can google to find more info on that.
    Message was edited by: Katrina S.

  • How can i limit the user to enter only A to Z and space in JFormattedText

    dear
    i want to use JFormatedTextField in two manners
    1.Limit the no of charecters.means in a text field only 20 charecters r allowed.
    2.and also check the enterd charecter must be a to z and space not other chareters r allowed.
    3.same for numbers means 0 to 9 and decimal.
    how can i do by using the JFormated TextFilef.

    Probably lacks in some cases but what the hell.
    * Filename:           JSMaskedTextField.java
    * Creation date:      22-mei-2004
    * Author:                Kevin Pors
    package jsupport.swingext;
    import java.awt.event.KeyEvent;
    import java.util.Arrays;
    import javax.swing.JTextField;
    * A masked textfield is a textfield which allows only a specific mask of
    * characters to be typed. If characters typed do not occur in the mask
    * provided, the typed character will not be 'written' at all. The default mask
    * for this <code>JSMaskedTextField</code> is <code>MASK_ALPHA_NUMERIC</code>
    * @author Kevin Pors
    * @version 1.32
    public class JSMaskedTextField extends JTextField {
        /** Masking for alphabetical lowercase characters only. */
        public static final String MASK_ALPHA_LCASE = "abcdefghijklmnopqrstuvwxyz ";
        /** Masking for alpha-numeric characters (lcase/ucase) only. */
        public static final String MASK_ALPHA_NUMERIC = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ";
        /** Masking for alphabetical uppercase characters only. */
        public static final String MASK_ALPHA_UCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ ";
        /** Masking for numbers only. */
        public static final String MASK_NUMERIC = "0123456789";
        /** Masking for hexadecimals. */
        public static final String MASK_HEXADECIMAL = "0123456789ABCDEF";
         * An array of keyevent constants defining which keys are always to be
         * allowed, no matter what.
        private final int[] ALWAYS_ALLOWED = new int[] { KeyEvent.VK_BACK_SPACE,
                KeyEvent.VK_DELETE, KeyEvent.VK_UP, KeyEvent.VK_DOWN,
                KeyEvent.VK_LEFT, KeyEvent.VK_RIGHT, KeyEvent.VK_SHIFT,
                KeyEvent.VK_HOME, KeyEvent.VK_END};
        /** Boolean specifying whether casing should be ignored. */
        private boolean ignoringCase = true;
        /** Specifying whether the maskin is enabled */
        private boolean isMaskingEnabled = true;
        /** The mask for the textfield. */
        private String mask = MASK_ALPHA_NUMERIC;
         * Creates a default number field.
        public JSMaskedTextField() {
            super(null, null, 0);
            Arrays.sort(ALWAYS_ALLOWED);
         * Creates a number field, with a specified number of columns.
         * @param columns The columnnumber.
        public JSMaskedTextField(int columns) {
            super(null, null, columns);
            Arrays.sort(ALWAYS_ALLOWED);
         * Creates a JSMaskedTextField with a masking.
         * @param mask The masking to be used.
        public JSMaskedTextField(String mask) {
            super(null, null, 0);
            Arrays.sort(ALWAYS_ALLOWED);
            setMask(mask);
         * Gets the masking for this masked textfield.
         * @return Returns the mask.
        public String getMask() {
            return this.mask;
         * Gets whether this JSMaskedTextField should be ignoring casing.
         * @return Returns if the component should be ignoring casing.
        public boolean isIgnoringCase() {
            return this.ignoringCase;
         * Checks whether masking is enabled. Default should be true.
         * @return Returns true if masking is enabled, false if not.
        public boolean isMaskingEnabled() {
            return this.isMaskingEnabled;
         * Sets whether it should be ignoring casing when checking for alpha-chars.
         * @param ignoringCase The ignoringCase to set.
        public void setIgnoringCase(boolean ignoringCase) {
            this.ignoringCase = ignoringCase;
         * Sets the masking for this textfield. The masking will determine which
         * characters can be typed. If the characters in de <code>mask</code> do
         * not occur in the typed character, it won't be typed.
         * @param mask The mask to set.
        public void setMask(String mask) {
            this.mask = mask;
         * Sets the masking enabled. If <code>false</code> this component will
         * behave just like a normal textfield.
         * @param isMaskingEnabled true if masking should be enabled.
        public void setMaskingEnabled(boolean isMaskingEnabled) {
            this.isMaskingEnabled = isMaskingEnabled;
         * Sets text of this textfield. If the blah blah.
         * @see javax.swing.text.JTextComponent#setText(java.lang.String)
        public void setText(String text) {
            for (int i = 0; i < text.length(); i++) {
                if (getMask().indexOf(text.charAt(i)) < 0) { // does not occur
                    return;
            super.setText(text);
         * @see javax.swing.JComponent#processKeyEvent(java.awt.event.KeyEvent)
        protected void processKeyEvent(KeyEvent e) {
            if (!isMaskingEnabled()) {
                return;
            char typed = e.getKeyChar();
            int code = e.getKeyCode();
            for (int i = 0; i < ALWAYS_ALLOWED.length; i++) {
                if (ALWAYS_ALLOWED[i] == code) {
                    super.processKeyEvent(e);
                    return;
            if (typed == KeyEvent.VK_BACK_SPACE) {
                super.processKeyEvent(e);
            if (isIgnoringCase()) {
                String tString = new String(typed + "");
                String ucase = tString.toUpperCase();
                String lcase = tString.toLowerCase();
                if (getMask().indexOf(ucase) < 0 || getMask().indexOf(lcase) < 0) {
                    e.consume();
                } else {
                    super.processKeyEvent(e);
                    return;
            } else { // not ignoring casing
                if (getMask().indexOf(typed) < 0) {
                    e.consume();
                } else {
                    super.processKeyEvent(e);
    }

  • To remove leading zeroes and take directly from IDOC(Segment field) to file

    Hi SapAll.
    i have got a simple requirement in a idoc to file Interface.
    here in a sender Idoc there will be one segment with one field,the requirement is to remove leading zeroes and take directly the data from this field and map to one of the field in  reciever  file structure.
    i had used the formatnumber (under arithmatic functions)in PI 3.0 but now when iam using it in PI7.1 it was raising some jave exception error.
    it would be preferable if any body can give me the solution without user defined functions.
    regards.
    Varma.

    from your first post:
    i had used the formatnumber (under arithmatic functions)in PI 3.0 but now when iam using it in PI7.1 it was raising some jave exception error.
    use the same formatting that you used in 3.0 .... try with just a # in the FormatNum function.
    Regards,
    Abhishek.

  • Removing Commas and Spaces from Field

    I have a table called TableD1 in a database with a field called "Range".
    The ranges are like 1-1000; 1001-2000; etc. up to like 1000000-200000.
    That is how they are supposed to look, they are not numeric fields, just general, containing a low, a dash and a high all in the same field.
    I just discovered that quite a few of the entries have included commas and spaces, like 1-1,000 or 100000 - 200000.
    I need to write a Query that will remove all of the commas from the data in TableD1's "Range" field, then all of the spaces.
    I imagine they are some kind of Update statements but because of the potential to blow up the whole thing, I'm reluctant to experiment.
    Does anyone know what code I should use?
    Thank you in advance for any help.
    Gee

    Making sure you've taken a backup. Pull the data into temp table and do the testing. once you satisfied with the output then do the update on the main table.
    create table #temp
    Range varchar(100)
    insert into #temp values('1-1,000'),('100000 - 200000')
    select replace(replace(Range,',',''),' ','') from #temp
    --update #temp set Range=replace(replace(Range,',',''),' ','')
    Validate the the output of the select statement.
    --Prashanth

  • Special Characters and spaces in Tablenames and Column Names are allowed ?

    Hi
    I have created two tables in Oracle10g
    as follows
    SQL> create table test(columna number,columnb varchar2(20),primary key(columna));
    Table created.
    SQL> insert into test values(1,'test');
    1 row created.
    SQL> commit;
    COMMIT är utfört.
    SQL> create table "test quote"("#" number,abc number,primary key("#"));
    Table created.
    SQL> insert into "test quote" values(1,2);
    1 row created.
    SQL> commit;
    COMMIT är utfört.
    SQL> select * from "test quote";
    # ABC
    1 2
    SQL> select * from test;
    COLUMNA COLUMNB
    1 test
    Now I want to cache the tables and their data into TimesTen
    The cache group for table test which is not having any spaces and special characters in table name and column names is created perfectly.
    But when I create the cache group for table "test quote" which is having special characters and spaces it gives error :
    Command>create readonly cache group w2 from testuser.test(columna number,columnb varchar2(20),primary key(columna));
    Command>select * from test;
    <1,test>
    1 row found.
    Command>create readonly cache group w3 from testuser."test quote"("#" number,abc number,primary key("#"));
    5140: Could not find TESTUSER.TEST QUOTE in Oracle. May not have privileges.
    Command Failed.
    Now there is contradiction that why cache group for table test is created successfully and why it is not being created for table "test quote".
    What I think is if special characters and spaces in column names and table names are possible in Oracle then it sould be possible in TimesTen.
    Any possible solution.
    Looking forward for your reply.
    Please help I am stuck badly.
    /Ahmad

    Hi
    Problem Solved ....... Remeber only Capital letters work with special characters ......
    /Ahmad

  • Cluster and space consumption

    I'm confused about some thing in regards to clusters. I have about 1GB wort of data when it is not in a cluster, just in a normal table. If I create a cluster and insert the data in to this cluster it consumes more space, and that was fully expected. When I tried the first few times it took 13GB of space. The table space was 30GB large and contained a few other tables. Then I cleaned out the table space so only 2% of the space was used and added another 30GB to the table space and ran the test once more. Now it is consuming more than 40GB and is still not completed. So my question is does the size the cluster consume depend on the size and available space of the tablespace it is in? Is there a way to limit the size it is allowed to use other than to put it in a separate tablespace?

    Hi Marius,
    First, by "cluster" you mean sorted cluster tables, right?
    http://www.dba-oracle.com/t_sorted_hash_clusters.htm
    So my question is does the size the cluster consume depend on the size and available space of the tablespace it is in?These are "hash" clusters, and you govern the range of hash cluster keys, and hence, the range where Oracle will store the rows.
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10739/hash.htm
    Oracle Database uses a hash function to generate a distribution of numeric values, called hash values, that are based on specific cluster key values. The key of a hash cluster, like the key of an index cluster, can be a single column or composite key (multiple column key). To find or store a row in a hash cluster, the database applies the hash function to the cluster key value of the row. The resulting hash value corresponds to a data block in the cluster, which the database then reads or writes on behalf of the issued statement.

Maybe you are looking for

  • Issue regarding customer & vendor invoices in Ecc 6.0 & 4.7 version.

    ISSUE: I tried to post an entry using t-code f-22(customer invoice)/f-43vendor invoice, able to post but unable to view the document no. and then system shows the following error message. Express Document' updates terminated' by author. "Syntax error

  • Oracle.apps.xdo.batch.ReportsBatchProcessor

    Does anybody know how to use the ReportsBatchProcessor. I've been trying to use my burstFile but it doesn't work. anyhelp would be appreciated! Thanks, Ike Wiggins http://bipublisher.blogspot.com

  • How do I right click with my mouse?

    I dont know if this the the right fourm. But I try to right click while playing my game on my iMac, but it doesnt work! What should I do?

  • SD New Scenario- customer free supplied material

    Hi Experts, my client requirement is : Customer raise the sales order for one product, for that product customer is going to supply one specific spare part to co. with free of cost. co. will use that part in making of finished product. So in this cas

  • Adobe Installation Helper is not displaying at all

    Downloading is fine. And yes, I know where I downloaded it. It's just when I run the application, I get the normal User Account Control take action prompt and I click Okay, but nothing shows up. I open up Windows Task Manager and it is clearly there.