Align Right

Hi,
I'am downloading a idox to a txt file with gui_download. And i'm cutting the blank spaces between the fields.but in one ofe the fiels i want that the field appers with all is lenght and with teh value of 0 align to the right. i have used one invisible character (ALT+255) it´s like this:
num(8) value '       0'
but i want to know if there is another way to align the caracter to the right and show all the variable leght in the file without use of the invisible character.
thaks,
Ricardo

Hi ricardo,
1. The right alignment and padded zeros,
   come automatically.
2. just check out this program.
report abc.
data : begin of itab occurs 0,
      f(10) type c,
      n(10) type n,
      f1(10) type c,
      end of itab.
itab-f = 'ABCD'.
itab-n = 5567.
itab-f1 = 'DEFG'.
append itab.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
        BIN_FILESIZE                    =
          FILENAME                        = 'd:\def.txt'
        FILETYPE                        = 'ASC'
        APPEND                          = ' '
        WRITE_FIELD_SEPARATOR           = ' '
        HEADER                          = '00'
        TRUNC_TRAILING_BLANKS           = ' '
        WRITE_LF                        = 'X'
        COL_SELECT                      = ' '
        COL_SELECT_MASK                 = ' '
        DAT_MODE                        = ' '
        CONFIRM_OVERWRITE               = ' '
        NO_AUTH_CHECK                   = ' '
        CODEPAGE                        = ' '
        IGNORE_CERR                     = ABAP_TRUE
        REPLACEMENT                     = '#'
        WRITE_BOM                       = ' '
        TRUNC_TRAILING_BLANKS_EOL       = 'X'
        WK1_N_FORMAT                    = ' '
        WK1_N_SIZE                      = ' '
        WK1_T_FORMAT                    = ' '
        WK1_T_SIZE                      = ' '
      IMPORTING
        FILELENGTH                      =
        TABLES
          DATA_TAB                        = itab
        FIELDNAMES                      =
      EXCEPTIONS
        FILE_WRITE_ERROR                = 1
        NO_BATCH                        = 2
        GUI_REFUSE_FILETRANSFER         = 3
        INVALID_TYPE                    = 4
        NO_AUTHORITY                    = 5
        UNKNOWN_ERROR                   = 6
        HEADER_NOT_ALLOWED              = 7
        SEPARATOR_NOT_ALLOWED           = 8
        FILESIZE_NOT_ALLOWED            = 9
        HEADER_TOO_LONG                 = 10
        DP_ERROR_CREATE                 = 11
        DP_ERROR_SEND                   = 12
        DP_ERROR_WRITE                  = 13
        UNKNOWN_DP_ERROR                = 14
        ACCESS_DENIED                   = 15
        DP_OUT_OF_MEMORY                = 16
        DISK_FULL                       = 17
        DP_TIMEOUT                      = 18
        FILE_NOT_FOUND                  = 19
        DATAPROVIDER_EXCEPTION          = 20
        CONTROL_FLUSH_ERROR             = 21
        OTHERS                          = 22
      IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
regards,
amit m.

