05-20-2010 3:44 PM
Hi,
i have a screen with a Custom Control where an ALV is displayed.
Now I would like to add on top of the screen, the parameters and values used on selection screen.
What kind of container should I use for that ?
any other help or example will be good. Thanks
05-20-2010 5:48 PM
Hi
You can use FM REUSE_ALV_GRID_DISPLAY and add Header infomration. This function module splits screen in 2 separeted area.
In this forum you can find many samples about REUSE_ALV_GRID_DISPLAY or in Wiki area.
Also you can just add some I/O fields or add another container area and call another screen to show the information above/below your ALV list.
Kind regards
Carlos Machado
05-20-2010 5:16 PM
You can simply use the screen itself .
Create o/p boxes and fil the same,
05-20-2010 5:48 PM
Hi
You can use FM REUSE_ALV_GRID_DISPLAY and add Header infomration. This function module splits screen in 2 separeted area.
In this forum you can find many samples about REUSE_ALV_GRID_DISPLAY or in Wiki area.
Also you can just add some I/O fields or add another container area and call another screen to show the information above/below your ALV list.
Kind regards
Carlos Machado
05-20-2010 8:08 PM
I would suggest two approaches to choose from:
1) Use subscreens. Create main screen i..e 100. where you have two subscreen areas - top and bottom ones. The top would hold subscreen 101 which would be purerly for header , while the bottom one 102 would hold ALV. In header subscreen place all the output fields as text fields where you show your data
or
2) use splitter container. The top part use for header container, the bottom one for alv container. For header use [dynamic documents|http://help.sap.com/saphelp_nw70/helpdata/EN/10/246858055711d4a7410000e83dd863/frameset.htm] where you can have nice formated text fields and icons, images etc.
Using top-of-page event as suggested above is also reasonable approach. In case you need some tutorial [refer|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4046] [original link is broken] [original link is broken] [original link is broken];. Here dynamic documents are used so you can understand how to handle them.
Regards
Marcin
05-20-2010 10:33 PM
Hi,
check out dynamic documents, report DD_ADD_TEXT shows the way using cl_dd_document, cl_dd_table_element and cl_dd_area.
Regards,
Clemens