2006 Dec 22 12:23 PM
Hello, my problem is that I want this into my alv header:
<b>Field name:</b> xxxx <b>Date:</b>xxxxxxx
<b>Field name:</b> xxxx
<b>Field name:</b> xxxx <b>Field name:</b> xxxx
This is possible??
Thanks in advance.
2006 Dec 22 12:28 PM
Build whatever data is to be displayed into an internal table and pass that internal table to the function module REUSE_COMMENTARY_WRITE in the subroutine
TOP_OF_PAGE
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
form top_of_page.
8 BUild it_to_of_page internal table
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = it_top_of_page.
endform.
Hello, my problem is that I want this into my alv header:
<b>Field name:</b> xxxx <b>Date:</b>xxxxxxx
<b>Field name:</b> xxxx
<b>Field name:</b> xxxx <b>Field name:</b> xxxx
This is possible??
Thanks in advance.
2006 Dec 22 12:28 PM
Build whatever data is to be displayed into an internal table and pass that internal table to the function module REUSE_COMMENTARY_WRITE in the subroutine
TOP_OF_PAGE
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
form top_of_page.
8 BUild it_to_of_page internal table
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = it_top_of_page.
endform.
2006 Dec 22 12:33 PM
Yeah it is possible but its just you have to store this data as character in an internal table with three fields.
1. Field name: xxxx Date:xxxxxxx
2. Field name: xxxx
3. Field name: xxxx Field name: xxxx
<b>e.g. concatenate 'Field Name:' v_field 'Date:' v_date into i_disp-fld1 seperated by space.</b>
So concatenate all the require values for a particular line in a character variable and pass it to the corresponding field of the internal table.
Then use that internal table to display the data.
Regards,
Amit
Reward all helpful replies.
2006 Dec 22 12:34 PM
I did it but the result is this one:
<b>field name:</b> xxxxx
<b>date:</b>xxxxx
<b>field name:</b> xxxxx
<b>field name:</b> xxxxx
And I'm trying to carry out at the same line two fields for example:
<b>field name:</b> xxxxx <b>date:</b>xxxxx
Thanks for your help.
2006 Dec 22 12:39 PM
Hi Jose ,
Do it this way:
Concatenate 'Field name:' v_fieldvalue 'date:' v_date separated by space into itab-info.
append itab.
clear itab.
concatenate 'Field name:' v_fieldvalue into itad-info.
append itab.
clear itab.
concatenate 'Field name:' v_fieldvalue into itad-info.
append itab.
clear itab.
Then pass this itab to the fm:
Regards,
Ravi
2006 Dec 22 12:46 PM
You can use the HTML TOP OF PAGE functionality. This will do the trick,
Refer a code sample below,
http://erpjobs.co.uk/forum/printthread.php?t=54
Regards
Kathirvel
2006 Dec 22 1:17 PM
Well, I did but with no positive result.
Into the header I see:
<b>EKKO Table Report
Date: 22.12.2006EKKO Table Report</b>
This is my code:
lr_hline-typ = 'H'.
lr_hline-info = 'EKKO Table Report'.
APPEND lr_hline TO i_heading.
lr_hline-info = 'Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) ' '
'EKKO Table Report'
INTO lr_hline-info.
APPEND lr_hline TO i_heading.
CLEAR lr_hline.
Thanks in advance for your answers.
2006 Dec 22 1:38 PM
Hi Jose,
Just cut and paste in u r program it will work.......
call function 'REUSE_ALV_EVENTS_GET'
importing
et_events = it_event
exceptions
list_type_wrong = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
if not it_event[] is initial.
<b> read table it_event into wa_event with key name = 'TOP_OF_PAGE'.</b>
if sy-subrc = 0.
wa_event-form = 'TOP_OF_PAGE'.
modify it_event from wa_event index sy-tabix.
endif.
*&----
*& Form TOP_OF_PAGE
*&----
TOP_OF_PAGE
*----
form top_of_page.
data : v_concate(50) type c.
data : v_space(10) type c.
wa_comment-typ = 'S'.
wa_comment-key = 'Field Name'.
wa_comment-info = ebeln.
append wa_comment to it_comment.
wa_comment-typ = 'S'.
wa_comment-key = 'DATE:'.
wa_comment-info = sy-datum.
append wa_comment to it_comment.
wa_comment-typ = 'S'.
wa_comment-key = 'TIME:'.
wa_comment-info = sy-timlo.
append wa_comment to it_comment.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = it_comment.
clear it_comment.
endform. "TOP_OF_PAGE
Thanks
Vikranth Khimavath
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |