Remove blank spaces in excel output file

it is a BOM report and the output is into a excel file.
problem with the excel file output is : i gives blank spaces sometimes after the number and sometimes before the number...
so, how can i remove those blank spaces for the values.
ive nearly 15 columns having values in each column.
so, how to get rid of blank spaces for these values in the columns in the xls file. is there any fn..module or a command that i can put in the code.

Hi,
    above mentioned FM canbe used to eliminate extra zeros   in char field. eg. material number.
  MATNR will contain 18 char.-000000000045678925.
  toget only 45678925 F.M -conversion exit can be used.
  for ur reuirement use SHIFT statement only.
regards,
Prashanth Maturu.

Similar Messages

  • When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb.But the output records is originally 4000 records. When copy to new excel it is showing 3.5 mb only. Does anyone knows the answer for this issue?

    When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb. The records contained in excel file is 4000 records. When taking the excel records and copy to new excel file the excel file size is 3.5 mb only.Why does the oracle software generates 20mb file?
    Does any one knows the answer please advice?

    Hello,
    This issue is because the Excel output from BI Publisher is MHTML (XML Publisher generates XHTML) not binary .xls.
    MHTML and XHTML are more verbose formats than binary .xls.
    It will be large because the current Excel output is just an HTML and not compressed like PDF. Please use the workaround (save it as .xls file).  This is a known limitation of RTF layout templates.
    BI Publisher Enterprise has a new feature True Excel Templates. The layouts generate binary Excel output.
    Excel Output File Size Generated By BI Publisher is Very Large (Doc ID 760437.1)
    Bogdan

  • How to find out the BI Publisher Version from the Excel output file

    Hi,
    Can any one tell me How to find out the BI Publisher Version from the Excel output file generated using BI publisher.

    Take a look at it in notepad or a text viewer... it's just a MIME/HTML file...
    Example:
    From: "Created by Oracle BI Publisher 10.1.3.4.0" <>
    Subject: Created by Oracle BI Publisher 10.1.3.4.

  • Remove blank spaces in a text field?

    How can I remove blank spaces in a text field? Some text fields have a lot of blank fields that need to be removed so that I can report only on the text.
    CRXI
    Edited by: Burton Roger on Feb 10, 2009 5:48 PM

    Ex:
    "Hi,
    I have a need for monthly service desk reporting.
    Please provide data on single sheet.
    Thank you"
    I would like to shrink it down to -
    Hi, I have a need for monthly service desk reporting. Please provide data on single sheet. Thank you"

  • Removing Blank Spaces caused by Supressed data

    Hi All,
    How we can remove the balank spaces caused by supressed data in crystal reports.for eg
    Item Code:I0002
                   Timer
                   For Time Info
                   100
    ItemCode:I00003
                   Pen
                   20
    if there is txt added against pen as for Timer(For Time Info)
    it will leave blank space.How to remove blank space.
    Thanks,
    Neetu

    Hi Neetu
    I have tried replicating your requirement at my end using Xtreme Sample database below are the steps which I have followed.
    1)I have customer Id field,Customer name field field placed in details section.
    2)Click on Section Expert
    3)Click on Details.
    4)Check the second option as "Suppress(No Drill Down)".In front of that there is one icon as "X-2".Double click on that icon.
    5) Type the below formula
         if {Customer.Customer ID}=157 and {Customer.Customer Name} ="Aruba    
         Sport" then true
        else if {Customer.Customer ID}=148 and {Customer.Customer Name}
         ="Koala Road Bikes" then true
         else false
    6)Save and close.
    With this formula where condition matches the specific criteria it will suppress the section and there will be no blank spaces.The rest of the data will be shown.
    Hope it will help you.
    Regards
    Asha

  • PI removing blank spaces at the end of the lines in a plain text file

    Hi -
    I have an interface that transfers a file via FTP. I defined both the sender and receiver to transfer either Text or Binary but the interface removes every blank space I have after the last character. The file is a fixed lenght file.
    Example:
    Original file:
    Hello world(space)(space)(space)(space)(space)(space)(space)(space)(eol)
    where (space) is the space character and (eol) is the end of line char.
    File after it is received.
    Hello world(eol)
    I already defined the parameter Row.fieldFixedLenghts with 10164 which is the lenght of the lines of the file.
    Any ideas why it may be happening?
    Thanks,
    Carlos.

    Hi -
    I tried both the parameters:
    xml.fieldContentFormatting
    structure.fieldContentFormatting
    The received file still has the problem. All the blank spaces are cleared out.
    The file is a plain text file not an XML file. May this be the issue?
    Thanks,
    Carlos.

  • How to Remove Blank spaces in the text elements for a smartform

    Hi All,
    Can any one please help me out to remove the blank spaces in the text elements.
    We are printing Labels using the Zebra Printer and we have rotated the windows to 90 degrees.
    We are able to see out text and barcodes. But the issues is when we are printing the label. We are getting spaces in the Text and in the Text elements fields. I have tried to give &g_name(C)&. But it is not working even i worked with style sheet spaces no luck.
    Currently out text and fields are printing like this
    s h r i y a n
    material number
    1111  -001  -000
    They should print like
    shriyan
    1111-001-000
    According to the ZEBRA suggestions we are using the font helve.
    Plase help us it is very urgent.
    Reward point will be given.
    Thanks

    Hi,
    Just use Condense g_name inside the program lines.
    Just to see how it behaves put a hard breakpoint.
    Break Username. and check the condense statement.
    condense <your field> no-gaps.
    Create program lines ahead of printing. give the field you want to condense in the input and output parameters of the program lines.
    Use condense inside the program lines.
    Thanks,
    Vamshi.

  • REMOVING BLANK SPACE IN XML USING JDOM

    <?xml version="1.0" encoding="UTF-8"?>
    <Person >
    <Employee1>
    </Employee1>
    <Employee2>
    </Employee2>
    <Employee3>
    </Employee3>
    </Person>
    I want to remove <Employee2>
              </Employee2>
    and my output should look like this
    <Person >
    <Employee1>
    </Employee1>
    <Employee3>
    </Employee3>
    </Person>
    so i have written code
    import org.jdom.Document;
    import org.jdom.Element;
    import org.jdom.JDOMException;
    import org.jdom.input.SAXBuilder;
    String str = "C://Employee.xml"
    SAXBuilder builder = new SAXBuilder();
    document = builder.build(str);
    Element root = document.getRootElement();
    Element employeeChild1 = root.getChild("Employee1");
    Element employeeChild2 = root.getChild("Employee2");
    employeeChild1.getParent().removeContent(employeeChild1);
    employeeChild2.getParent().removeContent(employeeChild2);
    File file = new File( fileName );
    fos = new FileOutputStream( file );
    Format format = Format.getRawFormat();
    format.setOmitDeclaration(false);
    format.setTextMode(Format.TextMode.PRESERVE);
    outp = new XMLOutputter( format );
    outp.escapeElementEntities(" ");
    outp.output( document, fos );
    fos.flush();
    when i run this code my output comes like this in editplus
    <Person >
    <Employee1>
    </Employee1>
    <Employee3>
    </Employee3>
    </Person>
    and in internet explorer it shows correct
    <Person >
    <Employee1>
    </Employee1>
    <Employee3>
    </Employee3>
    </Person>
    i want to know how can i delete that blank line also because internet explorer adjust the settings and delete blank line but i want to view in editplus
    Element is getting deleted but the index is not getting deleted
    Please let me know Thanks in advance

    Is this an InDesign question? You are talking about PDFs. Are they exported from InDesign, and you are asking how to fix them some way in InDesign before exporting again to PDF? Or are you placing PDFs into InDesign. If neither of these is your question, you may want to ask over in the Acrobat forum.

  • How to remove blank space left from Images Word import

    Hi all,
    I'm working on a document which has been imported from Word, because of the conversion process a lot of images (that where pasted directly from Powerpoint in Word) didn't get converted properly and ended up in different part of the resulting Pages document.
    The issue is that the images were found somewhere else, but the space they were occupying in the document was left ..sometimes in that space I find a squared frame which I can easily remove but some other times I just find a blank space which is impossible to remove or select.
    This results in breaking the text for 10-13 lines. It is impossible to make the text filling this space. I can assure I cannot select this area with any tool (also by selecting 'make master objects selectable') and Im using the 'show invisibles' mode.
    Please any suggestion or advise?
    Im available to send a part of the document so anyone may check if wants to help me..
    Thanks a lot
    cheers

    Hi Jerry thanks for your possible help , please find below a part of the text Im working, the issue is at the end of page 16 where I highlighted in yellow the text, I cannot get rid of the space at page 16:
    Sorry if the document is in Italian and it is quite understanble for all you..
    http://www.wupload.com/file/2677565317/example_of_my_problem.pages
    I had to put it on wupload  because the file is 77MB, sorry!!!
    ..and I dunno why...the whole document is 264 pages and is 77,8 MB I thought that only 17 pages were less...
    I think thisis another BIG ISSUE thie FILE:.I think there is something hidden in it which is subtracting space...
    Actually whne I imported the original document from Word it became 100MB, then I got rid of all the images but still 77MB, in word it was just 12MB with images..
    Any more idea/suggestions about this size issue please?
    Thanks a lot to everyone
    cheers
    simo
    PS
    in some of the footnotes there are some citation I imported using Endnote x5, but this is not affecting too much the size, as before these citations when I imported the document were not

  • DMEE : Delete Trailing spaces in the output file..

    Dear Friends
    I am using a DMEE Tree t generate a payment file.
    Everything is fine except that teh bank requires the trailing spaces to be deleted.
    i.e. I am getting an output like below but with spaces in place of dots
    :50H:/09618078222002EUR....................<CR/LF>
    Sana'a............................................ <CR/LF>
    :70:DMEE-TEST14.................<CR/LF>
    Note:The dots represents spaces which I want to remove. The dots are added to show you the output...
    The <CR/LF> is printing at the end of the field length. I mean if the field is 34 Chr long then the
    <CR/LF> is getting printed at 35th Char irrexpective of teh field contents...
    But the bank requires in the below format. i.e. remove the spaces thats all.
    :50H:/09618078222002EUR<CR/LF>
    Sana'a<CR/LF>
    :70:DMEE-TEST14<CR/LF>
    Can anyone help.
    I am working on SAP 4.6C
    Help will surely be reawrded....

    Hello Sam,
    I DO NOT know if i can make you understand the logic, but will give it a try )
    The <CR/LF> is printing at the end of the field length. I mean if the field is 34 Chr long then the
    <CR/LF> is getting printed at 35th Char irrexpective of teh field contents...
    You define an element of length 35 char, then in the "Mapping Procedure" select the "Own Mapping (Atoms)" & set the "Atom Handling" as 01 (Concatenate values in element).
    Then create the ATOMS: one with the value "DMEE-TEST14" & the other atom with the value "<CR/LF>
    ". The output will be a concatenation of the two fields )
    Did you get what i wanted to tell you )
    BR,
    Suhas

  • Excel output file size is large - How to make it small in size?

    Hi,
    An Excel file out put is too large when I get it from application. If I copy and paste the same content in an excel sheet , the size is too small.
    How can I fix this?
    Excel output size from application - 12.4 MB - 4500 records
    copy paste file size - 827 KB
    Oracle EBS 11.5.10.2
    BI Publisher Desktop Version - 10.1.3.4.2
    Thanks in advance.

    BIP generates an XHTML output with mime-type xls and thus Excel is invoked when it is downloaded. XHTML is text and therefore it is lenghty. When you copy and paste it in Excel you save it in binary format and compress.
    My suggestion is create an excel template instead of rtf. Not sure if this is possible for EBS (open a ticket with Oracle Support to confirm you can use excel templates in EBS the version you have).
    Reference:
    http://blogs.oracle.com/xmlpublisher/entry/real_excel_templates_i
    In this way your output will be a truly binary file with size much more smaller.
    regards
    Jorge
    ps. If this answers your question then please grant the points and close the thread

  • Removing message type tag in output file

    Hi guys,
    I'm new to XI. I have done an xml file to xml file scenario. It is working successfully
    The output file has a format
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:mt_xml_receiver xmlns:ns0="http://xml2xml">
         <DETAILS>
              <ID>111</ID>
              <NAME>Varun</NAME>
              <LOCATION>India</LOCATION>
              <ADD>Bangalore</ADD>
              <MOBILE>46572727</MOBILE>
              <EMAIL>[email protected]</EMAIL>
         </DETAILS>
    </ns0:mt_xml_receiver>
    I want to remove the additional tag present for the message type and i want the output in the format
    <?xml version="1.0" encoding="UTF-8"?>
         <DETAILS>
              <ID>111</ID>
              <NAME>Varun</NAME>
              <LOCATION>India</LOCATION>
              <ADD>Bangalore</ADD>
              <MOBILE>46572727</MOBILE>
              <EMAIL>[email protected]</EMAIL>
         </DETAILS>
    Can any one help me on how to achieve this???
    Pl help me on this guys
    Regards
    Varun

    HI Varun,
    This will help you..
    In the message type <b>mt_xml_receive</b>r there is a box where the namespace name is specified.
    Simply delete the same and activate the message type.
    In your case what you can do is as you dont want the message type name also.
    you can create the message type name as DETAILS instead of mt_xml_receiver.
    Regards,
    Sumit
    ps : reward points if tht helped u.

  • SAP Script -Removing Blank Space

    I am working on Customer Accounting Stmt.
    On First Page I have to display header window , main window , account and footer window
    Account window will be displayed on last page only.
    Account window is phisically present after main window.
    So blank space is getting created after main window.
    My question is how to remove this blank space?
    How to change the main window size dynamically?
    Or any other solution to this problem?

    Hi Vimal,
    Check this link
    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=windowonlastpagescript&adv=false&sortby=cm_rnd_rankvalue
    Regards,
    Sravanthi

  • Blank space in my log Files

    My Essbase Server Crashed and as i review the log i have about 5 pages of blank space
    any ideas why

    not sure why ur log files are cleared but
    i guess you should go through this
    ftp://ftp.software.ibm.com/software/analytics/spss/support/In2Quest/DOCS/DBAG/dstinteg.htm#9320

  • How to remove blank spaces in the source code of my page?

    I created a page with the following code for testing:
    <dsp:page>
    <dsp:importbean bean="/atg/commerce/catalog/ProductLookup"/>
         <dsp:droplet name="ProductLookup">
              <dsp:param name="id" value="xprod2046" />
              <dsp:param name="elementName" value="product" />
              <dsp:oparam name="output">
                   <dsp:valueof param="product.DisplayName"/>
              </dsp:oparam>
         </dsp:droplet>
    </dsp:page>
    It only shows the product name in the browser. But if I look at the source code of my page he created 61 lines in response to this code, where a line is the product name and the other 60 have nothing.
    I know how to remove these lines that the ATG creates no content because my project is full of these empty lines.
    Anyone ever had this problem and could help me?
    Thanks

    Hi ,
    Yup this is a problem ,
    you can use following ways :
    1- use jsp comments eg :
    <dsp:page>
    <dsp:importbean bean="/atg/commerce/catalog/ProductLookup"/><%--
         ----%><dsp:droplet name="ProductLookup"><%--
              ----%><dsp:param name="id" value="xprod2046" /><%--
              ----%><dsp:param name="elementName" value="product" /><%--
              ----%><dsp:oparam name="output"><%--
                   ----%><dsp:valueof param="product.DisplayName"/><%--
              ----%></dsp:oparam><%--
         ----%></dsp:droplet><%--
    ----%></dsp:page>
    2- End tags at next line :
    e g :
    * <dsp:page
    * ><dsp:droplet name=”xyz”
    * ><dsp:oparam name=”output”
    * >Name: <dsp:valueof param=”abc”
    * /></dsp:oparam
    * ></dsp:droplet
    * ></dsp:page>
    3- Always use TAB instead of using SPACEBAR whie writing source code.
    4 - From JSP 2.1 onwards we have a page directive trimwhitespaces ( see if that works , i was not able to ), google for it for more info
    5 - You can modify your build scripts to remove white spaces from jsps while building EAR.(complex though, as you may not want to trim all white space.)
    6 - modifying the deployment descriptor.
    <init-param>
    <param-name>trimSpaces</param-name>
    <param-value>true</param-value>
    </init-param>

Maybe you are looking for