JCO Connector Value Converstion.
Hi,
We have developed a Function Module by using BAPI . And the Java People are calling that function Module and Sending the Data for MIGO Transaction. When they are sending Quantity field has been declared as String in JAVA . In SAP when are Collecting from JAVA we declared our field as data type ERFMG means QUANTITY with 3 Decimal Places . But It is giving the error like Maintan Serial Numbers for total quantity.
How can we resolve this problem .. ?
How can we convert that string data to Quantity in the SAP ?
Bye,
Satya.
Hi,
We have developed a Function Module by using BAPI . And the Java People are calling that function Module and Sending the Data for MIGO Transaction. When they are sending Quantity field has been declared as String in JAVA . In SAP when are Collecting from JAVA we declared our field as data type ERFMG means QUANTITY with 3 Decimal Places . But It is giving the error like Maintan Serial Numbers for total quantity.
How can we resolve this problem .. ?
How can we convert that string data to Quantity in the SAP ?
Bye,
Satya.
Similar Messages
-
Problems creating JCO connector
We are having some problems when attempting to follow the steps indicated in the Post-Installation Slide Deck of RAR version 5.3. In step 4 (Create JCO Connectors) we are not able to create a new JCO connector associated with the given models in the WebDynpro Content Administrator. The "create" button displayed next to each model is disabled and the status indicated is "Status Unknown" (gray color).
When we test the SLD connection it is pointing to the default URL, while a different URL was specified during installation given an SLD already existed previous to SAP GRC installation.
Any ideas of where we need to be looking in order to fix this?Hi Pablo,
This happens because your SLD bridge is not configured correctly ,
Please follow the steps as under :
Login to Visual Administrator.
Expand Navigation menu under J2EE Server Name ,
Expand Services List
Click On SLD Data Suppllier
Click On http settings tab
Enter Host name and port number , user name /password for your system connection.
Click Save.
Click on CIM Client Generation settings tabs
Enter host name port , user account details you entered in http settings tab .
Click Save.
Click Supplier ( data transfer)icon on top of pane to transfer data information you have entered in sld supplier.
A pop up window appears " trigger SLD data transfer" )
Click = yes.
A pop-up with appear indicating transfer successful.
If this window does not appear , then SLD needs to be configured properly,
launch http://<hostname>:<portnumber>/sld
Click on Administration > Initial setup
Fill in values for :
Object server name :Name of computer <SPACE> 1
E.g AG500900A 1
Gate way host : Name of computer as above.
gateway port : portnumber as used in URL .
Import software catalog check box = OK
Import SLD objects
(close to 95791 objects need to get imported , wait for sometime till they are imported )
After importing is done , refresh once.
This should resolve, however if you still face it then setup technical system at
http://<hostname>:<portnumber>/sld
HOME > Techinical systems .
Click new technical system
Select webas ABAP
the details need to be fetched from SAP R/3 system for which JCO is to be created.
thnks -
MII 12.1: SSO with JCO Connector
Ok so I'm trying to setup MII 12.1.5 Build 87 to pass SSO ticket through JCO connector onto the respective SAP System.
MII is getting the ticket because it logs in automatically. So that's covered.
The checkbox for use of "SSO" in System Connection Editor is checked
The checkbox for AutoBind in the XacuteConnector is checked
Transaction property of "MYSAPSSO2" has been created and mapped to SAPSSO2Ticket property of JCO action
Now is all this supposed to override the system and user alias in the configuration of the JCO block?
What am i missing here that it's not working?
One thing I haven't tried yet is to export the MII TicketKeystore - SAPLogonTicketKeypair - cert , certificate and import it into the respective R/3 system....will try now since it just came to mind.
Anyone have any thoughts because i'm hitting a dead end here...Alin here is the solution...
You are right to have these steps...
The checkbox for use of "SSO" in System Connection Editor is checked
The checkbox for AutoBind in the XacuteConnector is checked
Transaction property of "MYSAPSSO2" has been created and mapped to SAPSSO2Ticket property of JCO action
But you also need...
Create a transaction property called MYSAPSSO2 and assign a value of SAPSSO2Ticket
Open your existing JCO Action block --> Configure Links --> Incoming --> <JCO Action Name> -->
Assign SAPUserName a value of "$MYSAPSSO2$"
and
Assign SAPSSO2Ticket a value of Transaction.MYSAPSSO2
Start and Stop SAPMMC and test the SSO
Also, there were some talks of SAP and MII servers having the same timezone, but I tested it with the same and without the same timezone and it appears to work either way. -
I would like to know if SAP has certified the JCo connector version 2.1.8 for connecting with R/3 4.6c systems. The JCo connector is used by an iWay connector in an Oracle application server version 10.1.2.
Can anyone comment on this? Thanks!Hello Philip,
the offical supported release by JCo 2.1.8 are listed on the given link above:
https://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000463654&
-> "Supports R/3 3.1I and higher (and other SAP Components that have BAPIs or RFMs)."
So this is a SAP product/technology we support always the highest version number. Have a look at SAP note 549268 under the chapter "Solution Support Strategy for SAP JCo" for official support statements.
Of course i cannot comment on the support level of the other vendors which are using this technology. If you want you can open a support call at SAP to get a more specific answer to your question.
Hope this information is useful for you,
Juergen -
Hi,
Can anyone explain functionlity of JCO Connector ?
Can we use java code in abap ?
In which editor ?
Bye,
Satya.Hi Satyanarayana,
<b>SAP Java Connector - Excample 1: Simple RFC call
Scenario
We will call the RFC function module ZNAS_HIE1_GET_MEMBER_FARM.that returns members that have owned a farm. Input to the function is a farm number, and output is a table of members that have owned the farm and Owner number (Sequence number of owners).
Class testJCO is excuted and calls class GetMemberFarm method GetMemberFarmFromSap. Input parameters to GetMemberFarm are Farm and Owner number.
GetMemberFarmFromSap executes RFC ZNAS_HIE1_GET_MEMBER_FARM, that returns a table of members that have owned the farm from the input parameters.
GetMemberFarmFromSap loops through the table and finds the member where ZZCHCODE (Owner numer), is equal owner number from the input-parameters. and returns the member.
Code
Class testJCO
public class testJco
public static void main(String[] args)
GetMemberFarm testGetMemberFarm = new GetMemberFarm();
String memberFarm= testGetMemberFarm.GetMemberFarmFromSap("0111020155","02");
System.out.println("Memberfarm: " + memberFarm);
Class GetMemberFram
import com.sap.mw.jco.*; //The JCO
public class GetMemberFarm {
public String GetMemberFarmFromSap(String farm, String OwnerNumber)
{ String zzmemb ="";
String memberFarm = "";
JCO.Repository mRepository;
JCO.Client mConnection = null;
JCO.Function myFunction = null;
//Create Connection to SAP
try
mConnection = JCO.createClient("800", //SAP client
"HFR", //User ID
"vimmer3", //Password
"EN", //Language
"53.205.22.71", //Host
"03"); //System
mConnection.connect();
System.out.println("Connection OK");
catch (Exception ex)
System.out.println(ex);
// Create function and parameters
try
//Create repository
mRepository = new JCO.Repository( "GetMember", mConnection );
//Get a function template from the repository
IFunctionTemplate ftemplate = mRepository.getFunctionTemplate("ZNAS_HIE1_GET_MEMBER_FARM");
//Create function
myFunction = new JCO.Function(ftemplate);
System.out.println("Function created");
//Set import parameter
JCO.Field zzfarm = myFunction.getImportParameterList().getField("ZZFARM");
zzfarm.setValue(farm);
System.out.println("Parameters ok");
catch (Exception ex)
System.out.println(ex);
// Execute function
try
mConnection.execute(myFunction);
System.out.println("RFC Call OK");
catch (Exception ex)
{ System.out.println(ex); //Exception from function
// Handle return table GT_HIERARCHY
// Loop over the table and find the record that
// has ZZCHCODE = OwnerNumber from the
// method parameters, and return Member for the
// record
JCO.Table gt_HIERARCHY = null;
try
gt_HIERARCHY=myFunction.getTableParameterList().getTable("GT_HIERARCHY");
//Loop thhrough table and return the member that has
// changecode (ZZCHCODE) = 02
for (int i = 0; i < gt_HIERARCHY.getNumRows(); i++)
{ gt_HIERARCHY.setRow(i);
String zzchcode = gt_HIERARCHY.getString("ZZCHCODE");
if (zzchcode.equals(OwnerNumber))
zzmemb = gt_HIERARCHY.getString("ZZMEMB");
catch (Exception ex)
{ System.out.println(ex);
// Disconnect from SAP
try
mConnection.disconnect();
System.out.println("Disconnected from SAP");
catch (Exception ex)
System.out.println(ex);
return zzmemb;
} //public class GetMemberFarm
Example: 2
SAP Java Connector - Example 3: Create Salesorder
This example shows how to make a sales order using the SAP java Connector and BAPI_SALESORDER_CREATEFROMDAT2. First the ABAP code for using the BAPI is shown, and next the Java implementation is shown.
ABAP Example
REPORT z_bapi_create_sales_order_test .
Order header:
- Order type: OR Important you must use the german code TA
- Sales org: 1000
- Distrb. chan.: 10
- Division: 00
- Sold to party: 1032
- Ship to party: 1032
- Purch order: DG-19970626-3
Order item:
- Material: P-100
- Qty: 1
DATA:
Order partners
li_order_partners TYPE STANDARD TABLE OF bapiparnr,
l_order_partners LIKE bapiparnr,
Structures for order header
l_order_header_in LIKE bapisdhd1,
l_order_header_inx LIKE bapisdhd1x,
Tables for order items
li_order_items_in TYPE STANDARD TABLE OF bapisditm,
l_order_items_in LIKE bapisditm,
li_order_items_inx TYPE STANDARD TABLE OF bapisditmx,
l_order_items_inx LIKE bapisditmx,
Return table from bapi call
li_return TYPE STANDARD TABLE OF bapiret2,
l_return TYPE bapiret2,
Sales document number
l_vbeln LIKE bapivbeln-vbeln,
Error flag
l_errflag(1) TYPE c.
START-OF-SELECTION.
Build partner information
CLEAR l_order_partners.
l_order_partners-partn_role = 'AG'. "Remember German codes !
l_order_partners-partn_numb = '0000001032'.
APPEND l_order_partners TO li_order_partners.
Build order header
Update flag
l_order_header_inx-updateflag = 'I'.
Sales document type
l_order_header_in-doc_type = 'TA'. "Remember German codes !
l_order_header_inx-doc_type = 'X'.
Sales organization
l_order_header_in-sales_org = '1000'.
l_order_header_inx-sales_org = 'X'.
Distribution channel
l_order_header_in-distr_chan = '10'.
l_order_header_inx-distr_chan = 'X'.
Division
l_order_header_in-division = '00'.
l_order_header_inx-division = 'X'.
Purchase order
l_order_header_in-purch_no_c = 'DG-19970626-300'.
l_order_header_inx-purch_no_c = 'X'.
Build order item(s) - Only 1 is used in this example
l_order_items_in-itm_number = '10'.
l_order_items_inx-itm_number = '10'.
l_order_items_in-material = 'P-100'.
l_order_items_inx-material = 'X'.
l_order_items_in-comp_quant = '1.000'.
l_order_items_inx-comp_quant = 'X'.
APPEND l_order_items_in TO li_order_items_in.
l_order_items_inx-updateflag = 'I'.
APPEND l_order_items_inx TO li_order_items_inx.
CALL Bapi
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = l_order_header_in
order_header_inx = l_order_header_inx
testrun = 'X'
IMPORTING
salesdocument = l_vbeln
TABLES
return = li_return
order_items_in = li_order_items_in
order_items_inx = li_order_items_inx
order_partners = li_order_partners.
END-OF-SELECTION.
Check and write Return table
CLEAR l_errflag.
WRITE: / 'Sales dcoument: ', l_vbeln.
LOOP AT li_return INTO l_return.
WRITE: / l_return-type, l_return-message(50).
IF l_return-type = 'E'.
l_errflag = 'X'.
ENDIF.
ENDLOOP.
No errors - Commit
IF l_errflag IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.</b>
Good Luck and thanks
AK -
Reg JCO Connector download and advice
HI friends...
using service user name i can downlaod the JCO connector ?
my doubt is shall i use the same JCO connector in some other server (Other customer) for installation purpose ?
and also JCO connector downlaod in market place is free of cost for customer or chargable ?
regards
devaYou Can download From service.sap.com/connectors
For more details Pls chk the HELPhttp://help.sap.com/saphelp_nw04/Helpdata/EN/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm
Kanagaraja L -
CC 5.2 JCo connectors not visible in CC
We have installed Compliance Calibrator 5.2 on our NW04S system, which already had Access Enforcer 5.2 installed. We have created and successfuly tested our JCo connectors in NW. Our SLD connector is tested successfully.
When we try to create a connector from within CC, we get nothing in the drop-down for JCO Destination. If we try to search for a connector name in AE, we get nothing.
We have verified that our CC user account is OK in SAP, and has the CC Administrator role in SAP.
We have verified that the SLD account is not expired or locked.
Any help will be appreciated.
Thanks!Jennifer,
I would suggest you try this also.,
VIRSAR3_01_MODEL
VIRSAR3_01_METADATA
And I believe you have defined your SLD data supplier in the SLD.
Thanks.
Regards,
Muthu Kumaran KG -
Hello All,
What is the difference between a JCO, RTA and a connector (in RAR config TAB). Please do let me know the same with relevance to the following scenario:
I have two SAP Development systems, whom I need to connect to one GRC DEV system (with RAR and CUP). In this case, what will be the RTAs, JCOs and connector (in RAR config TAB).
I am facing a lot of issues understanding this is I am a non-basis person but usually encounter these terms while doing the SAP GRC implementation as a security consultant. Kindly help me knowing these a bit better.
Tx.
AmitraHello Sunny,
Thanks for answering. It clears a lot now. Can you please confirm based on the reply you just sent, if my assumptions to the scenario as under are are correct:
*Scenario:* i have 2 SAP systems, say DE1 and DE2, which are development systems, with no HR installed on either.
*ASSUMPTIONS:*
Now, if I need to connect both of them to my GRC server, I would:
1. Install VirsaNH on both DE1 & DE2, which are the backend systems.
2. Create 2 JCO connections - one each for DE1 & DE2. These JCOs will be created from RAR tool. These two JCOs are in itself, a type of connectors.
Are the assumptions based on point 1 & 2 mentioned above correct?
Tx.
Amitra.
Edited by: ApnaMitra on Apr 14, 2011 3:35 PM -
OIM11gR2: OID connector - value #0 invalid per syntax
hi,
we are using OIM11gR2 and the "OID Connector 11.1.1.6.0" for our LDAP server.
we added 2 required custom attributes to the connector.
while creating a new ldap user we get this error message:
<9fbd3647322a969e:-67b0202:14107733d50:-8000-000000000001c4b8> <1379419286201> <BEA-000000> <oracle.iam.connectors.icfcommon.prov.ICProvisioningManager : createObject : Error while creating user
org.identityconnectors.framework.common.exceptions.ConnectorException: javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - pwdealerid: value #0 invalid per syntax
pwbranchid: value #0 invalid per syntax
this happens, when we enter a number with a leading zero in in. on the ldap server there are no restrictions on these two fields
for example:
pwdealerid 6282 -> works
pwdealerid 0625 --> ldap error 21
is this a bug in den oid connector, or a problem of the ldap server?
thank you!
brWhich I think is rooted in ORACLE_HOME being messed up. But my feeling is that once i get that resolved, I'll have a similar issue as when I use the JXplorer.
-
Hi Friends,
We are implementing ESS 600 SP7. There are about 650 essusers. So what will be the best value for <b>"JCo Pool Configuration"</b> parameters...
1.<b>Maximal Pool Size </b> (default 5)
2.<b>Maximum Connections</b> (dafault 10)
3.Connection Timeout (default10 msec.)
4.Maximum Waiting Time (default 30 msec.)
Any repley will be highly appreciated.
Thanks,
Sekharhi sekhar,
go thro this thread,hope its very useful to u.
http://www.apentia-forum.de/viewtopic.php?t=1962&sid=9ac1506bdb153c14edaf891300bfde25
regards
bhargava
pts r welcome -
Error when connect to SAP with JCo Connector on linux
Dear all,
Please, i need help. i was tray to connect to SAP with SAP JCo on linux ubuntu, but i have an error.
this is the error :
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
Connect_PM GWHOST=myhost, GWSERV=sapgw00, ASHOST=myhost, SYSNR=00
LOCATION CPIC (TCP/IP) on local host
ERROR hostname 'avatar-bumi' unknown
TIME Thu Feb 14 15:25:48 2008
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -2
MODULE niuxi_mt.c
LINE 388
DETAIL NiPGetHostByName2: hostname 'avatar-bumi' not found
SYSTEM CALL gethostbyname_r
ERRNO 110
ERRNO TEXT Connection timed out
COUNT
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1125)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)
at sapjco.Main.main(Main.java:34)
Exception in thread "main" com.sap.mw.jco.JCO$Exception: (121) JCO_ERROR_NULL_HANDLE: Invalid rfc_handle = NULL encountered
at com.sap.mw.jco.rfc.MiddlewareRFC.nativeGetAttributes(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.getAttributes(MiddlewareRFC.java:1233)
at com.sap.mw.jco.JCO$Client.getAttributesInternal(JCO.java:2940)
at com.sap.mw.jco.JCO$Client.getAttributes(JCO.java:2994)
at sapjco.Main.main(Main.java:38)
How to resolve this error....
Regards,
Lisa
Edited by: Lisa Yanti on Feb 14, 2008 9:35 AMI was resolve this error by my self.
We can handle this error with registering our current IP and host name on /etc/hosts.
example:
content of /etc/hosts:
127.0.0.1 localhost
127.0.1.1 myhost.workgroup
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
added the ip and host name to be like this configuration
127.0.0.1 localhost
127.0.1.1 myhost.workgroup
172.20.17.74 myhost
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts -
Problem in Connectors in GRC AC 5.3
Hello all,
While we are creating the connector in RAR the JCo destinations are not visible. In the drop down list of JCo destinations we are able to see the Value as <Host Name>_<null>_<Client Number> For Eg: GRRDEV_NULL_200 i am not able to see the JCo destinations which we activated in Java content administration
We have installed the latest patch SP18 and using the HR Module also.
What could be the cause?
Activated: JCo Destinations
VIRSAHR_MODEL & VIRSAHR_METADATA
VIRSAHR_01_MODEL & VIRSAHR_01_METADATA
*VIRSAHR_02_MODEL & VIRSAHR_02_METADATA *
Thanks in Advance.
Regards,
Kumar RayuduHello Kumar,
Yes, you can use "VIRSAXSR3_01_METADATA" and "VIRSAXSR3_01_MODEL JCo destinations for HR backend. As mentioned by our friends in this thread it doesn't matter what kind of backend you use. You can still use these JC0 destinations.
With these JCo(Adaptive RFC connection) destinations, maximum number of system one can connect are 15. If you have more than 15 systems it is recomended to use SAP JCO connector type for RAR.
SAP JCo connector doesn't have any limitation like JCo(Adaptive RFC).
Hope this answers your question.
Best Regards,
Sirish Gullapalli.
Edited by: Sirish Gullapalli on Jul 28, 2009 12:03 AM -
GRC 10.0 - Transport Connector Relevant Settings
Hi Gurus,
Many of you have already completetd GRC 10.0 implementaion. One of the Key advantage of GRC 10.0 stated as "Changes can be transported".
While carrying out configuration settings under nodes SPRO -->GRC --> Common Component Settings --> Integration Framework and other Subsequent nodes in Access Control, we find many steps involve Connector, Connector Mappings, Actions related Settings which are connector dependent.
Further, there are relevant sub-nodes viz. User Defaults, User data sources, HR Triggers etc., which involve connector values as part of configuration steps.
We have created Back end test / Development related connectors and carried out the relevant configuration settings. We find that all these settings are getting collected in the transport request.
Once we move this transport request to GRC QAS / Production landscape all the back-end Test / Development /QAS related connector settings will also move. Further this will also call for defining back-end Production systems related Connector Settings in GRC Development System itself.
Looking forward for inputs with respect best practices for managing the GRC 10.0 config / workflow related transports across Dev / QAS / landscape.
Regards
HemantHi Hemant
SAP has made a lot of the transport functionality in GRC10. I find that they hereby created a huge expectation with the customer, that in fact is not true.
For instance Exclusion Objects and Mitigation Controls are NOT transported. What about Organizations? Critical Roles and Profiles are also not transportable.
As for the Connectors - system specific parameters are transported. Therefore you end up having to delete the DEV and QA connectors in the PRD GRC system.
On this question, has anyone used CLM yet? It seems that only Functions and Risks will be extracted to CLM and then deployed in the other system (DEV to QA for example). Does CLM even work?
SAP provide not guidance on all of these important issues. I agree that it is about time that SAP takes some leadership and produce a proper best practise guide for this software. By the way, an offical sizing document from SAP is still to be delivered.
Thanks
Will -
JCO - Connection reset by peer - after 5 minute timeout
Hello
We're using SUP with the JCO Connector. This has been working flawlessly since project inception. Now, after switching to a new data center (Windows Server 2008 Server Enterprise Edition, SP2 on VMWare) we're observing a mysterious behavior with timeouts of idle connections. I hope someone in this forum knows what this might be.
JCO connections originate from SUP servers. When such connections are idle for more than 5 minutes they get disconnected from SAP -- this is in agreement with SAP timeout parameter of 300 seconds.
On our new systems we noticed that requests sent 5min+ (after timeout) show following error:
Thread-8 [22:08:55:343]: [JNI-LAYER] RFC.nativeExecute() before RfcCallReceive(2,"Z_U_ONEMOBILE_SWO_SEARCH",0000000010CDC850,0000000000000000,0000000010C81530,000000000C79CA88)
Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeExecute() after RfcCallReceive(2,"Z_U_ONEMOBILE_SWO_SEARCH",0000000010CDC850,0000000000000000,0000000010C81530,000000000C79CA88) = RFC_SYS_EXCEPTION
Thread-8 [22:08:55:344]: [JAV-LAYER] JCO.Client.execute (Z_U_ONEMOBILE_SWO_SEARCH) threw a NON-ABAP exception: com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: CPIC-CALL: 'CMRCV : rc=20
ERROR connection to partner '---removed!---:3299'
broken
TIME Fri Feb 11 18:08:55 201
RELEASE 710
COMPONENT NI (network interface)
VERSION 39
RC -6
MODULE nixxi.cpp
LINE 4448
DETAIL NiIWrite: P=161.88.23.170:3299; L=0.0.0.0:49730
SYSTEM CALL WSASend
ERRNO 10054
ERRNO TEXT WSAECONNRESET: Connection reset by peer
COUNTER 3
Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect() enter, [SUCCESS]
Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect() before RfcClose(2)
Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect() after RfcClose(2)
Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect() with rc = RFC_OK leave, [SUCCESS]
Our suspicion is that the JCO client doesn't notice the fact that it gets disconnected. We used Network Monitor 3.4 to look at network traffic. Indeed, after 5 minutes the client gets a single frame (with reset flag) and no acknowledgement goes back.
What could this be?
We use
JCO 2.1.8 AMD 64-bit (contains librfc 6.40) and
JCO 2.1.9 AMD 64-bit (contains librfc 6.40) but replaced this with librfc 7.10 (after seeing Note 825494). Behavior was exactly the same. We did confirm in jco/rfc trace that those versions were actually used.
Any ideas?
Thanks and regards
Edited by: B. Gottipati on Feb 14, 2011 9:17 PMHello
We're using SUP with the JCO Connector. This has been working flawlessly since project inception. Now, after switching to a new data center (Windows Server 2008 Server Enterprise Edition, SP2 on VMWare) we're observing a mysterious behavior with timeouts of idle connections. I hope someone in this forum knows what this might be.
JCO connections originate from SUP servers. When such connections are idle for more than 5 minutes they get disconnected from SAP -- this is in agreement with SAP timeout parameter of 300 seconds.
On our new systems we noticed that requests sent 5min+ (after timeout) show following error:
Thread-8 [22:08:55:343]: [JNI-LAYER] RFC.nativeExecute() before RfcCallReceive(2,"Z_U_ONEMOBILE_SWO_SEARCH",0000000010CDC850,0000000000000000,0000000010C81530,000000000C79CA88)
Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeExecute() after RfcCallReceive(2,"Z_U_ONEMOBILE_SWO_SEARCH",0000000010CDC850,0000000000000000,0000000010C81530,000000000C79CA88) = RFC_SYS_EXCEPTION
Thread-8 [22:08:55:344]: [JAV-LAYER] JCO.Client.execute (Z_U_ONEMOBILE_SWO_SEARCH) threw a NON-ABAP exception: com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: CPIC-CALL: 'CMRCV : rc=20
ERROR connection to partner '---removed!---:3299'
broken
TIME Fri Feb 11 18:08:55 201
RELEASE 710
COMPONENT NI (network interface)
VERSION 39
RC -6
MODULE nixxi.cpp
LINE 4448
DETAIL NiIWrite: P=161.88.23.170:3299; L=0.0.0.0:49730
SYSTEM CALL WSASend
ERRNO 10054
ERRNO TEXT WSAECONNRESET: Connection reset by peer
COUNTER 3
Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect() enter, [SUCCESS]
Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect() before RfcClose(2)
Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect() after RfcClose(2)
Thread-8 [22:08:55:344]: [JNI-LAYER] RFC.nativeDisconnect() with rc = RFC_OK leave, [SUCCESS]
Our suspicion is that the JCO client doesn't notice the fact that it gets disconnected. We used Network Monitor 3.4 to look at network traffic. Indeed, after 5 minutes the client gets a single frame (with reset flag) and no acknowledgement goes back.
What could this be?
We use
JCO 2.1.8 AMD 64-bit (contains librfc 6.40) and
JCO 2.1.9 AMD 64-bit (contains librfc 6.40) but replaced this with librfc 7.10 (after seeing Note 825494). Behavior was exactly the same. We did confirm in jco/rfc trace that those versions were actually used.
Any ideas?
Thanks and regards
Edited by: B. Gottipati on Feb 14, 2011 9:17 PM -
Hi I have two questions:
1) I'm using a third party connector (JCo based) which is able to expose RFC/BAPIs into Web Services. (I know I could do this with SAP directly as well on ECC 5.0 and up, but for now let's say I have to use the JCo connector). If I write a custom RFC and want it to be called through that JCo connector, what are the steps that I need to go through to properly configure the custom RFC? Is there any documentation written for that?
2) In some other scenarios I need to call standard SAP web services. Some web services are transactional and commit/rollback needs to be called explicitly. What is the best practice for that? Do I need to make a custom RFC from the standard one, and add commit into it, and then expose it as a web service? Anyway for me to call that web service and commit in one connection?
Thanks much in advance,
YeHi Ye
just have a look on these links may be useful ...
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8798be90-0201-0010-d093-85f728778d37
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c63bca90-0201-0010-59ae-e0db32750209
Properties for an AS ABAP Data Source... user must have authorizations to use RFC, and to create, Refer to the SAP Java connector documentation for details
http://help.sap.com/saphelp_nw04s/helpdata/en/84/10594aecd3e1408845e66c432b955e/frameset.htm
Regards
Abhishek
Maybe you are looking for
-
Illustartor CS3 wont open - error message
Everytime i open illustator, it gets to the the open file page and then immediatley shuts off. i tried disabling all fonts and restarting my computer but with no luck. What do i do?
-
Need help with external hard drive!
Hi all, I have been having trouble with my external hard drive. My mac is reading the disk however all my files from the hard drive are missing? In disk utility is seems to show that there are files on the disk but I cannot see them? At the bottom is
-
Where is my Hard Disk space going?
So basically, something is guzzling up HDD space. I've moved the majority of my stuff onto an external drive with just my music and apps, and fair bit of stuff in my downloads folder left. When looking through what's using up space I found, first, th
-
Hello all, While activating any object (say a function module or report), if the code has some syntax errors , a popup comes with 3 options : Activate anyway , process errors , cancel. I want to know what is the use of "activate anyway". thanks in ad
-
Firmware versions in replacement phone
Hi there all. I have a small problem, or at least some questions. I originally got a new E90 three weeks ago and just after I got it I ran software updater and it was updated to version 7.40.12. Not this phone had problems with the screen not only to