<?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: layout set in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180212#M463476</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 use &amp;lt;b&amp;gt;offset&amp;lt;/b&amp;gt; while printing in the sapscript.&lt;/P&gt;&lt;P&gt;You can address a section of a string in any statement in which non-numeric elementary ABAP types or structures that do not contain internal tables occur using the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;f&amp;gt;[+&amp;lt;o&amp;gt;][(&amp;lt;l&amp;gt;)]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By specifying an offset &lt;EM&gt;&amp;lt;o&amp;gt; and a length (&amp;lt;l&amp;gt;) directly after the field name &amp;lt;f&amp;gt;, you can address the part of the field starting at position &amp;lt;o&amp;gt;&lt;/EM&gt;1 with length &amp;lt;l&amp;gt; as though it were an independent data object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA TIME TYPE T VALUE '172545'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE TIME.&lt;/P&gt;&lt;P&gt;WRITE / TIME+2(2).&lt;/P&gt;&lt;P&gt;CLEAR TIME+2(4).&lt;/P&gt;&lt;P&gt;WRITE / TIME.&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;172545&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;170000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz reward points if helpful or if it solves ur query.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chinmay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2007 12:56:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-02T12:56:41Z</dc:date>
    <item>
      <title>layout set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180208#M463472</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 some problem in displaying lsyout.&lt;/P&gt;&lt;P&gt;actually in data table matnr is of 13 size.&lt;/P&gt;&lt;P&gt;but in output i want that of only 8 size.&lt;/P&gt;&lt;P&gt;so plz tell me how to do.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 12:51:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180208#M463472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T12:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: layout set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180209#M463473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;MATNR is of length 18 char&lt;/P&gt;&lt;P&gt;if you wants to display just 8 char&lt;/P&gt;&lt;P&gt;then use offset&lt;/P&gt;&lt;P&gt;&amp;amp;MATNR+10(8)&amp;amp;&lt;/P&gt;&lt;P&gt;if it is 13 char then&lt;/P&gt;&lt;P&gt;or &amp;amp;MATNR+5(8)&amp;amp;&lt;/P&gt;&lt;P&gt;or you can write &amp;amp;MATNR(8&amp;amp;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Anji Reddy Vangala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 12:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180209#M463473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T12:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: layout set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180210#M463474</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;fix your output length as 8 in the field catalogue for Matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 12:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180210#M463474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T12:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: layout set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180211#M463475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have posted the same thread twice... please close atleast one of them .... before more people answer to your thread.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also be careful while alloting points...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 12:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180211#M463475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T12:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: layout set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180212#M463476</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 use &amp;lt;b&amp;gt;offset&amp;lt;/b&amp;gt; while printing in the sapscript.&lt;/P&gt;&lt;P&gt;You can address a section of a string in any statement in which non-numeric elementary ABAP types or structures that do not contain internal tables occur using the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;f&amp;gt;[+&amp;lt;o&amp;gt;][(&amp;lt;l&amp;gt;)]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By specifying an offset &lt;EM&gt;&amp;lt;o&amp;gt; and a length (&amp;lt;l&amp;gt;) directly after the field name &amp;lt;f&amp;gt;, you can address the part of the field starting at position &amp;lt;o&amp;gt;&lt;/EM&gt;1 with length &amp;lt;l&amp;gt; as though it were an independent data object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA TIME TYPE T VALUE '172545'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE TIME.&lt;/P&gt;&lt;P&gt;WRITE / TIME+2(2).&lt;/P&gt;&lt;P&gt;CLEAR TIME+2(4).&lt;/P&gt;&lt;P&gt;WRITE / TIME.&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;172545&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;170000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz reward points if helpful or if it solves ur query.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chinmay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 12:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180212#M463476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T12:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: layout set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180213#M463477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MATNR is of length 18 char&lt;/P&gt;&lt;P&gt;u need only 8 characters use offset option&lt;/P&gt;&lt;P&gt;&amp;amp;MATNR+10(8)&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward and close duplicate threads&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 12:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180213#M463477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T12:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: layout set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180214#M463478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SK , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First go and check into data base table the lenth of test data , &lt;/P&gt;&lt;P&gt;if its like 0000000094227 . &lt;/P&gt;&lt;P&gt;then You can truncate the leading zeros to  00094227 . using function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two very important functional modules ,which are used to add zeroes(&amp;#145;0&amp;#146;) &amp;amp; Remove zeroes(&amp;#145;0&amp;#146;) from numeric string input respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The functional module &amp;#145;CONVERSION_EXIT_ALPHA_INPUT&amp;#146; comes handy in this situation. &lt;/P&gt;&lt;P&gt;Another functional module &amp;#145;CONVERSION_EXIT_ALPHA_OUTPUT&amp;#146; is used to reverse the Operations performed by the above FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us look up the first case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module: CONVERSION_EXIT_ALPHA_INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER:&lt;/P&gt;&lt;P&gt;Importing Parameter: Input of type &amp;#145;C&amp;#146;&lt;/P&gt;&lt;P&gt;Exporting Parameter: Output of type &amp;#145;C&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module is use to add zeroes (&amp;#145;0&amp;#146;), to the left of the numeric string input ,after making the input numeric string right justified .&lt;/P&gt;&lt;P&gt;If the input string is non-numeric (including alphanumeric) , string is stored as left justified ,with blanks towards the right. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the string is numeric say vehicle number , vlcvehicle-vhcle( 10 char)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT : &amp;#145;123456&amp;#146; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT : &amp;#145;0000123456&amp;#146;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas if string is non-numeric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT : &amp;#146;ABCD&amp;#146; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT: &amp;#145;ABCD&amp;#146;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amber&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 12:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout-set/m-p/2180214#M463478</guid>
      <dc:creator>former_member198270</dc:creator>
      <dc:date>2007-05-02T12:57:17Z</dc:date>
    </item>
  </channel>
</rss>

