‎2007 Dec 24 12:19 PM
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
‎2007 Dec 24 12:21 PM
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.
‎2007 Dec 24 8:05 PM
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.
‎2007 Dec 25 5:34 AM
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