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

tabstrips

Former Member
0 Likes
1,271

hi,

In selection screen i am using 2 tabstrips.(already created)

in 1st tabstrip - two radiobuttons

in 2nd tabstrip - two parameters.

my problem is:

in 1st tabstrip if i select any radiobutton n execute

the 2nd tabstrip should appear

kindly help with this issue.

thankx n regards

rahul...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,245

Do u want to run your second tab strip in background. That is after executing the 1st strip it should go to the second tab strip. Is it you want ???

Regards

Pavan

15 REPLIES 15
Read only

Former Member
0 Likes
1,245

hi,

follow this link it contains information regarding how to create tabstrip control over selection screen and sample program.

http://help.sap.com/saphelp_nw04/helpdata/en/00/deb23789e95378e10000009b38f8cf/content.htm

regards,

Ashok Reddy

Read only

0 Likes
1,245

hi

thanx for response.

but still my problem is unsolved.

dear ashok

the link which u gave me gives the details of creating tabstrips,

which i know.

dear annesh

in the sample program u have created two screens but my question is different.

dear guys,

i dont have problems in creating tabstrips.

i have already created a selection screen containing two tabstrips.

as i said earlier

in 1st tabstrip - two radiobuttons

in 2nd tabstrip - two parameters for input.

my problem is:

in 1st tabstrip if i select any radiobutton n execute

the 2nd tabstrip should appear where input will be given and executed.

regards

rahul

Read only

Former Member
0 Likes
1,245

Hi Rahul,

Here is some sample code which i developed for a requirement as yours. Modify according to your requirement.

SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-t03 .

PARAMETERS: rad_blk1 RADIOBUTTON GROUP rad1 USER-COMMAND rad DEFAULT 'X' .
PARAMETERS: rad_blk2 RADIOBUTTON GROUP rad1.

SELECTION-SCREEN: END OF BLOCK b1.
SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-t01.
PARAMETERS: chk_blk1 AS CHECKBOX MODIF ID ms2 USER-COMMAND chk .
PARAMETERS: chk_blk2 AS CHECKBOX MODIF ID ms5 USER-COMMAND chk1 .
SELECT-OPTIONS: s_matnr FOR eban-matnr MODIF ID ms1.
SELECT-OPTIONS :s_lgort FOR eban-lgort MODIF ID ms4 .

SELECTION-SCREEN: END OF BLOCK b2.
SELECTION-SCREEN: BEGIN OF BLOCK b3 WITH FRAME TITLE text-t02.
SELECT-OPTIONS : s_banfn FOR eban-banfn MODIF ID ms3 .
SELECTION-SCREEN: END OF BLOCK b3.




AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'MS1' .
IF rad_blk1 EQ 'X' .
screen-active = 1.
ELSE.
screen-active = 0 .
ENDIF.
ENDIF .
MODIFY SCREEN.
ENDLOOP.

LOOP AT SCREEN.
IF screen-group1 = 'MS4' .
IF rad_blk1 EQ 'X' .
screen-active = 1.
ELSE.
screen-active = 0 .
ENDIF.
ENDIF .
MODIFY SCREEN.
ENDLOOP.
LOOP AT SCREEN.
IF screen-group1 = 'MS5' .
IF rad_blk1 EQ 'X' .
screen-active = 1.
ELSE.
screen-active = 0 .
ENDIF.
ENDIF .
MODIFY SCREEN.
ENDLOOP.

LOOP AT SCREEN.
IF screen-group1 = 'MS3' .
IF rad_blk2 EQ 'X' .
screen-active = 1.
ELSE.
screen-active = 0 .
ENDIF.
ENDIF .
MODIFY SCREEN.
ENDLOOP.

