SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Docking container with Text Editor and Grid

Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ALV Grid / ALV Tree / ALV List
View previous topic :: View next topic  
Author Message

Joined: 01 Sep 2007
Posts: 1636

PostPosted: Tue Jan 29, 2008 12:09 pm    Post subject: Docking container with Text Editor and Grid Reply with quote

Author: Rich Heilman

You may be able to use a text editor container directly above the ALV grid. Implement this program which I just developed, and run it. See how the text is in a text editor control above the ALV. Maybe you could use this. I have implemented in a docking container, so that you have a working(cut/paste) solution. You could easily modify to implement this in a dynpro container.


report zrich_0001 .

data: it001w type table of t001w with header line.

parameters: p_check type c.


at selection-screen output.

data: itext type table of tline-tdline,
xtext like line of itext.

data: docking_left type ref to cl_gui_docking_container,
alv_bottom type ref to cl_gui_alv_grid,
splitter type ref to cl_gui_splitter_container,
dock_sub_cont1 type ref to cl_gui_container,
dock_sub_cont2 type ref to cl_gui_container,
text_editor_top type ref to cl_gui_textedit,
repid type syrepid.

repid = sy-repid.

select * into corresponding fields of table it001w
from t001w.

if docking_left is initial.

Create the docking and splitter containers
create object:

exporting repid = repid
dynnr = sy-dynnr
side = docking_left->dock_at_left
extension = 1000,

exporting parent = docking_left
rows = 2
columns = 1.

call method:

exporting border = space,

exporting row = 1
column = 1
receiving container = dock_sub_cont1,

exporting id = 1
height = '30',

exporting row = 2
column = 1
receiving container = dock_sub_cont2.

create object text_editor_top
parent = dock_sub_cont1.

xtext = 'This is a test for aRs'.
append xtext to itext.
xtext = 'Good Luck!!'.
append xtext to itext.

call method text_editor_top->Set_text_as_r3table
table = itext
others = 1.

create object alv_bottom
exporting i_parent = dock_sub_cont2.

call method alv_bottom->set_table_for_first_display
i_structure_name = 'T001W'
it_outtab = it001w[].


Rich HEilman
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ALV Grid / ALV Tree / ALV List All times are GMT + 4 Hours
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.