<?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: selection screen fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784796#M649209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELECTION SCREEN ON s_aufnr&lt;/P&gt;&lt;P&gt;if s_aufnr[] IS NOT INOTIAL. " Select option for afpo-aufnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;VALIDATE AUFNR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   SElect single aufnr from AUFK into v_aufnr where&lt;/P&gt;&lt;P&gt;              aufnr in s_aufnr.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;Similary validate others&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Taranam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2007 09:27:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-04T09:27:17Z</dc:date>
    <item>
      <title>selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784791#M649204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus,&lt;/P&gt;&lt;P&gt;     i created selection screen afpo-aufnr, afko-rsnum, resb-matnr fields with select options apart from that if i select either afpo-aufnr or afko-resnum for this i have to validate that selection fields plz sen the logic how to validate that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 09:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784791#M649204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T09:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784792#M649205</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; if  afpo-aufnr is not initial &lt;/P&gt;&lt;P&gt;  then validate  afpo-aufnr&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if afko-resnum is not initial&lt;/P&gt;&lt;P&gt;validate  afko-resnum &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 09:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784792#M649205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T09:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784793#M649206</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;at selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select aufnr from &amp;lt;b&amp;gt;AUFK&amp;lt;/b&amp;gt; into table itab where aufnr in s_aufnr.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;message no data found for AUFNR.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select RSNUM from AFKO into table itab1 where  RSNUM in s_rsnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;message no data found for RSNUM .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also use &lt;/P&gt;&lt;P&gt;at selection screnn on s_aufnr-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection screnn on s_aufnr-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection screnn on s_rsnum-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection screnn on s_rsnum-high.&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 &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 09:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784793#M649206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T09:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784794#M649207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Suppose you want to validate afpo-aufnr  field then write as follows&lt;/P&gt;&lt;P&gt;supose you have a selct options SO_AUFNR for afpo-aufnr . then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data v_aufnr type afpo-aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE aufnr&lt;/P&gt;&lt;P&gt;                FROM afpo&lt;/P&gt;&lt;P&gt;                where  aufnr IN so_aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;Message E()....Raise error message whch u r using in Program.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same way you can validate other fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Kindly Reward Points for Helpfill Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tanweer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 09:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784794#M649207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T09:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784795#M649208</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;let say you have &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;select-options: s_aufnr  for afpo-aufnr,&lt;/P&gt;&lt;P&gt;                      s_rsnum for afko-rsnum.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; you can write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;at selection-screen on s_aufnr.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;If s-aufnr[] is not initial.&lt;/P&gt;&lt;P&gt;data : lv_aufnr type aufnr.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;here we are using select single  because AUFNR is the only primary key in its **value table AUFK&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;select single sufnr from aufk into lv_aufnr where aufnr in s_aufnr.&lt;/P&gt;&lt;P&gt;If sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;**Message  " Error message here " please enter valid order number&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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;at selection-screen on s_rsnum.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;If s_rsnum[] is not initial.&lt;/P&gt;&lt;P&gt;data : lv_rsnum type rsnum.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;here we are using select upto 1 rows because rsnum is a part of primary key in **its value table RESB.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;select rsnum into lv_rsnum&lt;/P&gt;&lt;P&gt;        from resb &lt;/P&gt;&lt;P&gt;      up to 1 rows where rsnum in s_rsnum.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;error message..&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;rewards if useful,&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>Tue, 04 Sep 2007 09:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784795#M649208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T09:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784796#M649209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELECTION SCREEN ON s_aufnr&lt;/P&gt;&lt;P&gt;if s_aufnr[] IS NOT INOTIAL. " Select option for afpo-aufnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;VALIDATE AUFNR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   SElect single aufnr from AUFK into v_aufnr where&lt;/P&gt;&lt;P&gt;              aufnr in s_aufnr.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;Similary validate others&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Taranam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 09:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784796#M649209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T09:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784797#M649210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi babu,&lt;/P&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt;         Find the code below it will help you out.. even if your problem not solved .. feel free to contact me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it useful. Which boost us help others.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  YPRG33
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  YPRG33.

tables : afpo, afko, resb.

select-options : so_aufnr for afpo-aufnr,
                 so_rsnum for afko-rsnum,
                 so_matnr for resb-matnr .
                 
at selection-screen on so_aufnr.
*................
*.. statements over here
*...............

at selection-screen on so_rsnum.
*................
*..statements over here
*...............          &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 09:27:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784797#M649210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T09:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784798#M649211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi babu,&lt;/P&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt;         Find the code below it will help you out.. even if your problem not solved .. feel free to contact me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it useful. Which boost us help others.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  YPRG33
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  YPRG33.

tables : afpo, afko, resb.

select-options : so_aufnr for afpo-aufnr,
                 so_rsnum for afko-rsnum,
                 so_matnr for resb-matnr .
                 
at selection-screen on so_aufnr.
*................
*.. statements over here
*...............

at selection-screen on so_rsnum.
*................
*..statements over here
*...............          &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &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;sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 09:29:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784798#M649211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T09:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784799#M649212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this under "AT selection screen" event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic goes here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection -screen on afpo-aufnr-LOW.&lt;/P&gt;&lt;P&gt;Seelct single * from AUFK where AUFNR = afpo-aufnr-LOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;Raise PRoper message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection -screen on afpo-aufnr-HIGH.&lt;/P&gt;&lt;P&gt;Seelct single * from AUFK where AUFNR = afpo-aufnr-HIGH.&lt;/P&gt;&lt;P&gt;If sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;Raise PRoper message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same way Validate AFKO-Resnum againest table RESB table and raise proper messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOpe this is helpful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jaleel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 09:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784799#M649212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T09:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784800#M649213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI GURUS THANX'S FOR REPLY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 09:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/2784800#M649213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T09:59:43Z</dc:date>
    </item>
  </channel>
</rss>

