Sure, you can use the BAPI: BAPI_USER_ACTGROUPS_ASSIGN. 😀 I will make a video about this, because it is really helpuful if you have to sync your users over different SAP systems.
You find it here under "address" CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = sy-uname IMPORTING address = ls_addr ls_addr is your structure, the fullname ist then: ls_addr-fullname
@@likithatv7473 Your Error can mean many things... But it is definitely not the BAPI Call. Have you checked the t-code /n/iwfnd/error_log ? You can set static data to check if the entity works. getEntity expect only 1! record!
Thanks u saved the Day
Glad to hear that 🤗 Thanks for your comment! 🤗😀
Hi, thanks for the hint. Can you set the roles for this new user as well via bapi when you create it?
Sure, you can use the BAPI: BAPI_USER_ACTGROUPS_ASSIGN. 😀
I will make a video about this, because it is really helpuful if you have to sync your users over different SAP systems.
@@CustAndCode wonderfull m8, you have a new happy subscriber :)
@@_rubs Thank you! 😀
How to get system user name from user_id using bapi_user_get_detail?
You find it here under "address"
CALL FUNCTION 'BAPI_USER_GET_DETAIL'
EXPORTING
username = sy-uname
IMPORTING
address = ls_addr
ls_addr is your structure, the fullname ist then: ls_addr-fullname
@@CustAndCodeI need to use this in get entity method in odata service
When I execute it shows internal data server error
@@likithatv7473 Your Error can mean many things... But it is definitely not the BAPI Call. Have you checked the t-code /n/iwfnd/error_log ? You can set static data to check if the entity works. getEntity expect only 1! record!