<?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 Bug :: Drop Down List. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519780#M1424928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  ONE
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM one.

  DATA: name  TYPE vrm_id,
      list  TYPE vrm_values,
      value LIKE LINE OF list.


  name = 'ONE'.

  value-key = '1 ::'.
  value-text = 'Stock Report'.
  APPEND value TO list.
  CLEAR value.

  value-key = '2 ::'.
  value-text = 'Open Sales Order Report'.
  APPEND value TO list.
  CLEAR value.

  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id              = name
      values          = list
    EXCEPTIONS
      id_illegal_name = 1
      OTHERS          = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDFORM.                    "ONE


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  TWO
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM two.

  DATA: name  TYPE vrm_id,
      list  TYPE vrm_values,
      value LIKE LINE OF list.


  name = 'TWO'.

  value-key = '1 ::'.
  value-text = 'AS Stock Report'.
  APPEND value TO list.
  CLEAR value.

  value-key = '2 ::'.
  value-text = 'AS Open Sales Order Report'.
  APPEND value TO list.
  clear value.



  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id              = name
      values          = list
    EXCEPTIONS
      id_illegal_name = 1
      OTHERS          = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDFORM.                    "TWO&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Dec 2009 13:21:52 GMT</pubDate>
    <dc:creator>adeel_sarwar</dc:creator>
    <dc:date>2009-12-18T13:21:52Z</dc:date>
    <item>
      <title>Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519777#M1424925</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 have created the following ABAP Report. I am new at this and I have just hit an issue. I have two drop down boxes linked to transactions. Now when I select a report from Drop Down 1 and click it it goes to the transaction. Now if I also have a selection in Drop Down 2 it actually runs both transactions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adeel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT TEST.

*TYPE POOLS DECLARATIONS
TYPE-POOLS: vrm.

TABLES: sscrfields.

*SELECTION SCREEN FIELDS
*DATA: c(20) TYPE c.


***********SELECTION-SCREENS**********************
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-tt1.

PARAMETERS: one(20) AS LISTBOX VISIBLE LENGTH 40.
PARAMETERS: two(20) AS LISTBOX VISIBLE LENGTH 40.
* ADD Afer 40 to show text "DEFAULT 'PLEASE SELECT'"

SELECTION-SCREEN SKIP.

SELECTION-SCREEN END OF BLOCK blk1.



*********DROP DOWN SELECTION WITH DESCP******************
AT SELECTION-SCREEN OUTPUT.

PERFORM ONE.
PERFORM TWO.


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  ONE
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM one.

  DATA: name  TYPE vrm_id,
      list  TYPE vrm_values,
      value LIKE LINE OF list.


  name = 'ONE'.

  value-key = '1 ::'.
  value-text = 'Stock Report'.
  APPEND value TO list.
  CLEAR value.

  value-key = '2 ::'.
  value-text = 'Open Sales Order Report'.
  APPEND value TO list.
  CLEAR value.

  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id              = name
      values          = list
    EXCEPTIONS
      id_illegal_name = 1
      OTHERS          = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDFORM.                    "ONE


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  TWO
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM two.

  DATA: name  TYPE vrm_id,
      list  TYPE vrm_values,
      value LIKE LINE OF list.


  name = 'TWO'.

  value-key = '1 ::'.
  value-text = 'AS Stock Report'.
  APPEND value TO list.
  CLEAR value.

  value-key = '2 ::'.
  value-text = 'AS Open Sales Order Report'.
  APPEND value TO list.
  clear value.



  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id              = name
      values          = list
    EXCEPTIONS
      id_illegal_name = 1
      OTHERS          = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDFORM.                    "TWO


***********LINKS TO ABOVE SELECTION**********************
START-OF-SELECTION.

IF ONE = '&amp;amp;IC1'.
  CASE one.
    WHEN '1 ::'.
      CALL TRANSACTION 'MB5L' AND SKIP FIRST SCREEN.
    WHEN '2 ::'.
      CALL TRANSACTION 'ZSOD'.
  ENDCASE.
