‎2008 Jul 03 5:41 PM
hi frnds,
i have used a tabstip in my program? Only 2 tabs can be visible when we drap and drop the tabstrip..
How to create tabs in tabstrip??
And i want to use a select option in my screen..how can i create a select option in dialog programming?
‎2008 Jul 03 5:44 PM
Hi,
For tabstrips check the demo programs..
DEMO_DYNPRO_TABSTRIP_LOCAL
DEMO_DYNPRO_TABSTRIP_SERVER
For selection option in dialog programming..Use the FM COMPLEX_SELECTIONS_DIALOG...Search in SDN with the keyword COMPLEX_SELECTIONS_DIALOG.. you will get a sample code..
THanks
Naren
‎2008 Jul 03 5:44 PM
Friend before posting any kind of query please try to utilise the search tab , u can findout solution in the forum itself.
YOu can have a look at the following programs for sample coding .
DEMO_DYNPRO_TABSTRIP_LOCAL Tabstrip Control - Scrolling at SAPgui
DEMO_DYNPRO_TABSTRIP_SERVER Tabstrip Control - Scrolling at Application Server
DEMO_SEL_SCREEN_IN_TABSTRIP Selection Screen as Subscreen in Tabstrip
DEMO_SEL_SCREEN_WITH_TABSTRIP Selection Screen with Tabstrips
Open these programs in se80 to see how the screen design is done.
************
1. define a subscreen area in your screen.
2. define required select-option in you program as follows
SELECTION-SCREEN BEGIN OF SCREEN 1100 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-010.
SELECT-OPTIONS : S_MATNR FOR MARA-MATNR.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN END OF SCREEN 1100.
3. Load this defined subscreen in you subscreen area define in step 1
*******************
You can do this using Subscreen.
define this scubscreen in top include.
selection-screen : begin of screen 100 as subscreen.
select-option : kunnr for kna1-kunnr.
selection-screen : end of screen 100.
-
in screen 200 where this selection screen appears, create a subscreen area 'SSA'.
Process on output. "200 screen.
call subscreen SSA including sy-repid '100'.
other modules
Process on input. "200 screen.
call subscreen SSA.
other modules
-
now you can access kunnr like other screen 200 objects.
‎2008 Jul 03 5:49 PM
HI Vansri,
We cannot create select-options in dialog programming... But in substitution to that you can go for RANGES.
the declaration would be in this way....
TABLES:
mara.
RANGES matnr FOR mara-matnr.
Now matnr is like internal table with header line....
these ranges have also the same structure like SELECT-OPTIONS... like SIGN, OPTION,LOW and HIGH...
fill these values and carry on your program...
Hope this would solve your issue..
Regards
Narin Nandivada
‎2008 Jul 04 6:53 AM
You can have a select-options in a subscreen of dialog program ... there are examples on SDN already with this in e.g. [module pool : design a screen with select-options with ranges |; and others... basically you define you select-options as normal but wrap something like "SELECTION-SCREEN BEGIN OF SCREEN nnnn AS SUBSCREEN. / SELECTION-SCREEN END OF SCREEN nnnn." around it, then refer to screen number nnnn as your subscreen in the dynpro screen flow.
Alternatively you can hand-craft the same functionality, as we did before subscreens... after all when you generate a report with "select-options" in it, SAP builts a dynpro (typically 1000) from the parameters you provide it with.
Jonathan
‎2008 Jul 04 9:15 AM
‎2008 Jul 04 11:42 AM
hi,
You can increase your tabs from two( default is 2 tabs).
for that, double click on tabstrip control >>> below in attributes, changes the number of tab title from 2 to any number you want.
for select-options u can use 'Ranges'.