Filter output columns in Table in SAP application
I am working on SAP application which is returning data in the form of JCo.Table. The table consists of various columns but my requirement is to show only a set of columns which can change overtime.
So, I have created a separate file with the list of required columns. Then, I iterate over the columns of the JCo.Table and see if they are present in the file, I select otherwise I reject the column.
I am not sure whether this is a good option or it can be done in a better way. Please suggest!