‎2011 Mar 21 12:38 PM
Hi to all experts,
I have requirement of developing a FM in which importing parameter will be the program name( Zprogram) ( can be any ) the output parameter should be the internal table contents and fieldcatalogue .Is this requirement possible .Experts please throw some light on this requirement.
‎2011 Mar 21 12:49 PM
Hi,
Looks like a difficult functionality, but can you elaborate your question please?
If you are trying to get the field catalog used and the final internal tables used for the display for a report, we can do this:
1. Pass the report name to the FM. Inside the FM - search for the strings like 'reuse_alv_grid_display' or list_display.
2. If found, then try to capture the final internal table name of that.
3. The one discrepancy i see here is the returning parameter ( like the final internal table) should be modified to the type of our table that is being returned to the FM.
4. We can actually brainstorm on this and get some more ideas if this is possible.
Thanks,
Guru
‎2011 Mar 21 12:57 PM
Hi GuruCharan ,
U got my requirement , i need exactly the internal table(output ) and field catalogue.
‎2011 Mar 21 1:38 PM
Hi,
We can try this way.
1. Pass the program name that we want to read.
2. Search for strings like field_catalgue_merge to get the structure of the field catalog used.
3. Search for strings like reuse_alv_grid/list_display to get the final internal table,
4. Get the structures to our FM from which we are calling.
5. It requires some tricky coding.
Thanks,
Guru
‎2011 Mar 25 5:45 PM