Application Development and Automation 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: 
Read only

Selection screen with Muliple tabs

IanStubbings
Active Participant
0 Likes
825

Morning All

I have a selection screen with 3 tabs depicting 3 separate selection screens in effect. There are certain fields (parameters and select options) that I would like to keep synchronized between the 3 screens. Is there a neat way of doing this?

Cheers

Ian

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
773

hi,

instead of assigning each parameter separately u can use SELECTION-SCREEN INCLUDE option by declaring one parameter or block globally in one screen and include in other screen also so that they can automatically synchronized .

SELECTION-SCREEN INCLUDE PARAMETERS p.

SELECTION-SCREEN INCLUDE SELECT-OPTIONS sel.

SELECTION-SCREEN INCLUDE COMMENT fmt name.

SELECTION-SCREEN INCLUDE PUSHBUTTON fmt name.

SELECTION-SCREEN INCLUDE BLOCKS block

Morning All

I have a selection screen with 3 tabs depicting 3 separate selection screens in effect. There are certain fields (parameters and select options) that I would like to keep synchronized between the 3 screens. Is there a neat way of doing this?

Cheers

Ian

5 REPLIES 5
Read only

Former Member
0 Likes
773

Hi Ian,

I don't quite understand as to what "synchronisation" means here.

Though anything you would want to do on a Selection Screen, can be handled in the event

<b>AT SELECTION-SCREEN OUTPUT.</b>

This event acts like PBO for the selection screen.

For example, if you have parameter, P1 on Tab 1 and parameter P2 on Tab2, then to equate (assuming that it is "synchronisation"), you could code.

AT SELECTION-SCREEN OUTPUT.
   P2 = P1.

Enter the value "10" in P1 on Tab1, click Tab2, P2 will display "10".

You could control this using conditions on flag variables.

Hope this helps.

Best Regards,

Sanyam

Message was edited by: Sanyam Kapur (correction to code)

Read only

Former Member
0 Likes
773

Hello Ian,

why don't you just take the fields out of the tabs if there are in all the tabs?

Read only

Former Member
0 Likes
773

Hi,

You want some fields to be the same for all tab, you can use the Roy's proposal.

SELECTION-SCREEN: BEGIN OF TABBED BLOCK mytab FOR 16 LINES,

TAB (20) button1 USER-COMMAND push1,

TAB (20) button2 USER-COMMAND push2,

TAB (20) button4 USER-COMMAND push4,

END OF BLOCK mytab.

selection-screen begin of block block03 with frame title text-TT3.

parameter ypayway(20) obligatory lower case default text-pay.

selection-screen end of block block03.

Svetlin

Read only

Former Member
0 Likes
774

hi,

instead of assigning each parameter separately u can use SELECTION-SCREEN INCLUDE option by declaring one parameter or block globally in one screen and include in other screen also so that they can automatically synchronized .

SELECTION-SCREEN INCLUDE PARAMETERS p.

SELECTION-SCREEN INCLUDE SELECT-OPTIONS sel.

SELECTION-SCREEN INCLUDE COMMENT fmt name.

SELECTION-SCREEN INCLUDE PUSHBUTTON fmt name.

SELECTION-SCREEN INCLUDE BLOCKS block

Read only

0 Likes
773

Thank you all especially sa ka who solved it. I have now removed a substantial amount of code from my program and it looks far neater and easier to manage. Shame I didn't read the selection screen documentation when first attempting the tabbed selection screen!

Cheers

Ian