<?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: Auto generated selection screen in Modulepool program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generated-selection-screen-in-modulepool-program/m-p/2755677#M641212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please check following program, and its attributes and flow logic.&lt;/P&gt;&lt;P&gt;How to design such types of program can u please guide step by step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPBC410AAAS_FINAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2007 11:18:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-11T11:18:58Z</dc:date>
    <item>
      <title>Auto generated selection screen in Modulepool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generated-selection-screen-in-modulepool-program/m-p/2755675#M641210</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;&lt;/P&gt;&lt;P&gt;How to develop/Desing auto-generated screen for accepting values from the user as criteria for database selections while running a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls. guide me.&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>Tue, 11 Sep 2007 10:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generated-selection-screen-in-modulepool-program/m-p/2755675#M641210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T10:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Auto generated selection screen in Modulepool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generated-selection-screen-in-modulepool-program/m-p/2755676#M641211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this - two FMS- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM extended_selection.

  DATA : t_dyn    LIKE rsdsfields OCCURS 0 WITH HEADER LINE.

*Work Areas.
  DATA : wa_range  TYPE LINE OF rsds_trange,
         wa_ranget TYPE rsds_frange_t,
         wa_line   TYPE LINE OF rsds_frange_t,
         t_selopt  TYPE rsds_selopt_t.

*Fields to be Put on the dynamic selection screen
  t_dyn-tablename = 'KNA1'.
  t_dyn-fieldname = 'KUNNR'.
  APPEND t_dyn.
  CLEAR  t_dyn.

  t_dyn-tablename = 'CEPC'.
  t_dyn-fieldname = 'PRCTR'.
  APPEND t_dyn.
  CLEAR  t_dyn.

  IF ( ( g_sel IS INITIAL ) OR ( t_ranges[] IS INITIAL ) ).
*Initialize Free Selection Mode.
    CALL FUNCTION 'FREE_SELECTIONS_INIT'
         EXPORTING
              kind                     = 'F'
         IMPORTING
              selection_id             = g_sel
         TABLES
              fields_tab               = t_dyn
         EXCEPTIONS
              fields_incomplete        = 1
              fields_no_join           = 2
              field_not_found          = 3
              no_tables                = 4
              table_not_found          = 5
              expression_not_supported = 6
              incorrect_expression     = 7
              illegal_kind             = 8
              area_not_found           = 9
              inconsistent_area        = 10
              kind_f_no_fields_left    = 11
              kind_f_no_fields         = 12
              too_many_fields          = 13
              dup_field                = 14
              field_no_type            = 15
              field_ill_type           = 16
              dup_event_field          = 17
              node_not_in_ldb          = 18
              area_no_field            = 19
              OTHERS                   = 20.

    IF sy-subrc NE 0.
      MESSAGE e717(db).
    ENDIF.
  ENDIF.

*Dialog for Selection.
  REFRESH t_ranges.
  CALL FUNCTION 'FREE_SELECTIONS_DIALOG'
       EXPORTING
            selection_id    = g_sel
            title           = 'Extended Selection'(s12)
            as_window       = true
            start_row       = 5
            start_col       = 20
            tree_visible    = space
       IMPORTING
            field_ranges    = t_ranges
       TABLES
            fields_tab      = t_dyn
       EXCEPTIONS
            internal_error  = 1
            no_action       = 2
            selid_not_found = 3
            illegal_status  = 4
            OTHERS          = 5.
  IF sy-subrc NE 0.
    CHECK sy-subrc NE 2.
    MESSAGE e717(db).
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create a dynamic selection screen for you. For more information u can refer to the documentations of those function mdoules. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it solves ur prob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 11:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generated-selection-screen-in-modulepool-program/m-p/2755676#M641211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T11:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Auto generated selection screen in Modulepool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generated-selection-screen-in-modulepool-program/m-p/2755677#M641212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please check following program, and its attributes and flow logic.&lt;/P&gt;&lt;P&gt;How to design such types of program can u please guide step by step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPBC410AAAS_FINAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 11:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generated-selection-screen-in-modulepool-program/m-p/2755677#M641212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T11:18:58Z</dc:date>
    </item>
  </channel>
</rss>

