<?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: Problems in ALV Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv-report/m-p/3072744#M728501</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;Here is a small ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT mtart mtbez FROM t134t&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE it_t134t&lt;/P&gt;&lt;P&gt;  WHERE mtart IN so_mtart AND spras = 'EN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    *********PERFORM display    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE ID 'Selection error' TYPE 'E' NUMBER '0040'.&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;Hope useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Nov 2007 09:59:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-16T09:59:37Z</dc:date>
    <item>
      <title>Problems in ALV Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv-report/m-p/3072741#M728498</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 with the ALV report felated to FI Data. Where in the Selection screen I have two fields Commitment Item, Fund Center and Fiscal Year. When i am executing the report it is printing correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Problem is that when i give a commitment which is not related to the Fund Center It is displaying all the records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is nothing but it is displaying all the data where the data of the selection screen is not in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead i should display a message that the Commitment item is not related to Fund Center. and the ALV Should not print any values. How do i achieve this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in solving the problem. Rewards will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        sravan varanasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 06:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv-report/m-p/3072741#M728498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T06:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in ALV Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv-report/m-p/3072742#M728499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sravan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validate commitment with Fund center in at Selection-screen on field event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Single &amp;lt;Commitment&amp;gt; into Comm_var where fundcenter = &amp;lt;parameter-fundcenter&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; Message 'Commitment item is not related to Fund Center' TYPE 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 07:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv-report/m-p/3072742#M728499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T07:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in ALV Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv-report/m-p/3072743#M728500</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;I think u can select the records from the table into the corresponding internal table by using the where condition. In the condition u have to filter the records based on the fund center in the table and in the select-options. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the sy-subrc is zero just print the records from the internal table else give an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope useful for u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 09:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv-report/m-p/3072743#M728500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T09:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in ALV Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv-report/m-p/3072744#M728501</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;Here is a small ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT mtart mtbez FROM t134t&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE it_t134t&lt;/P&gt;&lt;P&gt;  WHERE mtart IN so_mtart AND spras = 'EN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    *********PERFORM display    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE ID 'Selection error' TYPE 'E' NUMBER '0040'.&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;Hope useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 09:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv-report/m-p/3072744#M728501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T09:59:37Z</dc:date>
    </item>
  </channel>
</rss>

