How to perform a system trace in SAP ECC

Performing a system trace in SAP means to run a program and log all the dynpros/screens we are visiting and the fields we are clicking or typing. This task is done automatically when creating a recording in transaction LSMW.
You can find this functionality in ST01.

External References

System Trace at SAP Help