<?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: Check this in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-this/m-p/1549399#M249403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;even if you add all the blank lines the result is also a Blank line. i am not getting why you are adding them ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the logic to print ONLY 1 blank line on the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just say SORT ITAB.&lt;/P&gt;&lt;P&gt;then your blank lines will come first. &lt;/P&gt;&lt;P&gt;then write them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT ITAB.
DATA : V_FLAG  TYPE C.
CLEAR V_FLAG.
loop at itab.
  if ITAB IS INITIAL. 
    if V_FLAG IS INITIAL.
       V_FLAG = 'X'.
       WRITE :/ ITAB. 
 "this is a blank line,print first time.
    endif.
  ELSE.
    WRITE  ITAB.
  ENDIF.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i am checking ITAB is initial and V_FLAG is initial. this will work for the first blank line and the empty line will be printed on the output. for next empty ITAB,w e are not printing any blank line on the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2006 05:40:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-04T05:40:27Z</dc:date>
    <item>
      <title>Check this</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-this/m-p/1549396#M249400</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;In my output list assume dat dere r 10 rows.say 1st, 2nd and 5th r blanks and remaining ones contain some info.&lt;/P&gt;&lt;P&gt;Now my requirement is i need to club all dese blanks and show it in one row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 05:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-this/m-p/1549396#M249400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T05:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Check this</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-this/m-p/1549397#M249401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put like this . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where matnr eq ''.&lt;/P&gt;&lt;P&gt;put ur logic here.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 05:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-this/m-p/1549397#M249401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T05:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Check this</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-this/m-p/1549398#M249402</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;Just sort the internal table. If the entire row is appended as blank, then it would come at the bottom.&lt;/P&gt;&lt;P&gt;So that would be segregated at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you want to club all the blanks and display it in one row, still it would be blank. So do you want to display a blank record.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 05:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-this/m-p/1549398#M249402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T05:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Check this</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-this/m-p/1549399#M249403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;even if you add all the blank lines the result is also a Blank line. i am not getting why you are adding them ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the logic to print ONLY 1 blank line on the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just say SORT ITAB.&lt;/P&gt;&lt;P&gt;then your blank lines will come first. &lt;/P&gt;&lt;P&gt;then write them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT ITAB.
DATA : V_FLAG  TYPE C.
CLEAR V_FLAG.
loop at itab.
  if ITAB IS INITIAL. 
    if V_FLAG IS INITIAL.
       V_FLAG = 'X'.
       WRITE :/ ITAB. 
 "this is a blank line,print first time.
    endif.
  ELSE.
    WRITE  ITAB.
  ENDIF.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i am checking ITAB is initial and V_FLAG is initial. this will work for the first blank line and the empty line will be printed on the output. for next empty ITAB,w e are not printing any blank line on the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 05:40:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-this/m-p/1549399#M249403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T05:40:27Z</dc:date>
    </item>
  </channel>
</rss>

