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

Class Container

Former Member
0 Likes
929

Hi All,

I need to call a standard transaction in the class container(CL_GUI_CONTAINER), this is possible??? Somebody can help me???

Thanks.

Andre Oliveira.

4 REPLIES 4
Read only

Former Member
0 Likes
715

For example, if you display a class using transaction SE24, and then double-click on a method name the workbench editor will be displayed yet the transaction remains the same (SE24). Next double-click on a DDIC type used in the coding shown in the editor. Again, the system switches to the DDIC editor (looks like SE11) but remains in transaction SE24.

In general: Containers can only be used to display controls.

Here is a sample program which implements a docking container with a splitter.

data: docking_left type ref to cl_gui_docking_container,

dock_sub_cont1 type ref to cl_gui_container,

dock_sub_cont2 type ref to cl_gui_container,

alv_bottom type ref to cl_gui_alv_grid,

splitter type ref to cl_gui_splitter_container,

html_viewer type ref to cl_gui_html_viewer.

parameters: p_check.

at selection-screen output.

data: it001w type table of t001w with header line.

data: repid type sy-repid.

data: url(255).

repid = sy-repid.

if docking_left is initial.

  • Create the docking and splitter containers

create object:

docking_left

exporting repid = repid

dynnr = sy-dynnr

side = docking_left->dock_at_left

extension = 525,

splitter

exporting parent = docking_left

rows = 2

columns = 1.

  • Set the splitters.

call method:

splitter->set_border

exporting border = space,

splitter->get_container

exporting row = 1

column = 1

receiving container = dock_sub_cont1,

splitter->set_row_height

exporting id = 1

height = '25',

splitter->get_container

exporting row = 2

column = 1

receiving container = dock_sub_cont2.

  • HTML control in the first container

create object html_viewer

exporting parent = dock_sub_cont1

exceptions cntl_error = 1

cntl_install_error = 2

dp_install_error = 3

dp_error = 4.

call method:

html_viewer->load_mime_object

exporting

object_id = 'HTMLCNTL_TESTHTM2_SAPLOGO'

object_url = 'SAPLOGO.GIF'

importing

assigned_url = url

exceptions object_not_found = 1

dp_error_general = 2

dp_invalid_parameter = 3,

html_viewer->show_data

exporting url = url

exceptions cntl_error = 1.

  • ALV grid in second splitter container.

select * into corresponding fields of table it001w

from t001w.

create object alv_bottom

exporting i_parent = dock_sub_cont2.

call method alv_bottom->set_table_for_first_display

exporting

i_structure_name = 'T001W'

changing

it_outtab = it001w[].

endif.

Refer the Following Threads,

*Reward points

Read only

uwe_schieferstein
Active Contributor
0 Likes
715

Hello Andre

The answer is obviously: <b>NO</b>.

The repository browser (SE80) is a good example:

- even if you switch from a report (SE80) to a class used in this report (SE24) and some of the defined DDIC objects (SE11) the transaction changes only <i>apparently </i>- it always <u>remains SE80</u>.

Second reason: container can only contain other containers or controls but no "normal" screen elements like input fields, table controls, etc.

Regards

Uwe

Read only

0 Likes
715

Hello,

I think that you not understand my question, becouse if had understand, never did say that my quastion was obviously.

Att.

ANdre.

Read only

0 Likes
715

Hello Andre

Even if I misunderstood you the answer is still: <b>No</b>.

Regards

Uwe