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

selection screen

Hi,

my requirement is

stucture zstruct

in selection screen displayed all the fields using VRM

Once u select the field, based on selection field another selection screen is displayed, in that we have to use the select optiones for field

please help me ,

I look forward to your reply or call

thanks & Regards

Sekhar

Add a comment
10|10000 characters needed characters exceeded

Related questions

8 Answers

  • Posted on Mar 23, 2006 at 11:19 AM

    hi raja,

    your requirement is not clear at all.

    if you want to call a selection screen from another selection screen you can use CALL SELECTION-SCREEN statement.Kindly elobrate your requirement so that you will get a correct answer..

    Cheers,

    Abdul Hakim

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 23, 2006 at 11:20 AM

    Use At selection-screen Output.

    then use

    Loop at screen.

    screen-activate = '1'.

    Screen-visible = '1'.

    modify screen.

    endloop.

    it may be useful.

    regards

    vinod

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 23, 2006 at 11:23 AM

    HI raja

    you have to use CALL SELECTION-SCREEN in AT SELECTION-SCREEN OUTPUT event which will call your selection screen when you select a value in the listbox.

    regards

    kishore

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 23, 2006 at 11:26 AM
    TYPE-POOLS: vrm.
    TABLES spfli.
    TABLES: vbak.
    
    DATA: i_spfli TYPE spfli OCCURS 0 WITH HEADER LINE.
    DATA: name TYPE vrm_id,
          list TYPE vrm_values,
          value LIKE LINE OF list.
    
    PARAMETERS ps_parm LIKE spfli-carrid AS LISTBOX VISIBLE LENGTH 10
    USER-COMMAND fcodex.
    
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln MODIF ID mod.
    
    INITIALIZATION.
      LOOP AT i_spfli.
        value-key = i_spfli-carrid.
        value-text = i_spfli-carrid.
        APPEND value TO list.
      ENDLOOP.
    
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = list.
      DATA temp.
    
    AT SELECTION-SCREEN.
      IF sy-ucomm EQ 'FCODEX'.
        LOOP AT SCREEN.
          IF screen-group1 = 'MOD'.
            screen-invisible = '0'.
            MODIFY SCREEN.
            temp = sy-ucomm.
          ENDIF.
        ENDLOOP.
      ENDIF.
    
    
    AT SELECTION-SCREEN OUTPUT.
      IF temp IS INITIAL.
        LOOP AT SCREEN.
          IF screen-group1 = 'MOD'.
    <b>        screen-invisible = '1'.</b>
            MODIFY SCREEN.
            temp = 'X'.
          ENDIF.
        ENDLOOP.
      ENDIF.
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 23, 2006 at 11:37 AM

    Hi,

    In your selection screen, define screen elements using MODIF ID (group).

    then in the event AT SELECTION SCREEN OUTPUT

    write code like following sample code.

    AT SELECTION SCREEN OUTPUT.

    loop at screen.

    if screen-group1 = modifid1.

    screen-active = 1.

    else.

    screen-active = 0.

    endif.

    modify screen.

    endloop.

    hope it helps.

    Regards,

    Shashank

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 23, 2006 at 11:37 AM

    Hello Shekhar,

    I think you cannot call another selection screen from initial selection screen.

    Another option is to create your own screen and populate the values in ur own screen coming from initial selection screen.

    hope, this helps you.

    Regards,

    Tarun

    Award points if u found this helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 24, 2006 at 04:57 AM

    Hi Raja,

    Do u mean another screen or another selection screen block.

    Chk this code if this is your requirement:

    PARAMETERS show_all radiobutton group g1 USER-COMMAND flag.
    PARAMETERS no_show radiobutton group g1 default 'X'.
    
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p1(10) TYPE c,
    p2(10) TYPE c,
    p3(10) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    
    PARAMETERS: p4(10) TYPE c modif id bl2,
    p5(10) TYPE c modif id bl2,
    p6(10) TYPE c MODIF ID bl2.
    SELECTION-SCREEN END OF BLOCK b2.
    
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF show_all <> 'X' AND
    screen-group1 = 'BL2'.
    screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
    endloop.
    

    Regards,

    Anjali

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 25, 2006 at 01:52 AM

    Looks like u need dynamic selection screen. You probably need to write a SAP query on a Logical Database.

    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.