How to Left Justified Mapping

Hi All,
I have a requirement where in my source structure has a field which is right justified, I need to convert it to a Left justified value.
Is there any predefined function in XI for doing this.
Please help.
Thanks,
Vishal.

Thanks all, I have used Trim function

Similar Messages

  • How to left justified the value of the field in script

    hai
    how to left justified the field in script
    for example i am having a field &wa-netwr& , how to left justified the value of this field in scripts
    thank u in advance

    one way is define a paragraph format P1 and in that attributes,you can give LEFT justified(by creating TABS).
    and give that paragraph format in the script editor.
    P1   ,,text
    here ,, denotes tab position.
    or
    use  &wa-netwr(C)& <--for condensing .
    Regards
    Srikanth

  • Message Mapping using Left justified, right blank/space filled

    Hi,
    My Interface is outbound Interface.
    Suppose source field named 'Filename' is mapped with Target field named 'Filename'.Condition is AS IS(Left justified, right blank/space filled).
    How should i do this mapping?

    Hi Sanghamitra Duttagupta,
                                                you can try this UDF below
    public static String fieldJustified(String s)
              try
                   final int fieldLength=20;
                   char filler=' ';
                   s=s.trim();
                   int l=s.length();
                   while(l<fieldLength)
                        s=s+filler;
                        l++;
              catch(Exception e)
                   return s;
              return s;
    Please reset the value of the variable "fieldLength",  in code above to the field length as per your need. The right side will be filled with extra spaces since value of "filler" variable is ' '. you can set this to any character of your choice so that total field length is equal to value of variable "fieldLength" (which is 20 here).
    so if input is  "        hi"
    output           "hi                  "
    regards
    Anupam
    Edited by: anupamsap on Aug 1, 2011 1:53 PM

  • How to use left-justified with Move command??

    Hi,
    I have a field BKPF-XBLNR which I have to download to an final output table. I am using the command "Move"...
    Move T_BKPF-XBLNR to T_OUTPUT-XBLNR.
    My problem is that for some records this field is a combination of characters and numbers ... but some are purely numbers ... The records which are a combination of character & numbers are left justified where as the numeric one's are getting right justified once I get the output in the excel sheet ... How do I make these numeric ones left justified ... ??
    Thank You,
    SB.

    You can use this:
    shift T_BKPF-XBLNR left deleting leading space.
    Move T_BKPF-XBLNR to T_OUTPUT-XBLNR.
    if it does not work then
    data : temp_xblnr type char16.
    Move T_BKPF-XBLNR to temp_XBLNR.
    shift temp_XBLNR left deleting leading space.
    Move temp_XBLNR to T_OUTPUT-XBLNR.
    I am sure it will work.

  • My "Messages" are all right justified.  How do I get them left justified?

    My "Messages" are all right justified.  How do I get them left justified?

    Hi,
    To be clear and for other readers,  Messages has dropped the number of Styles to three.
    Compact and Boxes are styles that have you and the Chatee on the left and the messages themselves are left justified.
    Balloons is the default (Speech bubble stylee), as mentioned, and your part of the chat or conversation is on the right but is also Right Justified.
    Part chat example
    9:31 PM      Friday; May 31, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How do I left justify the text in the tabs of a JTabbedPane.

    In 1.3.1 this used to work by supplying an HTML string with <div align="left"> but when I run with 1.4.1 this is now broken and I get center justification.
    Does anybody know a way to get the text in the tabs to be left justified.
    Thanks,
    Philip

    First, I found while using JTabbedPane that the "standard" behavior is to allow to a tab the exact space needed to display the tab text. Hence with this behavior, there is actualy no difference of "left" or "center" aligned text. So I assumed that you found a way or another to make your tabs wider than the "string width"...
    Here is a solution:
    You can override the TabbedPaneUI class and ajust the "layoutLabel()" method. Here is the code..
    //Your code using the tabbedPane
    JTabbedPane tp = new JTabbedPane();
    tp.setUI(new LeftTabbedPaneUI());
    //File containing the overrided TabbedPaneUI
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.text.View;
    class LeftTabbedPaneUI extends javax.swing.plaf.metal.MetalTabbedPaneUI {
            //I also overrided this function just to force tabs wider than
            //the displayed "String Width". I asume that you found another
            //way to do this so you can delete this function in your
            //implementation
         protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics){
              return 150;
        protected void layoutLabel(int tabPlacement,
                                   FontMetrics metrics, int tabIndex,
                                   String title, Icon icon,
                                   Rectangle tabRect, Rectangle iconRect,
                                   Rectangle textRect, boolean isSelected ) {
            textRect.x = textRect.y = iconRect.x = iconRect.y = 0;
         View v = getTextViewForTab(tabIndex);
         if (v != null) {
             tabPane.putClientProperty("html", v);
         //This Line is added to avoid writing on tab border while aligned to left.
         //You can comment this line to test and or adjust the "5" pixel space
         Rectangle rec = new Rectangle(tabRect.x+5,tabRect.y,tabRect.width,tabRect.height);
            SwingUtilities.layoutCompoundLabel((JComponent) tabPane,
                                               metrics, title, icon,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.LEFT,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.TRAILING,
                                               rec,
                                               iconRect,
                                               textRect,
                                               textIconGap);
         tabPane.putClientProperty("html", null);
         int xNudge = getTabLabelShiftX(tabPlacement, tabIndex, isSelected);
         int yNudge = getTabLabelShiftY(tabPlacement, tabIndex, isSelected);
         iconRect.x += xNudge;
         iconRect.y += yNudge;
         textRect.x += xNudge;
         textRect.y += yNudge;
    }Here I overrided the "Metal" implementation of the tab but you must override the implementation of the used Look And Feel,
    ex. "com.sun.java.swing.plaf.window.WindowsTabbedPaneUI" for the windows LAF.

  • How to make JLabel Left Justified in Gridbag Layout?

    Hi Govind here I am using Gridbag layout and having Labels and TextBox . i want my All my Labels Left Justified (Currently they are RightJustified),I tried JLabel.Left but not working so any help most welcome............
    JLabel startDateLabel      = new JLabel("STARTDATE ",JLabel.LEFT);
              startDateLabel.setBorder( border );                                   
              //set the position of the label               
              gbc.fill = GridBagConstraints.NONE;
              usingGBC(startDateLabel,gbc,3,0,1,1.0);
                   //text field for start dat
    txtStartDate                = new JTextField();
              txtStartDate.setMinimumSize(minSize);
              txtStartDate.setPreferredSize( longField );
              txtStartDate.setEnabled( true);                    
              txtStartDate.setEditable(false);
              txtStartDate.setBackground(Color.WHITE);          
              gbc.fill = GridBagConstraints.HORIZONTAL;
              usingGBC(txtStartDate,gbc,4,0,2,1.0);
         here usingGBC is method as follows
    protected void usingGBC(Component com,GridBagConstraints gbc,int gx,int gy,int gwidth,double wx)
                   gbc.gridx = gx;
                   gbc.gridy = gy;
                   gbc.gridwidth = gwidth;
                   gbc.weightx = wx;
                   add(com,gbc);

    It seems you set the fill of the GridBagConstraints after you add the label. Either specify HORIZONTAL fill before adding the label or specify alignment for the constraints.
    Mike

  • Preview app: Add text annotation with left justify?

    I'm using the Preview app to insert text into some PDF files. I can use the Annotate feature to create a text box in the area I need it and adjust the font, color, size, etc. The only thing I can't seem to do is set the justification to Left Justify. It will show text as center justify - anyone know how to change this?

    I can find out what the defaults are with:
    defaults read com.apple.preview
    There are many properties but a TextAligment property is not one of them.
    I tried below but they do not work.
    defaults write com.apple.preview NSTextAlignment 0
    defaults write com.apple.preview PVAnnotationTextAlignment 0
    NB: 0 means left alignment
    Any idea?
    Maybe Apple has to create an text alignment feature for the GUI or provide the property that we can set it from Terminal.

  • Facebook is left justified on my machine only. erashing cache does not fix it. need help.

    this just started today.
    i've followed every single step on the support with no change.
    -i've updated to firefox 10
    -i've cleared both caches 10 times, also used third party programs and manually after that did not work. no change.
    -i've tested the font size (it's where it should be)
    -tested java script (it is on)
    -tested zoom. When zooming in or out the page fixes itself and goes centered, but when at the default zoom, the site is left justified instead of centered.
    i would really appreciate some help here. bad enough firefox crashes enough for other reasons, but now that the number one page i go to on a daily basis isn't working right it's basically enough reason to leave for good.

    I have an answer!!!
    Check it out, I uninstalled Firefox and IE from my machine, reloaded the default IE.
    When I reloaded it (IE) and went to facebook, my machine said there was a certificate error, i hadnt seen this before for some reason (my wife ignored it or something).
    I clicked ignore and it came up with the left justified angry mess we all hate so much, well IE then popped up in the bottom saying something about blocking the content associated with the bad security certificates, also giving me an option to display said content, i clicked the button and low and behold beautiful colorful facebook pops up.
    Well I press back and go back to the Certificate Error screen and I click on technical details, it says something along the lines of "Certificate for this website works starting November 11, 2011, and system time is march 02, 2002.....
    .......wait what?
    I look down, sure enough, system time, 2:44AM, 03/02/2002.
    ......So I reset the time (this tells me, by the way, i need to crack open my laptop and replace that little nifty system battery that keeps the clock accurate, they go out every so often, newegg/ebay sells them for cheap),
    so after i reset the time i simply (on the error page even) hit refresh and bam, like there was never anything ever wrong.
    Conclusion: if your system time is messed up (how often do you really look at it) and the year is wrong, it'll screw up EVERY browser you try to use, because every browser (in an attempt to protect you from risky websites) is blocking content that doesnt have a valid security certificate (because the date is xx years away from even being initiated).
    Hope this gets to you in time before you go all Office Space on your computer.
    (I created an account JUST to write this reply)

  • How to Right Justify text on Ipod

    My ipod has been through some wear and tear, long story short, the screen is "cracked" so to speak down the middle and from the middle of the screen to the left side i cannot see anything. I'm trying to figure out how to right justify all of the text so that i can actually use my ipod and search songs

    You can't change the layout of any part of the iPod OS. Sorry. You might want to consider getting the screen replaced. There are lots of third party repair outfits that charge less than Apple to so the job.

  • Ability to left justify dollar sign in report

    All,
    In my report, I have a field with a data format set to Currency. This, of course, places a '$' in front of the value, such as $1,234,567.
    However, I have a requirement to left justify the '$' in the report so that value is displayed as
    $ 1,234,567
    How can this be accomplished?
    Thanks in advance.

    user8769897 wrote:
    All,
    In my report, I have a field with a data format set to Currency. This, of course, places a '$' in front of the value, such as $1,234,567.
    However, I have a requirement to left justify the '$' in the report so that value is displayed as
    $ 1,234,567
    How can this be accomplished?
    Thanks in advance.You can acheive this by calling CSS class in the column properties. Refer to this link to get some ideas and how to get started ( http://obiee101.blogspot.com/2008/09/obiee-custom-css-style-class.html )

  • Columns should be left justified

    Hi all,
    I used a t:dataTable to display my search results, My req says all the columns should be left justified, how can I do that? Can some one help me in this?

    <t:dataTable
         footerClass="dataTableScrollerFooter"
         renderedIfEmpty="false"
         preserveDataModel="false"
         preserveSort="true"
         varDetailToggler="detailToggler"
         columnClasses="alignLeft"
         rowClasses="oddTableRow,evenTableRow"
         rows="#{sessionUserBean.user.resultsPerPageOption}"
         value="#{result.result}"
         var="legalProfessional">
         <t:column >
              <f:facet name="header">
                   <h:outputText value="Type" style="font-size:8pt;" />
              </f:facet>
              <h:outputText value="#{legalProfessional.type}" />
         </t:column>
         <t:column defaultSorted="false" sortable="true">
              <f:facet name="header">
                   <h:outputText value="Last Name" style="font-size:8pt;" />
              </f:facet>
              <h:outputText value="#{legalProfessional.firstNameOccurance.lastName}" />
         </t:column>
    .alignLeft {
              text-align: left;
         }I am able to left justify the results but not the headers of the dataTable even I used columnClasses, Can you tell me where I am going wrong in this?

  • Left justify text in number field

    Hi,
    I would be grateful if someone could tell me how to display the text (returned from a loop) in a number field
    so that it is left justified - also where would it have to be set?
    The 'justification' setting when set to 'Left' doesn't achieve this.
    Any help would be appreciated.
    Kind Regards,
    Tom

    First i dont think so in Number field u can set TEXT
    Create a field with CHAR type and u can put alpha numeric text in it
    set the justification Property of Text item to Start or Left
    Baig,
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • Right and left justified statement

    HI,
    I want to left justify the data and pad to the right with spaces.
    if lenth of value L is 10..
    It should look like 'L ' instead of 'L Space...    '.
    It should look like '00200 ' or '01200     ' I Don't want to suppress leading zeros.
    If I am doing right justified I am getting it as '         L' and if I am doing left justified that I am getting just 'L'.How can I get the value as   '   Space L'..?
    Please let me know which would be the easier way.
    Thanks,
    Mark

    I have modified and tested this code and it works fine as per your requirement. Please check it out.
    data : begin of i_val occurs 0,
    val1(12) type c,
    val2(13) type c,
    val3(14) type c,
    val4(15) type c,
    end of i_val.
    i_val-val1 = '1'.
    i_val-val2 = '2'.
    i_val-val3 = '3'.
    i_val-val4 = '4'.
    append i_val.
    *concatenate i_val-val1 i_val-val2 i_val-val3 i_val-val4 into i_val separated by '|' .
    <b>write : i_val-val1,'|',i_val-val2,'|', i_val-val3,'|',i_val-val4 to i_val.</b>
    write : i_val.
    OR
    data : begin of i_val occurs 0,
    val1(12) type c,
    val2(13) type c,
    val3(14) type c,
    val4(15) type c,
    end of i_val.
    i_val-val1 = '1'.
    i_val-val2 = '2'.
    i_val-val3 = '3'.
    i_val-val4 = '4'.
    *concatenate i_val-val1 i_val-val2 i_val-val3 i_val-val4 into i_val separated by '|' .
    <b>write : i_val-val1,'|',i_val-val2,'|', i_val-val3,'|',i_val-val4 to i_val.
    append i_val.</b>
    write : i_val.
    Message was edited by:
            Ashish Gundawar

  • Center and Left Justify Web Pages

    How can web pages be set up to center when the browser window
    is wider than the fixed width web page and left justify when the
    window is narrower than the web page? yahool.com is an example of
    this type of behaviour. I'm using CS4.

    Completely wrong approach. There's no need to use any
    positioning at all
    (including anywhere in your page).
    #frame {
    width:1024px; /* too wide in my opinion */
    border: 5px solid #669158;
    background-color: #F3EDD6;
    margin:0 auto;
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "CA Traveler" <[email protected]> wrote in
    message
    news:gkq96m$plu$[email protected]..
    > I'll check out the DW Sample page.
    >
    > Here is the prototype website
    http://test.ironoakconnection.org/
    >
    > Below is the #frame css that I used to center and then
    left justify the
    > pages.
    >
    > /* original centered no horizontal scroll bar
    > #frame {
    > width: 1024px;
    > border: 5px solid #669158;
    > left: 50%;
    > position: absolute;
    > top: 0px;
    > background-color: #F3EDD6;
    > margin-left: -517px;
    > }
    > */
    >
    > /* left justified except for margin-left with scroll bar
    > #frame {
    > width: 1024px;
    > border: 5px solid #00F;
    > left: 0%;
    > position: absolute;
    > top: 0px;
    > background-color: #393;
    > margin-left: 5px;
    > color: #FFF;
    > }
    >

Maybe you are looking for

  • External hard drive will not howon my macbook

    I have a Western Digital hard drive. plug it to my comuter and its not showing up. how can i find it? or what can i do o get it to work the light does come on on the hard dive..

  • How to display contents of one table and update another one

    Hi all My requirement is the following: - Three tables, guard, site and guard_site where guard_site shows which guards are linked to a particular site and vice-versa - I need to create one front-end where i allow all guards to be linked with a partic

  • Does the newest (2010) Mac Mini work with a Powerbook (Power PC) G4?

    So, I still LOVE my 5 year old Powerbook G4 but with news of Apple not making it's new operating systems (Snow Leopard and so forth) and iLife's compatible with Power PC's, I'm left in Mac limbo. I'm currently running OSX 10.5.8 (Leopard) but my iPho

  • DSL Available but VZ won't let you sign up?

    I've been battling a losing battle with Verizon basically because one hand doesn't talk to the other.  I'm hoping maybe someone from Verizon will read this and instead of replying with a script, they would actually look into the situation. I'm trying

  • Safari 5 constantly crashes - asking for Carolyn's help

    It's no fun any more - Safari constantly crashes on me. Here's the latest crash report. Carolyn's help would be greatly appreciated Thank you! Process: Safari [4122] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Ve