2008 Jul 03 12:48 AM
Hi All,
My requirment is to just display data in a custom container.
I could able to display data in change mode but not display mode.Can you please let me now how can i do that.
Thanks in Advance
KV
2008 Jul 03 1:04 AM
Which custom container you are using? Generally custom container have attribute to make them only read only.
Which custom container you are using? Generally custom container have attribute to make them only read only.
2008 Jul 03 1:04 AM
Which custom container you are using? Generally custom container have attribute to make them only read only.
2008 Jul 03 1:36 AM
Im using cl_gui_custom_container.
In PBO
-
here is my code whihc is fine for Change/Edit mode.
create control container
CREATE OBJECT g_editor_container
EXPORTING
container_name = 'DISP_CONT'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc NE 0.
do nothing
ENDIF.
create calls constructor, which initializes, creats and links
a TextEdit Control
CREATE OBJECT g_editor
EXPORTING
parent = g_editor_container
wordwrap_mode = cl_gui_textedit => wordwrap_at_fixed_position
wordwrap_to_linebreak_mode = cl_gui_textedit=>TRUE
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
do nothing
ENDIF.
In PAI
-
CALL METHOD g_editor->get_text_as_r3table
IMPORTING
table = Text_table
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
ENDIF.
Text_table contains messages which r supposed to be displayed.
Based on certain logical operations i will display the messages.
2008 Jul 03 1:46 AM
Please use this method
CALL METHOD g_editor->set_readonly_mode
EXPORTING
readonly_mode = cl_gui_textedit=>true
EXCEPTIONS
error_cntl_call_method = 1
invalid_parameter = 2
OTHERS = 3.
2008 Jul 03 2:02 AM
Thanks Romit Kewalramani
n i have given full points ...
Thanks
KV
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |