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

container with tabs

Shahid
Active Contributor
0 Likes
1,616

hello guys ...shahid here

can we define a container with tabs in a report?

for ex: a report program (not MP) , defined to a tcode. when we ran a tcode there will be a selection screen and we give input values in that and it will generate a container or a sub window in the screen with tabs. can u tell me how to do this?

shahid

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,151

REPORT YH627_TABSTRIP.

DATA: BEGIN OF FS_SPFLI,

MANDT TYPE SPFLI-MANDT,

CARRID TYPE SPFLI-CARRID,

CONNID TYPE SPFLI-CONNID,

COUNTRYFR TYPE SPFLI-COUNTRYFR,

END OF FS_SPFLI.

DATA: BEGIN OF FS_SFLIGHT,

MANDT TYPE SFLIGHT-MANDT,

CARRID TYPE SFLIGHT-CARRID,

CONNID TYPE SFLIGHT-CONNID,

FLDATE TYPE SFLIGHT-FLDATE,

END OF FS_SFLIGHT.

data:

t_spfli like standard table of fs_spfli,

t_sflight like standard table of fs_sflight,

ok_code type sy-ucomm.

controls:

c_tabstrip type tabstrip.

select *

from spfli

into corresponding fields of table t_spfli.

select *

from sflight

into corresponding fields of table t_sflight.

call screen 101.

*call screen 102.

*call screen 103.

&----


*& Module STATUS_0101 OUTPUT

&----


  • text

----


MODULE STATUS_0101 OUTPUT.

SET PF-STATUS 'TABSTRIP'.

SET TITLEBAR 'TABSTRIP'.

ENDMODULE. " STATUS_0101 OUTPUT

&----


*& Module USER_COMMAND_0101 INPUT

&----


  • text

----


MODULE USER_COMMAND_0101 INPUT.

case ok_code.

when 'BACK' or 'EXIT'.

leave program.

clear ok_code.

when 'SPFLI'.

leave to list-processing.

loop at t_spfli into fs_spfli.

write:/

fs_spfli.

endloop.

clear ok_code.

when 'SFLIGHT'.

leave to list-processing.

loop at t_sflight into fs_sflight.

write:/

fs_sflight.

endloop.

clear ok_code.

endcase.

ENDMODULE. " USER_COMMAND_0101 INPUT

<b>Double on call screen 101 and write the below code...</b>

PROCESS BEFORE OUTPUT.

MODULE STATUS_0101.

call subscreen spfli_ref1 including sy-repid '102'.

call subscreen sflight_ref1 including sy-repid '103'.

*

PROCESS AFTER INPUT.

call subscreen: spfli_ref1, sflight_ref1.

MODULE USER_COMMAND_0101.

<b>In the layout define a tabstrip control with two tabs.</b>

Regards,

Pavan.

hello guys ...shahid here

can we define a container with tabs in a report?

for ex: a report program (not MP) , defined to a tcode. when we ran a tcode there will be a selection screen and we give input values in that and it will generate a container or a sub window in the screen with tabs. can u tell me how to do this?

shahid

5 REPLIES 5
Read only

Former Member
0 Likes
1,151

Hi,

see transaction DWDM ur point wiil clear.

If you have a single control (like the ALV tree) then you could use either a normal container (CL_GUI_CONTAINER or CL_GUI_CUSTOM_CONTAINER) or, alternatively, a docking container (CL_GUI_DOCKING_CONTAINER) if you want to attach the control at specific parts of the dynpro.

What I do not understand is your question concerning the field catalog. This has nothing to do with the container but has to be imported into the corresponding "functional" control (e.g. ALV grid control).

If you have more than one control that you want to display side by side then you need a splitter container (CL_GUI_SPLITTER_CONTAINER).

<b>Reward points</b>

Regards

Read only

Former Member
0 Likes
1,152

REPORT YH627_TABSTRIP.

DATA: BEGIN OF FS_SPFLI,

MANDT TYPE SPFLI-MANDT,

CARRID TYPE SPFLI-CARRID,

CONNID TYPE SPFLI-CONNID,

COUNTRYFR TYPE SPFLI-COUNTRYFR,

END OF FS_SPFLI.

DATA: BEGIN OF FS_SFLIGHT,

MANDT TYPE SFLIGHT-MANDT,

CARRID TYPE SFLIGHT-CARRID,

CONNID TYPE SFLIGHT-CONNID,

FLDATE TYPE SFLIGHT-FLDATE,

END OF FS_SFLIGHT.

data:

t_spfli like standard table of fs_spfli,

t_sflight like standard table of fs_sflight,

ok_code type sy-ucomm.

controls:

c_tabstrip type tabstrip.

select *

from spfli

into corresponding fields of table t_spfli.

select *

from sflight

into corresponding fields of table t_sflight.

call screen 101.

*call screen 102.

*call screen 103.

&----


*& Module STATUS_0101 OUTPUT

&----


  • text

----


MODULE STATUS_0101 OUTPUT.

SET PF-STATUS 'TABSTRIP'.

SET TITLEBAR 'TABSTRIP'.

ENDMODULE. " STATUS_0101 OUTPUT

&----


*& Module USER_COMMAND_0101 INPUT

&----


  • text

----


MODULE USER_COMMAND_0101 INPUT.

case ok_code.

when 'BACK' or 'EXIT'.

leave program.

clear ok_code.

when 'SPFLI'.

leave to list-processing.

loop at t_spfli into fs_spfli.

write:/

fs_spfli.

endloop.

clear ok_code.

when 'SFLIGHT'.

leave to list-processing.

loop at t_sflight into fs_sflight.

write:/

fs_sflight.

endloop.

clear ok_code.

endcase.

ENDMODULE. " USER_COMMAND_0101 INPUT

<b>Double on call screen 101 and write the below code...</b>

PROCESS BEFORE OUTPUT.

MODULE STATUS_0101.

call subscreen spfli_ref1 including sy-repid '102'.

call subscreen sflight_ref1 including sy-repid '103'.

*

PROCESS AFTER INPUT.

call subscreen: spfli_ref1, sflight_ref1.

MODULE USER_COMMAND_0101.

<b>In the layout define a tabstrip control with two tabs.</b>

Regards,

Pavan.

Read only

Former Member
0 Likes
1,151

Hi,

Look at the below Program

demo_sel_screen_with_tabstrip

Regards

Sudheer

Read only

Former Member
0 Likes
1,151

Hi,

in report programme you can create the another sub screeen. and when u

run the transaction code then the first(main) screen will show and after putting

the some values, call the another screen using call screen XYZ.

****do reward if usefull

vijay

Read only

0 Likes
1,151

Hi,

View dwdm transaction.

Thanks

Sanket.