Urgent : Error in RFC Look Up using JCO.
Hi,
I have a scenario od accessing a database table by passing the name through XI and also giving the Where condition ,passing the fieldnames and getting back the field values . The FM that id used for this on ABAP side is <b>RFC_READ_TABLE</b>.
For this Scenario I inserted a Java Code using JCO's in th UDF for the RFC Look Up's.
I got errors while activating the MM which i am not able to rectify.Please Help me in this.
<b>Activation of the change list canceled Check result for Message Mapping MM_Notes_2_ED_Z_SDIDOC |
Starting compilation Source code has syntax error: /usr/sap/EXD/DVEBMGS49/j2ee/cluster/server0/./temp/classpath_resolver/Map303c42607df411dc8b1d00e000c553d9/source/com/sap/xi/tf/_MM_Notes_2_ED_Z_SDIDOC_.java:1539: cannot resolve symbol symbol : method createClient (java.lang.String,java.lang.String) location: class com.sap.mw.jco.JCO JCO.Client mConnection = JCO.createClient("200","EN"); ^ /usr/sap/EXD/DVEBMGS49/j2ee/cluster/server0/./temp/classpath_resolver/Map303c42607df411dc8b1d00e000c553d9/source/com/sap/xi/tf/_MM_Notes_2_ED_Z_SDIDOC_.java:1578: cannot resolve symbol symbol : variable result location: class com.sap.xi.tf._MM_Notes_2_ED_Z_SDIDOC_ result.addValue(resultSet[pos]); ^ 2 errors</b>
<b>This is an Urgent Requirement. Please reply ASAP.</b>
Regards,
Priyanka.
Hi Priyanka,
The error message says there are 2 errors:
1. createClient
2. result.addValue
For the first one, I guess you might not have included all the API required for lookup
For second one, please check what is the type of object you are adding to the resultset, maybe you can just say result.addValue(resultSet[pos] + ""); to typecast it.
Similar Messages
-
Error while calling BAPI_PARTNEREMPLOYEE_CREATE BAPI using JCO
Hi All,
Our requirement is to create and update customer contact details from java application. For this purpose we are trying to call BAPI_PARTNEREMPLOYEE_CREATE BAPI for create contact and BAPI_PARTNEREMPLOYEE_EDIT for updating contact information. As these BAPIs are of online version, error is coming while calling these BAPIs.
So is there any way to call these BAPIs through JCO or are there any alternative BAPIs available for same purpose?
Thanks in advance,
Arati.Hi,
All the bapi or function module available in SAP to create contact person will internally do a call transaction to VAP1 and VAP2 tcodes in order to create or change contact person respectively.
We had a similar problem when we were creating and updating customer contact person using inbound idoc. We then created a bdc recording for the same and then created two function module with name Z_CREATE_CONTACT and Z_CHANGE_CONTACT. In your case you can make this function modules as RFC enabled FM and call them using JCO I guess.
KR Jaideep, -
How to start SAPGUI at entry point to RFC for debugging (using JCO)?
Hi,
I am calling an RFC using JCO and trying to have the SAPGUI pop up at the entry point to the RFC for debugging. But it is not working on Mac OS X.
I activate the debug via
JCO.Client client = JCO.createClient(..);
client.setAbapDebug(true);
client.setSapGui(1);
client.connect();
it gives error:
sh: line 1: /usr/sap/DV2/SYS/exe/run/sapgui: No such file or directory
com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Start 'sapgui' failed.
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1098)
I then tried to set environment variable SAPGUI=/Applications/SAPGUI\ for\ Java\ 6.3r5.2/SAPGUI\ 6.30rev5.2.app/Contents/MacOS/SAPGUI
and it then starts up the SAPGUI for Java Logon Pad.
But, I want the SAPGUI to start up at the entry point to the RFC.
Is this possible in Mac OS X? It has worked before on Windows using the RFC SDK utilities or middleware tools such as IBM Crossworlds.
ThanksHi Robert,
Thanks for the reply, it was very helpful as I had given up hope on getting a solution. Unfortunately I am still getting an error.
1) I created a script as per your directions containing
"/Applications/SAPGUI for Java 6.3r5.2/SAPGUI 6.30rev5.2.app/Contents/MacOS/SAPGUI" -n -o $*
2) Now the SAPGUI application starts, but does not open a window and I get the error:
ERROR #############################
18.05. 11:58:42.943 ERROR: AgiWindowAdaptor::update: no menu
ERROR #############################
3) I switched on the tracekeys with -t CON,SES,EVT,C_AGI to get more detail:
18.05. 11:58:41.420 TRC: Active trace keys: CON,SES,EVT,C_AGI
18.05. 11:58:42.709 CON: new GuiConnection
18.05. 11:58:42.727 CON: GuiConnection.open(/H/<appserver>/S/3235&rfcid=02D5428B909E32190000,tmp)
18.05. 11:58:42.846 CON: new GuiNiNetConnection
18.05. 11:58:42.872 CON: GuiNiNetConnection.open(conn=/H/<appserver>/S/3235&cpg=1127&jenc=MacRoman&jloc=en&rfcid=02D5428B909E32190000)
18.05. 11:58:42.872 CON: GuiNiNetConnection.open: resolved hostSpec = /H/<appserver>/S/3235
18.05. 11:58:42.915 CON: -
18.05. 11:58:42.916 CON: GuiNiNetConnection: sending DIAG data to connection for modus 0
18.05. 11:58:42.918 CON: -
18.05. 11:58:42.919 CON: GuiNiNetConnection: sending DIAG data to connection for modus 0
18.05. 11:58:42.927 C_AGI: calling AgiSessionPool->ParseIt() for modus 0
18.05. 11:58:42.929 C_AGI: AgiLibAdaptor::onNewPrimary
18.05. 11:58:42.941 C_AGI: returned from AgiSessionPool->ParseIt() for modus 0
ERROR #############################
18.05. 11:58:42.943 ERROR: AgiWindowAdaptor::update: no menu
ERROR #############################
18.05. 11:58:42.950 SES: GuiAutomationProcessor: processing automation call list for modus id 0
18.05. 11:58:43.043 SES: new GuiSession
18.05. 11:58:50.557 CON: GuiNiNetConnection: sending CLOSE data to writer thread
18.05. 11:58:50.791 CON: -
18.05. 11:58:50.791 CON: GuiNiNetConnection: sending DIAG data to connection for modus -1
18.05. 11:58:50.793 C_AGI: AgiLibAdaptor::onDelContainer
18.05. 11:58:50.794 C_AGI: AgiLibAdaptor::onDelContainer
18.05. 11:58:50.794 C_AGI: AgiLibAdaptor::onDelPrimary
18.05. 11:58:50.795 CON: GuiConnection.destroyNetConnectionAndParser
com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Start 'sapgui' failed.
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1098)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:2983)
Any further ideas on what is wrong? There is a post on another forum http://listserv.sap.com/pipermail/linux.general/2002-June/002538.html with the same error, but no response..
Thanks,
Richard -
Error generating RFC connections when using the wizard in SMSY
We are using the wizard in smsy to generate the rfc destinations but the error
Error create rfc destination back and also no read destination assigned for read access.
The user has s_rfcacl assigned on both sattelite and solman system and
we have tried deleting and recreating (by rerunning the wizard) rfc
destinations. We have also tried to manually create the rfc
destination. Any help appreciated.Hi,
The problem still outstanding is with rfc connection SM_<SID>CLNT<CLIENT>_TRUSTED in the Solman system. The error message is [No authorization to log on as a trusted system (Trusted RC=1).]
The following roles/authorisations are allocated to the user
S_RFC
S_RFCACL
S_TABU_CLI
S_TABU_RFC
S_TABU_SHOW
S_TCODE
S_USER_GRP
and SAP_ALL.
I have regenerated the roles, etc. Deleted and recreated the trust, using wizard and manually still error. The connection from the sattelite system to the Solman works fine. Please assist further. -
ERROR while getting BAPI list using JCo Action
Hi,
We are using MII 14. I have created JCo connection and also configured connection alias.
I am using this two in JCo interface action just to test whether the connection is working fine.
But I am getting "No RFC authorization for function module RFC_GET_FUNCTION_INTERFACE" when i search for BAPI_*.
Can you please guide on , what priviliges user which we will use to connect ERP from MII , should have ?
ThanksI do not know the specific Role or Permission required. It might be in the help documentation,b ut the security folks should be able to figure it out from the error message. Someone else may know the exact Role or Roles needed.
The ID you are using does not have external access to the RFC pool, but you should also provide which RFCs you are planning to use as some have additional permissions required.
Regards, Mike
SAP Customer Experience Group - CEG -
Without BPM:Call RFC using JCO in interface mapping using java mapping
Hi all
I have a very small scenario where REQUEST from the customer comes via Web Service all i have to do is to read the request using SOAP adapter and call an interface mapping(lets say the name is IM_TEST) inside which there is a JAVA MAPPING program written which will call an RFC in CRM using JCO.
Now this was really simple and i cud test the Interface mapping successfully, but the problem is when loading the scenario in integration directory i have certain things to do
1. to set the SENDER AGREEMENT which i did correctly
2. set the RECEIVER DETERMINATION, INTERFACE DETERMINATION AND RECEIVER AGREEMENT now here i am stuck because there is no receiver in my case as the RFC is called inside the mapping only.
can i call one more message mapping in IM_TEST which will write file onto the XI directory and then in RECEIVER DETERMINATION, INTERFACE DETERMINATION AND RECEIVER AGREEMENT i can mention the reciever as FTP.
I tried it but i gives the following error
Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_MM_TEST_WRITE_FILE: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Parsing an empty source. Root element expected!
Please help me how to complete the scenario so that customer can run it end to end.
<REMOVED BY MODERATOR>
Edited by: Prateek Raj Srivastava on May 12, 2010 1:44 PMStefen
What do i do then...actually this is the project requirement. They want a very fast response from PI and thats why they wnt us to omit BPM and the Graphical mapping from the scenario.
I am able to test the interface mapping which calls the the Java mapping inside which there is an RFC call, but i cannot implement it end - to - end as there is no receiver business system in this case. The only business system i have is the SOAP sender.
I am really troubled now, please help me with a solution.
Is there any other possible way through which the process can become very fast whic hcan meet their requirement.
Regards
Naina -
How to use Jco to read a transparent table?
For example I want to use java to read table T002,
I can use Jco, but does anybody know how to use Jco to read a data table?
Best regards,
LamentHi,
if its exposed Using RFC you can use JCo. Other wise you could give a try accessing it using JDBC.
Regards
Ayyapparaj -
Error while creating PO using JCO......?
hello all,
i am trying to create po by using jco. i have done everything
but at time of execution its throw following error
please try to help..
thanks in advance..
com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Exception condition "FAILURE" raised.
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1244)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3842)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3287)
at org.apache.jsp.pocreate1$jsp._jspService(pocreate1$jsp.java:167)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:595)check user Authorization in R/3
nikhil -
Error connecting using JCO.Client: null
Hi,
I created a WD app which uses the RFC FM. I followed How-To-build-webdynpro.pdf document to create the WD and trying to deploy and run, I see the view page but when I trigger the action via button UI element I get following error as exception in the try catch block of execute method
In the NWA I see
Could not create JCOClientConnection for logical System: 'WD_MODELDATA_DEST' - Model
An exception has occurred: Erorr accessing cache [region]='XCM_SESSION_SCOPE'.
[EXCEPTION]
com.sap.isa.core.cache.Cache$Exception: Cannot return access for region 'XCM_SESSION_SCOPE'. Cache is not ready
I'm using following existing JCO definition by configuring them with correct parameters. Tested them successfully
WD_RFC_METADATA_DEST
WD_MODELDATA_DEST
What am I missing? In SM04 tcode I see 2 connections are opened with 2 Megabyte not released for a long time. I think if connections are released correctly it should drop to 1 megabyte. Is there anything that I need to do just after execute method as shown below (I have replaced function module with <FM> in below code)
try {
wdContext.node<FM>_Input().current<FM>_Get_InputElement().modelObject().execute();
} catch(Exception exception) {
msgMgr.reportException(exception.getLocalizedMessage(), false);
wdContext.nodeOutput().invalidate();
msgMgr.reportSuccess("Success");
The error is in the catch block which is displayed on the view page.
Thanks
Praveen
I modified the above code and put in finally block to close the connections as follows, please let me know if this is OK. I still get error message as "Error connecting using JCO.Client: null" but no additional connections in the SM04 after adding finally block.
try {
wdContext.node<FM>_Input().current<FM>_Get_InputElement().modelObject().execute();
} catch(Exception exception) {
msgMgr.reportException(exception.getLocalizedMessage(), false);
}finally {
// disconnect the connection
wdContext.<FM>_Get_InputElement().modelObject().modelInstance().disconnectIfAlive();
Edited by: Praveen11 on Oct 5, 2009 9:06 AMThanks Satish.
The issue is resolved. I think it was to do with permission, as I was running directly from NWDS deploy and run the session didn't have proper authorisation or something that was causing this error.
When I copy pasted the URL in the correct browser session window I got no error and function module was successfully executed. However the issue now is that values are not showing up in the view may be to do with mapping context or model I'll review and post back as different thread.
Thanks
Praveen -
Error connection using JCO.Client
Hello all,
I got the following problem <b>"Error connection using JCO.Client"</b> and don't know what's wrong. All connections works at the content administration when I test the connection.
Can anyone help me please?
Best regards
PetraHi,
I almost tested the JCO connection with the 'test' button successfully at the content administrator. I tested again and it still works. And I have a stand alone webdynpro application (no portal).
Now I got the following error message after completing the coding with 'e.printStackTrace().'.
<i>
"Error connection using JCO.Client:null"
"[Ljava.lang.StackTraceElement:@60db08"
"Could not create JCOClientConnection for logical System:WD_MODELDATA_DEST - Model: class impersonalaccout.intro.model.Z_Fh0002_Datenverwaltung.Please assure that you have configured the RFC connections and/or logical System"
"com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCException:Error connection using JCO.Client:null"
"com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCException: Could not create JCOClientConnection for logical System: WD_MODELDATA_DEST - Model:class impersonalaccout.intro.model.Z_Fh0002_Datenveraltung.Please ***"</i>
Can anyone explaine me what's wrong?
Bye
Petra -
Error connection using JCO.Client :null
Hi,
I have small doubt in JCO connection, can any one help me.
In WebDynpro application some time we are getting exception like Error connection using JCO.client : null.
Connection :200 we are maintained in JCO configuration.
If I call one RFC useing JCO it will created a session or connection to ECC server, because we are getting exception in server too many sessions to ECC server.
Write now we are not using any code to close the connection like.
SaveModel svModel = (SaveModel)WDModelFactory.getModelInstance(SaveModel.class);
svModel.disconnectIfAlive();
If we use the above code it will close the connection or sessions.
Is it recommended to write the code in every RFC calls or in final block of all RFC calls ?
Regards,
Satya.Hi Satya
/message/1944647#1944647 [original link is broken]
/message/8499#8499 [original link is broken]
Please go through this link.Hope it will be helpful for you
Regards
Ruturaj -
WDDynamicRFCExecuteException: Error connecting using JCO.Client: null
Hi
This is a common problem,I have seen many threads , but following them did not solve my problem.
I have the JCOs tested successful from WD Admin. When I create a sample WDJ application with RFC model and deploy it to the server, I get
Exception:com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecution: Error connecting using JCO.Client: null.
I have checked my binding , I have only one input parameter and the code is
wdComponentAPI.getMessageManager().reportSuccess("Inside wdInit in Component ctrller");
Z_Plm44_Obsoleteimpactanalysis_Input input = new Z_Plm44_Obsoleteimpactanalysis_Input();
wdContext.nodeZ_Plm_Input().bind(input);
wdContext.createZ_Plm_InputElement(input).setV_Type(wdContext.currentZ_Plm_InputElement().getV_Type());
Also I have implemented closing the connection
disconnectifalive
I contacted the basis team... they tell me that everything is fine from their end. they have tried increasing the JCO connection pools.
Thanks for your help in advance
KarthikaHi Karthika
Check this pdf and try to catch WDDynamicRFCExecution in catch block.
Please put your code in try catch and also import com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecution in your code;
http://www.sappro.com/downloads/WebDynproJava.pdf
Re: User has no RFC authorization for function group.
Hope this will help you.
thanks
Arun Jaiswal -
Error in Connecting to BAPI (Error connecting using JCO.Client: null)
Hi,
I am trying to connect to a BAPI to extract data. However, I am getting this error
Error connecting using JCO.Client: null
Pls explain the meaning of the error and solution to the problem
TIA
HimanshuHi,
This means you are getting error while executing your model. its not able to use the JCO's.
as I asked previously check your JCO status... its up and running????
Here are some threads having same problem
URGENT :Error connecting using JCO.Client: null
Model and MetaData configarations in JCO Connection
Exception while executing
PradeeP
Edited by: pradeep bondla on Jul 31, 2008 11:53 AM -
"COMMUNICATION FAILURE" during JCo call. Error opening RFC connection
Hi
I am trying the following scenario
/people/varadharajan.krishnasamy/blog/2007/05/11/how-to-use-digital-certificates-for-signing-encrypting-messages-in-xi
In SM 59 test connection of AI_RUNTIME_JCOSERVER throws error " Error opening RFC connection"
Do I need to activate any service in SICF and do I need to do any IE configuration (sxmb_adm)
pls let me know the steps to solve this
thanks
manianHi Manian,
pls chk with ABAP system tha tu have given the correct PWD and CLNT No
Use
You need to create the following RFC destinations with both transaction SM59 (ABAP) and the Visual Administrator (Java):
● AI_RUNTIME_JCOSERVER
Points from the Integration Server to the mapping runtime. The program ID corresponds to the entry under JCo RFC provider for the J2EE Engine (used for the mapping runtime, value mapping, and the exchange profile).
● AI_DIRECTORY_JCOSERVER
Points from the Integration Server to the Integration Builder. The program ID corresponds to the entry under JCo RFC provider for the J2EE Engine (used to refresh the runtime cache).
● LCRSAPRFC
The RFC destination LCRSAPRFC is required for the connection to the System Landscape Directory (SLD). It is used to read the exchange profile.
● SAPSLDAPI
The RFC destination SAPSLDAPI is required for the connection to the SLD. It is used by the ABAP API.
Depending on your client settings, it may be necessary to log on to your Integration Server host as SAP system user with the authorization to maintain customizing tables and to release transport orders.
User SAP* or DDIC does not have these authorizations
Thanx
Sampath -
Exception when using jco to call rfc
Hi All,
When I used JCO to call rfc 'RFC_GET_TABLE_ENTRIES' to get the records of the table 'MARC'. I met the following Exception, it seems that there are too many records in the table. And I have used the import parameter 'MAX_ENTRIES' to set the number of records , but it seems no use. So is there any suggestion to solve this problem?
Exception in thread "main" com.sap.conn.jco.JCoException: (104) RFC_ERROR_SYSTEM_FAILURE: No storage space available for extending an internal table.
at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:602)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1679)
at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:1018)
at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:1071)
at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:1056)
at com.sap.conn.jco.rt.AbapFunction.execute(AbapFunction.java:251)
at JTest.step4WorkWithTable(JTest.java:179)
at JTest.main(JTest.java:351)
Caused by:
RfcException: [null]
message: No storage space available for extending an internal table.
Return code: RFC_SYS_EXCEPTION(3)
error group: 104
key: RFC_ERROR_SYSTEM_FAILURE
message class: SR
message type: A
message number: 044
message parameter 0: TSV_TNEW_PAGE_ALLOC_FAILED
at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:1927)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1631)
... 6 more
Caused by: com.sap.conn.rfc.exceptions.RfcGetException: No storage space available for extending an internal table.
at com.sap.conn.rfc.engine.RfcImp.ab_rfcerror(RfcImp.java:1233)
at com.sap.conn.rfc.engine.RfcGet.rfcget_run(RfcGet.java:128)
at com.sap.conn.rfc.engine.RfcGet.ab_rfcget(RfcGet.java:23)
at com.sap.conn.rfc.engine.RfcRcv.ab_rfcreceive(RfcRcv.java:32)
at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:1884)
... 7 more
Thank you very muchCongrats Darek!
That function really works... here is my program test:
package integracao.sap.teste;
import java.util.Properties;
import integracao.sap.config.ConfigUtil;
import integracao.sap.funcao.RFC_READ_TABLE;
import com.sap.mw.jco.IRepository;
import com.sap.mw.jco.JCO;
public class TestJCOError {
private static Properties config;
private static JCO.Client createJCOClient(){
JCO.Client client = JCO.createClient(config.getProperty("numClient"), config.getProperty("user"), config.getProperty("password"), "EN", config.getProperty("host"), config.getProperty("numPrograma"));
return (client);
@param args
public static void main(String[] args) {
config = ConfigUtil.getConfig();
JCO.Client client = createJCOClient();
client.connect();
IRepository repository = JCO.createRepository("REP", client);
JCO.Function func = RFC_READ_TABLE.createFunction(repository);
func.getImportParameterList().setValue("MARC", "QUERY_TABLE");
func.getImportParameterList().setValue(";", "DELIMITER");
func.getTableParameterList().getTable("OPTIONS").appendRow();
func.getTableParameterList().getTable("OPTIONS").setValue("MATNR = '000000000000000011'", "TEXT");
func.getTableParameterList().getTable("FIELDS").appendRow();
func.getTableParameterList().getTable("FIELDS").setValue("MATNR", "FIELDNAME");
client.execute(func);
JCO.Table table = func.getTableParameterList().getTable("DATA");
System.out.println("NumRows: " + table.getNumRows());
System.out.println("Content: " + table.getValue("WA"));
Result:
NumRows: 1
Content: 000000000000000011
Hope it helps everybody!
Regards,
Danilo Andrade
Maybe you are looking for
-
PDFs on the net won't open with Reader 8
Hi When ever I click on a pdf from the interenet it opens in Acrobat Pro 6 instead of Reader 8 as I want it too and gives the error that Acrobat cant' open it within Internet Explorer even though I have the preferences set up correctly. How can I get
-
Log trapping with daignostic module
I am using a WebLogic mail session and diagnostic module to trap an occasional error in my server logs and it works great. However, now I have another requirement of trapping an error that is not in one of the WebLogic logs. This is a custom log writ
-
The screen of iphone 5s turn to red!
I would like to ask about why is my iphone 5s screen suddenly turn to red and it is very hard to turn off ? I also cannot turn it on. I am from Vietnam so I cannot go to the Apple stores to solve this issue. Are there any suggest for me? Thanks you!
-
Hi, During running GLG report ,DB server load bumped up to 50. I can't connect thru sqlplus.Application page were down. Then I killed smon and pmon to bring instance down ,reboot the server and started db & apps. Does any one had such situation? If y
-
Convert to CMYK or Export PDF?
I am putting together a big catalog project. In previous projects I converted all images to cmyk before ripping the pdf for final press print. Since the pdf export can convert to cmyk can I leave everything as is (RGB) and do the convert on export or