<?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: general in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174863#M461773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pinky,&lt;/P&gt;&lt;P&gt;By using the events we can get the  Intial vales on the selection screen.&lt;/P&gt;&lt;P&gt;We can validate the fields by using the events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION Events provide the values on the selection screen.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT OR ON FIELD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by using this function module we can validate the field or if u want to disable the screen or enable the screen this event we have to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want i will send the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******Rewards some points.&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Naganjana Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2007 09:25:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-30T09:25:10Z</dc:date>
    <item>
      <title>general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174857#M461767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you validate the selection criteria of a report? &lt;/P&gt;&lt;P&gt;And how do you display initial values in a selection screen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:20:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174857#M461767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174858#M461768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use selection-screen events to validate selection-screen and use initialization to give initial values to a selection-screen.&lt;/P&gt;&lt;P&gt;screen-events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;at selection-screen on value request&lt;/P&gt;&lt;P&gt;at selection-screen on help request&lt;/P&gt;&lt;P&gt;at selection-screen on block&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        veereshbabu ponnada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174858#M461768</guid>
      <dc:creator>former_member673464</dc:creator>
      <dc:date>2007-04-30T09:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174859#M461769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select-options : s_matnr for mara-matnr default '10000' [to '20000']. &amp;lt;for default value to is not mandatory&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;for validating use event at selection-screen&amp;gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_matnr-low = '10005'.&lt;/P&gt;&lt;P&gt;message 'chose any other mat no' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174859#M461769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174860#M461770</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;Use "AT SELECTION SCREEN ON FIELD." Event for Validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT p_werks IS INITIAL.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    SELECT SINGLE werks&lt;/P&gt;&lt;P&gt;           FROM   t001w&lt;/P&gt;&lt;P&gt;           INTO   t001w&lt;/P&gt;&lt;P&gt;           WHERE  werks EQ p_werks.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IF not success&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE e001 WITH text-028.&lt;/P&gt;&lt;P&gt;    ENDIF.&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;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174860#M461770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174861#M461771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pinky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Copy and paste this program.....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters p_name(30) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;p_name = 'PINKY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;*U can do validation here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;V.Raghavender.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174861#M461771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174862#M461772</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;Try to use "F1" key on ABAP statements  (as parameters, TYPE, LIKE ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stéphane.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174862#M461772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174863#M461773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pinky,&lt;/P&gt;&lt;P&gt;By using the events we can get the  Intial vales on the selection screen.&lt;/P&gt;&lt;P&gt;We can validate the fields by using the events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION Events provide the values on the selection screen.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT OR ON FIELD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by using this function module we can validate the field or if u want to disable the screen or enable the screen this event we have to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want i will send the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******Rewards some points.&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Naganjana Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174863#M461773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174864#M461774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;  Check this code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables mara.&lt;/P&gt;&lt;P&gt;parameters: p_matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Default values for the Selection screen.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Intialization.&lt;/P&gt;&lt;P&gt;   move '0001' to p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Selection Screen validation&lt;/P&gt;&lt;P&gt;at selection-screen on p_matnr.&lt;/P&gt;&lt;P&gt;   select single * from mara where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;   if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Send an error message &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174864#M461774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174865#M461775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Initial value is displayed by initilization event.&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Parameter p_locl  RADIOBUTTON GROUP g1.

initilization.

p_locl = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else you can also give in initial value while declaration like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_locl  RADIOBUTTON GROUP g1                   " desktop file&lt;/P&gt;&lt;P&gt;                    DEFAULT 'X' USER-COMMAND fil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection criteria will be validated in AT SELECTION-SCREEN.or AT SELECTION-SCREEN ON event.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN.

  DATA: l_werks TYPE werks,
        l_mtart TYPE mtart.

  IF sy-ucomm &amp;lt;&amp;gt; 'BDC' AND sy-ucomm NE 'FIL'
                       AND sy-ucomm NE '%002'
                       AND sy-ucomm NE '%003'.

    IF s_plant IS INITIAL.
      MESSAGE e000 WITH text-018.
    ENDIF.

    SELECT SINGLE werks FROM t001w INTO l_werks
                        WHERE werks = s_plant-low.

    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE e000 WITH text-020.
    ENDIF.

    IF s_mat IS INITIAL.
      MESSAGE e000 WITH text-017.
    ENDIF.

    SELECT SINGLE mtart FROM t134 INTO l_mtart
                      WHERE mtart = s_mat-low.

    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE e000 WITH text-016.
    ENDIF.

    IF p_locl EQ 'X' OR p_phys EQ 'X'.
      IF p_ofile IS INITIAL.
        SET CURSOR FIELD 'P_OFILE'.
        MESSAGE e000 WITH text-008.
        EXIT.
      ENDIF.
    ENDIF.

    IF p_sess EQ 'X'.
      IF p_group IS INITIAL.
        SET CURSOR FIELD 'P_GROUP'.
        MESSAGE e000 WITH text-009.
      ENDIF.
    ENDIF.

    IF p_ctu EQ 'X'.
      IF p_mode IS INITIAL.
        SET CURSOR FIELD 'P_MODE'.
        MESSAGE e000 WITH text-011.
      ENDIF.

      IF p_update IS INITIAL.
        SET CURSOR FIELD 'P_UPDATE'.
        MESSAGE e000 WITH text-012.
      ENDIF.

      IF p_error IS INITIAL.
        SET CURSOR FIELD 'P_ERROR'.
        MESSAGE e000 WITH text-010.
      ENDIF.
    ENDIF.

  ENDIF.

