<?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: Range options in screen painter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-options-in-screen-painter/m-p/1218390#M135486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anupama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot have a Ranges UI element on a normal screen (using the screen painter). You &amp;lt;i&amp;gt;always have to have a Selection screen&amp;lt;/i&amp;gt; (which can be a subscreen).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PBO and PAI events would be written in the Program Instead of the Flow Logic in SE51.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO - AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;PAI - AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When there are multiple selection screens in your program, the logic is written depending on the screen number (CASE SY-DYNNR).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Mar 2006 10:26:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-24T10:26:55Z</dc:date>
    <item>
      <title>Range options in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-options-in-screen-painter/m-p/1218387#M135483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Developed an application in ABAP for employee entitlement. Most of the screens are designed in Screen painter as they has to be run for single Emp. psl no.&lt;/P&gt;&lt;P&gt;But screen for infosystems (2000) is designed using selection-screen as it can be run for single or multiple EMP PSL no.&lt;/P&gt;&lt;P&gt;This infosystems screen is called using " Call selection-screen command'.&lt;/P&gt;&lt;P&gt;Now whenever there is change in program the flow logic of screen 2000 is changed. Now my questions are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- How to call screen 2000 without affecting flow logic.&lt;/P&gt;&lt;P&gt;- How to design screen in screen painter for parameter ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help as no help is available&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;anu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 07:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-options-in-screen-painter/m-p/1218387#M135483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T07:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Range options in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-options-in-screen-painter/m-p/1218388#M135484</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;select options in screen check this code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_SCREEN                            .
DATA : BEGIN OF IT_DYNPFIELDS OCCURS 3.
        INCLUDE STRUCTURE DYNPREAD.
DATA : END OF IT_DYNPFIELDS.
DATA: TEST(10) TYPE C.
RANGES:  R_UNAME FOR SY-UNAME.
DATA:     V_USERNAME LIKE  SY-UNAME.
DATA : V_PROG LIKE D020S-PROG VALUE 'ZTEST_SCREEN',
       V_DNUM LIKE D020S-DNUM VALUE '0100'.
CALL SCREEN 100.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE STATUS_0100 OUTPUT.
  SET PF-STATUS 'TEST'.
*  SET TITLEBAR 'xxx'.

ENDMODULE.                 " STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_0100 INPUT.
  CASE SY-UCOMM.

    WHEN 'BACK'.
      LEAVE TO SCREEN 0.

  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  GET_CURSOR_USERNAME  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE GET_CURSOR_USERNAME INPUT.

  REFRESH IT_DYNPFIELDS.
  CLEAR   IT_DYNPFIELDS.

  MOVE 'V_USERNAME' TO IT_DYNPFIELDS-FIELDNAME.
  APPEND IT_DYNPFIELDS.
  CLEAR   IT_DYNPFIELDS.

  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      DYNAME               = V_PROG
      DYNUMB               = V_DNUM
      TRANSLATE_TO_UPPER   = 'X'
    TABLES
      DYNPFIELDS           = IT_DYNPFIELDS
    EXCEPTIONS
      INVALID_ABAPWORKAREA = 1
      INVALID_DYNPROFIELD  = 2
      INVALID_DYNPRONAME   = 3
      INVALID_DYNPRONUMMER = 4
      INVALID_REQUEST      = 5
      NO_FIELDDESCRIPTION  = 6
      INVALID_PARAMETER    = 7
      UNDEFIND_ERROR       = 8
      DOUBLE_CONVERSION    = 9
      STEPL_NOT_FOUND      = 10
      OTHERS               = 11.
  IF SY-SUBRC = 0.
    READ TABLE IT_DYNPFIELDS WITH KEY FIELDNAME = 'V_USERNAME'.
    IF SY-SUBRC = 0.
      V_USERNAME = IT_DYNPFIELDS-FIELDVALUE.
    ENDIF.
  ENDIF.
  PERFORM GET_MULTIPLE.


ENDMODULE.                 " GET_CURSOR_USERNAME  INPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  GET_MULTIPLE
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM GET_MULTIPLE .
* Dynamically holding Field name
  FIELD-SYMBOLS: &amp;lt;FST&amp;gt; TYPE STANDARD TABLE.
  IF  R_UNAME[] IS INITIAL.
    IF NOT V_USERNAME IS INITIAL.
      R_UNAME-SIGN = 'I'.
      R_UNAME-OPTION = 'EQ'.
      R_UNAME-LOW = V_USERNAME.
      APPEND R_UNAME.
      CLEAR  R_UNAME.
    ENDIF.
  ENDIF.

  ASSIGN R_UNAME[] TO &amp;lt;FST&amp;gt;.
  CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
    EXPORTING
      TITLE             = 'Select Multiple Value'(059)
      TEXT              = 'Finish Group'(058)
      SIGNED            = 'X'
      LOWER_CASE        = ' '
      NO_INTERVAL_CHECK = 'X'
      JUST_DISPLAY      = ' '
      JUST_INCL         = 'X'
    TABLES
      RANGE             = &amp;lt;FST&amp;gt;
    EXCEPTIONS
      NO_RANGE_TAB      = 1
      CANCELLED         = 2
      INTERNAL_ERROR    = 3
      OTHERS            = 4.

  IF SY-SUBRC = 0.
    READ TABLE R_UNAME INDEX 1.
    IF SY-SUBRC = 0.
      V_USERNAME = R_UNAME-LOW.
    ENDIF.
  ENDIF.

ENDFORM.                    " GET_MULTIPLE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Check this thread...&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="115056"&gt;&lt;/A&gt;&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>Fri, 24 Mar 2006 08:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-options-in-screen-painter/m-p/1218388#M135484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T08:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Range options in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-options-in-screen-painter/m-p/1218389#M135485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Vijay,&lt;/P&gt;&lt;P&gt;Thanks a lot for such prompt reply. Now my problem is almost solved.&lt;/P&gt;&lt;P&gt;But still would like to know is there any way around in calling slection screen so that the Flow logic of screen doesn't regenerate with the change of program coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody has any idea on this it would a great learning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;anu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 10:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-options-in-screen-painter/m-p/1218389#M135485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T10:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Range options in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-options-in-screen-painter/m-p/1218390#M135486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anupama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot have a Ranges UI element on a normal screen (using the screen painter). You &amp;lt;i&amp;gt;always have to have a Selection screen&amp;lt;/i&amp;gt; (which can be a subscreen).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PBO and PAI events would be written in the Program Instead of the Flow Logic in SE51.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO - AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;PAI - AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When there are multiple selection screens in your program, the logic is written depending on the screen number (CASE SY-DYNNR).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 10:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-options-in-screen-painter/m-p/1218390#M135486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T10:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Range options in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-options-in-screen-painter/m-p/1218391#M135487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, Poornanad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is fully solved just by providing "Case sy-dynnr" in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 11:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-options-in-screen-painter/m-p/1218391#M135487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T11:39:01Z</dc:date>
    </item>
  </channel>
</rss>

