on 07-09-2009 6:00 AM
Hi,
I am implementing a upload function in WebDynpro Java connecting to ERP/R3 through a ZBAPI.
Following the link below, I can retrieve the file data in the WebDynpro. But then.... I have problems in sending to R3.
1. What data type should be stored in Web DynPro? (Binary? ByteArray? I have tried XString, but seem like WebDynpro wrongly recognize it as binary and error occur)
2. What data type should the R3 ZBAPI Input be? (Binary? ByteArray? XString?)
I have searched in the Internet, but most of the guides are just up to my stage, and I do not know how to proceed. Could anyone help?
Best Regards,
Chris
hi
there is no restriction with the datatypes you are inserting , for instance you are trying to
insert FFIRSTNAME which is of try string and this has to be integrated in ZRFC's attribute , but the
ZRFC attribute has to be same with the paramameter you are passing to the ZRFC.
if you are passing INT , NUM ,CHAR , BINARY to ZRFC's attribute , it should also contain the same
sttributes with same data type. if there is data type mismatch from the webdynpro with the backend R/3
so there is no way you can send the data to the backend directly ,
may be you have to TYPECAST the data with the data that is present in the backend and then send it .
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Murali,
Thanks for your reply.
But I still cannot find a suitable type for the ZRFC.
I have stored the data in Web Dynpro as byteArray (binary type). So.... what datatype should I choose for the FileData attribute in the ZRFC? (For example, if I want to pass a String from Web Dynpro, I will choose CHAR with length 100 in the ZRFC. Therefore, in my case of passing a binary, what datatype should I choose?)
Thanks and Regards,
Chris
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.