LOOP AT SCREEN.
IF screen-group1 = 'MS2' .
IF rad_blk1 EQ 'X' .
screen-active = 1.
ELSE.
screen-active = 0 .
ENDIF.
ENDIF .
MODIFY SCREEN.
ENDLOOP.
LOOP AT SCREEN.
IF screen-group1 = 'MS1' .
IF chk_blk1 EQ 'X' .
screen-input = 1.
ELSE.
screen-input = 0 .
ENDIF.
ENDIF .
MODIFY SCREEN.
ENDLOOP.
LOOP AT SCREEN.
IF screen-group1 = 'MS4' .
IF chk_blk2 EQ 'X' .
screen-input = 1.
ELSE.
screen-input = 0 .
ENDIF.
ENDIF .
MODIFY SCREEN.
ENDLOOP.

IF t_comm = 'CHK' .

LOOP AT SCREEN.
IF screen-group1 = 'MS2' .
IF chk_blk1 EQ 'X' .
screen-input = 1.
ELSE.
screen-input = 0 .
ENDIF.
ENDIF .
MODIFY SCREEN.
ENDLOOP.
CLEAR t_comm .
ENDIF .

IF t_comm = 'CHK1' .

LOOP AT SCREEN.
IF screen-group1 = 'MS5' .
IF chk_blk2 EQ 'X' .
screen-input = 1.
ELSE.
screen-input = 0 .
ENDIF.
ENDIF .
MODIFY SCREEN.
ENDLOOP.
CLEAR t_comm .
ENDIF .

Regards

Aneesh.

Read only

Former Member
0 Likes
1,246

Do u want to run your second tab strip in background. That is after executing the 1st strip it should go to the second tab strip. Is it you want ???

Regards

Pavan

Read only

0 Likes
1,245

dear pavan

exactly...

in the 2nd tabstrip i will giving inputs which should be displayed in output.

regards

rahul

Read only

0 Likes
1,245

Hi Rahul

can u please post ur code(Only selection-screeen declaration part).

Regards

Ravi

Read only

0 Likes
1,245

Hi Rahul

Here below are some examples related to your issue plz check it out

<b>Tabstrip is used to display multiple subscreens on the same area of the screen in designing transactions</b>

see the links related to Module pool, in which you find the Tabstrip

Check the below link:

http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F

http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm

http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm

http://sap.mis.cmich.edu/sap-abap/abap09/index.htm

http://www.geocities.com/ZSAPcHAT

http://www.allsaplinks.com/files/using_table_in_screen.pdf

http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm

http://www.sapdevelopment.co.uk/dialog/dialoghome.htm

http://www.sap-img.com/

http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm

http://www.sapgenie.com/links/abap.htm

http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm

You can also check the transaction ABAPDOCU which gives you lot of sample programs.

Also you can see the below examples...

Go to se38 and give demodynpro and press F4.

YOu will get a list of demo module pool programs.

One more T-Code is ABAPDOCU.

YOu can find more examples there.

See the prgrams:

DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement

DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB

http://www.geocities.com/ZSAPcHAT

http://www.allsaplinks.com/files/using_table_in_screen.pdf

Reward all helpfull answers

Regards

Pavan

Read only

0 Likes
1,245

dear ravi

here is the code

************************************************************************

  • Selection Screen *

************************************************************************

----


  • Tab Strips 1

----


SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-t00.

PARAMETERS: p_pernr LIKE pa0001-pernr.

PARAMETERS: emp_let RADIOBUTTON GROUP one,

rel_let RADIOBUTTON GROUP one,

sal_cert RADIOBUTTON GROUP one,

ser_let RADIOBUTTON GROUP one,

res_prf RADIOBUTTON GROUP one,

off_let1 radiobutton group one,

app_let1 radiobutton group one.

SELECTION-SCREEN END OF BLOCK b.

SELECTION-SCREEN END OF SCREEN 101.

----


  • Tab Strips 2

----


SELECTION-SCREEN BEGIN OF SCREEN 102 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t02.

PARAMETERS: p_ctc(20),

p_sal(20).

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 102.

SELECTION-SCREEN BEGIN OF TABBED BLOCK b2 FOR 10 LINES.

SELECTION-SCREEN TAB (15) name1 USER-COMMAND ucomm1

DEFAULT SCREEN 101.

SELECTION-SCREEN TAB (17) name2 USER-COMMAND ucomm2

DEFAULT SCREEN 102.

SELECTION-SCREEN END OF BLOCK b2.

INITIALIZATION.

name1 = 'Certificates'.

name2 = 'CTS/Salary'.

in the 1st tab if i select off_let1 radiobutton and execute

2nd tabstrip should appear where ctc and salary will be given.

Read only

0 Likes
1,245

************************************************************************

  • Selection Screen *

************************************************************************

----


  • Tab Strips 1

----


SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-t00.

PARAMETERS: p_pernr LIKE pa0001-pernr.

PARAMETERS: emp_let RADIOBUTTON GROUP one,

rel_let RADIOBUTTON GROUP one,

sal_cert RADIOBUTTON GROUP one,

ser_let RADIOBUTTON GROUP one,

res_prf RADIOBUTTON GROUP one,

off_let1 radiobutton group one,

app_let1 radiobutton group one.

SELECTION-SCREEN END OF BLOCK b.

SELECTION-SCREEN END OF SCREEN 101.

----


  • Tab Strips 2

----


SELECTION-SCREEN BEGIN OF SCREEN 102 AS SUBSCREEN <b>MODIF ID TYP.</b>

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t02.

PARAMETERS: p_ctc(20),

p_sal(20).

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 102.

SELECTION-SCREEN BEGIN OF TABBED BLOCK b2 FOR 10 LINES <b>MODIF ID SEL.</b>

SELECTION-SCREEN TAB (15) name1 USER-COMMAND ucomm1

DEFAULT SCREEN 101.

SELECTION-SCREEN TAB (17) name2 USER-COMMAND ucomm2

DEFAULT SCREEN 102.

SELECTION-SCREEN END OF BLOCK b2.

INITIALIZATION.

name1 = 'Certificates'.

name2 = 'CTS/Salary'.

<b>

LOOP AT SCREEN.

If screen = 'SEL'.

Screen-active = 0.

modify screen.

Endif.</b>

<b>

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'TYP'.

IF off_let1 = 'X'.

IF screen-name = 'RB_ALV'.

Screen-group1 = 'SEL'.

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDIF.</b>

Change ur code. try this.

If its not working then let me know..

Reward me if its useful

Ravi

Read only

0 Likes
1,245

dear ravi,

i modified n tried

but the following error occured.

"TITLE ...", "NO INTERVALS", or "NESTING LEVEL val" expected after

"SUBSCREEN" .

Read only

0 Likes
1,245

************************************************************************

  • Selection Screen *

************************************************************************

----


  • Tab Strips 1

----


SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-t00 <b>modif id TYP.</b>

PARAMETERS: p_pernr LIKE pa0001-pernr.

PARAMETERS: emp_let RADIOBUTTON GROUP one,

rel_let RADIOBUTTON GROUP one,

sal_cert RADIOBUTTON GROUP one,

ser_let RADIOBUTTON GROUP one,

res_prf RADIOBUTTON GROUP one,

off_let1 radiobutton group one,

app_let1 radiobutton group one.

SELECTION-SCREEN END OF BLOCK b.

SELECTION-SCREEN END OF SCREEN 101.

----


  • Tab Strips 2

----


SELECTION-SCREEN BEGIN OF SCREEN 102 AS SUBSCREEN .

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t02 <b>Modif Id SEL.</b>

PARAMETERS: p_ctc(20),

p_sal(20).

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 102.

SELECTION-SCREEN BEGIN OF TABBED BLOCK b2 FOR 10 LINES MODIF ID SEL.

SELECTION-SCREEN TAB (15) name1 USER-COMMAND ucomm1

DEFAULT SCREEN 101.

SELECTION-SCREEN TAB (17) name2 USER-COMMAND ucomm2

DEFAULT SCREEN 102.

SELECTION-SCREEN END OF BLOCK b2.

INITIALIZATION.

name1 = 'Certificates'.

name2 = 'CTS/Salary'.

LOOP AT SCREEN.

If screen = 'SEL'.

Screen-active = 0.

modify screen.

Endif.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'TYP'.

IF off_let1 = 'X'.

IF screen-name = 'RB_ALV'.

