Alignment of field values towards left or right???????

Hi All,
There is a requirement. I am looping through my outpt table and displaying filed and values line by line.
This also has a header section. The output will some what look like this
                                                                                Program: z001   Page: 1/2                                                                               
Date: yy/mm/dd Time:000000
  Material: xxx
  Plant:     xxx
Matnr
1
MMSTA
xxx
Meins
y yy
The oposition and lines drawn are fixed. Now my question is there an option to align the field values towards extreme right ( as yyyy shown).
Rakesh

Hi
In Write, u can use like
WRITE :/ ITAB-FIELD1 LEFT JUSTIFIED/RIGHT JUSTIFIED/ CENTERD
But it will not print on extreme right
If u want to print at extreme right, u have to use Position option of write
write: /50 'aaaa'.  Here it prints 5oth column
Reward if useful
narendra

Similar Messages

  • Right Align the Currency values in ALV report

    Hi Friends,
    I have developed a report and displayed the output using the ALV. I have columns for currency values in the output table.
    The fields for currency values are character fields. The values in the table for display, is properly right aligned (default for currency values). But in the output, the currency values are left aligned.
    Since I need blank lines in the output table after each entry, I have used the character fields in the output table so that I can clear them and append it to get the blank line.
    Please suggest me to get the currency values right aligned.
    Thanks in advance.

    try with this field in field catalog.
             just(1)        type c,        " (R)ight (L)eft (C)ent.
    for the currency field add this field too in field catalog. it will work.

  • How to align a String value to the right side inside a table column?

    Hi,
    I have a text view inside a table column which is mapped to a string attribute. I need to align the text in the text view to the right hand inside the table column. But its always getting aligned towards the left side. I have tried by setting the <b>hAlign</b> property of Element properties of Text View to <b>right / forced right</b> but still the text is getting aligned to the left side.
    How do I align the String values in Text View towards the right hand side inside a Table Column?
    Thanks and Regards,
    Sayan Ghosh

    Hello Sayan,
    if i do get it right, you are adding an TextView element to a Table Cell. Then you should consider setting aligment within the particular cell. By calling:
    YourCell.setHorizontalAlignment(CellHAlign.RIGHT)
    regards.
    mz

  • Converting 11 digit value into 18 digit value by filling from left to right

    Hello Experts,
    I'm a newbie in ABAP-coding. I didn't found anything in the forum, so I'm sure somebody could give a little help. I would like to concatenate value into field name "mat". The input length is 11 the output length should be 18. Could you please look at the code belove:
    data: c1(7) value '10000002',
          c2(3) value '001',
          c3(1) value '0',
          mat type /BI0/OIMATERIAL.
    CONCATENATE c1 c2 c3 into mat.
    write mat.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT     = mat
    IMPORTING
       OUTPUT     = mat.
    But is not giving me the correct result. I've defined a field "mat" which has the same proerty as 0MATERIAL and length = 18.
    After concatenating values into mat, the result should be 10000002001 (length = 11).
    But I would like the result to be showing from left to right in this way: 000000010000002001 (length = 18)
    Could somebody tell where the problem could be?
    Many Thanks
    Mamadou

    The probelm appears to be with
    mat type /BI0/OIMATERIAL.
    I changed it to
    MAT(18)
    and got
    000000010000000010
    Rob

  • Left aligning qty field

    when i am left aligning qty field by placing into string then the no-zero is not working on field .why
    l_out = wa_temp_final-fkimg_out.
        WRITE:/53   wa_temp_final-fkimg_in NO-ZERO,
               72   wa_temp_final-vrkme_in NO-ZERO,
               74   l_out NO-ZERO,
    the .000 is still appearing in report how to remove .000 from screen

    is this right.
    DATA: l_out TYPE string,
            l_outc(10) type c.
    l_out = wa_temp_final-fkimg_out.
        l_outc = l_out.
        CALL FUNCTION 'FTR_CORR_SWIFT_DELETE_ENDZERO'
          CHANGING
            c_value = l_out.
          74   l_out,

  • Left and right trim all af:inputText fields

    Hi,
    ADF 10.1.3.4
    we have a requirement to left and right trim all input text fields in the application. Is there an easy way to do this?
    Thanks,
    Mike

    Hi...
    If you want to get the values after a request was send, you can do it simply in the following way:
    import java.util.Iterator;
    import java.util.Map;
    import java.util.Map.Entry;
    import javax.faces.context.FacesContext;
    import javax.servlet.http.HttpServletRequest;
    HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
    Map<String, String[]> requestParameters = request.getParameterMap();
    Iterator iter = requestParameters.entrySet().iterator();
    while (iter.hasNext()) {
      Entry entry = (Entry)iter.next();
      String key = (String)entry.getKey();
      String value = ((String[])entry.getValue())[0];
      if (key.contains("<Your HTML-Element Id>")) {
        // trim your value
    }These code you can put into your submitAction in the backing Bean where your inputfields are locaded. In the request are a lot of data and you dont want do trim all of this. The <Your HTML-Element Id>-String is a string you can locate your inputfields. For example "form1.inputField1". If you render the page, you can look at the HTML-Element Ids to get your Ids. Maybe you can use "key.contains("form1")" to get all fields in Form1.
    Best regards
    Majo

  • How can I have multiple fields on the left and one large field on the right?

    I'm trying to conserve space on a form.  I have five "pass/fail" fields on the left and would like a large free text field to the right.  This will be an area to comment on the "pass/fail" section.  When I add the multi-line text box, it moves all my "pass/fail" mulitple selection boxes.
    Any advice?

    Sorry FormsCentral doesn't allow a fields to spam over multiple rows.
    Gen

  • Column values shift towards left for null values when export to excel

    Post Author: pssuresh
    CA Forum: Exporting
    All,
    I have a strange problem when using crystal report 10 export through C# Code. Consider in a row there are 3 columns and i am exporting to excel. ex.Student_id,Student_name,Student_Section. If Student_name values are null, then student_section values get displayed under student_name. There is a column shift towards left when there are null values. If anybody has already faced this problem, please post ur answer.
    Note:  When i just export to excel directly from crystal report, it works fine. i face problem only when i export through .Net code. I guess it is the problem with some formatting through code. if any body has fix, let me know.
    Thanks,
    Suresh.P.S

    Post Author: pssuresh
    CA Forum: Exporting
    Thanks for your reply. Even i have done the same thing yesterday to solve that problem. But we have nearly 100 of reports and started migrating now. The best solution crystal reports suggest is this.
    http://support.businessobjects.com/library/kbase/articles/c2014430.asp
    Thanks,
    Suresh.P.S

  • I'm using GarageBand 10.0.1. Do the built-in drum tracks only come in mono format, or is it possible to make them true stereo (i.e. Left and Right channels outputing different signals, to sound like the kit has been panned across the stereo field)?

    I'm using GarageBand 10.0.1. Do the built-in drum tracks only come in mono format, or is it possible to make them true stereo (i.e. Left and Right channels putting out different signals, to sound like the kit has been panned across the stereo field)?

    All the Drum Kits available for GarageBand are mixed in stereo.
    Logic provides the same 18 Drum Kits also as "Producer Kits", which are multi-track outputs,. Each Drum Kit Piece (Kick, Snare, HH, etc) and also room mice and overheads are routed to individual channel strips.
    Here is a screenshot of one Drum Kit in Logic Pro X with individual Channels Strips. Each Channel Strip can be loaded with individual effects (compressor) and adduced with individual sends, etc.
    What that means is that all the Drummers are professionally recorded and sampled with individual mics. The Stereo Drums Kits are just "stereo mix-downs" for easier handling and less CPU demand. I explain all the details about the Drummer ecosystem in my graphically enhanced manual "GarageBand X - How it Works"
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • How come when i copy txt left aligned indesign keeps on pasting the txt right aligned?

    I had to use a indesign english-arabic for a while (turned back to english international afterwards). Ever since i did that when i copy txt left aligned indesign keeps on pasting the txt right aligned. it is mind boggling & very annoying. i've put all my prefs back to my regular dutch setting, but even when i past with a paragraph style left aligned it keeps on putting it right aligned... Help.

    wmodist wrote:
    but the i loose all my styles...
    It should paste with wahtever style is assigned at the insertion point when you paste without formatting... Pasting formatted text is going to bring all the formatting (including what will become local overrides) with it.
    Is your text showing the + sign to indicate a local override of the style? If it is you can clear the overrides after pasting.

  • Help! Can't type spaces in a right aligned form field

    I am creating a form letter where sales staff can enter their location information at the bottom. Some of the fields are right aligned. My problem is that the right aligned fields do not to recognize the space bar, and all the text entered runs together. Spaces can be entered after the fact, but I doubt every salesperson will be careful enough to proofread the form and make the correction. Below is a screen grab of the results when typing an address in the right aligned fields
    I posted ta question about this issue a while back but did not find a solution http://forums.adobe.com/thread/609678?tstart=0. I'd hoped it would be resolved in the CS5 upgrade. Unfortunately, it wasn't. Maybe it is something with my system.  The pdf is generated from a Word document saved in 97-2004 format (.doc) out of Word 2008. I'm working on a Macintosh in OS 10.5.8. Any insight would be greatly appreciated!!!!
    Laura

    Here is the screen grab - I show the field text as I entered it on top, then an edited version on the bottom where I manually added the spaces after entering the text.
    Thanks.

  • Mail Alignment (left or right)

    I'm using Mail v3.5
    Sometimes when i receive an email (english) and i reply to it, the original email appears to be align from right to left (although english).
    how do i force Mail to always align emails from left to right (strictly) ?

    You can configure Mail to reply using the same formatting as the original message or you can set it to not do that in which case it should send messages with the text justified left to right no matter what the original message format.
    Chris

  • Change field alignment for field type currency / float

    Hello Experts.
    I have a requirement : I want to align the field in the webUI on the right, not the label.
    Actually for the attribute type currency or float, it is at aligned at the right position.
    I see the configuration description and the XML file. I try to modify that XML file to add the attrinute ALIGN = "LEFT" for the field
    But it is too hard and I want to know if there is another solution that reading/modifying this XML file.
    Thanks and regards.

    Hi,
    I had seen the method get_parameter but how to do this? As I know it, it only change the value returned not any kind of format.
    I think the value is correct but the layout of the field is not correct.
    I can change the *.htm of the class and put some css code but I think it is not the solution.
    Can you help me please? it is urgent.
    Thanks and regards

  • Entered text alignment in middle, not top left...how to fix?

    I have a text field that's about .5" tall. When a user enters information into the field the entered content begins in the middle of the area. As they enter more information the center alignment seems to go away and the text moves up to simulate top left alignment (the field has expand to fit on also). So, 1) do I have to make the cell smaller for it to have top left alignment and subsequently throwing off the look of the form or 2) is there a way to get the cell to have top left alignment?
    Thanks for any help!
    Becky

    You can align the input to top, middle or bootom as well as right, left or center. These settings are contained on the font palette. The palette is probably not visible to you, so go to the Window Menu and turn the font palette on (or hit the shift F4 shortcut key). Now click on th eobject you want to align and look at the Font palette. Jsut below the Tabs is a line that says what you are editinng (by default it is set to caption and value). Change it to edit just the value. Now you can set the alignment by clicking on the paragraph tab and choosing the options that you want.

  • How to align label text to the left in Spark Button (no "textAlign" style)?

    Hi all,
    "textAlign" style is excluded for Spark Button, and probably for a good reason.
    [Exclude(name="textAlign", kind="style")]
      If I want to align Spark Button text label to the left, should I create custom skin to accomplish that?
    Something e.g:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx"
            minWidth="21" minHeight="21"
            alpha.disabled="0.5">
    <s:Label
            id="labelDisplay"       
            textAlign="left"               
            left="2" right="2" top="2" bottom="2"/>
    </s:Skin>

        Right, I though about this approach vith setStyle too, but this is not that convenient.
        I looked into source code and find out that spark.components.Button class adds to the spark.components.supportClasses.ButtonBase only one public property "emphasized".
      Because I do not need this property in my project, I've extended my custom LinkButton component from ButtonBase to allow setting "textAlign" style in MXML for this component.
    import spark.components.supportClasses.ButtonBase;
    public class LinkButton extends ButtonBase {
       Also,  inside custom Skin from my Button component I do not set explicitly "textAlign" style value to the button label, I let button label to inherit style value specified in MXML for the style textAlign of my ListButton component.
    <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            minWidth="21" minHeight="21"
            alpha.disabled="0.5">       
        <fx:Metadata>
            [HostComponent("component.LinkButton")]
        </fx:Metadata>   
    <s:Label
            id="labelDisplay"
            textDecoration="underline"
            maxDisplayedLines="1"
            verticalAlign="middle"
            color="{getStyle('color')}"
            color.over="{getStyle('textRollOverColor')}"       
            color.down="{getStyle('textSelectedColor')}"       
            left="10" right="10" top="2" bottom="2"/>
    </s:Skin>

Maybe you are looking for