<?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 Getting Dynamic selection Screen based on Key combinations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamic-selection-screen-based-on-key-combinations/m-p/3612567#M870360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Experts??&lt;/P&gt;&lt;P&gt;For Pricing Condition type, we have key combinations, based on selecting the key combination we have to populate the selection screen having select options for that key combinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : We could not able to create selection screens for each comination manually,we may have multiple pricing condition types, For each condition type we have multiple key comobinations, Based on selecting the key combination, we need to populate selection screen.&lt;/P&gt;&lt;P&gt;I know the logic for getting key combination fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I JUST WANT dynamic logic for displaying the selection screeen(SELECT-OPTIONS) based on that fields selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2008 04:55:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-28T04:55:42Z</dc:date>
    <item>
      <title>Getting Dynamic selection Screen based on Key combinations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamic-selection-screen-based-on-key-combinations/m-p/3612567#M870360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Experts??&lt;/P&gt;&lt;P&gt;For Pricing Condition type, we have key combinations, based on selecting the key combination we have to populate the selection screen having select options for that key combinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : We could not able to create selection screens for each comination manually,we may have multiple pricing condition types, For each condition type we have multiple key comobinations, Based on selecting the key combination, we need to populate selection screen.&lt;/P&gt;&lt;P&gt;I know the logic for getting key combination fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I JUST WANT dynamic logic for displaying the selection screeen(SELECT-OPTIONS) based on that fields selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 04:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamic-selection-screen-based-on-key-combinations/m-p/3612567#M870360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T04:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Dynamic selection Screen based on Key combinations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamic-selection-screen-based-on-key-combinations/m-p/3612568#M870361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sanjana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Below is Function for a Dynamic Selection Screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FUNCTION zstan_selections.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(TABNAME) LIKE  DD02L-TABNAME DEFAULT 'ZSCARE'&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(DS_CLAUSES) TYPE  RSDS_WHERE&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      TABLE_NOT_VALID&lt;/P&gt;&lt;P&gt;*"      OTHER_ERROR&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA texpr TYPE rsds_texpr.&lt;/P&gt;&lt;P&gt;  DATA twhere TYPE rsds_twhere.&lt;/P&gt;&lt;P&gt;  DATA trange TYPE rsds_trange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA BEGIN OF qcat.                    "Selections View for&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE rsdsqcat.    "Free Selectoptions&lt;/P&gt;&lt;P&gt;  DATA END OF qcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA BEGIN OF tabs OCCURS 10.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE rsdstabs.&lt;/P&gt;&lt;P&gt;  DATA END   OF tabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA BEGIN OF fields OCCURS 10.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE rsdsfields.&lt;/P&gt;&lt;P&gt;  DATA END   OF fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA BEGIN OF efields OCCURS 10.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE rsdsfields.&lt;/P&gt;&lt;P&gt;  DATA END   OF efields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA selid LIKE rsdynsel-selid.&lt;/P&gt;&lt;P&gt;  DATA actnum LIKE sy-tfill.&lt;/P&gt;&lt;P&gt;  DATA title LIKE sy-title VALUE 'Selection Screen'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: maxnum LIKE sy-subrc VALUE '69'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR    tabs.&lt;/P&gt;&lt;P&gt;  tabs-prim_tab = tabname.&lt;/P&gt;&lt;P&gt;  COLLECT  tabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: position LIKE dd03l-position.&lt;/P&gt;&lt;P&gt;  DATA: keyflag  LIKE dd03l-keyflag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fields-tablename = tabname.&lt;/P&gt;&lt;P&gt;  fields-sign      = 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: step LIKE sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT fieldname keyflag position&lt;/P&gt;&lt;P&gt;    INTO (fields-fieldname, keyflag, position)&lt;/P&gt;&lt;P&gt;    FROM dd03l&lt;/P&gt;&lt;P&gt;    WHERE tabname = tabname&lt;/P&gt;&lt;P&gt;      AND fieldname NOT LIKE '.INCLU%'&lt;/P&gt;&lt;P&gt;      AND datatype NE 'CLNT'&lt;/P&gt;&lt;P&gt;    ORDER BY position.&lt;/P&gt;&lt;P&gt;    ADD 1 TO step.&lt;/P&gt;&lt;P&gt;    CHECK step LE maxnum.&lt;/P&gt;&lt;P&gt;    IF keyflag &amp;lt;&amp;gt; 'X'.&lt;/P&gt;&lt;P&gt;      efields = fields.&lt;/P&gt;&lt;P&gt;      APPEND efields.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    APPEND fields.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    RAISE table_not_valid.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FREE_SELECTIONS_INIT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      expressions              = texpr&lt;/P&gt;&lt;P&gt;      kind                     = 'F'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      selection_id             = selid&lt;/P&gt;&lt;P&gt;      expressions              = texpr&lt;/P&gt;&lt;P&gt;      where_clauses            = twhere&lt;/P&gt;&lt;P&gt;      field_ranges             = trange&lt;/P&gt;&lt;P&gt;      number_of_active_fields  = actnum&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      tables_tab               = tabs&lt;/P&gt;&lt;P&gt;      fields_tab               = fields&lt;/P&gt;&lt;P&gt;      fields_not_selected      = efields&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      fields_incomplete        = 01&lt;/P&gt;&lt;P&gt;      fields_no_join           = 02&lt;/P&gt;&lt;P&gt;      field_not_found          = 03&lt;/P&gt;&lt;P&gt;      no_tables                = 04&lt;/P&gt;&lt;P&gt;      table_not_found          = 05&lt;/P&gt;&lt;P&gt;      expression_not_supported = 06&lt;/P&gt;&lt;P&gt;      incorrect_expression     = 07&lt;/P&gt;&lt;P&gt;      illegal_kind             = 08&lt;/P&gt;&lt;P&gt;      area_not_found           = 09&lt;/P&gt;&lt;P&gt;      inconsistent_area        = 10&lt;/P&gt;&lt;P&gt;      kind_f_no_fields_left    = 11&lt;/P&gt;&lt;P&gt;      kind_f_no_fields         = 12&lt;/P&gt;&lt;P&gt;      too_many_fields          = 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FREE_SELECTIONS_DIALOG'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        selection_id            = selid&lt;/P&gt;&lt;P&gt;        title                   = title&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        where_clauses           = twhere&lt;/P&gt;&lt;P&gt;        expressions             = texpr&lt;/P&gt;&lt;P&gt;        field_ranges            = trange&lt;/P&gt;&lt;P&gt;        number_of_active_fields = actnum&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        fields_tab              = fields&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        internal_error          = 01&lt;/P&gt;&lt;P&gt;        no_action               = 02&lt;/P&gt;&lt;P&gt;        no_fields_selected      = 03&lt;/P&gt;&lt;P&gt;        no_tables_selected      = 04&lt;/P&gt;&lt;P&gt;        selid_not_found         = 05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      CLEAR ds_clauses.&lt;/P&gt;&lt;P&gt;      MOVE tabname TO ds_clauses-tablename.&lt;/P&gt;&lt;P&gt;      READ TABLE twhere WITH KEY ds_clauses-tablename INTO ds_clauses.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        RAISE other_error.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      RAISE other_error.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    RAISE other_error.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 04:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamic-selection-screen-based-on-key-combinations/m-p/3612568#M870361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T04:58:31Z</dc:date>
    </item>
  </channel>
</rss>

