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 grid title..

Former Member
0 Likes
670

Hi all,

I have created an include which i m calling in different programs to create ALV report now I need to pass the title according to the report hw to do this..... screen title is fixed i only need to change the grid title which has been declared with loyo title....

Thanks & Regards

Ashu Singh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
591

Hi,

try this...

data p_name type string.

case sy-repid.

when 'prg1'.

p_name = 'prg one'.

when 'prg2'.

p_name = 'prg two'.

---

---

endcase.

and pass this p_name to FM grid display...

i_grid_title = p_name

Hi all,

I have created an include which i m calling in different programs to create ALV report now I need to pass the title according to the report hw to do this..... screen title is fixed i only need to change the grid title which has been declared with loyo title....

Thanks & Regards

Ashu Singh

3 REPLIES 3
Read only

Former Member
0 Likes
591

SY-PROG

use this statement in if condition..

and give ur title according to that

Regards

Anbu

Edited by: Anbu B on Aug 18, 2008 7:26 AM

Read only

Former Member
0 Likes
591

Hi,

In ur main program, declare a variable for the Grid title.

Move the title as ur wish into that variable based on ur program.

Then include the INCLUDE program.

In the include program, use the variable which declared in a main program for the grid title.

Regards,

Prem

Read only

Former Member
0 Likes
592

Hi,

try this...

data p_name type string.

case sy-repid.

when 'prg1'.

p_name = 'prg one'.

when 'prg2'.

p_name = 'prg two'.

---

---

endcase.

and pass this p_name to FM grid display...

i_grid_title = p_name