Why many zero are returned when a field is empty

Hi,
I am using sapjco 2.1.8 in my Java code to call a BAPI function (rsz_x_component_get).
When executing this bapi function in SAP GUI, I can see one field is empty, and it's defined as as 70 characters. However, in Java code what I received is "000000000", while I should receive an empty string, "".
Does anyone know why the empty string is transferred into a string containing many zero?
Thanks,
Ray

Hi Atish,
Thanks for reply.
The field is defined as CHARACTER and its length is 70. In Java code I use super.getTable().getString(20);
Thanks,
Ray

Similar Messages

  • I try to find something on my iPad, many results are emails, when I push on an email I can't see the email, because I get ever the first email,or the previous selected email in my inbox. How can I see the email selected?

    I try to find something on my iPad, many results are emails, when I push on an email I can't see the email, because I get ever the first email,or the previous selected email in my inbox. How can I see the email selected?

    Is your Yahoo account set up as POP3 or IMAP?

  • How many table are affected when sales order creation(O2C)

    Hi all,
             HOw many table are affected when sales order creation, can any one please help ,and please give me a description indepth please please. I know some of the table affected
    Thanks&Regrads,
    Surya

    Hi Kantur Shekar madhuri,
    Would you confirm the whether in your schedule line category is activated for "Product Allocation" or not.
    if not please activate and re run your scenario.
    Regards
    Arun

  • Leading Zeroes are lost when convert from string to int

    What I'm trying to do is simple yet the solution has seemed difficult to find.
    I have a system that requires 4 digit numbers as "requisitionNo". The system uses JSPs and accepts the 4 digit number that the user inputs (fyi - duplicate handling is already managed). The input number (rNumber) is of STRING type and in the action (using struts) is converted to an int:
    int requisitionNo = Integer.parseInt(rNumber);At that very line the issue is that when the user inputs a number with leading zeros such as: "0001" the 3 leading zeros are chopped off in the INT conversion. The application validation kicks in and says: "A 4 digit number is required" which is by design. The work around has been that the user has been putting in number that start with 9's or something like that, but this isn't how the system was intended to be used.
    How do I keep the leading zeroes from being lost instead of saving a number "1" to the database how do I keep it saving "0001" to the database? Would I just change everything to STRING on down to the database? or is there another number type that I can be using that will not chop off the leading zeroes? Please provide short code references or examples to be more helpful.

    Yeah, I have to agree here that leading zeroes make no sense. I figured that out when I started to look into this problem. The only requirement that exists is that the user wants it to be a 4 digit number due to some other requirement they have themselves.
    So what I'm gathering from what I've read in the responses thus far is that I should change the validation a bit to look at the STRING for the 4 required digits (which are really 4 characters; maybe I should add CLIENT side numeric validation; currently its doing server side numeric/integer validation; or maybe change up the server side validation instead???) and if they are ALL GOOD then let the application save the int type as it wants to. IE: Let it save "0001" as just "1" and when I come back to DISPLAY this saved number to the user I should append the string of "000" in front of the 1 for display purposes only? Am I understanding everyone correctly?

  • Diable button when text field is empty

    Hi
    How can I disable a button in JDialog box when the text field is empty and enable it when the user gives some input.
    Balaap

    Hi,
    button.setEnabled(false);

  • Disable button when text field is empty

    Hi
    How can I disable a button in JDialog box when the text field is empty and enable it when the user gives some input.
    Balaap

    You will have to use a keyListener since the use is not able to type into a disabled TextField. Listen for KeyEvents, if you get one enable the TextField a fill it with the char of the pressed key.
    Rommie.

  • Leading zeros are dropped when exporting as csv

    I have a report that when I export as csv, leading zeros in text columns are dropped in excel. The text columns appear fine in the report, however, when I export the leading zero is gone in excel. For example, in the report my text column could have a value of 0101, when it is exported to excel it has a value of 101. The code behind the link to export to csv is f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:FLOW_EXCEL_OUTPUT_R#REGION_ID#
    Is there a way to keep the leading zero in excel?
    Regards
    Mark

    Thanks for your reply. In my query I wrapped the column with double quotes as you suggest, and added the same column for display:
    select '"'||column1||'"' execl_col, column1 disp_col from table where ....
    Using htmldb_application.g_excel_format as a conditional display I can control what is displayed on the screen and export to csv the double quoted text field. I have that part working fine. Using my previous data example, I am now seeing in excel 0101"".
    Did I wrap the field incorrectly with double quotes? How can I exclude the
    double quotes in the export to csv?
    Regards
    Mark

  • Leading zeros are coming in assignment field

    Hi,
    We have posted customer advance document through F-29 and we are giving cheque number in assignment field which is of six digits. But after running transaction FF68 system creates one session and when we execute that session system creates one accounting document but changes the cheque number with 13 digits value(seven leading zeros with cheque number). If we follow the above  process in (development server)system is only showing cheque number without any leading zeros but the settings of both the servers are same.
    Request immediate help.
    Thanks in advance.

    Hi,
    Check the notes notes 106971 and 10714 which explains about leading zeros.
    Regards
    Ravinagh Boni

  • The leading zeros are removing from Number field

    Hi,
    How can i keep the leading Zeros in the number field. For eg, when validating the field, 00123 becomes 123, how to prevent it,
    Thanks in advance

    Hi
    I tried with LPAD(:numberfield,5,'0') in the validate field, but it is not working, I am getting the error , it is not a procedure....., I working with Forms 10g
    Thanks in advance

  • Why DNG files are bigger when converting from TIFF?

    When I shoot in RAW, my normal workflow is to convert all images to DNG and start editing in Lightroom. But as you know, there are some photos that need extra editing in pixel based software such as Photoshop.
    When I right-click a DNG in Lightroom and chose "Edit In... » Edit in Adobe Photoshop", the photo will be opened in Photoshop as an 8-bit TIFF file for editing. For demonstration of my issue, let's assume I don't do any changes and just save the file as it is. A new TIFF file will be created next to the source DNG with "-Edit" in it's name.
    Back into Lightroom, both files are almost the same, one is DNG, the other in 8-bit TIFF. From this point (assuming I did change something in Photoshop, otherwise what would be the point in opening it there) I should do my further editing in Lightroom in the TIFF and not the DNG one. Let's say I'm done with the work and export the final edited TIFF file back into a DNG (I like this format and I like to keep all metadata changes so I can easily revert back to the original). I've also exported the original DNG file for comparison.
    And now I realize the following:
    DNG to DNG » ~7Mb (basically the same as the original DNG)
    TIFF to DNG » ~15Mb
    Why such a big difference?
    I didn't do any editing either in the original DNG or the Photoshop converted TIFF. Any techincal reason for this that I'm not aware or am I doing something wrong?

    I did a little bit of research and:
    1) The embedded previews are always JPEG files (medim or full size, doesn't matter). But now that I think about it, I don't think you were talking about the previews when you mentioned the TIFF being embedded.
    2) I did a quick EXIF lookup on 3 files exported to DNG: a) Original DNG b) 16-bit TIFF converted to DNG c) 8-bit converted to DNG. Here's the EXIF results:
    a)
    SubfileType                     : Full-resolution Image
    ImageWidth                      : 3736
    ImageHeight                     : 2772
    BitsPerSample                   : 16
    Compression                     : JPEG
    PhotometricInterpretation       : Color Filter Array
    SamplesPerPixel                 : 1
    b)
    SubfileType                     : Full-resolution Image
    ImageWidth                      : 3648
    ImageHeight                     : 2736
    BitsPerSample                   : 16 16 16
    Compression                     : JPEG
    PhotometricInterpretation       : Linear Raw
    SamplesPerPixel                 : 3
    c)
    SubfileType                     : Full-resolution Image
    ImageWidth                      : 3648
    ImageHeight                     : 2736
    BitsPerSample                   : 8 8 8
    Compression                     : JPEG
    PhotometricInterpretation       : Linear Raw
    SamplesPerPixel                 : 3
    This probably means something like you said... The embedded files are different and some take more space than the others. The first one is 7.220Kb, the second one (16-bit TIFF) is 44.030Kb and the third one (8-bit TIFF) is 15.284Kb.
    It makes sense I guess, but I still would love to hear a more technical explanation for it but it's obvious it has something to do on how the pixels are saved in the DNG file. The keyword is probably the PhotometricInterpretation.

  • Flash CS4: why movie clips are static when exporting to video formats ?

    Does anyone know why the movie clips are non animated when I export my flash animation into a video format ?
    Please see the next flash example I made: (4 KB)
    http://dl.dropbox.com/u/22717206/Flash/flash_movieclip.swf
    And now see how it looks like once exported into video format: (160 KB)
    http://dl.dropbox.com/u/22717206/Flash/Video_movieclip.avi

    You must need a suitable codec for that like DivX codec, it will also import the nested movieclip animations. otherwise  whatever you have on the main timeline is exported for avi. you will get the codec on the export settings for avi.
    Also check this link:
    http://www.adobe.com/devnet/flash/articles/flash_to_video.html

  • No items are returned when calling new SPWorkItemCollection(site, workitemtype)

    I have added SPWorkItems to the site using the AddWorkItem method. These items show up in the db with the type (GUID) I used when adding them.
    However, when trying to retrieve the items, using the new SPWorkItemCollection(SPSite, WorkItemType) nothing gets returned. Why?
    MOSS 2007 with SP2

    I imagine a new SPWorkItemCollection will instaniate a new collection which will be empty.  You need to use the SPSite.GetWorkItems http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite.getworkitems.aspx
    Hope this helps
    DaveMy SharePoint Blog - http://www.davehunter.co.uk/blog

  • Leading zeros are removed when uploading excel

    Hi All,
    I have created a program to send an email with an excel attachment but the leading zero's in excel are removed. can anybody suggest what can be done other than replace since that exceeds 255chars so i cant concatenate.

    Hi
    Try adding the character ' (single quote) before the actual value. Excel then treats the value as-is whithout conversion
    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'.

  • Just wondering if anyone knows why these lines are showing when I print?

    Hi,
    I am new to Photoshop Elements and was wondering if anyone could help.  I do not want these lines around my image showing up when I print. I am using Elements 8, Epson Artisan 1430 printer and Windows 8.
    Thank-you!

    clctopoftheline wrote:
      I am just unable to get it sized correctly when I print from that application. 
    Use the crop tool. If the paper stock is 5x7, then crop the file to 5x7.
    clctopoftheline wrote:
    The paper has also been cropped and sized to the paper stock I am using. 
    I do not comprehend this.
    Additional suggestions:
    Be sure that you have the latest drivers for the printer. Check on the Epson web site
    Clean the printhead and align the cartridges under maintainance
    Make sure the size of paper loaded matches the paper size selected in PSE

  • Could someone explain/link me to a forum that explains why CR2 files are pink when imported?

    I'm new to canon and when I shot raw, I didn't think I'd have an issue getting the images on my computer. However, when I imported them using a converter, they come out pink! I shot monochromatic and using a Mark iii if that makes a difference. I haven't really found a clear answer. I'm sure it's something simple I'm not getting but since I'm used to Nikon, I just don't get it and can't seem to find anything to explain it. I really appreciate it!
    Solved!
    Go to Solution.

    What software do you use to view your Raw file? If it is not Canon DPP,then it cannot render your Raw in B&W because third party software cannot read in-camera settings. If the entire photo is pink you may have a corrupted monitor profiles. Nikon or canon doesnt matter in this case.
    Weekend Travelers Blog | Eastern Sierra Fall Color Guide

Maybe you are looking for

  • FrontRow leaves its Apps laying around when finished - why is this ?

    I've notice that after using FrontRow and returning to normal desktop that the various Apps such as iTunes, iTunes and iMovie are left around as inactive Apps rather than being properly terminated. Also the FrontRow App is left around and not termina

  • How to clear the values from a Tab Screen.

    Hi, I have created Two Tab in my report by using the below mentioned code. SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN. SELECTION-SCREEN BEGIN OF BLOCK BR_ACB WITH FRAME TITLE TEXT-502. PARAMETERS: P_VATNUM   TYPE T001-STCEG,              P_NAM

  • How does WLC prevent layer 2 loops between mesh and different wired networks

    hi all, i have a question in regards to layer 2 loops. in my network i have clients devices moving between 2 separated mesh networks. from WLC prespective, the mac addresses should've moved between multiple bridge group and wired network. can someone

  • Forms Recognition - Sizing

    Hi, Does any one have sizing metrics for Oracle Forms Recognition? I need to know how big has to be the server to process 12k pages per month (about 600 per day). Thanks, Fabio

  • WLC HA requirements

    I have not been able to find licensing requirements when setting up WLC in a HA.  I understand that Cisco recommends having same software and hardware versions otherwise the standby WLC will go into maintenance mode.  But is it required that both WLC