Application Development and Automation 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: 
Read only

which container to display text ?

joan_ayala
Participant
0 Likes
1,223

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
Read only

former_member214857
Contributor
0 Likes
944

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

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

4 REPLIES 4
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
944

You can simply use the screen itself .

Create o/p boxes and fil the same,

Read only

former_member214857
Contributor
0 Likes
945

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

Read only

MarcinPciak
Active Contributor
0 Likes
944

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

Read only

Clemenss
Active Contributor
0 Likes
944

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