on 01-11-2007 10:55 PM
Hai All,
I developed a JAVA application to update data into SAP using JCO via RFC. When i pass table to the function module i am getting the below error
com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Conversion from type T to D not supported.
Please let me know how to solve this.
Below is my code
IRepository m_Repository;
IFunctionTemplate ftemplate;
JCO.Table PwdReq;
JCO.Function function;
m_Repository = JCO.createRepository("MYRepository", client);
ftemplate = m_Repository.getFunctionTemplate("Z_GESEFM_UPD_PWD_RESET_REQUEST");
// Create a function from the template
function = new JCO.Function(ftemplate);
// Feeding in input parameters
PwdReq = function.getTableParameterList().getTable("RESULT2");
String userid = "PATCHTEST14 ", reqDate = "",reqNo = "01",reqStatus = "03", boxID = "09",ind2 = "X",
lcode = "abcd",rem = "One record testing";
PwdReq.appendRow();
PwdReq.setValue(userid, "USERID");
PwdReq.setValue(reqNo,"REQ_NO");
PwdReq.setValue(reqStatus,"REQ_STATUS");
PwdReq.setValue(boxID,"BOX_ID");
PwdReq.setValue(ind2,"IND2");
PwdReq.setValue(lcode,"LCODE");
PwdReq.setValue(rem,"OTHER_REMARKS");
// execute the function with the input parameters
client.execute(function);
Thanks & Regards,
H.K.Hayath Basha.
Hai ,
The problem is solved. The RFC function which i called had a bug. That fuction module updates a table with current date, instead of passing date to that field time is passed that's why i got the error.
Regards,
Basha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Could you please post the parameters of the function you are using? Without that information, it's not easy to reproduce the error.
regards
daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
I am not very good in Java.
but try this code to giving input parameter.
function.getImportParameterList().setValue(userid, "USERID");
if you are not using Try and Catch blok then use Try and Catch blok,
Regards
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.