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

Hardcoded values in ALV output

Former Member
0 Likes
1,230

Hai,

I have a requirement in which i am display report output in ALV Hierarchical Format

in that i need to display of my columns as with hardcoded values

for ex my output should be

Column1 Column2 Column3 Column4------>header level

Column1 Column2 Column3 Column4------->item level

1 12345 dic val dic val dic val

2 12345 dic val dic val

2 12345 dic val dic val

here 1 and 2 should be Hardcoded try to help me out

how to solve that issue

Thanks,

Rajesh.

Hai,

I have a requirement in which i am display report output in ALV Hierarchical Format

in that i need to display of my columns as with hardcoded values

for ex my output should be

Column1 Column2 Column3 Column4------>header level

Column1 Column2 Column3 Column4------->item level

1 12345 dic val dic val dic val

2 12345 dic val dic val

2 12345 dic val dic val

here 1 and 2 should be Hardcoded try to help me out

how to solve that issue

Thanks,

Rajesh.

6 REPLIES 6
Read only

Former Member
0 Likes
1,004

This message was moderated.

Read only

sarbajitm
Contributor
0 Likes
1,004

Please state your requirement a little bit elaborately.

Specially the format of your ALV output.

Thanks

Read only

Former Member
0 Likes
1,004

MY report output in alv hierarchical format

in some columns of Header i need to display Hardcoded values and same in item level

Read only

0 Likes
1,004

Hi Rajesh - Can you please be a bit more specific. I couldn't get your problem exactly. Atleast what do you want in Header and Item.

Kuntal

Read only

Former Member
0 Likes
1,004

hi

i just need hardcoded values in output for header and item level

in header 1st column should have hardcoded values as '1'

in item level 1st column should have hardcoded value as '2'

Read only

GauthamV
Active Contributor
0 Likes
1,004

Then what is your problem in hard coding those values?



loop at itab2.

itab-column1 = '1'.
itab-column2 = itab2-column2.

append itab.
clear itab.
clear itab2.

endloop.