To use variable name as field name

Hi Experts, 

I read the below thread but that goes with a structure and fieldcat methodology that will not suit my requirement.

So, please consider this request and let us know your valuable solutions/comments.

My requirement is to use the variable names as a field name.

For ex: lv_zbatch , lv_zmatnr, lv_zauto_date are the variables which I want to use these as field names (like zbatch, zmatnr, zauto_date) instead of hard coded value or using text element values.

Currently, I declared using text-001 as field name but due to code review process, I have to avoid this and go with other way solution. 

Please note, I don’t have any structure and these are local variables. 

Thanks in advance.

Kind regards.


Scroll to Top