Skip to Content
avatar image
Former Member

need help:Tabstrip in module pool.

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 06, 2008 at 12:07 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 06, 2008 at 10:57 AM

    Hi

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

    Prabu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 06, 2008 at 11:00 AM

    use FM

    ICON_CREATE

    read its documnetation in se37 for more details

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 06, 2008 at 11:01 AM

    use FM

    ICON_CREATE

    read its documentation for more details

    treat tab name as push button name

    or

    refer to:

    change-the-text-of-a-tab-in-a-tab-strip-control

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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 06, 2008 at 11:27 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 14, 2008 at 11:15 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded