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

Dynamic Header In HIERSEQ ALV

Former Member
0 Likes
1,234

hi Experts ,

My requirment is to display customer ledger and the address part of each customer to displayed in the TOP-OF_PAge part how to achive this please sugget me ...

Thanks in Advns.

Regards,

Prakash

hi Experts ,

My requirment is to display customer ledger and the address part of each customer to displayed in the TOP-OF_PAge part how to achive this please sugget me ...

Thanks in Advns.

Regards,

Prakash

10 REPLIES 10
Read only

Former Member
0 Likes
1,202

Any Suggestions !

Read only

Former Member
0 Likes
1,202

hiii,

use 'TOP-OF PAGE' event for this.

Regards,

Read only

0 Likes
1,202

The TOP-Of_PAGE is constant for all the list or remains same for all the customers I want this top-of-page is to be Dynamic or shows ezch customers address .

Regards,

Prakash

Read only

0 Likes
1,202

then write that address field in loop so dat it will chng for evry customer....

Read only

0 Likes
1,202

No it is not Refreshed it caltains the last address of the customers .

regards,

Prakash

Read only

0 Likes
1,202

if it is not refreshed then (refresh it or clear it)

Regards

Read only

Nawanandana
Active Contributor
0 Likes
1,202

hi


DATA: gt_list_top_of_page  TYPE slis_t_listheader.

 FORM text-top-of-page1 .
   DATA: ls_line TYPE slis_listheader.
   DATA : text(60).
   DATA:date25(10).
   DATA:date75(10).
   DATA:date105(25).
   DATA:date125(45).
   DATA:sl(5).
   DATA:sh(5).
   DATA:st(9).
   DATA:se(25).

   CLEAR ls_line .
   ls_line-typ = 'H'.
   ls_line-info = 'ULTRATECH CEYLINCO (PVT) LTD'.
   APPEND ls_line TO gt_list_top_of_page.

   CLEAR ls_line.
   ls_line-typ = 'H'.
   ls_line-info = '81/11/1, New Nuge Road, Peliyagoda, Kelaniya.'.
   APPEND ls_line TO gt_list_top_of_page.

   CLEAR ls_line.
   ls_line-typ  = 'H'.
   ls_line-info = 'CIC Commision Report'.
   APPEND ls_line TO gt_list_top_of_page.

*   CLEAR ls_line.
*   ls_line-typ = 'S'.
*   ls_line-key = 'SALE ORDER DATE:'.
*   ls_line-info = s_indate-low.
*   DATA : date1 LIKE sy-datum.
*   date1  =  s_indate-low.
*   CONCATENATE date1+6(2) '.'
*               date1+4(2) '.'
*   date1(4) INTO date25.
*   CLEAR date1.
*   date1  =  s_indate-high.
*   CONCATENATE date1+6(2) '.'
*               date1+4(2) '.'
*   date1(4) INTO date75.
*   CONCATENATE date25  ' To ' INTO date105  SEPARATED BY space.
*   CONCATENATE date105 date75  INTO date125 SEPARATED BY space.
*   ls_line-info = date125.
*   APPEND ls_line TO gt_list_top_of_page.
*
*   CLEAR ls_line.
*
*   ls_line-typ = 'S'.
*   ls_line-key = 'ISO NO:'.
*   ls_line-info = text-012.
*   APPEND ls_line TO gt_list_top_of_page.
*   CLEAR ls_line.

 ENDFORM.                    " text-top-of-page


FORM top_of_page.

   CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
     EXPORTING
       it_list_commentary = gt_list_top_of_page
       i_logo             = 'CEY1'.

*WRITE :/ 'Daily Despatch Summary Sheet Of Traders and Non-Traders.' .

 ENDFORM   .                    "top_of_page

you can use this code

Regard,

nawa

Read only

0 Likes
1,202

Hi Nawa,

Ih this code the Header is fixed as " 'ULTRATECH CEYLINCO (PVT) LTD'" like this but I want the the header to be changed at every new page.

regards,

Prakash

Read only

0 Likes
1,202

yes

u have to pass the variable for this place

Read only

Former Member
0 Likes
1,202

Hi ,

It can be done using the class cl_salv_hierseq_table.

here is a link where dynamic data is displayed..

https://wiki.sdn.sap.com/wiki/display/Snippets/displaytoolbarinclass+cl_salv_hierseq_table

Regards,

Mdi.Deeba