Skip to Content
0

2 Selection Screen in one program

May 30, 2017 at 07:32 AM

132

avatar image
Former Member

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

10 |10000 characters needed characters left 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"

0
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Richard Harper May 30, 2017 at 07:37 AM
1

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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

0
Matthew Billingham
May 30, 2017 at 08:26 AM
1

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.

Share
10 |10000 characters needed characters left characters exceeded
Mike Pokraka May 30, 2017 at 08:34 AM
1

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.

Share
10 |10000 characters needed characters left characters exceeded