2011 Oct 14 2:51 PM
Hi ,
I am trying to display the report in ALV format like this.
Type category june 11
head count 7
basic pay 34,284
FT NI on basic pay 1,504
pension 3800
Can you please suggest me how to do that.
Thanks & Regards,
B. Thulasi.
Moderator message : Spec dumping is not allowed, thread locked.
Edited by: Vinod Kumar on Nov 7, 2011 11:40 AM
Hi ,
I am trying to display the report in ALV format like this.
Type category june 11
head count 7
basic pay 34,284
FT NI on basic pay 1,504
pension 3800
Can you please suggest me how to do that.
Thanks & Regards,
B. Thulasi.
Moderator message : Spec dumping is not allowed, thread locked.
Edited by: Vinod Kumar on Nov 7, 2011 11:40 AM
2011 Oct 14 3:56 PM
Hi,
One thought we can use REUSE_ALV_COMMENTARY_WRITE
stand alone here you can print that format if ALV is only option you wnat to use
type-pools : slis .
DATA : ls_line TYPE slis_listheader,
gt_list_top_of_page TYPE slis_t_listheader.
CLEAR ls_line.
ls_line-typ = 'H'.
ls_line-info = text-054.
APPEND ls_line TO gt_list_top_of_page.
CLEAR ls_line.
ls_line-typ = 'S'.
ls_line-key = text-047.
ls_line-info = p_vkorg. passing your val heere
APPEND ls_line TO gt_list_top_of_page.
CLEAR ls_line.
ls_line-typ = 'S'.
ls_line-key = text-048.
ls_line-info = p_vtweg.
APPEND ls_line TO gt_list_top_of_page.
CLEAR ls_line.
ls_line-typ = 'S'.
ls_line-key = text-049.
ls_line-info = gv_info1.
APPEND ls_line TO gt_list_top_of_page.
CLEAR ls_line.
ls_line-typ = 'S'.
ls_line-key = text-050.
ls_line-info = gv_info2.
APPEND ls_line TO gt_list_top_of_page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = gt_list_top_of_page.
Regards
Poornima
2011 Nov 07 5:57 AM
Can you please specify which method you are using : Object Oriented or FM method..if you are using FM then the above method is perfect. If you are using OO, you can refer to this link : http://wiki.sdn.sap.com/wiki/display/Snippets/CreateonOOALVheader+texts
Thanks,
Supratim