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 fields at runtime

Former Member
0 Likes
480

Dear All,

I have requirenment to create ALV report field at runtime...

In my report input is date range, based on input date range I have to create ALV report fields (with input date range as field name).

How to create it...?

Eg.: In my input date range - data is 21.11.2007 to 03.12.2007

So my total fields are 21,22,23,24......01,02,03

3 REPLIES 3
Read only

Former Member
0 Likes
457

HI anil,

1. One option is to have an internal table with some

fixed colums, having field names eg. day01, day02 etcc...

2. then based upon the selection screen,

and starting from first column day01,

the headings can be modified using field catalogue.

regards,

amit m.

Read only

Former Member
0 Likes
457

I think we need to fix columns to a number and use field symbols,.

And also there is another option you go for OOps concept. for this please refer the program BCALV_GRID_01 to 09. It will help you to generate the dynamic fileds.

Read only

uwe_schieferstein
Active Contributor
0 Likes
457

Hello Anil

You may have a look at my Wiki posting [Creating Flat and Complex Internal Tables Dynamically using RTTI|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/creating%2bflat%2band%2bcomplex%2binternal%2btables%2bdynamically%2busing%2brtti]

Regards

Uwe