cancel
Showing results for 
Search instead for 
Did you mean: 

/IWPGW/ES_TGW_USER_DETAIL -DEFAULT Picture?

ro9
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

ro9
Participant
0 Kudos

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

Answers (0)