<?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: SAp Script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099223#M103042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Parul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have two string variables and one to get total length of your string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_str = 'sap is a big market in world'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, V_len = strlen( v_str).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_str1 = v_str+0(15).&lt;/P&gt;&lt;P&gt;v_len = v_len - 15.&lt;/P&gt;&lt;P&gt;v_str2 = v_str+15(v_len).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, v_str1 and v_str2 has your string of data as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Nov 2005 09:03:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-29T09:03:34Z</dc:date>
    <item>
      <title>SAp Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099216#M103035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need a help in sap script...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reuierment is like::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;char(35). and the ouput is coming in one line,like:::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Sap is big market in world.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i have break the line in two parts::&lt;/P&gt;&lt;P&gt;it should display like::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sap is big&lt;/P&gt;&lt;P&gt;  market in world.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope i am able to describe what i need..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help in this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;parul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 04:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099216#M103035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T04:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAp Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099217#M103036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do by using SPILT command. see the help on that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 04:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099217#M103036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T04:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAp Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099218#M103037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone plz help me on this issue...i am not geeting any idea how to do that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz if possible someone help me out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;parul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 04:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099218#M103037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T04:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAp Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099219#M103038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Splitting Character Strings &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To split a character string into two or more smaller strings, use the SPLIT statement as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;c&amp;gt; AT &amp;lt;del&amp;gt; INTO &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system searches the field &amp;lt;c&amp;gt; for the separator &amp;lt;del&amp;gt;. The parts before and after the separator are placed in the target fields &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To place all fragments in different target fields, you must specify enough target fields. Otherwise, the last target field is filled with the rest of the field &amp;lt;c&amp;gt; and still contains delimiters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all target fields are long enough and no fragment has to be truncated, SY-SUBRC is set to 0. Otherwise it is set to 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: STRING(60),&lt;/P&gt;&lt;P&gt;P1(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;P2(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;P3(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;P4(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;DEL(3) VALUE '***'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING = ' Part 1 *** Part 2 *** Part 3 *** Part 4 *** Part 5'.&lt;/P&gt;&lt;P&gt;WRITE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT STRING AT DEL INTO P1 P2 P3 P4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE / P1.&lt;/P&gt;&lt;P&gt;WRITE / P2.&lt;/P&gt;&lt;P&gt;WRITE / P3.&lt;/P&gt;&lt;P&gt;WRITE / P4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output appears as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 1 *** Part 2 *** Part 3 *** Part 4 *** Part 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 4 *** Part 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the contents of the fields P1 ...P4 are totally overwritten and that they are filled out with trailing blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also split a string into the individual lines of an internal table as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;c&amp;gt; AT &amp;lt;del&amp;gt; INTO TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system adds a new line to the internal table &amp;lt;itab&amp;gt; for each part of the string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 04:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099219#M103038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T04:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAp Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099220#M103039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PArul,&lt;/P&gt;&lt;P&gt;you need to create a page-window which is smaller than the text you are trying to put in it and then SAPscript will automatically overflow and wrap the text round to fit. You have to do this in transaction SE71.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 04:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099220#M103039</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2005-11-29T04:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAp Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099221#M103040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi parul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. what does the variable contain ?&lt;/P&gt;&lt;P&gt;   i mean, does it contain new line character?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. What will be the criteria for the BREAK &lt;/P&gt;&lt;P&gt;   eg.&lt;/P&gt;&lt;P&gt;   Sap is big &lt;/P&gt;&lt;P&gt;   market in world.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;   Sap is big market in&lt;/P&gt;&lt;P&gt;    world.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   OR &lt;/P&gt;&lt;P&gt;  Sap&lt;/P&gt;&lt;P&gt;  is big market in world.&lt;/P&gt;&lt;P&gt;  etc. etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u pls clarify.  &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Mittal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 04:48:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099221#M103040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T04:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAp Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099222#M103041</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;i have to break line say at position 15 ...and then from there in next line..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope i am clear...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 07:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099222#M103041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T07:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAp Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099223#M103042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Parul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have two string variables and one to get total length of your string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_str = 'sap is a big market in world'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, V_len = strlen( v_str).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_str1 = v_str+0(15).&lt;/P&gt;&lt;P&gt;v_len = v_len - 15.&lt;/P&gt;&lt;P&gt;v_str2 = v_str+15(v_len).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, v_str1 and v_str2 has your string of data as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 09:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1099223#M103042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T09:03:34Z</dc:date>
    </item>
  </channel>
</rss>

