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

Similar Messages

  • Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems n

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

  • Hi, Just switched from CS6 to PS CC. I am used to using ACR in CS6 with it's preview checkbox in the upper  right-hand corner. I do not see that checkbox in PS CC. I see that they have added side-by-side, right and left and top and bottom before and after

    Hi,
    Just switched from CS6 to PS CC. I am very comfortable using ACR in previous versions. I liked to use the preview checkbox located in the upper right-hand corner to see before and afters. That checkbox is no longer in my version of PS CC. I see that they have side-by-side, top and bottom and right and left before and after options in the lower right-hand corner in this version. Is there anyway to get that legacy preview checkbox back so that I can use it?

    Hi Warunicorn,
    Thank you very much. I just could not find it on my own. I will have more questions as I get into it.
    Jim

  • At the top of my homepage, I'm getting a message "Downloading the latest applications", but the circle to the left keeps spinning, and no applications are downloaded. I don't know how to stop this, tried right and left clicking on the bar. This occurs

    At the top of my homepage, I'm getting a message "Downloading the latest applications", but the circle to the left keeps spinning, and no applications are downloaded. I don't know how to stop this, tried right and left clicking on the bar. This occurs every time I open Firefox. How can I stop or disable this?
    == This happened ==
    Every time Firefox opened
    == Several weeks ago.

    See http://kb.mozillazine.org/Software_Update (Software Update not working properly)
    Remove the files in the ''updates'' and ''updates\0'' folder:
    Vista/Windows7:
    C:\Users\&lt;user&gt;\AppData\Local\Mozilla\Firefox\Mozilla Firefox\ (updates)
    C:\Users\&lt;user&gt;\AppData\Local\VirtualStore\Program Files\Mozilla Firefox\ (updates)
    %LOCALAPPDATA%\Mozilla\Firefox\Mozilla Firefox\updates\

  • 320x240 QT export produces black bars on right and left

    Ok, this one is strange. So far, it only appears to affect 320x240 targets from sources that don't have square pixels. Starting with a 720x480 DV movie (even if I change the properties to display 640x480), I export directly to 320x240 and I get a movie with black bars down the right and left. I did not tell QT to letterbox or scale, although telling it to scale does no help.
    The problem seems to be in the meta data. If I go to the movie's visual properties and change the move dimensions to 324x240 (with preserve aspect ratio unchecked), then the black bars disappear. When I change it back to 320x240, they are still gone and the movie plays fine. I save it and reopen it, and the black bars are back! The same thing happens exporting from Final Cut Pro using Quicktime conversion. This is definitely a bug.
    The work around is to export to another 4:3 format with square pixels first and export that to 320x240.
    On a related note, the same thing happens when I record a movie in Quicktime at 320x240. I get a recording with black bars down the sides.
    This has never happened to me before. I'm a professional QT software developer and a content producer. I've been using Quicktime Pro for a decade, at least. I've been over all of the export settings, and I've deleted all of my Quicktime preference files.
    Is there a way to report a bug to Apple?

    Regarding: "there's a pretty good chance that your playback target isn't Quicktime Player"...
    My assumption is that if your material is 320x240, it's probably that size because you're planning to either display it on a small-screen device, send it to a TV set, embed it in a presentation, or deliver it via the Web. In any of those cases, your final delivery target isn't QuickTime Player, but rather some other mode, such as the QuickTime web plug-in, iPod, AppleTV, or even some other option. In which case the strangeness with the player doesn't seem so strange.
    As a workaround, you could layer your 320x240 movie with at 350x240 grey rectangle on the layer behind. That would fix it in QuickTime Player, but it would cause grey bars on either side if you embed into a web page or something like that.

  • Hp envy can't right and left click at same time

    my hp envy touchpad cant hp envy can't right and left click at same time. i dont know if its a driver. because of that i cant play games like GTA cause i need right click to aim and left click to shoot. is there a solution to this 
    This question was solved.
    View Solution.

    @gwatanaj ,
    Hello and thank you for posting on the HP support forums.  Here is a link that you may find useful.
    HP Notebook PCs - Using and Troubleshooting the TouchPad or ClickPad (Windows 8)
    What you are trying to do may not work with your touchpad.  Normally when gaming it is best to use a mouse.  The hardware is built different and you would find it easier to work with.
    If you need further help please post back.  First check out this link.
    Advice for asking the "Very Best Question"
    As well please include your Full Model and Product Number.
    I hope to hear back from you soon.
    Thank you again and have a great day.
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    D5GR
    I work on behalf of HP

  • How to remove black "blocked plug-in" window that opens with iPhoto. It covers iPhoto and everything under it. I've right and left clicked the black window, restarting the computer, shutting down the computer, but the window always appears when I ope

    How to remove black "blocked plug-in" window that opens with iPhoto. It covers iPhoto and everything under it. I've right and left clicked the black window, restarting the computer, shutting down the computer, but the window always appears when I open iPhoto and it will not move or go away. It stays on my screen (covering my desktop icons) even after I quit iPhoto. How can I get it off my screen?

    Which version if iPhoto and MacOS X do you have?
    Do you have any iPhoto plug-ins  installed?
    Open the folder /Library/Application Support/iPhoto/Plugins/
    To navigate to that folder, open the folder "Library" directly on your Macintosh HD, then inside the Library folder go to Application Support, then iPhoto.  Is there anything installed?

  • Right() and Left() method

    Hello,
    Is there an Right(x) and left(x) alternative for the VB Right and Left.
    The meaning is to return the x Right or x Left characters from a String.
    kind regards

    805380 wrote:
    This one i know.
    There seems to be no other alternative.No, there is. Write it yourself. Here's a "left" for you:
    public static final String left(String s, int n) {
       return s.subString(0, n);
    }I'll leave the arguments as to why it wasn't put in String up to others, but "why bother" sounds like a good start to me
    And I'll leave "right" up to you.
    Winston

  • My apple wireless mouse scrolls in the opposite direction. When I scroll up, down, right and left it always scrolls the opposite direction. Can anyone help?

    My apple wireless mouse scrolls in the opposite direction. When I scroll up, down, right and left it always scrolls the opposite direction. Can anyone help?

    Hi Malky H.,
    Thanks for visiting Apple Support Communities.
    If your mouse is not scrolling in the direction you are expecting, check this Mouse setting in System Preferences:
    Choose Apple menu > System Preferences, then click Mouse.
    Scroll direction: natural: Select this option to move the contents of a window in the same direction as your fingers.
    You can find this information here:
    OS X Yosemite: Use an Apple Magic Mouse
    Note that these steps apply to previous versions of Mac OS X as well.
    Best Regards,
    Jeremy

  • Can I shrink the iTunes webpage on my PC monitor so it does not cut off the right and left margins?

    Can I shrink the iTunes webpage on my PC monitor slightly so it does not cut off the right and left margins?

    Can you?  Are you capable of resizing the window?
    Only you can answer that question.
    If you want to know if it is possible, yes, it is possible.

  • Only right and left channels work with external sound card

    Just got the USB Sound blaster xfi surround 5.. connected it to my laptop and connected to my home theather in a box using optical connection.
    downloaded and installed latest software but when I do a channel check I only get sound out of the right and left and even then it does not sound right.
    I have verified that my home theater in the box will play 5. with optical input and have verified with the built in test tones of the home theater that all speakers are working and correctly hooked up.
    The laptop is ruiing windows xp 3.
    Any suggestions.
    Thank you.

    Which S&V vi's do you mean to be dedicated to NI hardware?
    A quick peek into the addon show me waveforms as input and the sound vis have a waveform output.
    OK I didn't look at the examples and by habbit ignore the express vis .   But maybe you just want to use a program instead of programming your application?
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Cross-Tab should expand right and left sides equally

    Hi,
    We are using Crystal Report XI release 2, Cross-Tab expands towards right side.
    Our report parameter range is not constant.
    When fewer columns we can get based on parameter, Cross-Tab does not look good because it prints left to right and we can see a lot space at right side of the page.
    User asking put it in center, but it does not look good when we get more columns (it prints left to right).
    We can achieve a good look, if it grows left and right sides equally.
    How to achieve this please give me some suggestions.
    Thanks and Regards,
    Manjunath N, J Jogin

    Though you can not make a CrossTab grow equally on right and left side but you can reduce the Gap at the end .
    To achieve this,please Right  Click on the cross --> Cross Tab Expert --> Customized Style tab and uncheck the checkbox Keep Columns Together
    Also for the summary fields, make them left aligned by default CR aligns numeric fields to the right. do the same thing for Row/column headers. This way you'll save lot of space.
    Hope this helps!

  • How do I share / unlink  the right and left channel, so I can work with them individually ?

    I use "Adobe Sound Booster CS5"
    I have a stereo soundtrack, which I only want to remove noise in only one channel (right).
    How do I share / unlink the right and left channel, so I can work with them individually ?

    When Soundbooth was first developed, it had a few extra things than what were not available in Audition. However, Audition remained the more high end sound editing tool. Soundbooth was locked to a multiple channel editing approach. In Audition, single editing is easy - you simply click the L or R at the right end of the sound channel to lock it and then you can edit the other channel only.
    Soundbooth has been discontinued and Audition now has taken its place from CS6 to the Creative Cloud.
    The above is some background info. To your current situation, you can use a workaround like:
    * Export your audio file to separate channels by File > Export > Channels to mono files.
    You will get 2 files with _L and _R suffix.
    You can then edit them separately. You can go from Mono to Stereo by the following step.
    Or
    * Choose - Edit > Insert > Channels  into New Multitrack file.
    That will separate the Left and Right Channels and add them to a new multitrack file.
    You can then click the Edit link at the top right of the channel to edit it.
    You can then save that file as a new audio file.
    Dean

  • Earphones labeled Right and Left

    My wife has an iPod nano (3rd Gen) and she was wondering why the earphones are labeled Right and Left? Is this in case there is a problem? Is there another reason I'm not aware of?
    Thanks for answering.

    Hello legacycaptain,
    My wife has an iPod nano (3rd Gen) and she was wondering why the earphones are labeled Right and Left? Is this in case there is a problem? Is there another reason I'm not aware of?
    They are labeled that way because each headphone was designed to fit each respective ear more comfortably than the other. If you put them in the opposite way you may feel a slight discomfort with the way the feel than compared to how they are supposed to be worn.
    B-rock

  • 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

  • Report for inquiries for all customers and material

    how can i see a report of all inquiries of all customer and materials is there any predefine report in sap we do have va15 but it does not list depending on the custmer or material, how can we do it for all customer thanks

  • Lacie d2 drive not ejecting disc

    I have an odd problem with my Lacie d2 drive, when I put in a disc, any type of disc ... It seems as if the mechanical eject button on the face of the lacie is disabled forcing me to use my disc utility to eject the mounted disc. This is a new drive

  • Scary black screen with smoke in iTunes

    Does anyone know what this is?! It's moving and the smoke keeps eminating. Has my iTunes become possessed?

  • Displaying Metadata in Lightroom 4

    I want to display the IPTC metadata in Lightroom 4 in the same way as in Bridge CS6 so that it only displays the fields I want to use - is this possible without having to install 3rd party software? I've tried the metadata pop-up menu selections but

  • How to display incoming caller numbers from india

    I live in US. When some one calls from india, No caller ID is displayed on iphone. How to see the number. I already verified that the callers did not blocked their numbers from being visible.