We are trying to develop a report in that we designed selection screen for program name, variant, email recipient.
And our requirement is if we pass the above data in selection screen, we have to get the ALV data corresponding to the given program name & variant and it needs to be send to given recipient as an attachment in Excel file.
For the above requirement, We are submitting the program name given in selection screen in a custom program and trying to get the ALV data of submitted program by using by using below command & we are passing the variant value to the p_var.
SUBMIT (p_prog) USING SELECTION-SET p_var AND RETURN.
And then using CL_SALV_BS_RUNTIME_INFO=>GET_DATA_REF( ) method to retrieve ALV output into an internal table.
It works fine for maximum all the reports, but it is throwing dump when the technical fieldname first character is number(The fieldname in the present scenario is 3PL_VFDAT_SHORT).dump.png
So, is there any alternative method for retrieving ALV output without using the above Class/Method CL_SALV_BS_RUNTIME_INFO=>GET_DATA_REF( ).