2005 Sep 01 11:34 AM
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
2005 Sep 01 12:38 PM
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
2005 Sep 01 12:02 PM
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)
2005 Sep 01 12:16 PM
Hello Ian,
why don't you just take the fields out of the tabs if there are in all the tabs?
2005 Sep 01 12:27 PM
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
2005 Sep 01 12:38 PM
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
2005 Sep 01 1:29 PM
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
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |