2009 Sep 15 6:23 AM
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
2009 Sep 15 6:28 AM
2009 Sep 15 6:31 AM
2009 Sep 15 6:35 AM
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
2009 Sep 15 6:37 AM
then write that address field in loop so dat it will chng for evry customer....
2009 Sep 15 6:39 AM
No it is not Refreshed it caltains the last address of the customers .
regards,
Prakash
2009 Sep 15 6:43 AM
2009 Sep 15 6:40 AM
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
2009 Sep 15 6:46 AM
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
2009 Sep 15 7:01 AM
2009 Sep 15 6:47 AM
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