AT SELECTION-SCREEN ON p_mode.
  IF NOT p_mode IS INITIAL.
    IF p_mode NE 'N' AND
       p_mode NE 'E' AND
       p_mode NE 'A'.
      SET CURSOR FIELD 'P_MODE'.
      MESSAGE e000 WITH text-013.
    ENDIF.
  ENDIF.

AT SELECTION-SCREEN ON p_update.
  IF NOT p_update IS INITIAL.
    IF p_update NE 'S' AND
       p_update NE 'A' AND
       p_update NE 'L' .
      SET CURSOR FIELD 'P_UPDATE'.
      MESSAGE e000 WITH text-014.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:25:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174865#M461775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174866#M461776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use AT-Selection screen event to validate screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for default values use VALUE addition in parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174866#M461776</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2007-04-30T09:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174867#M461777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;  Check this code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables mara.&lt;/P&gt;&lt;P&gt;parameters: p_matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Default values for the Selection screen.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Intialization.&lt;/P&gt;&lt;P&gt;   move '0001' to p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Selection Screen validation&lt;/P&gt;&lt;P&gt;at selection-screen on p_matnr.&lt;/P&gt;&lt;P&gt;   select single * from mara where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;   if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Send an error message &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174867#M461777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174868#M461778</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;&amp;lt;b&amp;gt;At selection-screen output&amp;lt;/b&amp;gt; : triggered when the selection screen is loaded in memory before being displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so default values u can give here in this event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;At selection-screen :&amp;lt;/b&amp;gt; before leaving the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all validations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174868#M461778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174869#M461779</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;  Initial values can be set to parameters on selection screen in INITIALIZATION section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174869#M461779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174870#M461780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;IN THE EVENT AT SELECTION-SCREEN we write the code&lt;/P&gt;&lt;P&gt;select-options: s_vkorg for tvko-vkorg ,&lt;/P&gt;&lt;P&gt;                      s_vtweg for tvtw-vtweg .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Sales Organization&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear tvko.&lt;/P&gt;&lt;P&gt;  if not s_vkorg-low is initial.&lt;/P&gt;&lt;P&gt;    select vkorg from tvko up to 1 rows&lt;/P&gt;&lt;P&gt;           into tvko-vkorg&lt;/P&gt;&lt;P&gt;           where vkorg in s_vkorg.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      message e009.  " Invalid Sales Organization&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Distribution Channel&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear tvtw.&lt;/P&gt;&lt;P&gt;  if not s_vtweg-low is initial.&lt;/P&gt;&lt;P&gt;    select vtweg from tvtw up to 1 rows&lt;/P&gt;&lt;P&gt;           into tvtw-vtweg&lt;/P&gt;&lt;P&gt;           where vtweg in s_vtweg.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      message e010.  " Invalid Distribution Channel&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;In the INITIALIZATION event you can initilize the values&lt;/P&gt;&lt;P&gt;Initialization.&lt;/P&gt;&lt;P&gt;s_vkorg-low = '1000'.&lt;/P&gt;&lt;P&gt;s_vkorg-sign = 'I'.&lt;/P&gt;&lt;P&gt;s_vkorg-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append s_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_vkorg-low = '1001'.&lt;/P&gt;&lt;P&gt;s_vkorg-sign = 'I'.&lt;/P&gt;&lt;P&gt;s_vkorg-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append s_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:28:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174870#M461780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174871#M461781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi dinky,&lt;/P&gt;&lt;P&gt;     u can validate the user input in the at selection-screen event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To display display default values u can use this within a selection screen event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : mat for mara-matnr default mat-low = '100' and mat-high = '200'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174871#M461781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174872#M461782</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;Try to use "F1" key on ABAP statements (as parameters, TYPE, LIKE ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stéphane. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Use transaction  ABAPDOCU and have a look at all ABAP examples ... You will learn lot of things on ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174872#M461782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174873#M461783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Pinky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 . To Validate Selection Screen Fields ,you have to At Selection-Screen &lt;/P&gt;&lt;P&gt;Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.To Display initial Values,you can assign the values in the selection  option itself of you have assign the values in the Initialization Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sangeetha.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174873#M461783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174874#M461784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PINKY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;HOPE you got ur answers..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE CLOSE THE THREAD AS ANSWERED if ur question is solved awarding points.&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 10:07:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general/m-p/2174874#M461784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T10:07:15Z</dc:date>
    </item>
  </channel>
</rss>

