cancel
Showing results for 
Search instead for 
Did you mean: 

MSS Approval UI5 - Photo of User - Badi GET_USER_PICTURE_STREAM

Former Member
0 Kudos

Hello Experts,

we have implemented the MSS Approval for HR Renewal.

If we start the chip we seen no photo of the user.

The oss has suggest us follow solution:

There is a BADI available which allows you to provide

user details (e.g. picture(s)). The name of the BADI is

/IWPGW/BADI_TGW_USER_DETAIL. Please check the online help for more

information -

http://help.sap.com/saphelp_gateway20sp09/helpdata/en/8b/6574533924e547e10000000a441470/content.htm .    Please be aware that there is the

BADI name "/IWPGW/BADI_TGW_USER_DETAIL" and the Enhancement Spot name

"/IWPGW/ES_TGW_USER_DETAIL'. Kindly implement the BADI to retrieve the

image(s).

Has anybody implemented the BADI and could help how to fill the value (coding for example)?

Regards,

Claudia Janecek

Accepted Solutions (1)

Accepted Solutions (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

http://scn.sap.com/thread/3714255 CA-MSS-HCM 2179923 1 25 No Workflow Icon on Approval Overview / Expanded Lane example is given here 2108489?? you can take a cue from this note http://scn.sap.com/community/bpm/business-workflow/blog/2014/11/25/journey-into-the-unified-inbox in above thread you can check with them and asking about it i ll look if we an sample coding, but you can debug and check

Former Member
0 Kudos

Thanks Siddharth for your answer.

I have read almost the threads.

I only want to know how the value of media data in Badi /IWPGW/ES_TGW_USER_DETAIL should be build!

former_member206394
Active Participant
0 Kudos

Dear Claudia,

Greetings!

Is your issue resolved? Did you get the exact code that solution?

I tried with many different logics, but i didnt work.

1.  Problem is with creating filters. in the link, it asks us to Select the PROVIDER_ID and the TASK_DEF_ID rows, but i could see only PROVIDER_ID.

2. in the method, i am not able to pass the image value to the parameter.

Please help me, if you got the solution.

Regards,

Shankar

Former Member
0 Kudos

Hello Shankar,

no the issue isn't solved actually!

I have also tried many codings, but at least it doesn't workd. The employee Picture does not display.

I hope we get an answer from thread 3714255!

I have actually the same Problem with the filter in the badi. If I set the filter, the badi will get started!

Kind regards,

Claudia Janecek

Former Member
0 Kudos

Hello Shankar,

I have opend an oss message, now I have additional informations about the filters of the badi get_user_picture_stream:

**********

sorry for this confusion. You are fully correct, as for the badi for

the user picture, only the provider id needs to be set.

The documentation covers provided badis, not only the user picture,

but also task data; here the task definition would need to be set.

So again, no need to set task_def_id, only provider_id.

********

Do you get any solution about the problem.

Do you set the filter value of the provider ID.

What value of provider-ID do you set?

Kind regards,

Claudia Janecek

former_member206394
Active Participant
0 Kudos

Dear Claudia,

Greetings!

Thanks for an extra input.

No. I did not set the filter value of the Provider ID.  I dont know, what to fill in VALUE1 field.

So, still the confusion is continuing.  Hope, you would share the solution, if you get from OSS message.

Regards,

Shankar

Former Member
0 Kudos

Dear Shankar,

I have received answer fro oss, but it is dissatisfying.

1. Filter values:

the filter values would be set by the task processing service itself,

and you only might specify them in the filter values in the badi

definition or even have no filter defined, so the badi would be

executed for all providers - that I assume would be the use case that

would apply here.

=> so I will not set the filters!

2. about filling CS_USER_PICTURE_STREAM - value

the value does contain the picture itself, so it would not be an url

or content-id, but content (picture) itself.

Could you do anything with that?

Thanks for reply!

Claudia Janecek

former_member206394
Active Participant
0 Kudos

Dear Claudia,

Greetings!

Finally we had a reply in post 3714255

which is the correct answer.  I have also applied the same solution and finally i could see the User(employee) photo.

Thanks to Thanet Siriwetwarawut.

Solution:

Didn't use filtering. But pass the photo to the parameter by using FM ' HR_IMAGE_EXISTS ' then get a photo by FM ' ARCHIVOBJECT_GET_TABLE '. Then concatenate table binarchivobject into a string which you can pass to the parameter.

Hope this helps you also.

Regards,

Shankar

Former Member
0 Kudos

Dear Shankar,

thanks a lot for solution!

Regards,

Claudia

Answers (0)