2011 Aug 11 7:56 AM
hi...i have retrieved data frm ztable and put inside internal table ..i need to display in text editor(module pool)..can anyone help me ..
2011 Aug 11 8:05 AM
Hi,
create a custom container in module pool .
use the CL_GUI_CUSTOM_CONTAINER According to this u will get it.
Regards,
Praveen
hi...i have retrieved data frm ztable and put inside internal table ..i need to display in text editor(module pool)..can anyone help me ..
2011 Aug 11 8:05 AM
Hi,
create a custom container in module pool .
use the CL_GUI_CUSTOM_CONTAINER According to this u will get it.
Regards,
Praveen
2011 Aug 11 8:07 AM
yes..i have created as u said only..i need to display that internal table inside text editor..
2011 Aug 11 8:21 AM
hi,
You can call a sub screen from the screen you are trying to place the text editor.
In that sub screen , you can use the container and perform the operation.
With regards,
Syed Ibrahim
2011 Aug 11 8:22 AM
OK.
Then after creating the container, assign it to a CL_GUI_TEXTEDIT object and use the SET_TEXT_AS_R3TABLE method to fill it with your internal table data.
CREATE OBJECT g_d_custom_container_0100
EXPORTING
* PARENT =
container_name = 'G_D_CONTAINER_0100'
* STYLE =
* LIFETIME = lifetime_default
* REPID =
* DYNNR =
* NO_AUTODEF_PROGID_DYNNR =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
CREATE OBJECT g_d_editor_0100
EXPORTING
* MAX_NUMBER_CHARS =
style = 0
* WORDWRAP_MODE = WORDWRAP_AT_WINDOWBORDER
* WORDWRAP_POSITION = -1
* WORDWRAP_TO_LINEBREAK_MODE = FALSE
* FILEDROP_MODE = DROPFILE_EVENT_OFF
parent = g_d_custom_container_0100
* LIFETIME =
* NAME =
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6.
CALL METHOD g_d_editor_0100->set_text_as_r3table
EXPORTING
table = gt_texto
EXCEPTIONS
error_dp = 1
error_dp_create = 2
OTHERS = 3.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |