How to set white spaces between the fields in dataset??

Hi all,
I am writing a set on information to from infotypes to a text file. Its a fixed width file. How do set white spaces in the fields for dataset?
Example:
TYPES: begin of header,
                filler(40)  type c,
                id(3)        type c,
                filler2(7) type  c,
                delimiter  type  c,
             end of header.
DATA header type header.
header-filler1 = ' '.
header-id       = '100'.
header-filler2 = ' '.
header-delimiter = cl_abap_char_utilities=>newline.   ( do it to get a new line)
my_table = header.
append my_table.
DATA: out_file(256) type C,
      codepage_ref type ref to CX_SY_CONVERSION_CODEPAGE,
      out_char type c,
      size type i,
      insert_string type string,
      insert_size type i.
  out_file = filename.
  open dataset out_file for output in text mode ENCODING NON-UNICODE.
  LOOP AT my_table.
    size = strlen( my_table ).
    insert_string = ''.
    DO size TIMES.
      offset = sy-index - 1.
      try.
          out_char = my_table+offset(1).
          IF out_char = SPACE.
            CONCATENATE insert_string '' INTO insert_string SEPARATED BY SPACE.
          ELSE.
            CONCATENATE insert_string out_char INTO insert_string.
            transfer insert_string to out_file NO END OF LINE .
            insert_string = ''.
          ENDIF.
        catch CX_SY_CONVERSION_CODEPAGE.
          insert_size = strlen( insert_string ) - 1.
          insert_string = insert_string(insert_size).
      endtry.
    ENDDO.
   transfer CL_ABAP_CHAR_UTILITIES=>NEWLINE TO out_file NO END OF LINE.
  ENDLOOP.
  close dataset out_file.
How do I get to insert the space for filler1 and filler2?
Edited by: Siong Chao on Oct 4, 2011 4:56 AM
Edited by: Siong Chao on Oct 4, 2011 8:27 AM
Edited by: Siong Chao on Oct 4, 2011 8:29 AM

problem lies in the open dataset codes
Used:
open dataset out_file for output in text mode encoding non-unicode message msg.
if sy-subrc= 0.
loop at my_table.
transfer my_table to out_file
transfer cl_abap_char_utilities=>newline to out_file no end of line.
endloop.

Similar Messages

  • How to remove white space between two answer reports

    How to remove white space between two answer reports
    In Dashboard section I have 2 rqeuest. Each request renders Table View. When I display dashboard, it show white space separating the 2 table views. How do I get rid of the white space/white band ?

    See this link
    Re: Eliminating the space between two reports in OBIEE dashboard page Section
    Regards,
    Sandeep

  • How to set space between the fields in SearchPG- Display issue

    Hi Friends
    I Have created a searchPG with a QueryRN , In my searchPG i have some display issue after running the page its looks like this
    For Example assue its a page with 3 field and one table region
    Employee no
    Employee name
    Phone no
    ResulttableBut i want my searchPG should hav some space between two field as shown below
    Employee no
    Employee name
    Phone no
    ResulttablePlease adviice me
    I appreciate all ur advice
    Thanks
    A.T

    Hi Peddi
    In my structure pannel I have simpleSearchPanel below that only i have the two lov fields ex: emp_no and emp_name . how to set the spacer between this From which Region where can find the spacer bean what proerty do i need to set
    Thanks
    AT

  • How do you add space between the Series Name and the chart?

    I'm trying to format a 3D pie chart and the series name is nearly unreadable depending on the angle. I would like to add some space between the series name and the chart.

    On my charts, I just select the legends and drag them away from the chart. Hopefully this example helps:
    Regards,

  • How to remove white space between sliced images ? Please help.

    I've created a site by exporting sliced images from Photoshop into Dreamweaver. Some images have a thin white line between them that I can't get rid of. I think it's because they are in a table format. There is no cell padding. Can you help me remove them? (see code below) The images I'm talking about are the horizontal buttons used in the navigation bar. Thank you in advance!
    Here is a link to the site: Site Preview
    --------------CODE---------------
    <table width="1001" height="751" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
        <tr>
          <td colspan="17">
            <img src="../Images/Optimized-Header.gif" width="1002" height="188" alt="logo header"></td>
          <td>
            <img src="../images/spacer.gif" width="1" height="194" alt=""></td>
          </tr>
        <tr>
          <td rowspan="2">
            <img src="../images/white-space-top-left.gif" width="44" height="45" alt=""></td>
          <td colspan="16">
            <img src="../images/Creekside-Layout-Final_03.gif" width="956" height="1" alt=""></td>
          <td>
            <img src="../images/spacer.gif" width="1" height="1" alt=""></td>
          </tr>
        <tr>
          <td colspan="3"><a href="../creekside_homepage.html"><img src="../images/about-btn1.gif" width="157" height="44" alt="about"></a></td>
          <td colspan="3"><a href="../steam_and_sauna_page.html"><img src="../images/steam-and-sauna-btn2.gif" width="233" height="44" alt="steam and sauna"></a></td>
          <td colspan="3"><a href="../creekside_hot_tubs_page.html"><img src="../images/hot-tubs-btn3.gif" width="162" height="44" alt="hot tubs"></a></td>
          <td colspan="3"><a href="../creekside_rentals_page2.html"><img src="../images/rentnals-btn4.gif" width="151" height="44" alt="rentals"></a></td>
          <td colspan="3"><a href="../creekside_contact_page.html"><img src="../images/contact-us-btn.gif" width="211" height="44" alt="contact us"></a></td>
          <td>
            <img src="../images/white-space-top-right.gif" width="42" height="44" alt=""></td>
          <td>
            <img src="../images/spacer.gif" width="1" height="44" alt=""></td>
          </tr>
        <tr>

    Your slices appear to be a little bit off. 
    Use Photoshop for images only.  Use DW to build your web pages.  Exporting HTML from graphics apps is not going to produce good cross-browser results.  It's really only for quick prototypes; not real web sites.
    See this 3 part tutorial:
    Taking a Fireworks (or Photoshop) comp to a CSS Layout in DW
    Part 1 - Initial Design
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    Part 2 - Markup preparation
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt2.html
    Part 3 - Layout and CSS
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt3.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • How in the heck did the spaces between the buttons get in there?

    Hello,
    Go to this link:  http://www.peterdanko.com/peterdanko.com/gb_installation2.html#  Note the white spaces between the buttons.  They are not supposed to be there.  All margins/borders are set to zero.  Then, because of this white space, the last button gets tossed into the great cyber void.
    What am I doing wrong? and how come when I used this same structure on other pages it worked perfectly?
    Thanks,

    Hi Peter,
    about hotspots: you only need to build an image with your buttons (I made it at the moment with 5 so that I can send it here), like this:
    Then you have to insert this image in your DW file, a menu opens, which looks like this (German DW):
    Now you can do 10 overlays with these green (rectangle) areas and assign each aerea with a link.
    Hans-G.

  • Why do I get spaces between the printed fields? (Oracle 10G)

    Hi!
    I use Oracle 10G and I have a program that doesn't work the way it does on previous versions of Oracle. Or maybe it's a wrong options?!?
    Well i need to print the fields from a table with no spaces between them. Instead I get spaces between the fields. As if the dimension of the printed field is three times the real dimension of the field (even if I use SUBST, RTRIM, LPAD).
    For example I have
    SELECT '1', '2' FROM dual;
    I get "1 2 " instead of "12"
    The program is something like this:
    SET SCAN ON
    SET SPACE 0
    SET PAGESIZE 0
    SET PAUSE OFF
    SET FEEDBACK OFF
    SET HEADING OFF
    SET EMBEDDED ON
    SET VERIFY OFF
    SET TERMOUT OFF
    SET LINESIZE 4750
    spool &&4
    Select campo1, campo2 from tabella;
    Oh! It's not possible to concatenate the fields. campo1 || campo1. I get error, I presume, because of the dimension of the line (4750).
    Thanks,
    Miky

    SET COLSEP doesn't work! SPACE 0 should do the same, but doesn't work either When you complains that solution doesn't work, you should provide us the output you got. Because as I showed, and as shoblovk show it worked fine on our side.
    Anyway, what's the version of your Oracle client (SQL*Plus), OS... ?
    Nicolas.
    PS : and use tags as well &#091;pre&#093;paste your code here&#091;/pre&#093;
    Message was edited by:
    N. Gasparotto

  • Getting white spaces between frames

    Help! I'm doing a simple site using three frames. When I preview, either in GoLive or the browser, there are white spaces between the frames.
    These are about 1/16 inch. I've turned off borders, set them to 0 - tried everything I know. Where are these coming from?
    Also... how do you get the grid to go all the way to the upper left corner of the page?
    Thanks.

    Sorry... I'm new to this. Here's the code for the frameset on the index page. Don't know what else I might give you.
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
    <meta name="generator" content="Adobe GoLive">
    <title>Untitled Page</title>
    </head>
    <frameset rows="205,*" border="0" frameborder="no" framespacing="0">
    <frame name="Header" src="header_title.html" noresize scrolling="no">
    <frameset cols="200,800" border="0" frameborder="no" framespacing="0">
    <frame name="Menu" src="genres.html" noresize scrolling="no">
    <frame name="Content" src="welcome_page.html" noresize>
    </frameset>
    <noframes>
    <body bgcolor="#ffffff">
    <p></p>
    </body>
    </noframes>
    </frameset>
    </html>

  • White space between images

    I have 5 rollover images lined up beside each other in a
    table cell. I have reduced their borders to 0, the cell padding and
    cell spacing to 0 also. I even tried reducing the images padding
    and margin to 0. However, there is still a really thin line between
    each of the images that i want to get rid of (it's as if the images
    all have a small white border around them, but I've reduced their
    borders to 0).
    Here is what the code looks like:
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="53">
    <div id="box">
    <p align="right"><img src="banner.jpg"
    name="banner" width="536" height="101" border="0" id="banner" />
    <a href="#" onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('home','','Buttons/homebtnover.jpg',1)"><img
    src="Buttons/homebtnup.jpg" name="home" width="107" height="36"
    border="0" id="home" /></a><a href="#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('theteam','','Buttons/theteambtnover.jpg',1)"><img
    src="Buttons/theteambtnup.jpg" name="theteam" width="107"
    height="36" border="0" id="theteam" /></a><a href="#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('schedule','','Buttons/schedulebtnover.jpg',1)"><img
    src="Buttons/schedulebtnup.jpg" name="schedule" width="107"
    height="36" border="0" id="schedule" /></a><a href="#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('gallery','','Buttons/gallerybtnover.jpg',1)"><img
    src="Buttons/gallerybtnup.jpg" name="gallery" width="107"
    height="36" border="0" id="gallery" /></a><a href="#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('contact','','Buttons/contactbtnover.jpg',1)"><img
    src="Buttons/contactbtnup.jpg" name="contact" width="108"
    height="36" border="0" id="contact" /></a></p>
    </div> </td>

    .oO(Twinbird24)
    >It still doesn't work. I've even tried to just make a new
    document and just
    >place the rollover images beside each other in a row
    (horizontally). However,
    >even with the image's borders, padding, and margin set to
    0, there still seems
    >to be a really small space between the images.
    >
    > Here is a link to the rollover images, as you can see,
    there is that small
    >white space between the images:
    >
    http://www.arkdesigns.ca/untitled.html
    The gap I see is in the images themselves - the outermost
    right and
    bottom pixels are faded. There's no other gap between the
    images in
    Opera and IE 6.
    Micha

  • White Space between Objects?

    Alright,
    I seem to be having a problem to where there is white space between objects and no matter how many times I intersect paths I still have white-space between objects. Obviously if you are making some sort of illustration, even a pixel worth of white space could prove to be problematic. I have provided a screenshot of the problem I am receiving. I cannot move the objects together to fix this problem. May anyone please offer advice or a solution to this issue?
    As you can see in the screenshot we are seeing white space between the blue and purple objects.
    Any help would be greatly appreciated!
    Thank you all so much!
    Aaron

    Thanks for this reply dougofakkad. This answer lead me to find what I was looking for...
    This question and it's answers go over the problem:
    http://forums.adobe.com/thread/845303
    This blog post answers the problem:
    http://www.sarasjodin.com/2013/06/place-objects-exactly-illustrator/
    Thank you so much!

  • Change amount of white space between paragraphs

    I have a web page at
    http://lifopro.com/072506lifotrainingmaterials.html
    that has more white space between the paragraphs that I would like.
    Is there any way to decrease the white space between paragraphs?
    The code for the top part of the text is included.
    Thanks for your help.
    Paul

    thanks murray. 8^D
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    > That would be margins you need to control, not padding.
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "crash" <[email protected]> wrote in message
    > news:[email protected]...
    >> 1. Take out all of your font tags
    >> 2. Research archives for info on CSS
    >> 3. Control padding on paragraphs with css.
    >>
    >>
    >> --
    >> If you haven't already, you would be well served
    searching through the
    >> archives for the answer to your question. The
    archives can be found
    >> here:
    >>
    >>
    http://groups.google.com/group/macromedia.dreamweaver
    >>
    http://groups.google.com/group/macromedia.dreamweaver.appdev
    >>
    >>
    >> "Lewp01" <[email protected]> wrote
    in message
    >> news:[email protected]...
    >>>I have a web page at
    http://lifopro.com/072506lifotrainingmaterials.html
    >>>that
    >>> has more white space between the paragraphs that
    I would like. Is there
    >>> any
    >>> way to decrease the white space between
    paragraphs?
    >>>
    >>> The code for the top part of the text is
    included.
    >>>
    >>> Thanks for your help.
    >>> Paul
    >>>
    >>>
    >>> <p><font size="2" face="Verdana, Arial,
    Helvetica,
    >>>
    sans-serif"><strong> </strong>The primary
    reasons LIFO errors are
    >>> so
    >>> common are:</font></p>
    >>> <ol><li><font size="2"
    face="Verdana, Arial,
    >>> Helvetica, sans-serif"> Errors resulting from
    the use of spreadsheets
    >>> and
    >>> </font></li>
    >>> <li><font size="2" face="Verdana,
    Arial,
    >>> Helvetica,
    >>> sans-serif">Lack of understanding of LIFO IRS
    Regulations and basic LIFO
    >>> principles. </font></li>
    >>> </ol>
    >>> <p><font size="2" face="Verdana, Arial,
    >>> Helvetica,
    >>> sans-serif">One of the reasons for the latter
    is the lack of adequate
    >>> LIFO
    >>> training and reference materials especially as
    it relates to the IPIC
    >>> method.
    >>>
    >>
    >>
    >
    >

  • How do I remove the white space from the bottom and side of my document?

    How do I remove the white space from the bottom and side of my document? (I'm not talking about printing, just viewing it on the screen.) There are about 6 inches of white space at the bottom and at the right hand side. I don't like this. On a blank new spreadsheet it's triple that amount of white space.

    The infinite canvas convention doesn't make a lot of sense for Numbers. When I'm viewing a spreadsheet and mistakenly scroll into white, empty space I think, "this is ridiculous - all of my content is fits on one screen. there's nothing over there."
    A (relatively) infinite canvas is logical for Microsft Excel because it's one big table. There are 256(?) columns by default and hundreds of rows on a sheet - there are cells outside what a user is looking at to see. However, when viewing a Numbers spreadsheet with a single 10 column 10 row table that fits on the screen, there's nothing else on it to scroll to.
    Numbers should distinguish between viewing a spreadsheet and editing one. When I'm just viewing, when there's no content outside the window it shouldn't scroll there. This window behavior is beyond annoying for Numbers on my iPad and iPhone.
    (Adding user-defined canvas size setting to my view mode / edit mode thinking would probably be the most complete solution to this now that I think about it.)
    Until now the way scrolling worked in Numbers has defied logic. Actually it still does lol. That said, thank you Yellowbox for providing a clear explanation. Much appreciated.

  • How to remove space between two fields in emergency primary contact.

    How Can I remove a space between the two fields.IN emergency primary contact there are certain field called "C/O" and a i have added one text for this field inside that.But it is taking a big space between the "C/O" field and the text view.Plz suggest how I can re,move this?Also How Can I add new transparent container  with the end user personalization in the emergency contact field.

    Hi Peddi
    In my structure pannel I have simpleSearchPanel below that only i have the two lov fields ex: emp_no and emp_name . how to set the spacer between this From which Region where can find the spacer bean what proerty do i need to set
    Thanks
    AT

  • How to create a table with the spaces between the row..

    Hello,
    I am using jdev 11.1.1.6 and I need to insert the spaces between the rows. How this can be done?
    Thanks and Regards,
    Tarun Agrawal

    Hi Tarun,
    This css rule is useful to set the padding on each cell:
    .AFTableCellPadding:alias {
      padding: 10px 0px 10px 0px;
    }But if you want to insert a real space between the rows (property "cellspacing") you can do something like this:
    af|table > div + div > table {
      border-collapse: separate;
      border-spacing: 0px 5px;
    }AP

  • When Importing Images, How Do I Remove The White Space Around The Corners?

    When Importing Images, How Do I Remove The White Space Around
    The Corners?

    u may use magic wand (and magic wand setting) from Lasson
    Tool to select and delete that white space, but u must break a part
    to the picture first.

Maybe you are looking for

  • Emails from iPhone going to Junk folder caused by signature

    I recently came across an issue when sending emails from my iphone using my business account.  When I send emails to users of Outlook 2010, my emails go straight to their junk email folder, but for other versions of Outlook this does not occur.  I ap

  • How can I unlock a disabled ipad if it has NEVER been synced?

    Hi read everything I found but there is no option for unlocking a disabled ipad if it has never been synced with any pc.  Any suggestions?  its my kids ipad and he is driving me nuts !!!! help !

  • Out of memory error importing a JPA Entity in WebDynpro Project

    Hi All! We are having problems importing JPA entities in a WebDynPro project, this is our escenario. We have two entities, entity A that has a ManyToOne relationship with entity B and at the same time entity B has a OneToMany relationship with entity

  • Maintain data rate when transferring clips from XF 305 to FCP 7

    Hello I wonder if someone out there can help. I have footage shot on a Canon XF305 - 1920x1080p, 50i, 50Mbps which I want to edit in Final Cut Pro 7.0.3. I have installed the Canon XF plug-in and have used Log and Transfer to ingest one short clip as

  • ADSL network username and password required

    Help, I've got someone trying to sort my home wireless but he's asking for my BT ADSL Network Logon Username & Password - I cant seem to find anywhere or have any record.  Does anyone out there know?