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: 

ALV Top-of-Page

Former Member
0 Kudos

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.

12 REPLIES 12

Former Member
0 Kudos

Hi,

Could u show ur structure declaration

Cheers,

Surinder

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

Thaks Avinash. I was wrong with 255 characters. You are correct.

Regards

Khanna

former_member386202
Active Contributor
0 Kudos

Hi,

Check hte length of wa_header-info, its 60 that means u can display only 60 characters.

Regards,

Prashant

Former Member
0 Kudos

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.

kamesh_g
Contributor
0 Kudos

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 .

SuhaSaha
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

This message was moderated.

I355602
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

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.