<?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: problem with report events in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-report-events/m-p/1692292#M304021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may do your validations in the AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

data: xmarc type marc.

parameters: p_matnr type mara-matnr,
            p_werks type marc-werks.

at selection-screen.

  clear xmarc.
  select single * into xmarc from marc
            where matnr = p_matnr
              and werks = p_werks.
  if sy-subrc  &amp;lt;&amp;gt; 0.
    message e001(00) with 'Material is not extended to plant'.
  endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Nov 2006 18:15:43 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-11-14T18:15:43Z</dc:date>
    <item>
      <title>problem with report events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-report-events/m-p/1692291#M304020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt; iam having 2 parameters on a selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : plant like mara-plant ,&lt;/P&gt;&lt;P&gt;                   matnr like mara-matnr..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i will enter some material no in matnr parameter , then i next step it has to check automatically that material exist in that palnt or not . if exits means the process will be continued , if not it has to show an error that material does not exist in that plant ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thans &amp;amp; Regards &lt;/P&gt;&lt;P&gt; Latha murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 18:12:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-report-events/m-p/1692291#M304020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T18:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: problem with report events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-report-events/m-p/1692292#M304021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may do your validations in the AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

data: xmarc type marc.

parameters: p_matnr type mara-matnr,
            p_werks type marc-werks.

at selection-screen.

  clear xmarc.
  select single * into xmarc from marc
            where matnr = p_matnr
              and werks = p_werks.
  if sy-subrc  &amp;lt;&amp;gt; 0.
    message e001(00) with 'Material is not extended to plant'.
  endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 18:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-report-events/m-p/1692292#M304021</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-14T18:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem with report events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-report-events/m-p/1692293#M304022</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;PRE&gt;&lt;CODE&gt;TABLES: MARA, MARC, T001W.

PARAMETERS: P_MATNR LIKE MCHA-MATNR,
            P_PLANT LIKE MCHA-WERKS.

AT SELECTION-SCREEN ON P_MATNR.
  SELECT SINGLE * FROM MARA WHERE MATNR = P_MATNR.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE E208(00) WITH 'No material'.
  ENDIF.

AT SELECTION-SCREEN ON P_PLANT.
  SELECT SINGLE * FROM T001W WHERE WERKS = P_PLANT.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE E208(00) WITH 'No plant'.
  ENDIF.

AT SELECTION-SCREEN.
  SELECT SINGLE * FROM MARC WHERE MATNR = P_MATNR
                              AND WERKS = P_PLANT.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE E208(00) WITH 'No plant'.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use MCHA table the system'll show all plant of the material chosen automatically.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 18:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-report-events/m-p/1692293#M304022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T18:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: problem with report events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-report-events/m-p/1692294#M304023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thans for ur suggestion .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 19:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-report-events/m-p/1692294#M304023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T19:07:45Z</dc:date>
    </item>
  </channel>
</rss>

