2008 Oct 24 7:07 AM
hi experts,
my question is how to create container,
and how to embbed excel sheet in a container.....
2008 Oct 24 7:12 AM
This is a code to make a container for the module pool...
DATA: gr_alvgrid TYPE REF TO cl_gui_alv_grid ,
gc_custom_control_name TYPE scrfname VALUE 'ALV',
gr_ccontainer TYPE REF TO cl_gui_custom_container ,
CREATE OBJECT gr_ccontainer
EXPORTING
container_name = gc_custom_control_name
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
CREATE OBJECT gr_alvgrid
EXPORTING
i_parent = gr_ccontainer
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
OTHERS = 5.
hi experts,
my question is how to create container,
and how to embbed excel sheet in a container.....
2008 Oct 24 7:12 AM
This is a code to make a container for the module pool...
DATA: gr_alvgrid TYPE REF TO cl_gui_alv_grid ,
gc_custom_control_name TYPE scrfname VALUE 'ALV',
gr_ccontainer TYPE REF TO cl_gui_custom_container ,
CREATE OBJECT gr_ccontainer
EXPORTING
container_name = gc_custom_control_name
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
CREATE OBJECT gr_alvgrid
EXPORTING
i_parent = gr_ccontainer
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
OTHERS = 5.
2008 Oct 24 7:13 AM
Hi,
Check
http://help.sap.com/saphelp_sm32/helpdata/EN/64/9e7759068011d294f000a0c94260a5/content.htm
You can create a Custom Container through the Dynpro.
Below is a sample code for the Custom Container.
CREATE OBJECT l_custom_container
EXPORTING
container_name = l_tree_container_name
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc 0.
MESSAGE x208(00) WITH 'ERROR'. "#EC NOTEXT
ENDIF.
ENDIF.
create tree control
CREATE OBJECT tree2
EXPORTING
parent = l_custom_container
node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
item_selection = 'X'
no_html_header = ''
no_toolbar = ''
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
illegal_node_selection_mode = 5
failed = 6
illegal_column_name = 7.
IF sy-subrc 0.
MESSAGE x208(00) WITH 'ERROR'. "#EC NOTEXT
ENDIF.
Edited by: Neenu Jose on Oct 24, 2008 8:14 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |