on 2023 Jun 08 11:09 AM
Hello,
Is it possible to determine the username via SAP Personas scripting?
My aim is to retrieve the username when a user logs into SAP, utilize it to determine their personnel number, and subsequently display the user's basic SAP HR information on the SMEN screen.
Any guidance, assistance, or suggestions would be greatly appreciated.
Thank you!
Request clarification before answering.
Should be able to use session info library to get the detail; sample statement as below:
var user = session.info.user;
// returns current USER
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've previously built out a flavor for HR using PA20. Here's a couple RFC's that may be useful for getting additional HR info:
PAD_EMPLOYEE_HIREDATE_GET
BAPI_USR01DOHR_GETEMPLOYEE
User | Count |
---|---|
62 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.