<?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: Formatting  in SAP script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-in-sap-script/m-p/1246248#M143658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tina,&lt;/P&gt;&lt;P&gt;I feel what you are trying to make use of is called wrapping in SAP Scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For putting a field of 40 char length as maktx in more than one line in a column which can accomodate 10 character, in the first line you need to use field&lt;EM&gt;0(10) in the first line at the position where you want to display it and in the next line at the same position you need to mention field&lt;/EM&gt;11(10). This way you can do the wrapping of the text.&lt;/P&gt;&lt;P&gt;In this case it will be it_mat-maktx&lt;EM&gt;0(10) in the first line and it_mat-maktx&lt;/EM&gt;11(10) in the second line and so on.&lt;/P&gt;&lt;P&gt;Make sure it is included in between &amp;amp;&amp;amp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also use FM 'RKD_WORD_WRAP'. Pass the length of each line that u want and also the string containing the text, it will wrap it and pass it on to an internal table and to three export parameters as 3 lines of text (i.e if u feel that text will not cross more than 3 lines then u can directly get the wrapped texts from these export variables instead of getting it from internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Suruchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2006 08:27:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-12T08:27:30Z</dc:date>
    <item>
      <title>Formatting  in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-in-sap-script/m-p/1246246#M143656</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;I am using maktx in my report but it is a long field. I want first 10 characters in first line and then next line.&lt;/P&gt;&lt;P&gt;Is there any way to do that&lt;/P&gt;&lt;P&gt;Tina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 08:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-in-sap-script/m-p/1246246#M143656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T08:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting  in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-in-sap-script/m-p/1246247#M143657</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;you can do it some thing like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;amp;maktx+0(10)&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;maktx+10(10)&amp;amp;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 08:27:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-in-sap-script/m-p/1246247#M143657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T08:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting  in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-in-sap-script/m-p/1246248#M143658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tina,&lt;/P&gt;&lt;P&gt;I feel what you are trying to make use of is called wrapping in SAP Scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For putting a field of 40 char length as maktx in more than one line in a column which can accomodate 10 character, in the first line you need to use field&lt;EM&gt;0(10) in the first line at the position where you want to display it and in the next line at the same position you need to mention field&lt;/EM&gt;11(10). This way you can do the wrapping of the text.&lt;/P&gt;&lt;P&gt;In this case it will be it_mat-maktx&lt;EM&gt;0(10) in the first line and it_mat-maktx&lt;/EM&gt;11(10) in the second line and so on.&lt;/P&gt;&lt;P&gt;Make sure it is included in between &amp;amp;&amp;amp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also use FM 'RKD_WORD_WRAP'. Pass the length of each line that u want and also the string containing the text, it will wrap it and pass it on to an internal table and to three export parameters as 3 lines of text (i.e if u feel that text will not cross more than 3 lines then u can directly get the wrapped texts from these export variables instead of getting it from internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Suruchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 08:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-in-sap-script/m-p/1246248#M143658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T08:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting  in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-in-sap-script/m-p/1246249#M143659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Tina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In script it is not possible if the field is not MAIN window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use RKD_WORD_WRAP in you calling program and pass the variables to SAPscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points, if it is helpful..!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 08:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-in-sap-script/m-p/1246249#M143659</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-04-12T08:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting  in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-in-sap-script/m-p/1246250#M143660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to break it up using offsets.. and print them in different lines&lt;/P&gt;&lt;P&gt;for ex: maktx+0(10)&lt;/P&gt;&lt;P&gt;        maktx+10(30)...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 08:29:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/formatting-in-sap-script/m-p/1246250#M143660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T08:29:00Z</dc:date>
    </item>
  </channel>
</rss>

