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: 

Expand And Collapse

Former Member
0 Kudos

Hello all,

I am designing a screen and the requirement is to add the functionality of expand and collapse.

I have a tabstrip and below that i have a table contol.

The functionality is like 'MIGO' screen.

I have taken the tabstrip and the table control on the same screen (Main screen). I have not used and subscreen.

Please Guid me. Its Urgent.

Mail the code in my mail: subhash.mahanta@gmail.com

Send mail if any details is required.

Points Will be rewarded.

Thank & Regards.

S Mahanta.

1 ACCEPTED SOLUTION

Kanagaraja_L
Active Contributor
0 Kudos

Hi Mahanta,

For Example

If subscreen , Tabstrip control is defined with three tab with the function codes "TAB1", "TAB2", "TAB3" and a subscreen area SUB,

Check the Example for the SUBSCREEN

CALL SUBSCREEN.

CONTROLS tab_strip TYPE TABSTRIP.

DATA: ok_code TYPE sy-ucomm,

dynnr TYPE sy-dynnr.

...

MODULE prepare_tabstrip OUTPUT.

IF tab_strip-activetab IS INITIAL OR

dynnr IS INITIAL.

tab_strip-activetab = 'TAB1'.

dynnr = '0110'.

ENDIF.

ENDMODULE.

MODULE handle_user_command INPUT.

CASE ok_code.

WHEN 'TAB1'.

dynnr = '0110'.

WHEN 'TAB2'.

dynnr = '0120'.

WHEN 'TAB3'.

dynnr = '0130'.

...

ENDCASE.

IF ok_code(3) = 'TAB'.

tab_strip-activetab = ok_code.

ENDIF.

ENDMODULE.

and also check the PDF document

For SUB SCREEN sample code Pls go to the Transaction

ABAPDOCU -->ABAP user dialogs --> screens --> complex screen Elements --> Subscreens

Kanagaraja L

1 REPLY 1

Kanagaraja_L
Active Contributor
0 Kudos

Hi Mahanta,

For Example

If subscreen , Tabstrip control is defined with three tab with the function codes "TAB1", "TAB2", "TAB3" and a subscreen area SUB,

Check the Example for the SUBSCREEN

CALL SUBSCREEN.

CONTROLS tab_strip TYPE TABSTRIP.

DATA: ok_code TYPE sy-ucomm,

dynnr TYPE sy-dynnr.

...

MODULE prepare_tabstrip OUTPUT.

IF tab_strip-activetab IS INITIAL OR

dynnr IS INITIAL.

tab_strip-activetab = 'TAB1'.

dynnr = '0110'.

ENDIF.

ENDMODULE.

MODULE handle_user_command INPUT.

CASE ok_code.

WHEN 'TAB1'.

dynnr = '0110'.

WHEN 'TAB2'.

dynnr = '0120'.

WHEN 'TAB3'.

dynnr = '0130'.

...

ENDCASE.

IF ok_code(3) = 'TAB'.

tab_strip-activetab = ok_code.

ENDIF.

ENDMODULE.

and also check the PDF document

For SUB SCREEN sample code Pls go to the Transaction

ABAPDOCU -->ABAP user dialogs --> screens --> complex screen Elements --> Subscreens

Kanagaraja L