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

Header in ALV

Former Member
0 Likes
1,307

Hi,

i try to make header in ALV as:

----


...........<b>BLABLABLA</b>.........

........................................

+ <b>bla1</b>: value......<b>bla4</b>: value +

+ <b>bla2</b>: value......<b>bla5</b>: value +

+ <b>bla3</b>: value......<b>bla6</b>: value +

........................................

..<i>Some text</i> .......................

----


+ ...............Table.................+

----


but i don't know how i can make 2 columns with bla<i>N</i>.

At the moment i can make only:

......................................

+ <b>bla1</b>: value ....................+

+ <b>bla2</b>: value ....................+

+ <b>bla3</b>: value ....................+

+ <b>bla4</b>: value ....................+

+ <b>bla5</b>: value ....................+

+ <b>bla6</b>: value ....................+

......................................

Can anybody help?

Thanks in advance

P.S. Can I change the background color in header-area?

1 ACCEPTED SOLUTION
Read only

Peter_Inotai
Active Contributor
0 Likes
1,273

Just an idea:

Loop at the table and concatenate 'bla1: value' and 'bla4: value' into a new column.

In the ALV you display the concatenated column.

Peter

Just an idea:

Loop at the table and concatenate 'bla1: value' and 'bla4: value' into a new column.

In the ALV you display the concatenated column.

Peter

7 REPLIES 7
Read only

Peter_Inotai
Active Contributor
0 Likes
1,274

Just an idea:

Loop at the table and concatenate 'bla1: value' and 'bla4: value' into a new column.

In the ALV you display the concatenated column.

Peter

Read only

0 Likes
1,273

Hi,

i've also tried to make so, but i recieved:

'bla1: value bla4: value'

How can I make separator between 'value' and 'bla4:'?

Here is my code:

-


code -


data:

tmpstr type string,

separator(73).

concatenate 'Vertreter 2: ' '01110' separator 'Beleg.Date:' '21.01.1999' into tmpstr separated by space.

wa_header-typ = 'S'.

wa_header-key = ''.

wa_header-info = tmpstr.

append wa_header to t_header.

clear: wa_header.

-


end -


But result is: 'Vertreter 2: 01110 Beleg.Date: 21.01.1999'. Without separator between '01110' and 'Beleg.Date:'.

And how can I then format text in tmpstr to recieve <b>bold bla</b>?

Read only

0 Likes
1,273

Hi,

You can use header type as 'S' or 'H'.

l_listhdr-typ = 'S'.

CONCATENATE 'Run By:-' sy-uname ',' 'Date:-' sy-datum

',' 'Time:-' sy-uzeit

INTO l_listhdr-info SEPARATED BY space.

APPEND l_listhdr.

CLEAR l_listhdr.

Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
1,273

Hi

Is it the "top_of_page" you mean by "the header"? If so, you can utilize dynamic document objects to insert something on that piece of HTML-like place. For this; inspect classes "CL_DD*" , you may find example programs on this.

*--Serdar

Read only

0 Likes
1,273

Thank you very much!

It is a very good solution.

P.S. Example programs for CLASSES "CL_DD" are "DD_".

Read only

0 Likes
1,273

I have been looking all over to find how to work with dynamic documents. The example programs dd_* all show an empty HTML container, although the programs are clearly adding elements to the container. Does anyone else have the same problem?

I would like to know how for example SE80 manages to add input fields inside the docking control. It doesn't look like it is using a dynamic document. Does anyone have an idea?

Thanks.

Jurgen.

Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
1,273

Hi Jurgen

I believe you can catch more answers if you open a new thread.

About your question, I guess the reason may be your GUI. Did you try the latest version of SAP GUI?

*--Serdar