Application Development 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: 

need help:Tabstrip in module pool.

Former Member
0 Kudos

Dear all,

I need to change the text of the tab in tapstrip control in module pool dynamically using program.

I have tried the loop at screen but there is no field for tab text.

please help me in this regard

thanks in advance

Regards

Haritha

1 ACCEPTED SOLUTION

Former Member
0 Kudos

use in PBO

CALL FUNCTION 'ICON_CREATE'

EXPORTING

NAME = ICON_EXPAND " icon for button

TEXT = 'Button 1' " text for button

IMPORTING

RESULT = BTN1. " button name or tab name

for text only:

just pass text to tab name in PBO

like

tab1 = 'Tab Name'.

Edited by: Amit Gupta on Oct 6, 2008 2:14 PM

9 REPLIES 9

Former Member
0 Kudos

Hi

Before how its work ..U chk that. Then In table value s available r not u chk that also.

Prabu

Former Member
0 Kudos

use FM

ICON_CREATE

read its documnetation in se37 for more details

Former Member
0 Kudos

use FM

ICON_CREATE

read its documentation for more details

treat tab name as push button name

or

refer to:

Edited by: Amit Gupta on Oct 6, 2008 1:06 PM

0 Kudos

I did not get how to use this icon_create to give text to tab in module pool please help me

former_member182426
Active Contributor
0 Kudos

HI,

Go through this program. Ur problem will get solved.

REPORT  ZSHAN_SAP_Q11.

data:
  ucomm1 like sy-ucomm,
  ucomm2 like sy-ucomm,
  ucomm3 like sy-ucomm.

selection-screen begin of screen 1100 as subscreen.
selection-screen begin of block tabscreen1 with frame.
Parameters: aa type i.
selection-screen end of block tabscreen1.
selection-screen end of screen 1100.

selection-screen begin of screen 1200 as subscreen.
selection-screen begin of block tabscreen2 with frame.
Parameters: aa1 type i.
selection-screen end of block tabscreen2.
selection-screen end of screen 1200.

selection-screen begin of screen 1300 as subscreen.
selection-screen begin of block tabscreen3 with frame.
Parameters: aa2 type i.
selection-screen end of block tabscreen3.
selection-screen end of screen 1300.

selection-screen begin of tabbed block tabs for 10 lines.
selection-screen tab (15) tabs1 user-command ucomm1
 default screen 1100.
selection-screen tab (30) tabs2 user-command ucomm2
 default screen 1200.
selection-screen tab (15) tabs3 user-command ucomm3
 default screen 1300.
selection-screen end of block tabs.

initialization.
  tabs1 = 'TABBED SCREEN1'.
  tabs2 = 'TABBED SCREEN2'.
  tabs3 = 'TABBED SCREEN3'.

Regards,

Shankar.

0 Kudos

need for module pool program not for selection screen please help me

Former Member
0 Kudos

use in PBO

CALL FUNCTION 'ICON_CREATE'

EXPORTING

NAME = ICON_EXPAND " icon for button

TEXT = 'Button 1' " text for button

IMPORTING

RESULT = BTN1. " button name or tab name

for text only:

just pass text to tab name in PBO

like

tab1 = 'Tab Name'.

Edited by: Amit Gupta on Oct 6, 2008 2:14 PM

0 Kudos

Thank you very much its solved my problem.

Former Member
0 Kudos

Hi Haritha

This is Senthil.

I have the same problem, that is, couldn't dynamically assign texts to the pushbuttons of the Tabstrip control at run time.

So, can you please let me know how you solved this issue.

Thanks in advance

Senthil.