{"audience":"BASIS administrators, authorization and user management teams, and IT managers closing audit findings.","authorization_objects":[{"note":"Display background jobs of all users","object":"S_BTCH_ADM"},{"note":"Display master data of step users (ACTVT 03)","object":"S_USER_GRP"}],"components":[],"countries":[],"effort_days_max":4,"effort_days_min":3,"effort_size":"S","faq":[{"a":"The basic version only lists. If needed, an action button can be added that replaces the step user of selected rows with a given technical user; this needs the S_BTCH_NAM authorization and takes about two extra days.","q":"Can the report also move the job to another user?"},{"a":"The job runs with the authorizations of the step user. If the user is locked, its validity ends or its roles change, the job cancels or produces a different result. Audits also report automated processing under personal users as a finding.","q":"Why are jobs under personal users risky?"},{"a":"Yes. TBTCO, TBTCP and the user tables are the same in S/4HANA. Jobs scheduled through Fiori Application Jobs are stored in the same tables, so they are included.","q":"Does the report work on S/4HANA?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"layout","label":"User-specific layout variants","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"Double-clicking the job opens SM37, double-clicking the user opens SU01."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""},{"code":"email","label":"Send the result by email","note":"Jobs of users whose validity ends soon are sent to the BASIS team weekly."}],"functions":[],"gap":"SM37 shows jobs and the step user, but not the type of the step user (dialog, system, service), its lock status or validity end. To see which periodic job depends on a personal user, every job has to be opened one by one. SU01 does not show in which jobs a user is the step user either. The custom report combines both and warns in advance about users whose validity ends soon.","id":"basis-background-jobs-personal-users","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. Jobs in the selected statuses (default: S released, P scheduled, Z put active) are read from TBTCO; depending on the selection only periodic jobs (PERIODIC = X) are taken.\n2. The steps of each job, step program, variant and step user (AUTHCKNAM) are added from TBTCP.\n3. The USR02 record of the step user is read: user type (USTYP), lock (UFLAG), validity end (GLTGB) and last logon (TRDAT). The full name is added from USR21/ADRP.\n4. Findings are set: the step user is a dialog user (A); the user is locked; validity has ended; validity ends within N days; the user does not exist.\n5. The period text is built from PRDMINS/PRDHOURS/PRDDAYS/PRDWEEKS/PRDMONTHS or the event ID (EVENTID).\n6. The result is sorted by finding priority; double-clicking the job opens SM37, double-clicking the user opens SU01.","module":"BASIS","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Job name","source_field":"JOBNAME","source_table":"TBTCO"},{"calculated":false,"formula":"","label":"Status","source_field":"STATUS","source_table":"TBTCO"},{"calculated":false,"formula":"","label":"Periodic","source_field":"PERIODIC","source_table":"TBTCO"},{"calculated":true,"formula":"Text from PRDMINS/PRDHOURS/PRDDAYS/PRDWEEKS/PRDMONTHS or EVENTID","label":"Period","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Planned start","source_field":"SDLSTRTDT","source_table":"TBTCO"},{"calculated":false,"formula":"","label":"Step","source_field":"STEPCOUNT","source_table":"TBTCP"},{"calculated":false,"formula":"","label":"Program","source_field":"PROGNAME","source_table":"TBTCP"},{"calculated":false,"formula":"","label":"Variant","source_field":"VARIANT","source_table":"TBTCP"},{"calculated":false,"formula":"","label":"Step user","source_field":"AUTHCKNAM","source_table":"TBTCP"},{"calculated":false,"formula":"","label":"Full name","source_field":"NAME_TEXT","source_table":"ADRP"},{"calculated":false,"formula":"","label":"User type","source_field":"USTYP","source_table":"USR02"},{"calculated":false,"formula":"","label":"Lock status","source_field":"UFLAG","source_table":"USR02"},{"calculated":false,"formula":"","label":"Valid to","source_field":"GLTGB","source_table":"USR02"},{"calculated":false,"formula":"","label":"Scheduled by","source_field":"SDLUNAME","source_table":"TBTCO"},{"calculated":true,"formula":"Dialog user / locked / validity ended / ends within N days / user missing","label":"Finding","source_field":null,"source_table":null}],"parameters":[{"example":"*","kind":"select_option","label":"Job name","name":"S_JOBNM","ref_field":"TBTCO-JOBNAME","required":false},{"example":"S, P, Z","kind":"select_option","label":"Job status","name":"S_STAT","ref_field":"TBTCO-STATUS","required":true},{"example":"","kind":"select_option","label":"Step user","name":"S_AUTHU","ref_field":"TBTCP-AUTHCKNAM","required":false},{"example":"A","kind":"select_option","label":"Step user type","name":"S_USTYP","ref_field":"USR02-USTYP","required":false},{"example":"X","kind":"checkbox","label":"Periodic jobs only","name":"P_PERIO","ref_field":"","required":false},{"example":"30","kind":"parameter","label":"Warn for user validity ending within (days)","name":"P_VALDY","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Also show jobs without findings","name":"P_ALL","ref_field":"","required":false}],"part_of":["basis-daily-system-check-pack"],"performance":"Narrow TBTCO by status; finished (F) and cancelled (A) jobs are not needed for this report. Read user data once for the distinct step users. The report finishes in seconds; a weekly background run is enough.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=basis-background-jobs-personal-users","related":["basis-cancelled-long-running-jobs","basis-inactive-user-auto-lock-job"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Shows jobs and the step user; no user type, lock or validity end.","tcode":"SM37"},{"note":"Shows the lock and validity of a user; it does not show in which jobs the user is the step user.","tcode":"SU01"}],"summary":"A custom ALV report that lists periodic or scheduled background jobs with a step running under a personal dialog user, showing whether that user is locked, when its validity ends and the last logon date. It catches in advance night jobs that will cancel when an employee leaves or the user is locked, and gives the list of jobs to move to a technical user.","tables":[{"access":"read","join_on":"","role":"Job header: status, period, planned start, scheduling user (driving table)","table":"TBTCO","variant":"both"},{"access":"read","join_on":"TBTCP-JOBNAME = TBTCO-JOBNAME AND TBTCP-JOBCOUNT = TBTCO-JOBCOUNT","role":"Job step: program, variant and step user","table":"TBTCP","variant":"both"},{"access":"read","join_on":"USR02-BNAME = TBTCP-AUTHCKNAM","role":"Type, lock, validity and last logon of the step user","table":"USR02","variant":"both"},{"access":"read","join_on":"USR21-BNAME = TBTCP-AUTHCKNAM","role":"Person number of the step user","table":"USR21","variant":"both"},{"access":"read","join_on":"ADRP-PERSNUMBER = USR21-PERSNUMBER","role":"Full name of the step user","table":"ADRP","variant":"both"}],"title":"Background Jobs Running Under Personal Dialog Users Report","url":"https://nekuhub.com/en/reports/background-jobs-running-under-personal-users-report/","vendor_id":"nekudos"}