2008 Aug 18 6:20 AM
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
2008 Aug 18 6:37 AM
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
2008 Aug 18 6:25 AM
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
2008 Aug 18 6:34 AM
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
2008 Aug 18 6:37 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |