Skip to Content
author's profile photo Former Member
Former Member

Tabstrip control in Module pool program

Hi All

I am creating a Tab strip control in SE51 ( M - Type program ). In my screen i have 3 tabs . I want the second tab to be default tab in my screen . How to to work on this scenario.

If i get a sample program it will be easy for me.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 07:42 AM

    Just go through this code.

    Here just check the bold fonts give the function code of the second tab here which is shown at initialization of the screen. Use the screen active field also.

    REPORT DEMO_DYNPRO_TABSTRIP_LOCAL.

    CONTROLS MYTABSTRIP TYPE TABSTRIP.

    DATA: OK_CODE TYPE SY-UCOMM,

    SAVE_OK TYPE SY-UCOMM.

    MYTABSTRIP-ACTIVETAB = 'PUSH2'.

    CALL SCREEN 100.

    MODULE STATUS_0100 OUTPUT.

    SET PF-STATUS 'SCREEN_100'.

    ENDMODULE.

    MODULE CANCEL INPUT.

    LEAVE PROGRAM.

    ENDMODULE.

    MODULE USER_COMMAND INPUT.

    SAVE_OK = OK_CODE.

    CLEAR OK_CODE.

    IF SAVE_OK = 'OK'.

    MESSAGE I888(SABAPDOCU) WITH 'MYTABSTRIP-ACTIVETAB ='

    MYTABSTRIP-ACTIVETAB.

    ENDIF.

    ENDMODULE.

    Thanks,

    Sakthi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 07:33 AM

    hi ,

    u try to do one thing.

    write following code in main screens process before output module.

    tabstrip-activetab = 'tab2'.

    screen2 = 'screen number'.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 07:35 AM

    hii

    just go to tcode ABAPDOCU in thr will se abap user dialog in this node go for complex screen and u will get a tabstip demo program

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 07:38 AM

    hi ,

    u try to do one thing.

    write following code in main screens process before output module.

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

    tabstrip-activetab = 'tab2'.

    screen2 = 'screen number'.

    case sy-ucomm.

    when 'tab1'.

    tabstrip-activetab = 'tab1'.

    screen1 = 'scr no'.

    tabstrip-activetab = 'tab2'.

    screen1 = 'scr no'.

    tabstrip-activetab = 'tab3'.

    screen1 = 'scr no'.

    endcase.

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

    DONT WRITE CASE SY-UCOMM IN PAI.WRITE ABOVE CODE IN PBO MODULE.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 08:07 AM

    Hi,

    Please write the following code in the PBO of ur screen

    CASE SY-UCOMM.

    WHEN 'TAB2'.

    TAB_G3-activetab = 'TAB2'.

    ENDCASE.

    HOPE THIS SOLVES THE PURPOSE AS i DID THE SAME IN MY CASE AS WELL.

    MANISH

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.