<?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/1809910#M347317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    In first line display the first 60 characters.&lt;/P&gt;&lt;P&gt;    Move the other charaters into a varible which will have the next 40 characters as for example.Check whether this value is not initial.&lt;/P&gt;&lt;P&gt;   Create a new paragrph whose first tab will start after the end of you first field(name) .IF you width of printing the name is 30 character it will print the address after this.so your output will look like thiw way.&lt;/P&gt;&lt;P&gt;RAVI       ADRESS1      989900&lt;/P&gt;&lt;P&gt;SPACE   ADDRESS2    SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ravi Ranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Dec 2006 08:07:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-14T08:07:41Z</dc:date>
    <item>
      <title>SAP SCRIPT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1809906#M347313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;    I have a SAP SCRIPT which displays values as shown below.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    NAME                        ADDRESS                                 PHONE&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;   XYZ                         Andheri , Mumbai                           988888888.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the field used in PRINT PROGRAM for displaying address is the internal table field "itab-adr" .Maximum space for ADDRESS as per current SAP SCRIPT - FORM is 60 characters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the address is more than 60 ( it varies from 60 to 180 as per data stored in SAP tables )then the Phone Number will be displaced as given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   NAME                        ADDRESS                                 PHONE&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;   XYZ                         Andheri , umbai   ,bdedbewudbwiduwbned                       988888888.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The maximaum size of address is 180 characters.So anyone ples let me know how can i split the address field into 2 or 3 lines depending upon the size of the address so it can be displayed in more than one line, without Misplacing PHONE NUMBER.For example if the ADRRESS consists of 140 characters then it should come in 3 lines(140/60) , if it contains onely 100 (100/60) then it should come in 2 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Avi..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 07:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1809906#M347313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T07:47: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/1809907#M347314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;  What you can do is in the sapscript , first call a subroutine passing the address , in the subroutine check the length of the address and based on it split the address into components say C1 , C2, C3 ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the subroutine call is executed print &lt;/P&gt;&lt;P&gt;NAME C1 PHONE&lt;/P&gt;&lt;P&gt; , next line check if C2 is initial or not , if it is not initial print C2 . apply the same logic for other components also.&lt;/P&gt;&lt;P&gt;So for this you will have to use tabs , so as to allign the components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert back in case you want more clarifications&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regadrs&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 07:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1809907#M347314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T07:54: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/1809908#M347315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use offset&lt;/P&gt;&lt;P&gt;field+0(3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use offset in layout ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 07:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1809908#M347315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T07:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1809909#M347316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;one way you can do it is,&lt;/P&gt;&lt;P&gt;in first line display 60 chars&lt;/P&gt;&lt;P&gt;&amp;amp;ADRS+0(60)&amp;amp;&lt;/P&gt;&lt;P&gt;in 2nd line i.e. using the paragraph format&lt;/P&gt;&lt;P&gt;IF &amp;amp;ADRS+60(60) IS NOT INITIAL.&lt;/P&gt;&lt;P&gt; &amp;amp;ADRS+60(60).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;In 3rd line&lt;/P&gt;&lt;P&gt;IF &amp;amp;ADRS+120(60) IS NOT INITIAL.&lt;/P&gt;&lt;P&gt; &amp;amp;ADRS+120(60).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 07:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1809909#M347316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T07:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1809910#M347317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    In first line display the first 60 characters.&lt;/P&gt;&lt;P&gt;    Move the other charaters into a varible which will have the next 40 characters as for example.Check whether this value is not initial.&lt;/P&gt;&lt;P&gt;   Create a new paragrph whose first tab will start after the end of you first field(name) .IF you width of printing the name is 30 character it will print the address after this.so your output will look like thiw way.&lt;/P&gt;&lt;P&gt;RAVI       ADRESS1      989900&lt;/P&gt;&lt;P&gt;SPACE   ADDRESS2    SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ravi Ranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 08:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/1809910#M347317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T08:07:41Z</dc:date>
    </item>
  </channel>
</rss>

