Skip to Content
author's profile photo Former Member
Former Member

SELECT-OPTION IN SCREEN (SCREEN-PAINTER)

I want to put a select option in a screen type screen painter

Using this the user could enter a ranger of personal numbers.

Can any one give me a clue on how to do that ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Feb 11, 2005 at 01:43 PM

    Yep, the easiest way is to put a "selection-screen" inside of a subscreen on your dynpro.

    Here is a sample program.

    
    report zrich_0006 .
    
    tables: mara.
    
    * Custom Selection Screen 1010
    selection-screen begin of screen 1010 as subscreen.
    selection-screen begin of block b1 with frame title text-001.
    parameters: p_rad1 radiobutton group grp1 default 'X',
                p_rad2 radiobutton group grp1,
                p_rad3 radiobutton group grp1.
    select-options: s_matnr for  mara-matnr,
                    s_matkl for  mara-matkl,
                    s_mtart for  mara-mtart.
    selection-screen end of block b1.
    selection-screen end of screen 1010.
    
    
    start-of-selection.
    
      call screen 100.
    *&---------------------------------------------------------------------*
    *&      Module  STATUS_0100  OUTPUT
    *&---------------------------------------------------------------------*
    module status_0100 output.
    *  SET PF-STATUS 'xxxxxxxx'.
    *  SET TITLEBAR 'xxx'.
    
    endmodule.
    *&---------------------------------------------------------------------*
    *&      Module  USER_COMMAND_0100  INPUT
    *&---------------------------------------------------------------------*
    module user_command_0100 input.
    
    endmodule.
    
    
    * Screen screen 100 with a subscreen area called "subscreen_1010"
    * Screen Flow Logic follows
    
    *process before output.
    *
    *  module status_0100.
    *
    *  call subscreen subscreen_1010 including sy-repid '1010'.
    *
    *process after input.
    *
    *  call subscreen subscreen_1010 .
    *
    *  module user_command_0100.
    
    

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Ok

      the function module is a good solution! What I'm tring to find is a standard solution! That even SAP is using.

      The control I want to put is a table control. So it is existing in 4.0.

      I do not want a full SELECTION-SCREEN.

      That's why I thing the FM module is a good solution but I'm not convincec that sap is doin the same!

      I'll check but all of these options are good.

      The best for me is the call subscreen but infortunatly it is not working on 40

      Any further information is welcomed!

      S

  • author's profile photo Former Member
    Former Member
    Posted on Feb 14, 2005 at 04:02 PM

    Hi Stephan ,

    you can try this below option..

    Use select-options for the variable which u require...

    Activate the program...

    Now your Selection-screen would get generated...

    Now double-click upon the variable..U will be taken to screen logic of the selection-screen...

    Just (without disturbing any of the modules that are concerned with the select-options) place all the controls as you wish and proceed with your program as usual..

    you need not use call Screen <scrNo>..

    Instead do your operation in 'AT-SELECTION-SCREEN' event Block...

    Reply if you find this as a Good solution

    How is it??!!!

    Regards

    Immanuel

    Immanuel

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 14, 2005 at 04:09 PM

    Hi Stephan...

    You can do as i said before...

    or just generate the selection-screen and look after the thing that is in it..follow that in the screen which you are creating... 😊

    Regards

    Immanuel

    Hi Stephan ...

    Did you find the above suggestion useful??

    Message was edited by: Immanuel Gnana Prakasham Daniel

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.