Similar Messages

  • How do I use align="right" for text in a dl environment?

    I use a <dl> environment to control vertical line spacing extensively (thousands of pages).  Here is the objective:
    But I also need to have generation numbers, e.g. "2.2.1" right aligned on a defined width page.  I have tried various ways of achieving this using <div>, <span>, etc.  Each has unintended consequences.  The above is created using <table> in the <dt> line.  But W3C validator objects every time. 
    Here is my script:
    Or, if this is easier to read:
    <dt class="type_U_XXX"><table width="720" border="0" cellpadding="0">
      <tr>
        <td width="680">Johann Peter Bayer (*23.10.1716 Undenheim)</td>
        <td width="40" align="right">2.2.4</td>
      </tr>
    </table></dt>
    <dd class="col_0">Taufpate war Johann Peter Cohn, Gau-Odernheim.</dd>
    <dd class="col_0">Johann Peter Bayer war von 1751-1788 St.Albans-Hofmann in Undenheim.  Er ist als "hervorragender und emsiger Mann" und als "der Hof-Peter" überliefert.  Am 04.02.1744 heiratete er in Undenheim <i>Anna Catharina Dapper aus Sörgenloch</i>.  Trauzeugen waren Joh. Mathäus Bayer und Joh. Peter Dapper.<br /><br /></dd>
    <dt class="col_1">Kinder: (13)</dt>
    <dt class="type_U_XXXsX"><table width="680" border="0" cellpadding="0">
      <tr>
        <td width="640">Johann Mathäus Bayer (*03.04.1745, +02.10.1746 )</td>
        <td width="40" align="right">2.2.4/1</td>
      </tr>
    </table></dt>
    <dd class="col_1">Taufpate war Joh. Mathäus Lahr.<br /><br /></dd>
    How can I right-align the numbers in a <dl> environment?  It has to be in the <dt> line, not the <dd>.  Using the <dd> line indents the left margin, which is not acceptable. 
    Thanks for your help.  Please be very explicit.  Please show me the line or two of script that is needed, don't just say for example, use a <div>.

    I love your use of the definition list   However, nesting <table> in <dt> is obviously not good.
    HTML
    <dl>
            <dt>
                <div class="name">Johann Peter Bayer (*23.10.1716 Undenheim)</div>
                <div class="id">2.2.4</div>
            </dt>
            <dd>
                <p>Taufpate war Johann Peter Cohn, Gau-Odernheim.</p>
                <p>Johann Peter Bayer war von 1751-1788 St.Albans-Hofmann in Undenheim.  Er ist als "hervorragender und emsiger Mann" und als "der Hof-Peter" überliefert.  Am 04.02.1744 heiratete er in Undenheim <em>Anna Catharina Dapper aus Sörgenloch</em>.  Trauzeugen waren Joh. Mathäus Bayer und Joh. Peter Dapper.</p>
            </dd>
            <dt>
                <div class="name">Johann Peter Bayer (*23.10.1716 Undenheim)</div>
                <div class="id">2.2.4</div>
            </dt>
            <dd>
                <p>Taufpate war Johann Peter Cohn, Gau-Odernheim.</p>
                <p>Johann Peter Bayer war von 1751-1788 St.Albans-Hofmann in Undenheim.  Er ist als "hervorragender und emsiger Mann" und als "der Hof-Peter" überliefert.  Am 04.02.1744 heiratete er in Undenheim <em>Anna Catharina Dapper aus Sörgenloch</em>.  Trauzeugen waren Joh. Mathäus Bayer und Joh. Peter Dapper.</p>
            </dd>
    </dl>
    CSS
    dl {
    width: 720px;
    dl > dt > div.name {
        float: left;
        width: 680px;
    dl > dt > div.id {
        float: left;
        padding: 0 0 0 10px;
        width: 30px;
    dl > dd {
        clear: left;
    You may need to tweak the CSS a bit but you get the general idea.
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Align right in PDF file

    I am very confused by the right alignment of the PDF file.
    When we display a number, generally we will align it right. It looks fine on the report preview. But when I generate a PDF file from the report server, the data will not be aligned right very well. The data with one~two numbers indents a little comparing with the data with six or more numbers. Even these data comes from the same repeating frame.
    Please let me know if you have any suggestion or ever resolved it. Thanks in advance!
    Best regards,
    Stev.

    Have you made sure that the Reports Server is running not as 'LocalSystem', but instead as a user that has access to a printer driver in the services panel. This type of issue is frequently caused by using screen rather than printer information to render the output.
    Hope this helps,
    Danny

  • BUG:text-align:right; inline style not working on read-only af:InputText

    Hello,
    A bug in how af:InputText works if readonly=true. I have an af:InputText that has "text-align:right;" for the InlineStyle. The inputText is inside of an af:Column in af:Table. If the inputtext is readonly=false, it works properly and renders right-aligned. If readonly=true, then it renders left-aligned. I have also tried setting inlineStyle for the column to text-align:right;, and I get the same behavior.
    Regards,
    John

    John,
    Try adding formatType="number" to your af:column (if you want all data in that column aligned to the right). If you don't want the entire column right aligned, try using disabled instead of readonly.
    Jim

  • CSS Align right problem

    Hi
    I am using the following css to align a div to the right hand
    side of the
    page:
    #headerRight { RIGHT: 10px; MARGIN-RIGHT: 0px; POSITION:
    absolute; TOP: 5px;
    align: right; border: 0; width: 235px;}
    The above seems to work well, except for one small annoying
    problem. If the
    content of the page is wide and causes the horizontal scroll
    bar to appear,
    then the div seems to work as it appears 10px from the right
    side of the
    window. However if I move the horizontal scroll bar over to
    the right, then
    the div doesnt move accordingly.
    If I then resize the browser window, then the div moves and
    always lines up
    10px from the edge no matter what size the window is.
    Anyone know where I am going wrong, or need any more
    information?
    Thanks
    Brendan
    Rate your experiences with your UK and Ireland builders at
    http://www.ratethebuilder.co.uk
    =========================================

    Solved the problem by using the following javascript code:
    function scrollDetect(){
    document.getElementById("headerRight").style.left =
    document.body.clientWidth - 245 + document.body.scrollLeft;
    setInterval("scrollDetect()", 500);
    Where 245 is the width of the div.
    Only problem is that the code probably isnt cross browser at
    the moment, but
    I'll work on that.
    Thanks again for all your help.
    Rate your experiences with your UK and Ireland builders at
    http://www.ratethebuilder.co.uk
    =========================================
    "RateTheBuilder" <[email protected]>
    wrote in message
    news:[email protected]...
    > Osgood
    >
    > Sorry, would love to post a url, but content is
    sensitive.
    >
    > Basically I have a div which stretches the width of the
    page which
    > contains the header details. Then on top of this div but
    to the very right
    > of the page I have a div that I have absolute
    positioning set. This div
    > must remain the set distance from the right of the
    screen (10px) even when
    > the user is scrolling horizontally.
    >
    > Thanks for your time so far and I hope I've shed a
    little more light.
    >
    > Brendan
    > ______________________________________________
    > Rate your experiences with your UK and Ireland builders
    at
    >
    http://www.ratethebuilder.co.uk
    > =========================================
    >
    > "Osgood" <[email protected]> wrote in
    message
    > news:[email protected]...
    >> RateTheBuilder wrote:
    >>
    >>> Osgood
    >>>
    >>> There is no content on the same level as the div
    to the right, but the
    >>> content below the div may extend the width of
    the page. There are other
    >>> divs on the same level as the one I want to keep
    right and I have the
    >>> problem div above them, so that is why I used
    absolute positioning.
    >>
    >> Sorry i'm lost.
    >>
    >> You say you have no content on the same level as the
    div to the right and
    >> then say there are other divs on the same level as
    the one you want to
    >> keep right?
    >>
    >> Can you post a url to the page in question?
    >>
    >
    >

  • PL/SQL component align right

    Hi guys,
    I was wondering if there was a way to align "Reports Region" PL/SQL components next to each other. I have 2 belonging to the same parent but they are displayed below each other.
    I tried float:right in my HTP.p code and align=right in the "Region HTML table cell attributes" but it doesn't work~
    I would have though this overrides any template because I'm declaring it lower down the hierarchy (e.g. afaik CSS dictates that if I declare color=blue inline then it overrides some generic declaration in class B of color="red" even though I have <div class="B" style="color:red")
    I'm reluctant to change the template since it could have adverse effects elsewhere and I just need it for this page

    Dird wrote:
    Hi guys,
    I was wondering if there was a way to align "Reports Region" PL/SQL components next to each other. I have 2 belonging to the same parent but they are displayed below each other.
    I tried float:right in my HTP.p code and align=right in the "Region HTML table cell attributes" but it doesn't work~<tt>align</tt> is deprecated and should not be used.
    I would have though this overrides any template because I'm declaring it lower down the hierarchy (e.g. afaik CSS dictates that if I declare color=blue inline then it overrides some generic declaration in class B of color="red" even though I have &lt;div class="B" style="color:red")
    I'm reluctant to change the template since it could have adverse effects elsewhere and I just need it for this pageAs I know you know, you get a faster, more effective response by including required relevant information as possible upfront. For visual layout problems this is:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Region and component template(s) used
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    The best way to get assistance with layout and visual formatting problems is to create an example apex.oracle.com where we can actually get hands on with it.
    See:
    <li>{message:id=9212293}
    <li>{thread:id=2155320}
    The most frequent cause of problems with subregion positioning is that covered in the second link: a No Template setting for the subregions means there's no container element for region attributes to be applied to.

  • Re-sizing, align right while keeping the menu fixed using flash AS2

    contact
    khuon
    mau
    My problem is recreating the align right effect while keeping
    the menu fixed using flash AS2 mostly for re sizing as well as
    different screen sizes.
    While i can do one or the other but both is just not
    happening.
    I have tried all sorts of weird and wonderful things but as
    yet, alas no easy/simple solution :(
    I must admit it has been a long time since i have been here
    but.. I thought if someone could have a quick look and maybe please
    give me a few pointers ??
    Anything at all would be better than what i have now ...
    Thanks for your time

    The link again is I forgot to add http to the link before, but it should have worked.
    http://www.lipowiec.org/test/index.php
    a) used Dreamweaver to create new site selected 1 column, elastic, centered, header, and footer
    b) used spry to add horizontal menu to header
    c) followed instructions from Spry Help
    http://livedocs.adobe.com/en_US/Spry/SDG/index.html?lang=en_US ->
    working with spry widgets -> working with the menu bar widget -> Customize the dimension of menu items as indicated
    To change the dimension of menu items by changing the width properties of the menu item’s li and ul tags.
    Locate the ul.MenuBarVertical li or ul.MenuBarHorizontal li rule.
    Change the width property to a desired width, or change the property to auto to remove a fixed width, and add the property and value white-space: nowrap; to the rule.
    Locate the ul.MenuBarVertical ul or ul.MenuBarHorizontal ul rule.
    Change the width property to a desired width (or change the property to auto to remove a fixed width).
    Locate the ul.MenuBarVertical ul li or ul.MenuBarHorizontal ul li rule.
    Add the following properties to the rule: float: none; and background-color: transparent;.
    Delete the width: 8.2em; property and value.
    Under IE it's broken, under the other browsers it works.
    There need to be more IE HACKS added.

  • Generic column - aligne right

    Hi
    I created dynamic report on function returning query. Now I have problem with number columns, because columns aligne left. Is it some simple solution to aligne right ?
    Regards

    OK.. simple solution. Find the class name of your report.
    Add an inline style sheet to the page header or region header.
    For instance, I have an interactive report, and the class name is: apexir_WORKSHEET_DATA
    so, I add this to the page header:
    <style type="text/css">
    .apexir_WORKSHEET_DATA tr td {
    text-align:right;
    </style>The column contents is then aligned to the right.
    Trent

  • Background image show  colspan="1"  rowspan ="1" align="right valign ='midd

    My APEX version 4.0.2
    Oracle Version 11g
    1. I created Background Image for Text Box .
    2. I gave Code in HTML CELL ATTRIBUTES
        as below
                     <span style="width:533px; height:59px;background-image:url('/i/images/mypicture.png');"></span>
    3.  PRE ELEMENT TEXT  i gave the below code
                     <span style="padding:120px;"></span>
        Images are showing but getting the below code on images how to suppress the below code        
                    colspan="1"  rowspan ="1" align="right valign ='middle'{code}
    Can anyone help me to fix this
    thanks and regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    A wrote:
    My APEX version 4.0.2
    Oracle Version 11gPlease edit your post and only use {noformat}{noformat}tags on actual code.
    1. I created Background Image for Text Box .
    2. I gave Code in HTML CELL ATTRIBUTES
    as below
    &lt;span style="width:533px; height:59px;background-image:url('/i/images/mypicture.png');"></span>
    APEX generates the <tt>span</tt> element for report cell contents when HTML Cell Attributes are specified. Remove them from your code:style="width: 533px; height: 59px; background-image: url(/i/images/mypicture.png);"
    Also, quotes are unneccessary in CSS URLs.
    3. PRE ELEMENT TEXT i gave the below code
    <span style="padding:120px;"></span>
    This is applying padding to an empty <tt>span</tt>. The property is better applied somewhere else. What exactly are you trying to achieve here?
    Images are showing but getting the below code on images how to suppress the below code
    colspan="1" rowspan ="1" align="right valign ='middle'
    The main cause of this is probably the unnecessary <tt>span</tt> in (2) above, but <tt>align="right valign ='middle'</tt> is a syntax error. Where is this coming from? The <tt>align="right"</tt> needs a terminating double quote.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Why won't my text align right in Live View or Browsers?

    I created a class called .reviewer so the the name of the reviewer would align right while the the review itself remains aligned to the left. I applied the class to the reviewer's name and in design view, it looks perfect. But in Live view and when I preview in a browser, the text remains aligned left. I put this class in two external style sheets, main.css and mainReviews.css.
    The page in question is: www.jillgrovemezzo.com/reviews.htm
    To be more specific, the text I want to align right under the first review is "Lawrence A. Johnson, Chicago Classical Review"
    Regina

    Add display: block; to your css class .reviewer (as shown below).
    .reviewer {
        text-align: right;
        display: block;

  • Align=right tag causes image to not print

    I inserted an image at the beginning of a paragraph. Then, I
    manually added the align=right parameter to the <img src>
    tag. However, now my image won't print when I generate my printed
    documentation layout.

    See Word Issues in this topic.
    http://www.grainge.org/pages/authoring/printing/print_issues.htm

  • Setting text to align right on a JLabel

    Hey,
    How do I set text on a JLabel to align to the right of that JLabel? I've tried setText("mytext", Align.Right); but that doesn't work.

    This is all in the javadocs. Please RTFM next time
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.html#setHorizontalAlignment(int)

  • KF at result row aligned right-justified, at total line row aligned left-ju

    KF at result row aligned right-justified, but at total line row it's aligned left-justified.  We have checked query/KF property in query design, but can't find the clue to fix it.  How to make these two aligned at the same direction in either left justified or right justified?
    Any idea?
    Thanks
    Message was edited by:
            Kevin Smith

    Hi Kevin,
    In the Bex Tool bar, there is a button for Layout, and under it there is Alignment option. You can try with that though I am not sure if it will solve your purpose.
    Regards.

  • How can i remove gaps between letters, usually occur in a paragraph justified with the last line aligned right/left

    here's an example of a paragraph i've taken from wikipedia:
    if you can see, in the paragraph aligned with the button "Justify with the last line aligned left" - the one above, i've marked with red lines the places in which a gap occurs all of a sudden, and i cannot undo them.
    for the same paragraph below i used the simple "Align left" button.
    can anyone please help me understand what has happened that made those gaps occur.
    i use Adobe Design Standard CS 6 Middle East Version. this bug occurs in other font/languages as well.

    Thank you for providing the sample IDML file.
    I still think it could be the used paragraph composer, maybe in conjunction with the used font. I'd change the composer to see, if the problem will go away.
    @Willi – you are right, the story direction is RTL, but the paragraph direction is LTR. That's no surprise here since the ME version of InDesign was used.
    I would change story direction to LTR, use the "normal" paragraph composer instead the global one.
    Since the used font is not available to me, a substituted font is not showing the problem.
    But that may mean nothing. I do not use the ME version of InDesign…
    Uwe

  • PDF form field alignment - Right to Left

    Actually I developed a form which pushes the entire PDF as an attachment by email when pressing on a send button created within the form.
    I have also added a text to appear within the email body message in Arabic language but its appearing on the left side of the screen and I want the alignment to be set by default to right.
    The code I use for the email body message to appear is:
    //  Set the body text for the email message
    var cBody = "\n\nشكراً على تفاعلكم و مشاركتكم.\n" +
                   "يرجى حفظ البريد المرسل كمرجع للبطاقة المرسلة";
    I noticed in outlook that the text direction is active once the pdf is ready to be pushed by email, hope this snap will clear it up for you guys.
    I still though need to add a script to make it appear on the right without human intervention.

    Well I dont think so since we can add to the sentences in the script spaces[ ], new lines [\n],etc.. then we should be able to align them somehow.

Maybe you are looking for