<?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: validate user input with the screen flow logic. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647188#M1444330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi José&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the syntax works fine, but there are as already mentioned by Thiru the problem that you compare matnr wit matkl. That doesn't make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A second problem is that the editor (even when you get the correct syntax) will paint some of the words in the select statement red as if some error still exists. &lt;STRONG&gt;Don't worry about this&lt;/STRONG&gt;. The dynpro will generate ok and all will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex. of correct syntax:&lt;/P&gt;&lt;P&gt;FIELD MARA-MATNR SELECT * FROM&amp;nbsp; mara&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE matnr = MARA-MATNR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHENEVER NOT FOUND SEND ERRORMESSAGE 221.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally you must make sure to have the messag-id addition to the program statement in top of your program. Like this:&lt;/P&gt;&lt;P&gt;REPORT ztest123 message-id M3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thomas Madsen Nielsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2012 10:20:22 GMT</pubDate>
    <dc:creator>TMNielsen</dc:creator>
    <dc:date>2012-11-14T10:20:22Z</dc:date>
    <item>
      <title>validate user input with the screen flow logic.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647182#M1444324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys, im facing some troubles with the following code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field mara-matnr SELECT * 
                    from mara
                    into table itab_mara
                    where  matnr = mara-matnr
                    and  matnr = mara-matkl
                    WHENEVER NOT FOUND SEND ERRORMESSAGE 107
                               WITH  mara-matnr .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the editor doest recognize this code in PAI., is the same with VALUES clause.  &lt;/P&gt;&lt;P&gt;what im doing wrong ? . thank you very mch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 12:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647182#M1444324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T12:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: validate user input with the screen flow logic.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647183#M1444325</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;Please check code in where condition. Is the condition is right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field mara-matnr SELECT * &lt;/P&gt;&lt;P&gt;                    from mara&lt;/P&gt;&lt;P&gt;                    into table itab_mara&lt;/P&gt;&lt;P&gt;                    where  matnr = mara-matnr&lt;/P&gt;&lt;P&gt;                    and  matnr = mara-matkl&lt;/P&gt;&lt;P&gt;                    WHENEVER NOT FOUND SEND ERRORMESSAGE 107&lt;/P&gt;&lt;P&gt;                               WITH  mara-matnr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATNR is comparing with MATNR and also MATKL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are doing the valiation make sure that use the chain and endchain stamt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE VALI_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END CHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like above do the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 12:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647183#M1444325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T12:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: validate user input with the screen flow logic.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647184#M1444326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In PAI you have to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;chain.

field mara-matnr module check_material.
endchain.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now dbl click on the check_material it will ask for the program name just write the select query in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;module check_material input.
SELECT * 
                    from mara
                    into table itab_mara
                    where  matnr = mara-matnr
                    and  matnr = mara-matkl
                    WHENEVER NOT FOUND SEND ERRORMESSAGE 107
                               WITH  mara-matnr .

endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiba Prasad Dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 12:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647184#M1444326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T12:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: validate user input with the screen flow logic.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647185#M1444327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but then ,  this is wrong :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbaa3a35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbaa3a35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 17:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647185#M1444327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T17:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: validate user input with the screen flow logic.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647186#M1444328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i guess im going to do it like you told me , however i think i could write the select in pbo directly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 11:46:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647186#M1444328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-25T11:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: validate user input with the screen flow logic.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647187#M1444329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  It will not work in PBO module.  Do as SHIBA  write This is the only way to do it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 11:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647187#M1444329</guid>
      <dc:creator>mukundkansara</dc:creator>
      <dc:date>2010-02-25T11:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: validate user input with the screen flow logic.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647188#M1444330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi José&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the syntax works fine, but there are as already mentioned by Thiru the problem that you compare matnr wit matkl. That doesn't make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A second problem is that the editor (even when you get the correct syntax) will paint some of the words in the select statement red as if some error still exists. &lt;STRONG&gt;Don't worry about this&lt;/STRONG&gt;. The dynpro will generate ok and all will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex. of correct syntax:&lt;/P&gt;&lt;P&gt;FIELD MARA-MATNR SELECT * FROM&amp;nbsp; mara&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE matnr = MARA-MATNR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHENEVER NOT FOUND SEND ERRORMESSAGE 221.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally you must make sure to have the messag-id addition to the program statement in top of your program. Like this:&lt;/P&gt;&lt;P&gt;REPORT ztest123 message-id M3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thomas Madsen Nielsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 10:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-user-input-with-the-screen-flow-logic/m-p/6647188#M1444330</guid>
      <dc:creator>TMNielsen</dc:creator>
      <dc:date>2012-11-14T10:20:22Z</dc:date>
    </item>
  </channel>
</rss>