ENDIF.

IF TWO = '&amp;amp;IC1'.
  CASE two.
    WHEN '1 ::'.
      CALL TRANSACTION 'MB52' AND SKIP FIRST SCREEN.
    WHEN '2 ::'.
      CALL TRANSACTION 'ZSOD'.
  ENDCASE.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 12:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519777#M1424925</guid>
      <dc:creator>adeel_sarwar</dc:creator>
      <dc:date>2009-12-18T12:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519778#M1424926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please Format your code.&lt;/P&gt;&lt;P&gt;Its not in a readable form&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 13:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519778#M1424926</guid>
      <dc:creator>former_member209217</dc:creator>
      <dc:date>2009-12-18T13:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519779#M1424927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cant seem to Put it in the Code brackets for watever reason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT z_exec_cockpit.

*TYPE POOLS DECLARATIONS
TYPE-POOLS: vrm.

TABLES: sscrfields.

*SELECTION SCREEN FIELDS
*DATA: c(20) TYPE c.


***********SELECTION-SCREENS**********************
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-tt1.

PARAMETERS: one(20) AS LISTBOX VISIBLE LENGTH 40.
PARAMETERS: two(20) AS LISTBOX VISIBLE LENGTH 40.
* ADD Afer 40 to show text "DEFAULT 'PLEASE SELECT'"

SELECTION-SCREEN SKIP.

SELECTION-SCREEN END OF BLOCK blk1.



*********DROP DOWN SELECTION WITH DESCP******************
AT SELECTION-SCREEN OUTPUT.

PERFORM ONE.
PERFORM TWO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Adeel Sarwar on Dec 18, 2009 1:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 13:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519779#M1424927</guid>
      <dc:creator>adeel_sarwar</dc:creator>
      <dc:date>2009-12-18T13:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519780#M1424928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  ONE
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM one.

  DATA: name  TYPE vrm_id,
      list  TYPE vrm_values,
      value LIKE LINE OF list.


  name = 'ONE'.

  value-key = '1 ::'.
  value-text = 'Stock Report'.
  APPEND value TO list.
  CLEAR value.

  value-key = '2 ::'.
  value-text = 'Open Sales Order Report'.
  APPEND value TO list.
  CLEAR value.

  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id              = name
      values          = list
    EXCEPTIONS
      id_illegal_name = 1
      OTHERS          = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDFORM.                    "ONE


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  TWO
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM two.

  DATA: name  TYPE vrm_id,
      list  TYPE vrm_values,
      value LIKE LINE OF list.


  name = 'TWO'.

  value-key = '1 ::'.
  value-text = 'AS Stock Report'.
  APPEND value TO list.
  CLEAR value.

  value-key = '2 ::'.
  value-text = 'AS Open Sales Order Report'.
  APPEND value TO list.
  clear value.



  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id              = name
      values          = list
    EXCEPTIONS
      id_illegal_name = 1
      OTHERS          = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDFORM.                    "TWO&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 13:21:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519780#M1424928</guid>
      <dc:creator>adeel_sarwar</dc:creator>
      <dc:date>2009-12-18T13:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519781#M1424929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;***********LINKS TO ABOVE SELECTION**********************
