on 11-24-2011 1:54 PM
Hi,
Am doin file upload from Webdynpro portal.
My function module has got an importing parameter of type Xstring
i want the file to be uploaded converted to Xstring and then pass it into my FM , please suggest me the ways to convert my Resource type of the upload UI element into Xstring and then passit to my FM .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jenifer,
This is Ravi Shankar from Emergys..
I came to know about your Problem thro' Vijay Sir..
wdContext.currentZpocnov_Proc_InputElement().setFile_Data(...);
In setting the Value to the RFC Attribute - it's of Byte[] type.
Try using
byte[] buffer = new byte[1024];
try {
resource.read(true).read(buffer);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
then set
wdContext.currentZpocnov_Proc_InputElement().setFile_Data(buffer);
Try this code
Regards
K Ravi Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.