<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: text wrapping issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417475#M539599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I shall try that and get back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2007 16:19:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-22T16:19:36Z</dc:date>
    <item>
      <title>text wrapping issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417470#M539594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue related to text wrap.  I am reading the set of text data using the function module below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of WA_LINES occurs 0.&lt;/P&gt;&lt;P&gt;      include structure TLINE.&lt;/P&gt;&lt;P&gt;data: end of WA_LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: output(200),&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                  CLIENT            = SY-MANDT&lt;/P&gt;&lt;P&gt;                  id                = 'PAOF'&lt;/P&gt;&lt;P&gt;                  language          = 'E'&lt;/P&gt;&lt;P&gt;                  name              = adv_tbl-IDTXT&lt;/P&gt;&lt;P&gt;                  object            = 'TEXT'&lt;/P&gt;&lt;P&gt;                  ARCHIVE_HANDLE    = 0&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                 header                  = header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;             TABLES&lt;/P&gt;&lt;P&gt;                  lines                   = WA_lines&lt;/P&gt;&lt;P&gt;             EXCEPTIONS&lt;/P&gt;&lt;P&gt;                  id                      = 1&lt;/P&gt;&lt;P&gt;                  language                = 2&lt;/P&gt;&lt;P&gt;                  name                    = 3&lt;/P&gt;&lt;P&gt;                  not_found               = 4&lt;/P&gt;&lt;P&gt;                  object                  = 5&lt;/P&gt;&lt;P&gt;                  reference_check         = 6&lt;/P&gt;&lt;P&gt;                  wrong_access_to_archive = 7&lt;/P&gt;&lt;P&gt;                  OTHERS                  = 8.&lt;/P&gt;&lt;P&gt;  loop at wa_lines&lt;/P&gt;&lt;P&gt;  for example if the first two lines of the data in 'wa_lines' is something like this..&lt;/P&gt;&lt;P&gt; 1. The job requires an expertise in word processing. The person should be&lt;/P&gt;&lt;P&gt; 2.  excellent in communication skills and good knowledge of  basic programming&lt;/P&gt;&lt;P&gt; 3.  skills in certain software tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I write the data into a file&lt;/P&gt;&lt;P&gt;it appears as&lt;/P&gt;&lt;P&gt;The job requires an expertise in word processing. The person should &amp;lt;b&amp;gt;beexcellent&amp;lt;/b&amp;gt; in communication skills and good knowledge of  basic &amp;lt;b&amp;gt;programmingskills&amp;lt;/b&amp;gt; in certain software tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text wraps up at the end of the line and provides no space when reading the data from the second line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence I added the code&lt;/P&gt;&lt;P&gt;    concatenate v_space wa_lines-tdline into output. it did not work. &lt;/P&gt;&lt;P&gt;How can I insert the space before reading the next line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 15:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417470#M539594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T15:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: text wrapping issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417471#M539595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please post the code where you write to the file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 15:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417471#M539595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T15:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: text wrapping issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417472#M539596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;      LOGICAL_FILENAME = 'ABC'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      FILE_NAME = FNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET FNAME FOR OUTPUT in binary mode MESSAGE msg.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  WRITE / msg.&lt;/P&gt;&lt;P&gt;  STOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;AFTER ADDING THE DATA TO 'output'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;          l = strlen( output ).&lt;/P&gt;&lt;P&gt;        TRANSFER output TO FNAME length l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 15:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417472#M539596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T15:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: text wrapping issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417473#M539597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;instead of &lt;/P&gt;&lt;P&gt;concatenate v_space wa_lines-tdline into output&lt;/P&gt;&lt;P&gt;use &lt;/P&gt;&lt;P&gt;concatenate whatever whatever separated by space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 16:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417473#M539597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T16:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: text wrapping issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417474#M539598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had same type of issue ,use FM SWA_STRING_SPLIT after READ_TEXT FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the code below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at WA_lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate all the text into one string separted by space .assume string is descrip.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab_d like swastrtab occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data:  descrip type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SWA_STRING_SPLIT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      INPUT_STRING                       = descrip&lt;/P&gt;&lt;P&gt;     MAX_COMPONENT_LENGTH               = 25 -&amp;gt; &amp;lt;b&amp;gt;here you can metion length for each line&amp;lt;/b&amp;gt;*   TERMINATING_SEPARATORS             =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OPENING_SEPARATORS                 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      STRING_COMPONENTS                  = itab_d&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAX_COMPONENT_LENGTH_INVALID       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                             = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now download itab_d internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 16:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417474#M539598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T16:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: text wrapping issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417475#M539599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I shall try that and get back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 16:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417475#M539599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T16:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: text wrapping issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417476#M539600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi seshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the code going like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     loop at wa_lines from 2.&lt;/P&gt;&lt;P&gt;       if wa_lines-tdline ne ' ' or not ( wa_lines-tdline is initial ).&lt;/P&gt;&lt;P&gt;          if  ( wa_lines-tdline(20) = 'POSITION DESCRIPTION' ) .&lt;/P&gt;&lt;P&gt;             concatenate wa_lines-tdline '|' into output.&lt;/P&gt;&lt;P&gt;          elseif&lt;/P&gt;&lt;P&gt;             ( ( wa_lines-tdline(17) = 'SKILL REQUIREMENT' ).        &lt;/P&gt;&lt;P&gt;                concatenate '|' wa_lines-tdline '|' into output.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;        here is where I need that functionality How can i add that piece here?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;             output = wa_lines-tdline.  &lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;          l = strlen( output ).&lt;/P&gt;&lt;P&gt;          TRANSFER output TO FNAME length l.&lt;/P&gt;&lt;P&gt;          clear: output, l.&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;     endloop.&lt;/P&gt;&lt;P&gt;from the code it is evident that  I do not want the entire text data coming from WA_LINES to be wrapped, only the data in few lines in the middle that has the job description that run into 3 to 4 lines (that does not satisfy the first two 'if' conditions need such functionality).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do that without disturbing the flow ?&lt;/P&gt;&lt;P&gt;Any help would be really appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 18:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417476#M539600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T18:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: text wrapping issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417477#M539601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks it helped. I figured it out. I shall ward th epoints here.&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 20:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-wrapping-issue/m-p/2417477#M539601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T20:52:45Z</dc:date>
    </item>
  </channel>
</rss>

