<?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: list display - formating in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-display-formating/m-p/3127734#M742904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to print like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Write: /1(7) it_stock-pmenge,
       10(7) it_stock-sfkimg .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Nov 2007 06:15:41 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-11-22T06:15:41Z</dc:date>
    <item>
      <title>list display - formating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-display-formating/m-p/3127733#M742903</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 am facing problem in formating in list. i have a table Zstock1 i hv taken the values from zstock1 to it_stock and priting. The problem here is there are certain fields such as it_stock-pmenge, it_stock-sfkimg.  there fields taken from zstock1 -pmenge which is quantity field length 13 decimal 3. and it_stock-sfkimg is taken from zstock1-sfkimg which is also quntity field lenth 13 dec 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In these fields i am getting only values of size 7 in length so i want to print only 7 length only rather printing total 13 length. &lt;/P&gt;&lt;P&gt;if i try to do write : it_stock-pmenge+8(7) it is giving error :Type 'P' dosent support .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: it_stock1-pmenge value is 7854.251 and&lt;/P&gt;&lt;P&gt;     it_stock1-sfkimg  values is 123.412 so i am trying to print these values it showing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: it_stock1-pmenge , it_stock1-sfkimg.&lt;/P&gt;&lt;P&gt;output is:      7854.251               123.412&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rather i want to print like this.&lt;/P&gt;&lt;P&gt;o/p: 7854.251 123.412.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to curb the unnessary gap b/w the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in debug i hv seen that before the value(7854.251 ) there is 7 digit space in the filed. so thats why i am taking &amp;lt;b&amp;gt;it_stock1-pmenge+7(7)&amp;lt;/b&amp;gt;  but is not supporitng for quantity field. plese give me any other options to print like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;useful answers will be rewarded.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2007 06:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-display-formating/m-p/3127733#M742903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-22T06:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: list display - formating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-display-formating/m-p/3127734#M742904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to print like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Write: /1(7) it_stock-pmenge,
       10(7) it_stock-sfkimg .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2007 06:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-display-formating/m-p/3127734#M742904</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-22T06:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: list display - formating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-display-formating/m-p/3127735#M742905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Declare a 2 varables of CHAR  of length 7 and move these qty fields into them.&lt;/P&gt;&lt;P&gt;But do you think that always the Qty fields values will be always of length 7 Char only&lt;/P&gt;&lt;P&gt;otherwise it will be a problem.&lt;/P&gt;&lt;P&gt;Since QTY fields are right justified it may come like that.&lt;/P&gt;&lt;P&gt;data: v_qty1(7), v_qty2(7).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; v_qty1 = it_stock1-pmenge .&lt;/P&gt;&lt;P&gt;v_qty2 =  it_stock1-sfkimg.&lt;/P&gt;&lt;P&gt;or you can do like this&lt;/P&gt;&lt;P&gt;data: v_qty1(13), v_qty2(13).&lt;/P&gt;&lt;P&gt; v_qty1 = it_stock1-pmenge .&lt;/P&gt;&lt;P&gt;v_qty2 =  it_stock1-sfkimg.&lt;/P&gt;&lt;P&gt;condence v_qty1.&lt;/P&gt;&lt;P&gt;condence v_qty2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the v_qty1 and v_qty2 fields and see&lt;/P&gt;&lt;P&gt;&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>Thu, 22 Nov 2007 06:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-display-formating/m-p/3127735#M742905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-22T06:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: list display - formating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-display-formating/m-p/3127736#M742906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use some string operations before displaying that fields like CONDENSE or  something like this.&lt;/P&gt;&lt;P&gt;you can refer to the following sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: STRING(25) VALUE ' one two three four',&lt;/P&gt;&lt;P&gt;LEN TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEN = STRLEN( STRING ).&lt;/P&gt;&lt;P&gt;WRITE: STRING, '!'.&lt;/P&gt;&lt;P&gt;WRITE: / 'Length: ', LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE STRING.&lt;/P&gt;&lt;P&gt;LEN = STRLEN( STRING ).&lt;/P&gt;&lt;P&gt;WRITE: STRING, '!'.&lt;/P&gt;&lt;P&gt;WRITE: / 'Length: ', LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE STRING NO-GAPS.&lt;/P&gt;&lt;P&gt;LEN = STRLEN( STRING ).&lt;/P&gt;&lt;P&gt;WRITE: STRING, '!'.&lt;/P&gt;&lt;P&gt;WRITE: / 'Length: ', LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think it will solve the problem.&lt;/P&gt;&lt;P&gt;reward points if you find it useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2007 06:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-display-formating/m-p/3127736#M742906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-22T06:25:33Z</dc:date>
    </item>
  </channel>
</rss>

