Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

which container to display text ?

joan_ayala
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

former_member214857
Contributor
0 Kudos

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

4 REPLIES 4

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

You can simply use the screen itself .

Create o/p boxes and fil the same,

former_member214857
Contributor
0 Kudos

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

MarcinPciak
Active Contributor
0 Kudos

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

Clemenss
Active Contributor
0 Kudos

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