Leading zero was lost in spool when ALV print out

When run a ALV report and print out in background job,the leading zero is lost
e.g.: vendor (type c)
      0000000001
        In spool:   1..
How to show the leading zero when printing out ?
Thanks  in advance

hi,
You can use FM
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
       EXPORTING
         input         =
     IMPORTING
       OUTPUT        =
where input parameter and output parameter would be ths vendor(the field you want with zeros)
Hope this will help you.
thanks
Tanmaya Gupta

Similar Messages

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

  • XL Reporter - item code starting with leading zeros was truncated

    Hi,
    Anybody knows how to prevent XL reporter from truncating the leading zero(s) in the item code?
    I had done a XL report where one of the field is to retrieve Item Code. In the report generated, the formula was as below:
    =ixDimGet("00100068")
    However, when MS Excel display it in the spreedsheet, the item code becomes "100068" where the leading zeros was truncated. The correct item code was supposed to be "00100068". I had tried to change the cell format to "text", "number", "general" and etc, but it doesn't work. Any method to correct the item code display in the Excel spreadsheet?
    Thanks,
    sianghing

    Chan,
    There is a simple solution for this.  Highlight the cell with the Item Code selection in it.
    Click the formula builder icon in Excel to open the formula builder
    In the bottom box, type TRUE
    This tells Excel that you want to display exactly what comes out of the database, without having to predetermine it with a Custom format, etc.
    I think that will solve your issue.
    Let me know if this needs further explanation.
    Regards,
    Brad Windecker
    [Orchestra Team|http://www.orchestrateam.com]

  • HT4623 How do I resynch my phone to my computer and reinstall itunes which was lost from computer when I got in debugged.  I have my music on phone

    How do I resynch my phone to my computer and reinstall itunes which was lost from computer when I got in debugged.  I have my music on phone

    Try these 2 User Tips...
    Syncing to a New Computer...
    https://discussions.apple.com/docs/DOC-3141
    Recovering your iTunes library from your iPod or iOS device
    https://discussions.apple.com/docs/DOC-3991
    Once you have it working again...
    MAKE A BACKUP OF iTunes...
    Full Details Here  >  http://support.apple.com/kb/HT1751

  • TS4118 When I print out my ical calendars, there are three duplicate events happening every day of the week and I never entered this event?

    When I print out my calendars from ical, there is one event that is reoccurring 3x/day/every day of week! It is not showing on the actual calendar and I cannot figure out how or where it's coming from? It's in the calendar marked Jimmys action which just shows my sons activities and for this activitiy, I put one day with a recurring weekly on just two days of the week at a specific time and this is showing up as well and correctly? What should I do to remedy this?

    UPDATE: I think I found the answer to my problem. I travel between two time zones and recently started listing event times as "floating" so they don't get messed up when I travel between west and east coasts. It seems that when I want to print out a calendar sheet, the time of the event doesn't show up if it's a "floating" event. So, I need to go back to putting a time zone in and turning off "time support" in Preferences for iCal. BTW this (in reverse) is a solution for those who don't want to see appointment times printed out – make it a "floating" event.

  • Leading zero for Product ID deleted when posting confirmation

    Dear All,
    I'm facing a problem when posting confirmation document from SRM to backend for PO item WITHOUT account assignment. When I want to post confirmation document, there is an error message 'Material document data and PO data do not match (Material )'. When I check the Idoc for confirmation, the leading zero in product ID was deleted in Idoc. For Example:
    The product ID is 000000001600000000 (18 character, as defined in Tcode COMCPRFORMAT) when confirmation document created, but the document can't be posted, I can only save the document. And when I check the Idoc, the product ID became 1600000000.
    I've already create a PO and confirmation for the same product using account assignment (Cost Center). And confirmation posted succesfully in backend. FYI, I've already implement note 1568941 in my SRM system.
    Does anyone here ever have the same problem?
    Rgds,
    Aleluya.

    problem solved after implement note 1592750
    Rgds,
    Aleluya sap.

  • Cuts off leading zeros in a report column when "Download to Excel" function

    Hello
    When a text column contains leading zeros for example "000250" the download to Excel stores the string as "250" in the spreadsheet. I am using a column which is a string.(varchar)
    Can somebody suggest me , how to go ahead with it
    Thanks
    Edited by: user647228 on Sep 11, 2008 1:40 PM
    Edited by: user647228 on Sep 11, 2008 1:42 PM

    (To Vins) Actually, concatenating a space doesn't do it. When the file is downloaded into Excel, the leading space is ignored and it the leading zeroes are still trimmed.
    To user647228: A non-space character needs to be concatenated. Regarding what character to append, I would give the following consideration: If the users are content with seeing an added character to the "number," you can append say an underscore "_" and Excel will download the number properly. It's fairly unobtrusive and can be "visually ignored."
    If the end user insists on gettin rid of the extra character once the file is downloaded, I would append a character that is rarely, if not never, used in the report. (This ensures or mitigates replacing other instances of the character.) Then you can do a Replace All in Excel to replace the extra character with a single apostrophe. The single apostrophe will be interpreted by Excel to mean "text" and the appearance will change to exactly what is desired.
    Note: Replacing the extraneous character with a space for example, will result in the leading zeroes being again lopped off by Excel...

  • Need to show leading zeros in the number field when printed from RDF

    We have a requirement to show leading zeros in the rdf output.
    We cannot use a format mask to achieve the same as the length of the field is not fixed.
    for ex if we have 0.68 then the same is printed in RDF as .68
    we cannot use a format mask as the length of the field is not fixed.
    we need to
    Kindly suggest if any solution exists for the same.

    the numbers after the decima can be anything..
    it can range between 2 to 10 or more...
    as told by you if we put the format as to_char(.68,'90.99') it shall give 0.68 but what for numbers like0.678,0.4567,0.765433 it will display only 2 digits after the decimal...
    The requirement is to dispaly the number as it is ,only the zeroes before the decimal should stay intact..
    we are not able to achieve this in rdf output..
    if it is
    0.678 then 0.678 shld be dispalyed
    0.4567 then 0.4567
    0.765433 then 0.765433
    one format mask shld wrk for all the above..
    we would not be changing the format mask for each number....

  • When i print out cd album case inserts-the songs all print in one glob and then the photo of album on same page prints out normal-only happens on my itunes -not anywhere else i print ok thanks

    hi-i need help- when i try to print a cd jewel case insert(i did this many times)the songs side will print out on top of each other like one big glob-and the other half the photo of album comes out correct-i thought it was my old printer so of course got a new one-still does the same crap-help me

    I believe that insufficient RAM may be the source of some of your problems. If you have a RAM of somewhere 4 to 8GB, you will experience smoother computing. 3GB doesn't seem right, so you might want to learn more by going to this site:
    http://www.crucial.com/store/drammemory.aspx
    I don't know what know what's happening with your optical drive, but it seems you use your drive quite a bit. In that case, look into a lens cleaner for your machine. It's inexpensive, works quite well.
    I hope you'll post here with your results!

  • When i print out a color photo the colors are not accurate

    I have a new envy110 series CQ811A. I have a windows 7 64-bit laptop. There are no error messages and the Envy works great but when i print a picture off of a web site the colors are not accurate and i mean none of them. i have returned one printer already but this one is doing the same thing. i really like this printer but if it won't print the colors correctly  i don't know what i will do. I also have a HP C4280 All In One Photo Smart and whatever is printed off the colors are great it just is not wireless. I have tried everything and nothing helps. Is there a solution

    Hi easyneez5!
       Sorry to hear it's not printing web pages so well.
     I do have a suggestion, that may or may not align with the way your are used to printing web pages; HP has a new and improved application for printing web page content; HP Smart Print.
       It's supported on IE (most versions) and can do some neat tricks: http://www8.hp.com/us/en/partner/microsoft/bing-bar-for-hp/smart-print.html
      There are also other potential 'tweaks' you can try in the [Printing Preferences] / [Advanced]: Image Color Managment; You might try setting it from 'ICM Handled by Host System' (default) to 'ICM Handled by Printer' or even 'ICM Disabled'.
       Again, this is merely a potential way to check to see if this helps get those colors right; and remember your settings before you change them.
      Hope this helps
    Regards,
    HardCopy (I am employed by HP) [If this was helpful, please mark this 'Solved' or 'Accept as Solution' so others can find this too]
    How to Give Kudos | How to mark as Solved

  • When I print out photo thru iPhoto, the result is too dark.

    Hi all,
    I have a problem with printing a photo via iPhoto recently.
    I remember when I used iPhoto 9 to print out some of my photos but at that moment the result was pretty OK to me.
    However, I don't know exatly when but I guess it could be since I upgraded to iPhoto 10...
    Everytime I tried to print out some of my photos from my iPhoto library, the result is way too dark than its original color.
    I am using HP Photosmart device(C410ㅁ) with fuji photo papers.
    I tried to change several options like color sync or printing quality but NO use!!
    Strange thing is that if I use airprint with my iPhone or iPad, color level seems to be OK.
    But again, iPhone airprint doesn't give any options to manage printing quality level, it couldn't mitigate my problem, either.
    Is there anyone out there who has the same or similar problem just like me?
    Please share your knowledge to solve this issues.
    Thanks in advance
    Luke.

    What is the color profile of the photo?
    LN

  • Why does all the header info of an email get printed when I print out an email?

    Even when I print a short email, nearly a whole page is taken up with unwanted "header" information eg X-mailSG and several lines ogf gobblygook.?

    View menu (alt+V) > headers > normal.

  • When I print out an email it comes out scrabbled letters and numbers

    I can see the words on the screen, an the From, To, Subject and Date are all clearly in English. Just the content of the email comes out scrabbled letters and words.

    Actually you can't.  When you print directly from iPhoto you will need to print to a 8 x 10 borderless paper size.  That will produce the card with a white border on each size which can be trimmed off after printing. This screen shot shows how the card will print on 8" x 10" stock:
                             Click to view full size
    This is because the stock size for the card is 10 x 7 and no printer supports 10 x 7 borderless printing.  These two tutorials describes how to print the card if you have a 3rd party image editor that can handle layers or have Pages from iWork: #8 - Printing a iPhoto Greeting Card and #8a - Printing a iPhoto Greeting Card to Standard Stock Sizes.

  • ALV Print out

    Hi Experts,
    I have designed an ALV Report.While taking printout of this report I am getting 1 page extra which displays the Ststistics of the report such as Number of records passed.
    If i am specifying print ranges from page 2, it is displaying properly.How to remove this page from print out?
    Regds,
    Sam.

    hi ,
    do this ,
    List -> Print -> click to property button in print window -> expend cover sheets -> double click on ALV statistics , now uncheck the ALV statistics check box . now click on setting button and click on copy setting button .
    now it will work after fresh login also .
    Jitendra

  • Blocked alv print out.

    hi,
    I generated a 3 internal table Blocked ALV program. If i try to take print out, these theree internal table data means individual block of data is getting in separate separate pages. I want this three Internal table data i need to  print in single page. If any one knows plz help me.
    regards,
    bab

    Hi ,
    Can you check your code  is there  parameter   " gs_print-grpchgedit = 'X'. " if  this parameter is  "X" then  it will  print in separate  page's  that is  Page  Break set.  if you remove  then it will continue in the same page  . but still it depends on the Number of entires in each table  . if each table has 5 entires then it will display in the same page.
    Also for more information about the "gs_print-grpchgedit = 'X'."
    Link  : [Page Break while Printing ALV;
    Regards

Maybe you are looking for

  • Changing time stamp format in the file receiver adapter file name

    Hi all, How can we change the standard date time stamp from filename_yyyymmdd-hhmmss-mil to filename_yymmdd_hhmmss i.e.,  I want "underscores" instead of "hyphens" and also I do not want the MilliSeconds. I read in the forums that I have to use the c

  • Passing request of file input type to a jsp

    Hi i m using this script for file uploading the form is.... <html > <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <form action="uploadscript.jsp" name="filesForm" enc

  • Why are certain sound files not playing correctly in iTunes?

    I have had iTunes for years and have never had prolonged or unsolvable problems with anything playback related until now. I recently acquired some music, and it plays perfectly when I use WMP. When I added it my iTunes library, however, the audio is

  • Uploading photos to web gallery.

    I am thinking of a full subscription to .mac and have been viewing the online vids. One of the videos was promoting the benefit of uploading the photo from an iPhone, and the screen clearly shows 4 choices when you're in Photo. The 4 choices are....

  • Lightroom export actions crashes photoshop

    Hello This is a problem that has eluded me for a while. Im running Lightroom 3 and photoshop cs5 (both have the latest updates) . Now I've created droplets that run various actions. In lightroom I export images and use export actions dialog box to ha