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

ALV report

Former Member
0 Likes
497

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

2 REPLIES 2
Read only

Former Member
0 Likes
456

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

Read only

Former Member
0 Likes
456

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