We would like to execute transaction code SM04
so that we get users' details.
We want to connect to the underlying API. Could you tell me the Python packages or Java jars?
Question clarified. Here you go:
Install SAP Java Connector: http://help.sap.com/saphelp_nwpi711/helpdata/en/48/7080a5872c1b5ae10000000a42189c/content.htm
Write code to execute function module TH_USER_LIST