{"audience":"Basis and authorization administrators, internal audit, information security teams and process owners who own roles.","authorization_objects":[{"note":"Viewing user-level data in workload statistics","object":"S_TOOLS_EX"},{"note":"Displaying user master data by user group","object":"S_USER_GRP"},{"note":"Scheduling the monthly archiving job","object":"S_BTCH_JOB"}],"components":[],"countries":[],"effort_days_max":12,"effort_days_min":8,"effort_size":"M","faq":[{"a":"Usage per user is a record that can be linked to an employee. The archive is kept only for authorization and audit purposes, its retention period follows the company's record retention policy and access to the report is limited to Basis, authorization management and audit. If required, older months can be kept with an anonymous key instead of the user name.","q":"Does usage data count as personal data, and how should it be kept?"},{"a":"On the first run, the archive takes the monthly totals still available in the workload collector; how far back that goes depends on the retention setting in the system. From then on every month is added and the data is no longer deleted.","q":"How far back can the archive start?"},{"a":"No. Rare activities such as year-end closing or yearly tasks can look unused over a short period. Run the report over at least 12 months and decide on removal together with the role owner.","q":"Should a transaction that is in a role but unused be removed at once?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"layout","label":"User-specific layout variants","note":""},{"code":"background","label":"Runs as a background job","note":"Archiving runs as a monthly job; the report can also run in the background."},{"code":"drilldown","label":"Double-click drill-down to the document","note":"From a user-transaction line the user drills down to the monthly detail."},{"code":"excel","label":"Export to Excel","note":"The list is exported to Excel in answer to an auditor request."}],"functions":[],"gap":"ST03N shows usage by user and transaction, but detailed data is kept only for the period set in the system and is then deleted; a question about usage a year ago has no answer. SUIM lists the transactions a user is authorized for but does not compare them with usage. Finding transactions that are authorized but never used means joining two lists by hand.","id":"basis-transaction-usage-history-archive","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-18","logic":"1. A monthly background job reads the user × transaction totals of the previous month from the workload collector with SWNC_COLLECTOR_GET_AGGREGATES for all application servers (number of dialog steps, total response time, task type).\n2. The totals are written to a permanent archive table defined during installation, keyed by month, system, user and transaction. Running the same month again overwrites the records, so no duplicates arise; the retention period of the archive follows the company's record retention policy.\n3. The report enriches the archive with user master data: user type, lock status and last logon (USR02), name and department (USR21 → ADRP/ADCP), transaction text (TSTC/TSTCT).\n4. Role comparison: the user's valid roles (AGR_USERS) and the transactions granted in them through S_TCODE (AGR_1251, with ranges and wildcards resolved) are read. Transactions that are in the roles but were never used in the selected period, and transactions that were used although they are not in a role (for example called through another authorization), are flagged separately.\n5. Views: user × transaction × month matrix, number of users per transaction, share of unused transactions per role. The user drills down from a line to the monthly detail.\n6. It works the same in S/4HANA and ECC; the workload collector is read with the same function in both releases.","module":"BASIS","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"User","source_field":"BNAME","source_table":"USR02"},{"calculated":false,"formula":"","label":"Full name","source_field":"NAME_TEXT","source_table":"ADRP"},{"calculated":false,"formula":"","label":"Department","source_field":"DEPARTMENT","source_table":"ADCP"},{"calculated":false,"formula":"","label":"User type","source_field":"USTYP","source_table":"USR02"},{"calculated":false,"formula":"","label":"Transaction","source_field":"TCODE","source_table":"TSTC"},{"calculated":false,"formula":"","label":"Transaction text","source_field":"TTEXT","source_table":"TSTCT"},{"calculated":true,"formula":"Total dialog steps in the selected months (from the archive)","label":"Dialog steps","source_field":null,"source_table":null},{"calculated":true,"formula":"Earliest month in the archive with steps \u003e 0","label":"First month used","source_field":null,"source_table":null},{"calculated":true,"formula":"Latest month in the archive with steps \u003e 0","label":"Last month used","source_field":null,"source_table":null},{"calculated":true,"formula":"Whether the transaction is granted through S_TCODE in a valid role of the user","label":"In a role","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Last logon","source_field":"TRDAT","source_table":"USR02"}],"parameters":[{"example":"AYILMAZ","kind":"select_option","label":"User","name":"S_BNAME","ref_field":"USR02-BNAME","required":false},{"example":"VA01","kind":"select_option","label":"Transaction code","name":"S_TCODE","ref_field":"TSTC-TCODE","required":false},{"example":"202601 – 202610","kind":"select_option","label":"Month (YYYYMM)","name":"S_MONTH","ref_field":"","required":true},{"example":"SD_SATIS_TEMSILCISI","kind":"select_option","label":"Role","name":"S_AGR","ref_field":"AGR_USERS-AGR_NAME","required":false},{"example":"X","kind":"checkbox","label":"Show transactions in roles that were not used","name":"P_UNUSED","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Archive the previous month (background job)","name":"P_ARCH","ref_field":"","required":false}],"part_of":[],"performance":"Call the collector for monthly totals only; do not read the daily detail. A secondary index on month and user is recommended for the archive table. In the role comparison, restrict AGR_1251 to object S_TCODE and resolve ranges once in memory.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=basis-transaction-usage-history-archive","related":["basis-critical-authorizations-by-user","basis-user-license-type-last-logon","basis-user-role-authorization-audit"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Shows usage by user and transaction; the detail is kept for a limited time and is not compared with roles.","tcode":"ST03N"},{"note":"Lists the transactions users are authorized for; does not show actual usage.","tcode":"SUIM"}],"summary":"A custom ALV report that writes user × transaction usage from the workload statistics to a permanent archive table every month and reports from that archive retrospectively. It answers in one list who used which transaction how often in which month, when the first and last use were, and which transactions are in a user's roles but never used, for audits and role clean-up.","tables":[{"access":"read","join_on":"","role":"User type, lock status, last logon","table":"USR02","variant":"both"},{"access":"read","join_on":"USR21-BNAME = USR02-BNAME","role":"User's address and person number","table":"USR21","variant":"both"},{"access":"read","join_on":"ADRP-PERSNUMBER = USR21-PERSNUMBER","role":"User's full name","table":"ADRP","variant":"both"},{"access":"read","join_on":"ADCP-PERSNUMBER = USR21-PERSNUMBER","role":"User's department","table":"ADCP","variant":"both"},{"access":"read","join_on":"","role":"Transaction code and program","table":"TSTC","variant":"both"},{"access":"read","join_on":"TSTCT-TCODE = TSTC-TCODE","role":"Transaction code text","table":"TSTCT","variant":"both"},{"access":"read","join_on":"AGR_USERS-UNAME = USR02-BNAME","role":"User's valid roles","table":"AGR_USERS","variant":"both"},{"access":"read","join_on":"AGR_1251-AGR_NAME = AGR_USERS-AGR_NAME","role":"Transactions granted in roles through S_TCODE","table":"AGR_1251","variant":"both"}],"title":"User and Transaction Code Usage History Archive and Report","url":"https://nekuhub.com/en/reports/user-and-transaction-usage-history-archive/","vendor_id":"nekudos"}