on 01-11-2007 10:54 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.
I am doing samething but i am getting following error while executing function statement
Can anybody help me in this
Exception in thread "main" com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Illegal access to a string (offset too large)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1242)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3816)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3261)
at com.example.Testingrfq.main(Testingrfq.java:35)
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 doing the same thing but i am getting following error
Exception in thread "main" com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Illegal access to a string (offset too large)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1242)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3816)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3261)
at com.example.Testingrfq.main(Testingrfq.java:35)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
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.