Screen-group1 = 'SEL'.

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDIF.

Sorry ya. Change the ur code in above format... Try this.. Let me know working or not.

Regards

Ravi

Read only

0 Likes
1,245

dear ravi

again following error occured

"NO INTERVALS" expected after "TEXT-T00".

Read only

0 Likes
1,245

************************************************************************

  • Selection Screen *

************************************************************************

----


  • Tab Strips 1

----


SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-t00.

PARAMETERS: p_pernr LIKE pa0001-pernr.

PARAMETERS: emp_let RADIOBUTTON GROUP,

rel_let RADIOBUTTON GROUP one ,

sal_cert RADIOBUTTON GROUP one

ser_let RADIOBUTTON GROUP one,

res_prf RADIOBUTTON GROUP one,

<b>off_let1 radiobutton group one modif id TYP default 'X',</b>

app_let1 radiobutton group one.

SELECTION-SCREEN END OF BLOCK b.

SELECTION-SCREEN END OF SCREEN 101.

----


  • Tab Strips 2

----


SELECTION-SCREEN BEGIN OF SCREEN 102 AS SUBSCREEN .

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t02 .

<b>PARAMETERS: p_ctc(20) Modif Id SEL,

p_sal(20) Modif Id SEL.</b>

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 102.

SELECTION-SCREEN BEGIN OF TABBED BLOCK b2 FOR 10 LINES MODIF ID SEL.

SELECTION-SCREEN TAB (15) name1 USER-COMMAND ucomm1

DEFAULT SCREEN 101.

SELECTION-SCREEN TAB (17) name2 USER-COMMAND ucomm2

DEFAULT SCREEN 102.

SELECTION-SCREEN END OF BLOCK b2.

INITIALIZATION.

name1 = 'Certificates'.

name2 = 'CTS/Salary'.

LOOP AT SCREEN.

If screen = 'SEL'.

Screen-active = 0.

modify screen.

Endif.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'TYP'.

IF off_let1 = 'X'.

IF screen-name = 'RB_ALV'.

Screen-group1 = 'SEL'.

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDIF.

I think now it will works fine. Try it.

Read only

0 Likes
1,245

************************************************************************

  • Selection Screen *

************************************************************************

----


  • Tab Strips 1

----


SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-t00.

PARAMETERS: p_pernr LIKE pa0001-pernr.

PARAMETERS: emp_let RADIOBUTTON GROUP,

rel_let RADIOBUTTON GROUP one ,

sal_cert RADIOBUTTON GROUP one

ser_let RADIOBUTTON GROUP one,

res_prf RADIOBUTTON GROUP one,

off_let1 radiobutton group one modif id TYP default 'X',

app_let1 radiobutton group one.

SELECTION-SCREEN END OF BLOCK b.

SELECTION-SCREEN END OF SCREEN 101.

----


  • Tab Strips 2

----


SELECTION-SCREEN BEGIN OF SCREEN 102 AS SUBSCREEN .

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t02 .

PARAMETERS: p_ctc(20) Modif Id SEL,

p_sal(20) Modif Id SEL.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 102.

SELECTION-SCREEN BEGIN OF TABBED BLOCK b2 FOR 10 LINES MODIF ID SEL.

SELECTION-SCREEN TAB (15) name1 USER-COMMAND ucomm1

DEFAULT SCREEN 101.

SELECTION-SCREEN TAB (17) name2 USER-COMMAND ucomm2

DEFAULT SCREEN 102.

SELECTION-SCREEN END OF BLOCK b2.

INITIALIZATION.

name1 = 'Certificates'.

name2 = 'CTS/Salary'.

LOOP AT SCREEN.

If screen = 'SEL'.

Screen-active = 0.

modify screen.

Endif.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'TYP'.

IF off_let1 = 'X'.

IF screen-name = 'RB_ALV'.

Screen-group1 = 'SEL'.

<b>screen-active = '1'.</b>

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDIF.

I think now it will works fine. Try it.

Read only

0 Likes
1,245

Hi Rahul

Is it working or still facing problem?.

Regards

Ravi