Line gap between string

Hi,
I want to concatenate two strings in a single one, and there shoule be gap of two lines between those two strings.
example I want to concatenate string1 and string2 in string3, then after concatenate the string3 should have value as shown below:
string1
string2
I have tried all the attributes of class CL_ABAP_CHAR_UTILITIES but it doesnt helped.
Kindly suggest.
Regards,
Neerup

Look at the code:
DATA: lv_string1  TYPE string VALUE 'string1',
      lv_string2  TYPE string VALUE 'string2',
      lv_string3  TYPE string.
CONCATENATE lv_string1
            cl_abap_char_utilities=>cr_lf
            cl_abap_char_utilities=>cr_lf cl_abap_char_utilities=>cr_lf
            lv_string2
INTO lv_string3.
WRITE lv_string3.
When you now download this list (save to local file) and open it in notepad, you will notice that it has three empty lines between the first and the second string.
The code is ok, however, you're requirement might not be clear to me.

Similar Messages

  • Line gap between record to record using FCC

    Hi Experts,
    i am working on xml to fcc scenario.In target text file i want line gap between each record.
    eg:
    1001,ABCD,23
    1002,CDF,45
    1003,FSF,34
    what are the parameters do i need to provide in reciever fcc adapter?
    please help me in this issue.
    Regards,
    Radhika.

    Hi Radhika,
    I guess you can achieve this with "NameA.absoluteRowWidth=<noOfColumns>" along with "xml.endSeparator".
    If the separators do not contain any line breaks, the text document is generated as a single line of text. To restrict the width of the text, use this parameter. <noOfColumns> represents the maximum number of columns in this case. This parameter also functions together with the specification of a line break for xml.endSeparator.
    This value requires NameA.addHeaderLine=0 to be specified.
    Give a try..
    Regards,

  • Line break between strings

    Hi All,
    i want a line break when I'm concatenating 3 strings...
    example:
    <errorid>1</errorid>
    <errorcode>123<errorcode>
    <errormsg>error occcured</errormsg>
    but I cant get a line break after each tag....
    When I'm concatenating I'm getting the string in this way....
    <errorid>1</errorid><errorcode>123<errorcode><errormsg>error occcured</errormsg>
    is there a way i can do that....
    based in the validations there will be more strings to caoncatenate to this existing one....but each one shouldbe in a separate line...
    Please help...
    Thanks in Advance..
    -Satish

    Hi, Satish,
    Sure, concatenate the line-break string (which may be system-dependent) into your string.
    On my system, CHR (10) is a newline; so
    SELECT   'a' || CHR (10) || dummy  AS a
    FROM    dual;produces
    . A
    a
    XThat's one row, one column. You can tell that SQL*Plus recognized that column as being three characters long, since the heading separator is three characters long.
    You might also be able to enter a newline in quotes.
    The following produces the same results on my system:
    SELECT  'a
    ' || dummy  AS a
    FROM    dual;

  • Hi-In Script Editor how can we maintan gap between words in one line

    Hi,
    Can any body help on how to maintain gap between words in same line?
    Thanks in advance

    Hi,
    is it a Hard-coded text or a variable text.
    If its a constant & Hard coded text then u can directly maintain by using space bar.
    if its a variable text just define a paragraph format with Tab positions as per ur requirement of space..
    Hope it helps!!
    Rgds,
    Pavan

  • Huge Gaps between lines... Please Help!!!

    Hello, On various sites when i view them i get really large gaps between lines. view this screen shot:
    http://www.meyerfredericks.com/badbrowser.jpg
    How do i fix this... it does it on firefox now too since i upgraded to 3.0. So i have two browsers that do this. Please help, it's soooo annoying!

    Hi and Welcome to Apple Discussions...
    For both browsers, Safari and Firefox locate these files:
    com.apple.safari.plist and com.mozilla.plist
    The are here: /Users/YourName/Library/Preferences. From the Preferences folder, drag those files to the trash, empty the trash and reboot. It's ok to delete a pref file, sometimes they can get corrupted.
    Also, get Onyx, it's FREE and available here; http://www.apple.com/downloads/macosx/systemdiskutilities/onyx.html
    Download and install Onyx. Run the Maintenance and Cleaning Scripts once a week to keep your browsers happy.
    Carolyn

  • Yes/No fields, single line. Long question in seperate text field. How to avoid gap between lines?

    I have made two single-choice fields side by side (Yes and No) on one single line. The question for the choices is long, so I wrote it in a separate text field placed above the Yes and No fields. If I use the Yes field for the question, the No field would end up too far to the right.
    Question ....
    [Single-choice text fields space]
    [  ] Yes
    [  ] No
    Problem now is there's too much space under the question, since the automatic text fields in the Yes and No fields are still there, though "invisible"/not used. How can I have a long question on a single line and have the Yes and No fields on the next line without a big gap between the two lines? Is it possible to delete the automatic text field in the Yes and No fields?
    Just realised that if one makes a single Yes field, and a single No field to the right, you are ("of course") able to mark both the fields, since they are not linked anymore as with two choices in one field. The point with the single choice fields is then lost; to be able to choose only either one. Yes or No.
    [X] Yes   [X] No

    The Single Choice is designed such that you have a single label and multiple choices, but the user can only select a single choice (in your case Yes or No).  If you like the choices to appear side by side you can deselect Stack Choices Vertically in the Field Properties widget.  You should also set the Label to Above.  See the attached image.
    Jeff Canepa
    Software Quality Engineer
    Adobe Systems, Inc.
    [email protected]

  • Gaps between header/footer and main content

    I am building upon a website that somebody else previously worked on.  When adding to the main content, gaps appear between the header/footer and the content.  How can I fix this?
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>stitch by stitch needlepoint</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="sbs_style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .style1 {font-size: 18px}
    .style2 {font-size: 14px; font-style: normal; line-height: 20px; color: #aa0f2e; text-decoration: none; font-family: Georgia, "Times New Roman", Times, serif;}
    -->
    </style>
    </head>
    <body bgcolor="#d0e8fb" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><!-- ImageReady Slices (cut_events.psd) -->
    <table width="732" border="0" cellspacing="0" cellpadding="0" align="center">
    <tbody>
    <tr>
    <td><a href="index.html"><img src="images/logo.gif" alt="stitch by stitch" width="316" height="66" border="0" class="logo" /></a></td></tr></tbody></table>
    <table width="732" height="629" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
    <tbody>
    <tr>
    <td colspan="17"><img src="images/bordertop.gif" width="732" height="31" alt="" /></td></tr>
    <tr>
    <td rowspan="5"><img src="images/events_borderleft.gif" width="36" height="564" alt="" /></td>
    <td><img src="images/nav_spacerleft.gif" width="31" height="19" alt="" /></td>
    <td><a href="index.html"><img src="images/nav_home.gif" alt="" name="home" width="47" height="19" border="0" id="home" /></a></td>
    <td><img src="images/nav_dot1.gif" width="7" height="19" alt="" /></td>
    <td><a href="events.html"><img src="images/nav_upcomingevents.gif" alt="" width="114" height="19" border="0" id="events" /></a></td>
    <td><img src="images/nav_dot2.gif" width="11" height="19" alt="" /></td>
    <td><a href="classes.html"><img src="images/Nav_classes.gif" alt="" width="57" height="19" border="0" id="classes" /></a></td>
    <td><img src="images/nav_dot3.gif" width="12" height="19" alt="" /></td>
    <td><a href="directions.html"><img src="images/nav_directions.gif" alt="" width="68" height="19" border="0" id="directions" /></a></td>
    <td><img src="images/nav_dot4.gif" width="13" height="19" alt="" /></td>
    <td><a href="photogallery.html"><img src="images/nav_photogallery.gif" alt="" width="89" height="19" border="0" id="photogallery" /></a></td>
    <td><img src="images/nav_dot5.gif" width="12" height="19" alt="" /></td>
    <td><a href="customdesign.html"><img src="images/nav_customdesigns.gif" alt="" width="97" height="19" border="0" id="customdesigns" /></a></td>
    <td><img src="images/nav_dot6.gif" width="13" height="19" alt="" /></td>
    <td><a href="vendors.html"><img src="images/nav_vendors.gif" alt="" width="67" height="19" border="0" id="vendors" /></a></td>
    <td><img src="images/nav_spacerright.gif" width="24" height="19" alt="" /></td>
    <td rowspan="5"><img src="images/events_borderright.gif" width="34" height="561" alt="" /></td></tr>
    <tr>
    <td colspan="15"><img src="images/string.jpg" width="662" height="88" alt="" /></td></tr>
    <tr>
    <td colspan="15"><img src="images/events_hd_upcomingevents.gif" width="662" height="44" alt="" /></td></tr>
    <tr>
    <td colspan="15" width="662" height="13" bgcolor="#EBECEC"> </td></tr>
    <tr>
    <td width="662" height="397" colspan="15" bgcolor="#EBECEC" valign="top">
    <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
    <tbody>
    <tr>
    <td width="140"><br /></td>
    <td align="center"></td></tr></tbody></table>
    <p align="left" class="events_boldRed"><span class="style1">Charlie Harper Trunk Show</span></p>
    <p align="left"><span class="style2">February 2012</span><span class="events_boldRed"><br />
        </span></p>
    <p align="left"> </p>
    <p align="left"><span class="events_boldRed"><span class="style1">Back to Basics II with Tony Mineri</span></span></p>
    <p align="left"><span class="style2">March 12, May 14, June 18 &amp; July 19</span></p>
    <p align="left"><span class="style2">9:30-4:00 (lunch will be provided</span></p>
    <p align="left"><span class="style2">Space is limited - $350.00</span></p>
    <p align="left"> </p>
    <p align="left"><span class="events_boldRed style1">Tony Mineri Embellishments</span></p>
    <p align="left" class="style2">2012 </p>
    <p align="left" class="style2">June 3rd &amp; 4th - Full (waiting list only)</p>
    <p align="left" class="style2">November 4th &amp; 5th (limited space available)</p>
    <p align="left" class="style2">2013</p>
    <p align="left" class="style2">June 9th &amp; 10th </p>
    <p align="left" class="style2">October 6th &amp; 7th</p>
    <p align="left"><span class="events_boldRed"><br />
    </span></p></td>
    </tr>
    <tr>
    <td colspan="17"><img src="images/borderbottom.gif" width="732" height="37" alt="" /></td></tr></tbody></table>
    <table width="732" border="0" align="center" cellpadding="0" cellspacing="0">
    <tbody>
    <tr>
    <td>
    <p align="center"><span class="bottomnav"><a href="index.html">home</a> </span><span class="body_bottomlink">|</span><span class="bottomnav"> <a href="events.html">upcoming events</a> </span><span class="body_bottomlink">|</span><span class="bottomnav"> <a href="classes.html">classes</a> </span><span class="body_bottomlink">|</span><span class="bottomnav"> <a href="directions.html">directions</a> </span><span class="body_bottomlink">|</span><span class="bottomnav"> <a href="photogallery.html">photo gallery</a> </span><span class="body_bottomlink">|</span><span class="bottomnav"> <a href="customdesign.html">custom designs</a> </span><span class="body_bottomlink">|</span><span class="bottomnav"> <a href="vendors.html">vendors </a></span></p></td></tr></tbody></table>
    <p> </p>
    <p> </p>
    <p><!-- End ImageReady Slices --></p>
    <p>  </p>
    </body>
    </html>

    This is just a guess, which is what we have to do until we can see the live page, but try changing this -
    <p align="left" class="events_boldRed"><span class="style1">Charlie Harper Trunk Show</span></p>
    to this -
    <p align="left" class="events_boldRed" style="margin-top:0;"><span class="style1">Charlie Harper Trunk Show</span></p>
    Does that solve the gap between the header and the main content?
    While you're worrying about these gaps, read this -
    http://www.apptools.com/rants/spans.php
    I see trouble ahead....

  • Gap between two characters in SAP Script Address EndAddress.

    Hi Abapers,
    I have one query regarding Address - EndAddress in SAPScript.
    I am putting the code :
    /: ADDRESS TYPE '1' PARAGRAPH ZI PRIORITY 'APL43' LINES 6
    /:ADDRESSNUMBER &ZPOLGORT-ADRNR&
    /:ENDADDRESS
    and  I am getting the output in this form
    <b><i>ABC Soft c/o JSI Hong Kon g
    c/o RS Logistics (Shenzhen) Limited
    6/F., DZ Zhong Tian Yuan Logistics Ctr.
    126/Xia Road, Futian Free Zone,
    Shenzhen
    China</i></b>
    But the problem is there is a gap between character "n" and 'g" in first line in word Kong.
    Can anybody suggest me how to solve this issue. Or is there any other issues to sort it out this problem.

    Hi,
    Its not the problem with Address / End Address.
    It could be probably maintained that way.
    Please check the entry in the table where it is maintained.
    reagrds,

  • Acrobat X: Option to hide the dotted line in between pages when viewing in 2 page view?

    Acrobat X: Anyone know if there is an option to hide the dotted line in between pages when viewing in 2 page view?  So that the 2 pages can look seemlessly joined, with no gap and no dotted line?  This would be useful when viewing PDF magazines or books in which 2 pages join for a larger picture.

    Create a Page 0 item which will be available on all pages.OMG yes I can use items in page 0 ! I should have think of that :/ Shame on me.
    Application item values can be set from JavaScript using AJAX and an On-Demand Process.Yes I already tried ajax with ODP, my getappitem() function works but my setappitem() function won't assign value to application item, but it's not a problem now, I removed the ajax part and I will use page items :D
    Thank you fac586.
    Yann.

  • A gap between letters started to show in my indesgn files. tried to undo with tracking, the paragraph settings. nothing helped. it ruins the fluent view of the document. how can i restore the program so that doesn't happen?

    a gap between letters started to show in my indesign files. tried to undo with tracking, then with the paragraph settings. nothing helped. it ruins the fluent view of the document. how can i restore the program so that doesn't happen?
    for example: say i write a paragraph. then, in a weird some sort of way an involuntary gap suddenly appears between different letters of random words(i did not recognize any pattern to the gap appearing) throughout the entire paragraph. once i've double clicked on that paragraph, and made a minor change, lets say tapped a 'space' key, and then clicked ctrl+z to undo, it has aligned(or fixed) the entire paragraph and made it look ok again. i've tried numerous ways to undo the entire thing, but cannot find the reason. i've been working for a few years and there's no reason why this thing all of a sudden should happen right now.
    if anyone has stumbled on something like that and can advise, i would welcome it.
    MNS-KG
    Vadim

    yep...i'm typing with hebrew. i'll make a printscreen with the settings you've asked for@:
    if you look closely you'll see that almost every line has a single letter apart. in hebrew there is no usually a singe letter structured words.

  • Charts: Gap between Vertical Axis and the chart area

    Friends,
    I have a really wierd issue and I am sure I am doing
    something wrong.
    I am trying to align 2 charts that are placed vertically. I
    want to align the left vertical axis and the gridlines within them.
    Aligning the left vertical axis is easy and done but aligning the
    grids is becoming challenging and I have already spent a few hours
    on this problem.
    Here is a wrong chart image ...
    Wrong
    chart image
    The line of the LineChart (in the top chart) is touching the
    left and right edges where as the bottom chart bars do not touch
    the left/right edges. Due to this the gridlines are not aligned.
    I had managed to solve this problem but I am not sure what
    part of the code solved the problem. Here is the right chart image:
    Right
    chart image
    In this chart, the line of the linechart (in the top chart)
    is not touching the left and right boundary hence the gridlines are
    alignd with each other.
    I wonder what property of the chart controls the series
    touching the left/right vertical axis or boundary. Your help is
    appreciated.
    Thanks

    here is some more information ...
    I started changing some of the properties of the chart which
    I mentioned is a RIGHT CHART and this is what I learnt ...
    It was a CartesianChart hence it was creating the gap
    between the left/right vertical axis and the actual chart area
    (refer to the right chart image).
    I changed it to a LineChart and it started behaving like the
    chart in the WRONG CHART image.
    Is there a solution to this problem?

  • How to I get rid of the small gap between overlapping objects

    Hi
    I can't seem to get rid of a small gap/line between 2 objects I've used the shape builder tool on.
    I do as follows:
    1. I have 2 objects overlapping
    2. I remove the red sektion, so I'm left with a pink circle and a red obejct inside, using the Shape Builder tool
    3. If I place an object below the 2 objects, in the same color as the red object, I get a small line between the 2 red colors. It almost seems like the pink circle and the small red object is not aligned, but they are.
    I've tried to turn off Anti aliasing and align to Pixel grid, but nothing seems to work.
    Is there no way to have 2 objects on top of each other, without having the bottom one making a small line/gap?
    Hope you can help me.
    Thanks in advance!

    Although I've seen a result like that before, I can't seem to reproduce it here now. It's one of the reasons I never use the Shape Builder tool to do anything that can be done without it.
    Is there no way to have 2 objects on top of each other, without having the bottom one making a small line/gap?
    There is, of course. There is also always more than one way to do something. It might be better if you cut the dark ellipse out of the light one completely using the more mechanical Pathfinder > Minus Front feature rather than inducing an "interpretation" with the Shape Builder.

  • DIV and p (Gaps between them).

    I'm sure that I'm missing something really obvious here:
    I've attached the CSS that I'm using (external).
    Using the WYSIWYG view, it's really hard to get it to do what
    I want; I seem to have to ensure that I have a space below where I
    want to put anything, check that the format is set to "none", then
    I can set "start" - & enter my information. Then I can click in
    the space, and do the same before entering the contents for "main".
    However, if Dreamweaver helpfully adds some paragraph tags,
    as it often does, it gives me a gap between "Start" & "main".
    I've also found that if I don't have a blank line after the
    bit that I'm trying to put in, then I end up with the insertion
    point being unable to get "past" the final div tag, so I end up
    with a div in a div, which isn't what I want.
    I can use the code view to tweak to what I want, but I can't
    help feeling that I'm missing something; either that the CSS is
    wrong - so I should be able to have two paragraphs in adjoining div
    touching each other, or something!
    I'd found
    http://archivist.incutio.com/viewlist/css-discuss/39227
    - which suggested using div > p - but even though I tried with a
    line-height of as low as 0.8 it didn't work, so I've obviously got
    the wrong end of the stick (wrong stick most likely!)
    Emma

    Emma,
    > I've worked it out! I don't *need* the div tags.
    That's right.
    > As long as I use p class = and then enter the text, I
    can
    > then get two different paragraphs to join & look
    like a
    > single body!
    As a matter of fact, you don't even need class="something".
    There are
    various kinds of CSS selectors. One of them is known as a
    class, which
    requires the class="" attribute in your HTML and a dot in
    front of the class
    name in your CSS.
    e.g.
    .discussMain = { properties here }
    Another kind is known as an element selector. That's where
    you simply
    use the name of an HTML element, such as p, as your selector.
    You don't
    need a dot, then, in your CSS for that rule.
    e.g.
    p { properties here }
    Keep in mind, if you use an element selector, *all* elements
    of that
    type will be affected. If you only wanted to affect a dozen
    <p> tags, but
    not all, you could either give each of them a class attribute
    and use a
    class selector, *or* you could wrap all those <p> tags
    in another tag --
    say, a <div> -- then apply your class to the
    <div>. This is partly what the
    "cascading" means in Cascading Style Sheets.
    <div class="something">
    <p>paragraph</p>
    <p>paragraph</p>
    <p>paragraph</p>
    </div>
    .something p {
    properties here
    In the above, the HTML shows a way to corral together a
    handful of <p>
    tags. The CSS references all <p> tags that exist inside
    any element whose
    class attribute equals "something".
    There are other ways to specify which parts of the HTML
    should be
    affected. See this Wikipedia entry for a good overview.
    http://en.wikipedia.org/wiki/Cascading_Style_Sheets
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Gaps between images

    Link #1 looks good in Safari, Chrome, Firefox and IE.
    http://www.milkmoonkids.com/lion_canvas.htm
    Link #2 is a similar page, but there are big gaps between the images that show up in Firefox and IE only. They look good in Safari and Chrome.
    http://www.milkmoonkids.com/gifts.htm
    Any ideas why it gets jacked up in those two browsers and how to fix it?
    Thanks,
    Rich

    Start by adding a valid DOCTYPE to each page (line 1)
    Change
    <html>
    to
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    and fixing the validation errors. There are only a few.
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.milkmoonkids.com%2Fgifts.htm&charset=%2 8detect+automatically%29&doctype=Inline&group=0

  • Gaps between letters in Text Style

    Hello,
    I have noticed that when I use a text style with the 'smart path following' option (Style Options - Path Labeling) I get irregular gaps between the text's letters (e.g. 'Mai n Stre et' instead of 'Main Street'). This happens with several fonts I have tried out, such as SansSerif, Calibri, Arial, Verdana and so on, but seems to get fixed with Monospaced.
    Any ideas about the reason why and/or a fix?
    Thanks in advance,
    Panagiotis
    PS: I am using Oracle Map Builder (ver. 11.1.1.0.0).

    Hi,
    There is a problem on code to label lines in these cases, which may result in these visual gaps. This labeling part has been reviewed and improved to avoid the gaps. It will be be available on the next patch.
    Joao

Maybe you are looking for

  • Error message - Can't publish at all

    iWeb doesn't let me publish. I thought the problem was MobileMe and after over 2 weeks of sending and getting e-mails from Apple Support they told me that my domain.file was damaged and they couldn't do anything. Everything started when the counter w

  • My scren is blinking.

    I owned insperion 3542 laptop. From the first  my processor fan is not working correctly. I have notice it later and  requested to c. care to replace it and they do so. But from the beginning my screen round the border is blinking white when am seein

  • How to use Oracle Direct Connector for HDFS(DCH)?

    hi all, I am trying to use Oracle database to access HDFS through DCH. Now I installed Oracle database 11.2, hadoop-0.20.2 and DCH on the same linux machine. I also configured hdfs_stream properly and created Oracle directory HDFS_BIN_PATH according

  • Delete a Table entry

    Hi , A blank entry got created in table t77ua through modify statement .  Now i am unable to delete this entry through SM30. Is there any tcode to delete that blank entry apart from DELETE statement ? Thanks & Regards, John.

  • Microsoft Access database randomly locks itself??!

    Hi there Our Access database is doing something weird. Every so often (I think when we've had a busy day in terms of traffic) a .ldb file randomly appears in the directory where our database file resides. Whilst this .ldb file is in existance the CF