<?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: At Selection screen validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915615#M380844</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;since your requirement is to get all distribution channels for a given sales organisation  you need to perform validation for the sales organisation you enter. So, you would probably get the input for sales organisation, for this perform validation at selction screen. And then you could select the distribution channels for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chaitanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2007 05:53:39 GMT</pubDate>
    <dc:creator>Chaitanyat</dc:creator>
    <dc:date>2007-02-12T05:53:39Z</dc:date>
    <item>
      <title>At Selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915610#M380839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just have a reqirement of  validation during at selection screen event ,i have to get all the Sales distribution channels for a particular sales organisation.Can you give me the some guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 05:29:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915610#M380839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T05:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915611#M380840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;        You can use the select query on the db table.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON so_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Brijesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 05:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915611#M380840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T05:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915612#M380841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;     You can use TVKOV table for the combination getting. Please reward points if it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brijesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 05:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915612#M380841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T05:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915613#M380842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dinesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below code to validate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT S_BUKRS is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs into t001-bukrs upto 1 rows from t001&lt;/P&gt;&lt;P&gt;                                           where bukrs in s_bukrs.&lt;/P&gt;&lt;P&gt;end select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;message e594.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear: t001.&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;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 05:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915613#M380842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T05:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915614#M380843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sales distribution channels for a particular sales organisation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TVKO --&amp;gt;sales organizations&lt;/P&gt;&lt;P&gt;check the table &lt;/P&gt;&lt;P&gt;TVKOV for distribution channels . " validations &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all this are related to sales area .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in the at selection screen events use the check tables for validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 05:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915614#M380843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T05:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915615#M380844</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;since your requirement is to get all distribution channels for a given sales organisation  you need to perform validation for the sales organisation you enter. So, you would probably get the input for sales organisation, for this perform validation at selction screen. And then you could select the distribution channels for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chaitanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 05:53:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915615#M380844</guid>
      <dc:creator>Chaitanyat</dc:creator>
      <dc:date>2007-02-12T05:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915616#M380845</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;it triggers like following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection screen output  - if required &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on &amp;lt;fieldname&amp;gt;&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;regards&lt;/P&gt;&lt;P&gt;sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 05:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915616#M380845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T05:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915617#M380846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For validating a selection screen field, u should consider the header table that is a must.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: My selection screen field is marc-matnr.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;U have to see whether the matnr in marc is having any check table if so u have to refer the check table not marc.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to validate this fiedl.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: s_matnr LIEK mara-matnr.

AT SELECTION SCREEN ON s_matnr.
 IF NOT s_matnr[] IS INITIAL.
  select matnr from mara
                     into mara-matnr
                     where matnr = s_matnr.
  IF sy-subrc NE 0.
    MESSAGE i128.
    LEAVE LIST-PROCESSING.
  ENDIF.
 ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves ur query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 06:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915617#M380846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T06:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: At Selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915618#M380847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;REPORT zex23 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_vkorg TYPE vbak-vkorg.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS :s_vtweg FOR vbak-vtweg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: dynfields TYPE TABLE OF dynpread WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: return TYPE TABLE OF ddshretval WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF xvbak OCCURS 0,&lt;/P&gt;&lt;P&gt;       vtweg LIKE TVKOV-vtweg,&lt;/P&gt;&lt;P&gt;       END OF xvbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            tabname           = 'VBAK'&lt;/P&gt;&lt;P&gt;            fieldname         = 'VKORG'&lt;/P&gt;&lt;P&gt;            dynpprog          = sy-cprog&lt;/P&gt;&lt;P&gt;            dynpnr            = sy-dynnr&lt;/P&gt;&lt;P&gt;            dynprofield       = 'P_VKORG'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            return_tab        = return&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            field_not_found   = 1&lt;/P&gt;&lt;P&gt;            no_help_for_field = 2&lt;/P&gt;&lt;P&gt;            inconsistent_help = 3&lt;/P&gt;&lt;P&gt;            no_values_found   = 4&lt;/P&gt;&lt;P&gt;            OTHERS            = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BREAK-POINT.&lt;/P&gt;&lt;P&gt;  REFRESH dynfields.&lt;/P&gt;&lt;P&gt;  READ TABLE return WITH KEY fieldname = 'P_VKORG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add it back to the dynpro.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  dynfields-fieldname = return-retfield.&lt;/P&gt;&lt;P&gt;  dynfields-fieldvalue = return-fieldval.&lt;/P&gt;&lt;P&gt;  APPEND dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DATA: xvbak TYPE STANDARD TABLE OF vbak WITH HEADER LINE,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : low TYPE vbak-vtweg,&lt;/P&gt;&lt;P&gt;          high TYPE vbak-vtweg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR xvbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT vtweg FROM tvkov&lt;/P&gt;&lt;P&gt;  INTO TABLE xvbak&lt;/P&gt;&lt;P&gt;  WHERE vkorg = return-fieldval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT xvbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE xvbak INDEX 1.&lt;/P&gt;&lt;P&gt;  low = xvbak-vtweg.&lt;/P&gt;&lt;P&gt;  READ TABLE xvbak INDEX sy-dbcnt.&lt;/P&gt;&lt;P&gt;  high = xvbak-vtweg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  dynfields-fieldname = 'S_VTWEG-LOW'.&lt;/P&gt;&lt;P&gt;  dynfields-fieldvalue = low.&lt;/P&gt;&lt;P&gt;  APPEND dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  dynfields-fieldname = 'S_VTWEG-HIGH'.&lt;/P&gt;&lt;P&gt;  dynfields-fieldvalue = high.&lt;/P&gt;&lt;P&gt;  APPEND dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update the dynpro values.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            dyname     = sy-cprog&lt;/P&gt;&lt;P&gt;            dynumb     = sy-dynnr&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            dynpfields = dynfields&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS     = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Press f4 for parameter field sales organisation then u will the get the corresponding range of distribution channel of that sales organisation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 06:05:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-validation/m-p/1915618#M380847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T06:05:48Z</dc:date>
    </item>
  </channel>
</rss>

