cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Image from R3

Former Member
0 Kudos

Hi Experts,

I want to display images of the respective employees from the R3 system. How can i do it? In what format the image will be sent from R3?

Thanks & Regards,

Mugundhan.A

Accepted Solutions (1)

Accepted Solutions (1)

DeeptiChavare
Active Participant
0 Kudos

Hi,

BAPI can send image as binary stream.

You can save binary stream, create an instance of IResource from the steam and use it to display image.

Regards,

Deepti

Former Member
0 Kudos

Hi Deepti,

Thanks for ur reply. Can you give me the code for the conversion.

Answers (4)

Answers (4)

Former Member
0 Kudos

Kandha,

check these links

/thread/825314 [original link is broken]

/thread/825313 [original link is broken]

SAP Note:700495,800240

HRXSS_WIW_GET_DETAILS

Thanks

Bala Duvvuri

Former Member
0 Kudos

hi!

Please go through this blog:

DeeptiChavare
Active Participant
0 Kudos

Hi,

1. Create an attribute 'BinImg' of type 'binary' in context. Save binary stream returned from BAPI in this attribute.

2. Create another attribute 'MyImage' of type String.

3. Go to view layout. Create an UI element image. Map its source property to MyImage attribute.

4. Once you have saved binary stream from BAPI, use following code to display image:

byte b[]=wdContext.currentContextElement().getBinImg();

IWDResource res=WDResourceFactory.createCachedResource(b,"R3Image",WDWebResourceType.JPG_IMAGE);
	  
	String imgStr= res.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal());
	
	wdContext.currentContextElement().setMyImage(imgStr);

Regards,

Deepti

Former Member
0 Kudos

Hi Deepti,

Thank u very much. I will try out..

Former Member
0 Kudos
Former Member
0 Kudos

HI Ruturaj,

Thanks for ur reply. I couldn't get enough details to implement my requirement. Is there any other pdf..