Skip to Content
0
Aug 09, 2016 at 05:51 AM

How to pass table's structure to a subroutine in other include

836 Views

Dear Experts, Good Day!

I have 8 different programs for which I have to display ALV output. I just wanted to use SALV class for displaying ALV.

And these 8 programs are having 2 common includes like 1st for common global declarations and 2nd for common subroutines.

Now I want to build a common subroutine where all the ALV display part contains. And I want to just call CREATE_ALV by passing the output table from all 8 different programs.

So, I just want to prepare the output table and call the subroutine in common include to display ALV.

Note: I cannot create different structures in data dictionary, as then I will be in need to create many data elements for headings. I just want to send the output table structure from my calling program.

Please suggest/help me how to achieve this?

Thanks and Regards,

Vijay