02-05-2009 6:45 AM
Hi,
I have use Top of Page in ALV report .
My Code
wa_header-typ = 'A'.
wa_header-info = 'Account of Receipt of inputs or partially processed goods under Rule 57F(4) and / or Notifiction No.214/86-C.E.,Dated 25-3-1986 '.
append wa_header to t_header.
clear wa_header.
but this display only half text in output.
like
Account of Receipt of inputs or partially processed goods un .
where is problem.
Thanks in Advance.
Sam.
02-05-2009 6:47 AM
02-05-2009 6:47 AM
Hi Sam,
It can display only 255 characters. That is the reason it is displaying only half. You can split it into two lines and append the same and then display it.
Regards
Khanna
02-05-2009 6:48 AM
HI,
The length of the wa_header-info is 60 Char..so it cannot display more than 60 char.
You need to split and append like this
wa_header-typ = 'A'.
wa_header-info = 'Account of Receipt of inputs or partially processed goods'
append wa_header to t_header.
clear wa_header.
wa_header-typ = 'A'.
wa_header-info = ' under Rule 57F(4) and / or Notifiction No.214/86-C.E.,Dated 25-3-1986 '.
append wa_header to t_header.
clear wa_header.
Declaration in Type pools SLIS
TYPES slis_entry(60) type c,
types: begin of slis_listheader,
typ(1) type c, " H = Header, S = Selection, A = Action
key(20) type c,
info type slis_entry,
end of slis_listheader.
Edited by: Avinash Kodarapu on Feb 5, 2009 12:18 PM
02-05-2009 6:48 AM
Hi,
check the size of the field info...i mean length of field.
it might be short compared to the output length.
Regards
Rajesh Kumar
02-05-2009 6:50 AM
Thaks Avinash. I was wrong with 255 characters. You are correct.
Regards
Khanna
02-05-2009 6:50 AM
Hi,
Check hte length of wa_header-info, its 60 that means u can display only 60 characters.
Regards,
Prashant
02-05-2009 6:50 AM
Hi,
i think it displays upto 60 characters...
You can break it in 2 parts and then print it.
FORM Z_LISTHEADER USING P_I_LISTHEADER TYPE SLIS_T_LISTHEADER.
DATA: L_LISTHEADER TYPE SLIS_LISTHEADER.
REFRESH P_I_LISTHEADER.
CLEAR L_LISTHEADER.
L_LISTHEADER-TYP = 'H'.
L_LISTHEADER-INFO = Half of the text.
APPEND L_LISTHEADER TO P_I_LISTHEADER.
CLEAR L_LISTHEADER.
L_LISTHEADER-TYP = 'H'.
L_LISTHEADER-INFO = another half.
APPEND L_LISTHEADER TO P_I_LISTHEADER.
thanks.
02-05-2009 6:52 AM
hi
Are you using list display or grid display .
In list display no chance to increase the lenght beyond 255 chars .
In grid display automatically length can be adjusted automatically .
Still you have problem we need to use classes for that .
Other wise we can display it in 2 lines if it is acceptable by appending 2 times to your header work area .
02-05-2009 7:00 AM
Hello,
I think you have to use the I_CALLBACK_HTML_TOP_OF_PAGE parameter for this purpose. Here you can display upto 255 characters.
If you use I_CALLBACK_TOP_OF_PAGE then as suggested by Avinash you can display only 60 characters max.
I tried with I_CALLBACK_HTML_TOP_OF_PAGE & its woking )
FORM html_top_of_page USING cl_dd TYPE REF TO cl_dd_document.
CALL METHOD cl_dd->add_text
EXPORTING
text
= 'Account of Receipt of inputs or partially processed goods under Rule 57F(4) and / or Notifiction No.214/86-C.E.,Dated 25-3-1986 '
sap_style = cl_dd_document=>heading
sap_color = cl_dd_document=>list_heading_int
sap_fontsize = cl_dd_document=>medium
sap_emphasis = cl_dd_document=>strong
style_class = space.
ENDFORM.
BR,
Suhas
Edited by: Suhas Saha on Feb 5, 2009 12:53 PM
02-05-2009 7:04 AM
02-05-2009 7:06 AM
Hi,
wa_header-typ = 'A'.
wa_header-info = 'Account of Receipt of inputs or partially processed goods under Rule 57F(4) and / or Notifiction No.214/86-C.E.,Dated 25-3-1986 '.
append wa_header to t_header.
clear wa_header.
Instead of passing the whole string at one time, break it into separate string to append several line and then use t_header to display TOP OF PAGE.
Hope this solves your problem.
Thanks & Regards,
Tarun Gambhir
02-05-2009 7:14 AM
Hi,
i m not sure try doing this.
in your report first line.
Report xyz
no standard page heading
line-count xx
line-size yy
message-id abc.
in this try increasing the line-size it might help you.