on 01-23-2013 9:22 PM
Hi,
We are trying to upload a .XLS or .CSV file from a mobile app.
So far we are exporting the file content as XSTRING from mobile to a custom RFC that calls function SCMS_XSTRING_TO_BINARY to get the binary.
The issue is that the binary_tab doesn't came with binary content, it throws the same xstring data.
We guess it could be the structure type, I have read several post and use the following types without luck:
x255
x
any
solix
solix_tab
sdok_sdat
sdokcntbin
sdokcntascs
Any idea to solve this, or to upload a file from iOS device?
Regards,
Francisco Silva
Hi everyone,
Let me tell you how we achieve this. There are two scenarios:
To answer the initial question: binary_tab receives the binary, but not in test mode.
Regards,
Francisco Silva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For a CSV use String not XSTRING, since CSV is basically text no hexadecimal required.
Another thing you can try is to pass the data using a JSON table and create the CVS or the XLS with an ABAP FM. This solution might not be elegant but it should work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Question - Are you uploading using a SUP table or Netweaver Gateway or some other mobility middleware ?
I note that you could use the CSV format for your data. CSV can be considered XSTRING friendly being more of an Ascii format than a binary format.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.