Covering two SAP releases: We have a project in which we are upgrading SAP from 4.7 to ECC 6.0. We have modified one of our input scripts which now works in ECC 6.0, but not in 4.7. The problem occurs when we try to extract data from the header condition table in transaction VA01. The table has an extra column in ECC 6.0 compared to 4.7. Is there an easy way of determining the SAP version within the input script, so that we can modify the input script to work in both 4.7 and ECC 6.0?

We have no system variable for the SAP kernel release, but you can directly query the existence of a column. Example:

if cell[All items,Material,1]

  ...

endif