<?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 Problem in AT selection screen validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371010#M1641956</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;I am having problem in AT SELECTION SCREEN Validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 radiobutton and 6 parameter. if i click first radio button  all the 6 radiobutton should enable and take the user input, that is working fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i click second radiobutton , out of 6 , 3 parameter should disable and remaining 3 should enable. thats also working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is program has written the validation for this 3 parameter in the AT SELECTION SCREEN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For first radioutton all the validation working  fine, for second validation as soon as i press the radiobutton it will display error message. Based on 2 parameter user is filling value for 3 rd parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the same validation to be done for second radio button after user pressing enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: p_single RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND f1,&lt;/P&gt;&lt;P&gt;           p_multi RADIOBUTTON GROUP rad1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: s_pwwrk LIKE plaf-pwwrk.           &lt;/P&gt;&lt;P&gt;PARAMETERS: p_lgort LIKE plaf-lgort.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_kostl LIKE cobl-kostl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;CLEAR t001w.&lt;/P&gt;&lt;P&gt;  CLEAR t001k.&lt;/P&gt;&lt;P&gt;  CLEAR marv.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM t001w WHERE werks EQ s_pwwrk.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e999 WITH 'Plant' s_pwwrk 'does not exist'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM t001k WHERE bwkey EQ t001w-bwkey.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM marv WHERE bukrs EQ t001k-bukrs.&lt;/P&gt;&lt;P&gt;    IF p_budat&lt;EM&gt;0(4) NE marv-lfgja OR p_budat&lt;/EM&gt;4(2) NE marv-lfmon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF marv-xruem IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;        IF p_budat&lt;EM&gt;0(4) NE marv-vmgja OR p_budat&lt;/EM&gt;4(2) NE marv-vmmon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE e999 WITH p_budat&lt;EM&gt;4(2) p_budat&lt;/EM&gt;0(4)&lt;/P&gt;&lt;P&gt;                            'is closed.&lt;/P&gt;&lt;P&gt;                                        Please try again.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        MESSAGE e999 WITH p_budat&lt;EM&gt;4(2) p_budat&lt;/EM&gt;0(4)&lt;/P&gt;&lt;P&gt;                          'is closed.&lt;/P&gt;&lt;P&gt;                                      Please try again.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2011 08:10:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-24T08:10:56Z</dc:date>
    <item>
      <title>Problem in AT selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371010#M1641956</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;I am having problem in AT SELECTION SCREEN Validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 radiobutton and 6 parameter. if i click first radio button  all the 6 radiobutton should enable and take the user input, that is working fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i click second radiobutton , out of 6 , 3 parameter should disable and remaining 3 should enable. thats also working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is program has written the validation for this 3 parameter in the AT SELECTION SCREEN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For first radioutton all the validation working  fine, for second validation as soon as i press the radiobutton it will display error message. Based on 2 parameter user is filling value for 3 rd parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the same validation to be done for second radio button after user pressing enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: p_single RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND f1,&lt;/P&gt;&lt;P&gt;           p_multi RADIOBUTTON GROUP rad1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: s_pwwrk LIKE plaf-pwwrk.           &lt;/P&gt;&lt;P&gt;PARAMETERS: p_lgort LIKE plaf-lgort.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_kostl LIKE cobl-kostl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;CLEAR t001w.&lt;/P&gt;&lt;P&gt;  CLEAR t001k.&lt;/P&gt;&lt;P&gt;  CLEAR marv.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM t001w WHERE werks EQ s_pwwrk.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e999 WITH 'Plant' s_pwwrk 'does not exist'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM t001k WHERE bwkey EQ t001w-bwkey.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM marv WHERE bukrs EQ t001k-bukrs.&lt;/P&gt;&lt;P&gt;    IF p_budat&lt;EM&gt;0(4) NE marv-lfgja OR p_budat&lt;/EM&gt;4(2) NE marv-lfmon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF marv-xruem IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;        IF p_budat&lt;EM&gt;0(4) NE marv-vmgja OR p_budat&lt;/EM&gt;4(2) NE marv-vmmon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE e999 WITH p_budat&lt;EM&gt;4(2) p_budat&lt;/EM&gt;0(4)&lt;/P&gt;&lt;P&gt;                            'is closed.&lt;/P&gt;&lt;P&gt;                                        Please try again.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        MESSAGE e999 WITH p_budat&lt;EM&gt;4(2) p_budat&lt;/EM&gt;0(4)&lt;/P&gt;&lt;P&gt;                          'is closed.&lt;/P&gt;&lt;P&gt;                                      Please try again.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 08:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371010#M1641956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-24T08:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in AT selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371011#M1641957</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 using the function module "DYNP_VALUES_READ" to get he values entered in 2nd parameter and carry on with validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this may be helpful.&lt;/P&gt;&lt;P&gt;&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;Sharin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 08:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371011#M1641957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-24T08:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in AT selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371012#M1641958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your Case , &lt;/P&gt;&lt;P&gt;If i understand clearly,You can do the validation when you want on AT SELECTION SCREEN ON WP_FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you say your validation to be done only for Selection of Second Radio Button, then..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION SCREEN.
if p_multi  eq 'X'. "&amp;lt;- Make Validation to be done only if user select Second Button
CLEAR t001w.
CLEAR t001k.
CLEAR marv.
SELECT SINGLE * FROM t001w WHERE werks EQ s_pwwrk.
IF sy-subrc NE 0.
MESSAGE e999 WITH 'Plant' s_pwwrk 'does not exist'.
ELSE.
SELECT SINGLE * FROM t001k WHERE bwkey EQ t001w-bwkey.
SELECT SINGLE * FROM marv WHERE bukrs EQ t001k-bukrs.
IF p_budat+0(4) NE marv-lfgja OR p_budat+4(2) NE marv-lfmon

IF marv-xruem IS NOT INITIAL.
IF p_budat+0(4) NE marv-vmgja OR p_budat+4(2) NE marv-vmmon.

MESSAGE e999 WITH p_budat+4(2) p_budat+0(4)
'is closed.
Please try again.'.

ENDIF.
ELSE.
MESSAGE e999 WITH p_budat+4(2) p_budat+0(4)
'is closed.
Please try again.'.

ENDIF.
ENDIF.
ENDIF.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 08:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371012#M1641958</guid>
      <dc:creator>surajarafath</dc:creator>
      <dc:date>2011-11-24T08:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in AT selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371013#M1641959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No i need the validation for both radiobtuon for that parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 09:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371013#M1641959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-24T09:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in AT selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371014#M1641960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start debugging on by presiing /h on address book and check wats the value of sy-ucomm when u change radiobuttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess its ONLI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now make a check that if sy-ucomm is not equal to ONLI, only then you will make validations for both radiobuttons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this solves ur query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 09:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371014#M1641960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-24T09:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in AT selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371015#M1641961</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;Check the sy-ucomm value for 'Enter' pressed on the key board. And write the entire validation logic under 'AT SELECTION' event but inside the if block that you would be defining for 'Enter'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 10:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371015#M1641961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-24T10:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in AT selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371016#M1641962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_single = 'X'&lt;/P&gt;&lt;P&gt;OR p_muliti = 'X'.&lt;/P&gt;&lt;P&gt;if sy-ucomm NE 'X'. (User Command)&lt;/P&gt;&lt;P&gt;Validate.&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;it will validate both radiobutton, only after press.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Udupi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 11:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371016#M1641962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-24T11:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in AT selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371017#M1641963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;removed by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Nov 24, 2011 4:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 11:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen-validation/m-p/8371017#M1641963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-24T11:36:00Z</dc:date>
    </item>
  </channel>
</rss>

