Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

2 Selection Screen in one program

Former Member
0 Kudos

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

6 REPLIES 6

former_member182550
Active Contributor

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.

0 Kudos

Thanks for your reply. Richard can you provide a sample code for this?

0 Kudos

If you want sample code - search for it. There's plenty available.

matt
Active Contributor

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.

pokrakam
Active Contributor

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.

Sandra_Rossi
Active Contributor
0 Kudos

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"