Skip to Content
avatar image
Former Member

2 Selection Screen in one program

Dear Experts,

I have a program in which there are 2 selection screens and there are 2 different tcodes for it. First one is Selection screen 1000 and other one is Selection Screen 2000. The problem I am facing is that the Text Elements (Selection texts, Text Symbols) are not working for Selection Screen 2000. However, they are just working fine for Selection Screen 1000. I think 1000 is default selection screen and that#s why text elements only work for that. Can anybody tell how can i define Text Elements for second selection screen 2000.

Thanks Very Much

Add comment
10|10000 characters needed characters exceeded

  • There should be no issue of displaying selection texts correctly in all selection screens.

    Could you paste the code of selection screens (the parts which are "not working") + selection texts + screen captures of screens, and tell us what means "are not working" exactly, please ?

    Note: your assumption is wrong: "I think 1000 is default selection screen and that's why text elements only work for that"

  • Get RSS Feed

3 Answers

  • May 30, 2017 at 07:37 AM

    Use a single selection screen, give your parameters and select-options etc Modification ID's and in the At selection-screen Output event set the Active state of teh fields accordingly.

    Add comment
    10|10000 characters needed characters exceeded

  • May 30, 2017 at 08:26 AM

    If you want two selection screens, that are quite different, then create two programs. Put the shared functionality into a class, set of classes, or function modules.

    It is always a good idea to separate the front end from the logic.

    Add comment
    10|10000 characters needed characters exceeded

  • May 30, 2017 at 08:34 AM

    Follow the very sensible advice from Matthew.

    Also, number your selection screens with 9nnn. SAP lets you create screens with any number and it usually works. But I've seen some weird issues that went away when I changed screen numbers to the customer namespace 9.

    Add comment
    10|10000 characters needed characters exceeded