<?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: check-dev in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420245#M1049869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u have define like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter : matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. the field should not be empty &lt;/P&gt;&lt;P&gt;--&amp;gt; for this u can do like this &lt;/P&gt;&lt;P&gt;     parameter : matnr like mara-matnr obligatory default 'ABC' .&lt;/P&gt;&lt;P&gt;     by this u r 2nd problem also solve.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;3. simply take mara table data into an one internal table say it_mara.---&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen on output.&lt;/P&gt;&lt;P&gt;select * from mara into table it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here u check u r values in parameter : matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_mara with key matnr = matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; '0'.&lt;/P&gt;&lt;P&gt; Message 'Value Not found chk ur values' Type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanket.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2008 09:19:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-17T09:19:13Z</dc:date>
    <item>
      <title>check-dev</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420241#M1049865</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 parameter called - pa_telf1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is my requirment is that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. the field should not be empty &lt;/P&gt;&lt;P&gt;2. if give any value it should not accept and i should give me error message&lt;/P&gt;&lt;P&gt;3. it should accept only the valid value from the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one tell me as to how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in adv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 08:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420241#M1049865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T08:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: check-dev</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420242#M1049866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve the 1st requirement with&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CHECK field IS INITIAL. "the check command aborts the current program flow if the field is empty.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 2nd requirement you can achieve with something like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF field IS NOT INITIAL.
   MESSAGE 'Socorro' TYPE 'I'. "if you want the message to be an error message, use TYPE 'E' instead.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't understand exactly your 3rd requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, anyway.&lt;/P&gt;&lt;P&gt;Avraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 09:05:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420242#M1049866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T09:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: check-dev</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420243#M1049867</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 parameter called - pa_telf1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is my requirment is that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. the field should not be empty &lt;/P&gt;&lt;P&gt;2. if give any value it should not accept and i should give me error message&lt;/P&gt;&lt;P&gt;3. it should accept only the valid value from the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one tell me as to how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in adv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. To appear any value use 'defalut' in parameter statement.&lt;/P&gt;&lt;P&gt;2. For The second requirement 'at selection-screen', use function module 'f4if_int_table_value_requset' to get values from table and populate it in the internal table and when you enter value, check it with the values in internal table . If entered value is wrong display error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Narasimhulu P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 09:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420243#M1049867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T09:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: check-dev</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420244#M1049868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As per your requirement:&lt;/P&gt;&lt;P&gt;1. make it Obligatory,&lt;/P&gt;&lt;P&gt;    parameters: pa_telf1 type &amp;lt;xyz&amp;gt; OBLIGATORY.&lt;/P&gt;&lt;P&gt;For 2 &amp;amp; 3.&lt;/P&gt;&lt;P&gt;    In event &lt;/P&gt;&lt;P&gt;       AT SELECTION-SCREEN ON pa_telf1.&lt;/P&gt;&lt;P&gt;             perform check_input.&lt;/P&gt;&lt;P&gt;**********************************************&lt;/P&gt;&lt;P&gt;in Form Check_input.&lt;/P&gt;&lt;P&gt;    write the code to fetch data from the database table where you want to check its validity from.&lt;/P&gt;&lt;P&gt;    select single &amp;lt;field&amp;gt;&lt;/P&gt;&lt;P&gt;                from &amp;lt;DB table&amp;gt;&lt;/P&gt;&lt;P&gt;                into g_telf1&lt;/P&gt;&lt;P&gt;               where telf1 = pa_telf1.&lt;/P&gt;&lt;P&gt;    if sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;         raise error message.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 09:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420244#M1049868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T09:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: check-dev</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420245#M1049869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u have define like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter : matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. the field should not be empty &lt;/P&gt;&lt;P&gt;--&amp;gt; for this u can do like this &lt;/P&gt;&lt;P&gt;     parameter : matnr like mara-matnr obligatory default 'ABC' .&lt;/P&gt;&lt;P&gt;     by this u r 2nd problem also solve.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;3. simply take mara table data into an one internal table say it_mara.---&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen on output.&lt;/P&gt;&lt;P&gt;select * from mara into table it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here u check u r values in parameter : matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_mara with key matnr = matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; '0'.&lt;/P&gt;&lt;P&gt; Message 'Value Not found chk ur values' Type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanket.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 09:19:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420245#M1049869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T09:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: check-dev</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420246#M1049870</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;Qustion no 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution :  Use keyword &lt;STRONG&gt;OBLIGATORY&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qustion no 2 and 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution :   In ' AT SELECTION-SCREEN ', Use function module &lt;STRONG&gt;'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/STRONG&gt; and get the input values and display the values in input field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 09:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420246#M1049870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T09:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: check-dev</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420247#M1049871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make the field non-empty, in the parameter declaration statement add 'Obligatory' keyword. To check it in a value table, use the following statement assuming zvalue_tab is the value table and the field is telf1 in the value table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(*)&lt;/P&gt;&lt;P&gt;from zvalue_tab&lt;/P&gt;&lt;P&gt;where telf1 = pa_telf1.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;     'Display error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code should be written in 'at selection-screen on pa_telf1' event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Farzan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Farzan Mohamed on Sep 17, 2008 11:22 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 09:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-dev/m-p/4420247#M1049871</guid>
      <dc:creator>former_member137336</dc:creator>
      <dc:date>2008-09-17T09:22:27Z</dc:date>
    </item>
  </channel>
</rss>

