<?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: Report Display Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595677#M267588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Now my problem fully solved,pls temm me how to do in ALV Method and is it possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Oct 2006 07:09:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-18T07:09:34Z</dc:date>
    <item>
      <title>Report Display Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595673#M267584</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 have a problem in displaying the output which matl no,matl desc and qty.here for the same matl the qty are 10,20,20,40,50,60,70,80 etc.But i want to display theout put like MATL NO  MATL DESC 10 20 30 40 50 and in the next line                      60 70 80 90 53&lt;/P&gt;&lt;P&gt;                                   65 43 82 79 25 like this.pls give me solution for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 04:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595673#M267584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T04:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Report Display Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595674#M267585</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;Check this..&lt;/P&gt;&lt;P&gt;Assuming your internal table declaration is like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;        MATNR TYPE MATNR,&lt;/P&gt;&lt;P&gt;        MAKTX TYPE MAKTX,&lt;/P&gt;&lt;P&gt;        QTY   TYPE MENGE,&lt;/P&gt;&lt;P&gt;      END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB BY MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: WA LIKE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA = ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT NEW MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE:/ WA-MATNR, WA-MAKTX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_INT = V_INT + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF V_INT &amp;gt; 1 AND V_INT &amp;lt; 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: WA-QTY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: / WA-QTY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: V_INT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT END OF MATNR.&lt;/P&gt;&lt;P&gt;  CLEAR: V_INT.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&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;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 04:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595674#M267585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T04:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Report Display Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595675#M267586</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; Check this sample code..I tested it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;MATNR TYPE CHAR4,&lt;/P&gt;&lt;P&gt;QTY TYPE INT4,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: WA LIKE ITAB.&lt;/P&gt;&lt;P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lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: WA-QTY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: /5 WA-QTY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: V_INT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT END OF MATNR.&lt;/P&gt;&lt;P&gt;CLEAR: V_INT.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 04:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595675#M267586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T04:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Report Display Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595676#M267587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Problem is solved almost still i want to display the second,third,fourth line below the qty only but now it is displaying under the matl no,matl desc( Means the second line starts under the first coulm it suppose to be starts at 3rd colum ie)under qty) and is it possible to do in ALV method if possible pls revert back me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 07:01:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595676#M267587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T07:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Report Display Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595677#M267588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Now my problem fully solved,pls temm me how to do in ALV Method and is it possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 07:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595677#M267588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T07:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Report Display Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595678#M267589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajendra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   As you can indentify, there are two types of lines for your output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each material:&lt;/P&gt;&lt;P&gt;1. First line with material no, second field and then quantities.&lt;/P&gt;&lt;P&gt;2. All next lines with only quantities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when displaying next lines use the position. As Naren has done in his code. I have highlighted the same below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF V_INT &amp;gt;= 1 AND V_INT &amp;lt; 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: WA-QTY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;WRITE: /5 WA-QTY.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: V_INT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example, Naren has specified the position as 5 as his first field is only 3 chars, similarly change the number to fit the quantities under qty column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 07:14:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595678#M267589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T07:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Report Display Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595679#M267590</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;   For me the first line is ok with qty display in 5 colum,but in the second line the qty is more than 5,so it is not displaying in the third line after 5th colum.suppose the qty is 50 then the qty should display in 10 lines with each line should have only five qtys only.pls help me to solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 08:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595679#M267590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T08:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Report Display Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595680#M267591</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;For me the first line is ok with qty display in 5 colum,but in the second line the qty is more than 5,but it is not displaying in the third line after 5th colum.suppose the qty is 50 then the qty should display in 10 lines with each line should have only five qtys only.pls help me to solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 08:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595680#M267591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T08:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Report Display Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595681#M267592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajendra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Have taken Naren's Code to enable for 50 entries and split in 10 lines of 5 entries each. Please check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF ITAB OCCURS 0,
        MATNR TYPE CHAR4,
        QTY TYPE INT4,
      END OF ITAB.

DATA: WA LIKE ITAB.

ITAB-MATNR = 'ABC'.

DO 50 TIMES.

  ITAB-QTY = SY-INDEX.

  APPEND ITAB.

ENDDO.

ITAB-MATNR = 'ABC1'.

DO 50 TIMES.

  ITAB-QTY = SY-INDEX * 2.

  APPEND ITAB.

ENDDO.


SORT ITAB BY MATNR.

DATA: V_INT TYPE INT4.

LOOP AT ITAB.

  WA = ITAB.

  AT NEW MATNR.

    V_INT = 1.
    WRITE:/ WA-MATNR.

  ENDAT.

  IF V_INT &amp;gt;= 1 AND V_INT &amp;lt; 6.

    WRITE: WA-QTY.

  ELSE.

    WRITE: /5 WA-QTY.

    V_INT = 1.

  ENDIF.

  V_INT = V_INT + 1.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You can try copying the above code to a temporary program for having a better feel and see that your program incorporates similar kinda logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If you still face problem, maybe you can post your code, which can help identifying if there is any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope Naren wouldnt mind using his code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 08:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-issue/m-p/1595681#M267592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T08:56:53Z</dc:date>
    </item>
  </channel>
</rss>

