on 10-08-2015 10:27 AM
Hi all!
We have successfully implemented the badi: /IWPGW/ES_TGW_USER_DETAIL
We use the solution posted in this thread:
This works fine for people with profile pictures.
But some of our users does not have profile pictures yet.
The rest of HR Renewal seems to understand this - by showing:
/SAP/PUBLIC/BUSINESSSUITE/TM/ICONS/male.jpg
I want to be able to implement the same solution in the badi - but i cant return an URL - only an xstring for the method:
/IWPGW/IF_TGW_USER_DETAIL~GET_USER_PICTURE_STREAM
What have you done to overcome this issue?
we also have the system workflow user: WF_BATCH - we will never have a pa record - so he will never get a profile pictures.
suggestions are welcome
br Ronni
Hi!
Sorry for the inconvenience, i solved the problem myself.
if anyone should be interested :
DATA:
mime_repository TYPE REF TO if_mr_api,
content TYPE xstring,
mime_type TYPE string,
url TYPE STRING VALUE 'SAP/PUBLIC/BUSINESSSUITE/TM/ICONS/male.jpg'.
mime_repository = cl_mime_repository_api=>get_api( ).
CALL METHOD mime_repository->get
EXPORTING
i_url = url
IMPORTING
e_content = content
e_mime_type = mime_type.
cs_user_picture_stream-value = content.
This will return the "shadow" profile picture.
br Ronni
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.