on 11-09-2011 3:46 PM
Hi,
I'm getting a JPG image from SAP via RFC.
I've designed the MBO to use the RFC, it returns 2 parameters, mime type (image/jpeg) and the binary data into an XSTRING data type field.
Then I've created a Mobile Workflow to show this image, and the call to the RFC works OK because I'm getting the mime type value, but the binary data field arrives empty to SUP... How can I solve this problem?
Hi guys,
Might I ask you a follow up question to this thread. If you were to look for information regarding SAP backend and SUP best practices such as these, where would you expect to find this information.
Any and all suggestions are welcome.
Cheers,
Annette
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marshal ,
Ultimately , i need to display an employee image outside of SAP .
I did the following :
1) I am using the BAPI , " /MIVE/EMPLOYEE_PHOTO " to display the image of an employee ( PERNR, residing in SAP ECC 6.0 ) outside of SAP .
But after consuming the BAPI in a Simulator , its showing some unknown characters ( I dont know , whether the image format is not compatible ).
I dint get the photo .
2) I also tried using the BAPI . "HR_ESS_WHO_PROG_GET_PICT_URI" whoch returs only the URI of the image .
Both cases failed .
Could you please help me ?
Thanks,
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
I am trying to send an image from windows mobile (Thick client application) to an SAP backend. The image stored in byte[] which is then converted into a base64string format. Can i send this to SAP and this be convreted to xstring in SAP?
Regards,
Vivek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm closing this thread adding the final solution that Sybase has given to the problem.
When you create an MBO from an RFC that contains an XSTRING, the MBO field is maped as a "BINARY" without specifying the length. If you modify the type specifying the length with a very large value, for example BINARY(320767). Then it works
hi marshal - myself facing the same problem could you pls tell the solution for it or mechanism of tackling this issue...
waiting for your reply
thanks
SK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sivakumar,
It's a size error.
I tried to modify the image size and it started to work when the size was 400x400 pixels, I don't remember the size in KB but it was between 100 and 200KB. After the throughput the MBO transforms the xstring value to a NULL.
We opened an OSS note, because in the documentation you can read that you can attach data to a Mobile Workflow up to 4MB. But the problem is not between MBO and Workflow, it's between MBO and backend, so it's impossible to attach a 4MB file if the MBO is not capable to get the the data... We don't have a clear answer about the issue after a few weeks.
PD: I tried to store the image in the sample database to check if the problem is with the SAP JCO, but I got the same result.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.