START-OF-SELECTION.


  CASE one.
    WHEN '1 ::'.
      CALL TRANSACTION 'MB5L' AND SKIP FIRST SCREEN.
    WHEN '2 ::'.
      CALL TRANSACTION 'ZSOD'.
  ENDCASE.



  CASE two.
    WHEN '1 ::'.
      CALL TRANSACTION 'MB52' AND SKIP FIRST SCREEN.
    WHEN '2 ::'.
      CALL TRANSACTION 'ZSOD'.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 13:22:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519781#M1424929</guid>
      <dc:creator>adeel_sarwar</dc:creator>
      <dc:date>2009-12-18T13:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519782#M1424930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that you have posted the code cleanly, tell us what exactly is your problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 13:30:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519782#M1424930</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-12-18T13:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519783#M1424931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Now try this one,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*TYPE POOLS DECLARATIONS&lt;/P&gt;&lt;P&gt;TYPE-POOLS: vrm.&lt;/P&gt;&lt;P&gt;TABLES: sscrfields.&lt;/P&gt;&lt;P&gt;*SELECTION SCREEN FIELDS *&lt;/P&gt;&lt;P&gt;DATA: c(20) TYPE c.&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;SELECTION-SCREENS&lt;/STRONG&gt;*********************&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-tt1.&lt;/P&gt;&lt;P&gt;PARAMETERS: one(20) AS LISTBOX VISIBLE LENGTH 40.&lt;/P&gt;&lt;P&gt;PARAMETERS: two(20) AS LISTBOX VISIBLE LENGTH 40.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ADD Afer 40 to show text "DEFAULT 'PLEASE SELECT'"&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECTION-SCREEN SKIP. SELECTION-SCREEN END OF BLOCK blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********&lt;STRONG&gt;DROP DOWN SELECTION WITH DESCP&lt;/STRONG&gt;*****************&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  PERFORM one.&lt;/P&gt;&lt;P&gt;  PERFORM two.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form ONE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text &lt;STRONG&gt;----------------------------------------------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FORM one.&lt;/P&gt;&lt;P&gt;  DATA: name TYPE vrm_id,&lt;/P&gt;&lt;P&gt;        list TYPE vrm_values,&lt;/P&gt;&lt;P&gt;        value LIKE LINE OF list.&lt;/P&gt;&lt;P&gt;  name = 'ONE'.&lt;/P&gt;&lt;P&gt;  value-key = '1'.&lt;/P&gt;&lt;P&gt;  value-text = 'Stock Report'.&lt;/P&gt;&lt;P&gt;  APPEND value TO list.&lt;/P&gt;&lt;P&gt;  CLEAR value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = '2'.&lt;/P&gt;&lt;P&gt;  value-text = 'Open Sales Order Report'.&lt;/P&gt;&lt;P&gt;  APPEND value TO list.&lt;/P&gt;&lt;P&gt;  CLEAR value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      id              = name&lt;/P&gt;&lt;P&gt;      values          = list&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      id_illegal_name = 1&lt;/P&gt;&lt;P&gt;      OTHERS          = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM. "ONE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form TWO&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text &lt;STRONG&gt;----------------------------------------------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FORM two.&lt;/P&gt;&lt;P&gt;  DATA: name TYPE vrm_id,&lt;/P&gt;&lt;P&gt;        list TYPE vrm_values,&lt;/P&gt;&lt;P&gt;        value LIKE LINE OF list.&lt;/P&gt;&lt;P&gt;  name = 'TWO'.&lt;/P&gt;&lt;P&gt;  value-key = '1'.&lt;/P&gt;&lt;P&gt;  value-text = 'AS Stock Report'.&lt;/P&gt;&lt;P&gt;  APPEND value TO list.&lt;/P&gt;&lt;P&gt;  CLEAR value.&lt;/P&gt;&lt;P&gt;  value-key = '2'.&lt;/P&gt;&lt;P&gt;  value-text = 'AS Open Sales Order Report'.&lt;/P&gt;&lt;P&gt;  APPEND value TO list.&lt;/P&gt;&lt;P&gt;  CLEAR value.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      id              = name&lt;/P&gt;&lt;P&gt;      values          = list&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      id_illegal_name = 1&lt;/P&gt;&lt;P&gt;      OTHERS          = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.      "TWO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;LINKS TO ABOVE SELECTION&lt;/STRONG&gt;*********************&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE one.&lt;/P&gt;&lt;P&gt;    WHEN '1'.&lt;/P&gt;&lt;P&gt;      CALL TRANSACTION 'MB5L'AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;    WHEN '2'.&lt;/P&gt;&lt;P&gt;      CALL TRANSACTION 'MM01'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE two.&lt;/P&gt;&lt;P&gt;    WHEN '1'.&lt;/P&gt;&lt;P&gt;      CALL TRANSACTION 'MB52' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;    WHEN '2'.&lt;/P&gt;&lt;P&gt;      CALL TRANSACTION 'MM01'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="19" type="ul"&gt;&lt;P&gt;Give the 1:: as 1 and 2:: as 2 it will work...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SeethaRamaiah Bharani on Dec 18, 2009 8:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 14:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519783#M1424931</guid>
      <dc:creator>BH2408</dc:creator>
      <dc:date>2009-12-18T14:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519784#M1424932</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;Nope still doesn't work, i tried this before aswell.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 17:14:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519784#M1424932</guid>
      <dc:creator>adeel_sarwar</dc:creator>
      <dc:date>2009-12-18T17:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519785#M1424933</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;Your code seems to be ok, after running the transactions for parameter ONE your report should call the transaction for paramter TWO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 17:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519785#M1424933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-18T17:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519786#M1424934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Code works fine the issue is if you try the below you will see the same problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) When you run the program and in the first drop down select stock and click on run the program will appear.&lt;/P&gt;&lt;P&gt;2) Click Back and the selection screen will appear&lt;/P&gt;&lt;P&gt;3) In Drop down two select AS Stock and click RUN&lt;/P&gt;&lt;P&gt;4) Now you will see it has actually ran dropdown one then when you click back it will run AS Stock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that explains the bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADeel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 18:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519786#M1424934</guid>
      <dc:creator>adeel_sarwar</dc:creator>
      <dc:date>2009-12-18T18:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519787#M1424935</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;That's as the flow of your report is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CASE one.  "&amp;lt;--------------- POINT A
    WHEN '1 ::'.
      CALL TRANSACTION 'MB5L' AND SKIP FIRST SCREEN.
    WHEN '2 ::'.
      CALL TRANSACTION 'ZSOD'.
  ENDCASE.



  CASE two. "&amp;lt;--------------- POINT B
    WHEN '1 ::'.
      CALL TRANSACTION 'MB52' AND SKIP FIRST SCREEN.
    WHEN '2 ::'.
      CALL TRANSACTION 'ZSOD'.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the both parameters are filled, the report will call the transactions in point A and point B, if you need your report calls only one transaction u should check only one parametes is filled:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.

  IF NOT ONE IS INITIAL AND
     NOT TWO IS INITIAL.
    MESSAGE E208(00) with 'Select 1 option only'.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 18:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519787#M1424935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-18T18:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519788#M1424936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help again. What i really wamt is that which ever selection is selected it should just run that not the other. Example being if i have selected Case one (When you select it it becomes yellow) then it should just run that regardless of an entry in Case two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't there a statament in abap to say what ever box user selects on run then it should restrict the entries to that only?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 18:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519788#M1424936</guid>
      <dc:creator>adeel_sarwar</dc:creator>
      <dc:date>2009-12-18T18:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519789#M1424937</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;You need to check which parameters are filled in the selection-screen, you can only avoid both parameters are filled simultaneously: that means if the ONE is filled, TWO has to be empty and if TWO has filled, ONE is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 18:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519789#M1424937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-18T18:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Bug :: Drop Down List.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519790#M1424938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One option is you can use USER-COMMAND addition on those two drop down lists and can set a flag depending on the ucomm of the drop down list selected. Then in the start-of-selection you can use that flag to determine which of the switch cases to process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 20:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-bug-drop-down-list/m-p/6519790#M1424938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-18T20:34:12Z</dc:date>
    </item>
  </channel>
</rss>

