<?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: logic needed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/3375912#M810584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the At selection-screen event write the below code..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select single matnr from marc
      into lv_matnr
 where matnr = pa_matnr "&amp;lt;&amp;lt;your selection screen parameter
  and   werks = pa_werks "&amp;lt;&amp;lt;your plant in the selection screen
if sy-subrc NE 0.
clear lv_matnr.
message  "&amp;lt;&amp;lt;&amp;lt;&amp;lt; you want to raise..
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Feb 2008 04:00:19 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-02-02T04:00:19Z</dc:date>
    <item>
      <title>logic needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/3375911#M810583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first the user enters the plant (input button).&lt;/P&gt;&lt;P&gt;Now i have a table control where the user has to enter the material no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirenment is that as soon as the user enter the material no. it should check that the material should be extended in plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if nt than a error msg shuld be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ghadoliya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2008 03:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/3375911#M810583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-02T03:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: logic needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/3375912#M810584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the At selection-screen event write the below code..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select single matnr from marc
      into lv_matnr
 where matnr = pa_matnr "&amp;lt;&amp;lt;your selection screen parameter
  and   werks = pa_werks "&amp;lt;&amp;lt;your plant in the selection screen
if sy-subrc NE 0.
clear lv_matnr.
message  "&amp;lt;&amp;lt;&amp;lt;&amp;lt; you want to raise..
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2008 04:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/3375912#M810584</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-02-02T04:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: logic needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/3375913#M810585</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;You can write a Chain  endchain command in the correponding PAI and validate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP at Itab.(Which is used for table cntrol).&lt;/P&gt;&lt;P&gt; chain.                                                    "ISBN-Nr.&lt;/P&gt;&lt;P&gt;      field: &amp;lt;MATNR&amp;gt; '' The field for matnr in Table control.&lt;/P&gt;&lt;P&gt;      module  validate.&lt;/P&gt;&lt;P&gt;   endchain.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"And in module.&lt;/P&gt;&lt;P&gt;MODULE validate.&lt;/P&gt;&lt;P&gt;select single &amp;lt;matnr&amp;gt; from marc&lt;/P&gt;&lt;P&gt;into &amp;lt;wa-marc&amp;gt;&lt;/P&gt;&lt;P&gt;where matnr = &amp;lt;matnr&amp;gt; and&lt;/P&gt;&lt;P&gt;werks = &amp;lt;werks&amp;gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&amp;lt;error message&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; where&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2008 05:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/3375913#M810585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-02T05:45:02Z</dc:date>
    </item>
  </channel>
</rss>

