JCO API which accepts system

Hi all,
I want to use JCO API to connect to R/3 and call my BAPI (i.e, I am not using the JCO destination which we normally create in Web dynpro content administartor screen). This is specially for MODEL DATA (i.e., to get the application data).
I found the following API which works :-
JCO.Client C = JCO.createClient(client, userid, pwd, null, system name, system number);
C.connect();
< execute the BAPI >
C.disconnect();
Other than this, Is there any JCO API which accepts a system (which we create in the portal under system admin role) and returns a client object or gives a conneciton directly??
Any info on this would be of great help.
Regards,
Narahari

Hi,
SAP had CCI with its own APIs which will solve this purpose..
Check this .This is one code i have used,, this should help..
IConnectorService service = (IConnectorService)PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);
IConnectorGatewayService cgs = (IConnectorGatewayService)service;
ConnectionProperties cp = new ConnectionProperties(request.getLocale(),request.getUser());
try {     
     IConnection conn = cgs.getConnection(system name,cp);
     Interaction ix = conn.createInteractionEx();
       IInteractionSpec ixspec = ix.getInteractionSpec();
          ixspec.setPropertyValue("Name","BAPI_SALESORDER_GETLIST");
               //---------------------------------//For scalar values
               RecordFactory rf = ix.getRecordFactory();
               MappedRecord input = rf.createMappedRecord("input");
               input.put("CUSTOMER_NUMBER","0000001000");
               input.put("SALES_ORGANIZATION","1000");
               MappedRecord output =(MappedRecord) ix.execute(ixspec,input);
               IRecordSet res =(IRecordSet)output.get("SALES_ORDERS");
Regards
Bharathwaj

Similar Messages

  • BPM java api which accept task by push machniasm

    Hi All,
    I want to expose web service , which will get task from bpm. I can pull task from bpm for loggedin user, is there any way bpm will push task to this service ? Any api available ?

    Hi Arvind,
    If you are looking for code to get the current logged in user all the task just like in the Uwl or bpm inbox then it is possible.
    Kindly refer to the document link provided below.
    How to get All Task of a user to design your custom UWL using BPM API as a rest full service.
    Refer to Step 5 in the document you will find the code you are looking for.
    Cheers
    Piyas

  • How to query an Infoset using SAP JCO APIs

    Hi
    How can I  query an Infoset (on SAP ECC) using SAP JCO APIs?
    Thanks

    Hi,
    Please use the DDIF_FIELDINFO_GET (standard) Function Module to retireve the details which you have mentioned.
    Thanks,
    Arun

  • SNC using JCO API

    I am trying to connect to a SAP Server (having SNC enabled) using JCO
    API. I am using a simple java program. I mentioned the following
    parameters
    jco.client.snc_mode=1
    jco.client.snc_partnername=p:CN=IDS, OU=IT, O=CSW, C=DE
    jco.client.snc_qop=1
    jco.client.snc_myname=p:CN=RFC, OU=IT, O=CSW, C=DE
    jco.client.snc_lib=C:/usr/sap/UC6/SYS/exe/uc/NTAMD64/sapcrypto.dll
    I have placed the sapcrypto.dll in the Path. I have generated the
    Client PSE and Cred_V2 files too. I have placed them in the Path too.
    I am using the "$X509CERT$" as user and sending the x509 certificate
    information as password.
    But I get the following error
    (103) RFC_ERROR_LOGON_FAILURE: SNC required for this connection
    When I look at the error files dev_w0 (in the work folder) I see the
    following error
    ERROR => iSignSncServerLogin: insecure transmission of X.509 client
    certificate (SNC required) [sign.c 8638]
    Any help is greatly appreciate as this is a mjor blocker for our release

    1. obviously, the JCO connection (using RFC) is not SNC-protected; otherwise you'd not receive that error information
    2. I'm not sure whether you are using the right approach: forwarding a X.509 client certificate via SNC-protected RFC connnection is only intended to work for a small number of trusted middleware components (such as the ITS Agate or a NWAS Java). It is assumed that this middleware component (or a component in front of it, such as a webserver in front of the ITS) is performing a proper SSL handshake in order to validate the X.509 client certificate.
    3. Instead of jco.client.user = "$X509CERT$" and jco.client.passwd = ... you should use jco.client.x509cert = ...
    Java-based applets running on a user's PC should act as SSL client and submit their https requests directly to the NWAS ABAP (which is the SSL server in that case). It does not make sense to use JCO and SNC to forward externally validated X.509 client certificates - not just because it's much more complex (and increasing the TCO) but also because it's not intended to be used in that way (it simply does not scale).
    Regards, Wolfgang
    PS: the error is most likely caused because of the missing SNCSYSACL entry (see trace, using note 495911)
    Edited by: Wolfgang Janzen on Jan 22, 2008 10:25 AM

  • RFC_ERROR_SYSTEM_FAILURE: Time limit exceeded. Connection Pool - JCO api

    Hi Everyone
    My Connection  Pool parameters JCO api.
    client=300
    user=SISGERAL_RFC
    passwd=******
    ashost=14.29.3.120
    sysnr=00
    size=10
    I have these parameters on my Connection Pool and sometimes appear these wrongs in my application:
    1.
    2006-01-07 13:20:37,414 ERROR com.tel.webapp.framework.SAPDataSource - ##### Time limit exceeded. LOCALIZED MESSAGE = Time limit exceeded. KEY = RFC_ERROR_SYSTEM_FAILURE GROUP = 104 TOSTRING = com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Time limit exceeded.
    2.
    2006-01-07 14:01:31,007 ERROR com.tel.webapp.framework.SapPoolConnectionManager - Timeout
    I’d like to know if is happening.
    Are there something wrong with my connection pool?
    What can be happening?
    Thanks

    Raghu,
    Thanks for your response.
    Yes, the pool connections are in place according to the sAP note mentioned above.
    Regards,
    Faisal

  • I have found an issue with MS13-098 which causes systems to be renamed to MINWINPC

    I have found an issue with MS13-098 which causes systems to be renamed to  MINWINPC.  The issue has been reported in Japanese by Microsoft. The translation is:
    Phenomenon
      In Windows Server 2008 or Windows Vista, you might not be able to log an error appears to apply the new update the following programs, if you try to log on after the restart. •  MS12-024 (KB2653956)
    •  MS13-098 (KB2893294)
     Error message displayed is as follows.
     Incorrect password or user name
      Back to the top | feedback
    Collapse image  Cause
      This behavior occurs when you apply the update KB2653956 in the state of some data is damaged following registry key, or does not exist.
     HKEY_LOCAL_MACHINE \ SCHEMA \ wcm :/ / Microsoft-Windows-CoreOS? ...
     Any string will contain the part of the ... Note:.  Also, make sure to load the SystemRoot% \ system32 \ SMI \ Store \ Machine \ SCHEMA.DAT file% if the HKEY_LOCAL_MACHINE \ SCHEMA does not exist.
     When you apply the update of KB2653956 in the state where the registry key is not present, the value of the following registry is changed to MINWINPC, logon will not be able to.
    •  HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ ComputerName \ ActiveComputerName
    •  HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ ComputerName \ ComputerName
      Back to the top | feedback
    Collapse image  Solution
      If this occurs, change to the correct computer name the value of the ComputerName registry and ActiveComputerName start in safe mode, has been mentioned above, and then restart.
      Back to the top | feedback
    Collapse image  Workaround
      To prevent this phenomenon occurs, you download and run the System Update Readiness Tool from the following KB.
     http://support.microsoft.com/kb/947821
     By performing the system update Preparation tool registry that is described in Section Symptoms are repaired.
     If the repair is made, starting with log Recreated missing key as the following WinDir% \ Logs \ CBS \ CheckSUR.log file% is recorded.
     Recreated missing key:? Wcm :/ / Microsoft-Windows-CoreOS ... \ metadata \ elements \ ComputerName
     In addition, regardless of the presence or absence of entry damaged Microsoft-Windows-CoreOS, you can set the value of the ComputerName key in this tool.  For this reason, the following log is recorded in the CheckSUR.log.
     Recreated value: @ _type.
     Recreated value: @ dataOnly.
     Recreated value: @ default.
     Recreated value: @ description.
     Recreated value: @ displayName.
     Recreated value: @ handler.
     Recreated value: @ legacyName.
     Recreated value: @ legacyType.
     Recreated value: @ migrate.
     Recreated value: @ scope.
     Recreated value: @ xsd: type.
      Back to the top | feedback
     Note: This is a "FAST PUBLISH" article created directly from within the Microsoft support organization.  It contains information in response to emerging issues are listed.  As a result of the speed of information provided may be
    typographical errors are included in the article, you might be revised at any time without prior notice.  For other considerations, and use conditions
     Please refer to.
      Back to the top | feedback
    Collapse image  Property
      December 11, 2013 - Revision: - Last Review: 2901584: 4.0 Document Number
      This document that was written about products for.
    •  Windows Vista Business
    •  Windows Vista Business 64-bit edition
    •  Windows Vista Enterprise
    •  Windows Vista Enterprise 64-bit edition
    •  Windows Vista Home Basic
    •  Windows Vista Home Basic 64-bit edition
    •  Windows Vista Home Premium
    •  Windows Vista Home Premium 64-bit edition
    •  Windows Vista Starter
    •  Windows Vista Ultimate
    •  Windows Vista Ultimate 64-bit edition
    •  Windows Server 2008 Datacenter
    •  Windows Server 2008 Datacenter without Hyper-V
    •  Windows Server 2008 Enterprise
    •  Windows Server 2008 Enterprise without Hyper-V
    •  Windows Server 2008 for Itanium-Based Systems
    •  Windows Server 2008 Foundation
    •  Windows Server 2008 Standard
    •  Windows Server 2008 Standard without Hyper-V
    •  Windows Web Server 2008
    •  Windows HPC Server 2008
    •  Windows Essential Business Server 2008
    We are having the issue on hundreds of systems and I am rolling out the readiness tool mentioned above to prevent other systems from being affected.  In the mean time I have stopped deploying MS13-098 and am hoping Microsoft will go ahead and let all
    of their customers know about the problem instead of just one country.  Hopefully the original bulletin will be updated with this known issue.

    PPoj,
    Apple has offered replacement or pro-rated refunds in the US as a settlement of a class action lawsuit, not because of pride in their design-centric approach to their products. If you seek a similar replacement/refund program in India, then the odds are pretty good that you’d need a similar legal approach with which to convince Apple to offer a similar program there. If you’re unwilling to wait for such an event, then you can purchase a replacement power cable now, and hope for a pro-rated refund at some point in the future.

  • How to find in R/3 System, which FI document is from which external system?

    Hi Moderator/ FICO Experts,
    How to find in R/3 System, which FI document is from which external system?
    In case of different Non-SAP external Systems posting the data to one R/3 System.
    Thanks
    Chandra

    Hi,
    That really depends on the interfaces that your external systems are using. Check with your ABAP or BASIS team to see what is the method used for posting those documents and with which parameters is passed. Look at BKPF table (FI header) to see the attributes such as user, document type, reference, etc.
    Regards,
    Eli

  • Workflow API which can be used to avoid sending notification to user

    Hi Folks,
    We want Workflow API which can be used to avoid sending notification to user for particular type of error.
    Say we are using following API which are used to send notification to mailbox as soon as program run into error.
    wf_core.context(c_v_package_name
    ,c_v_func_name2
    ,p_event.getEventName()
    ,c_v_task_id_prompt||l_n_task_id
    ,l_v_msg_data);
    wf_event.seterrorinfo(p_event, c_v_result_error);
    Now we want to restrict certain type of error to send as a notification however we want to keep this record in wf_notifications table for further investigation.
    Thanks and Regards,
    Javed Khan

    Matt,
    It looks like another person had a similar question before, see the following thread:
    https://supportforums.cisco.com/discussion/9697836/can-use-axl-or-other-api-get-calls-progress
    Also, according to the comments seen on that post, I was able to find the JTAPI developers guide, see more information below:
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/8_6_1/jtapidevguide/overview.html
    If this still does not satisfy your question then, the best you can do is post this inquiry on the Cisco Developer Network on the following link:
    https://developer.cisco.com/site/devnet/home/index.gsp
    Hope this information helps,
    Marco Rojas.

  • Problems with accept () system call in Solaris 10

    We are doing some prototyping in Solaris 10/Zones using TCP sockets and have encountered the problem the "accept" system call in Solaris 10 always seem to return immediately without waiting for clients to connect to it. The same program works fine under Solaris 9 without any problems.
    So in the following call:
    ssock = accept( sockfd, (struct sockaddr*)bind_address, &alen );
    if( ssock < 0 )
    printf( "Accept failed: ...\n" );
    the program always prints "accept failed: " continuously. Is this a known issue?

    The problem only occurs when we use INADDR_ANY to bind a socket. The program works as expected when we use real as well as virtual IP address configured for an interface on any Solaris Zone. When we use INADDR_ANY, error number is 14 (EFAULT, Bad Address).
    Just wondering if we need to make any configuration changes in order to allow INADDR_ANY to work.

  • Need to know the API which will extract how many users are added in group..

    Hello,
    I am working in Oracle Portal. In the portal we have Oracle Indentity Management where we are adding users as well as the group. We are looking for an API which helps us to do that from PL/SQL code. We got it but we have some issue. We know that how to create group, add users to group, delete users from group, delete group but we unable to get how many users already added to the group. Can anybody help me out in this case. It is urgent!
    Thanks
    Golak Saha

    Hi,
    How to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.
    Please check the following links:
    Oracle EBS - Number of Users logged into EBS / Oracle Applications currently
    List all users currently logged in on Oracle EBS
    Also see forum Search:
    Forum Search: Logged In EBS User
    Also, in the database level too
    Please see:
    https://forums.oracle.com/message/9225094#9225094
    Do we need to write any trigger for this?
    Yes you may, But I personally suggest you not to do so as it may affect performance.
    Thanks &
    Best Regards,

  • Is there a CUCM API which can be used to see what calls are in progress?

    Hello All,
    I am trying to build a basic monitoring application which will display a list of calls in progress along with endpoint information such as IP address etc
    Is there a CUCM API which can be used to see what calls are in progress?
    Thanks
    Matt

    Matt,
    It looks like another person had a similar question before, see the following thread:
    https://supportforums.cisco.com/discussion/9697836/can-use-axl-or-other-api-get-calls-progress
    Also, according to the comments seen on that post, I was able to find the JTAPI developers guide, see more information below:
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/8_6_1/jtapidevguide/overview.html
    If this still does not satisfy your question then, the best you can do is post this inquiry on the Cisco Developer Network on the following link:
    https://developer.cisco.com/site/devnet/home/index.gsp
    Hope this information helps,
    Marco Rojas.

  • SAP beginner !! steps to create a fun module which accept int table

    steps to create a fun module
    1. which accept internal  table and a flag value
    2. based on flag value it calls screen.
    3. if flag value is ' D' it displays the internal table in Table Control in Display Mode
    4. if flag value is ' E' it edits the table control also the internal table,
        it can also append a new row in table control or delete it.
    5. the function module should then send the output the internal table which has changed.
    plz if any one can provide solution to this do it for me
    thnk u

    Hi Shailesh,
        U just create 2 table control (one in Display Mode & the another in Change Mode ).While sending the Internal Table values, u send the values to the corresponding Table Control based on the Flag Value.

  • Which runtime systems do i need to configure in CMS

    Hi,
    We have development,Test,Production systems in the system landscape.
    So What runtime systems do i need to configure in CMS
    I am assuming it should be
    Development-Development
    Consolidation-Test
    Test-?
    Production-Production
    Which runtime system do i need to configure for test system in my landscape(is it consolidation or test).what exactly is the role of consolidation runtime system.is it mandatory to configure that runtime system
    Points will be rewarded for the helpful answer

    HI Bala,
    configure system as
    Development-Development
    Consolidation- if you dont have server then dont configure it.
    Test-Test
    Production-Production
    NWDI upto consolidation is driven by activities. and assembly to production is driven by SCA. i.e complete software packaging
    as Test server means where you can test your complete application.That means you need to deploy whole application  as a sca file.
    and in NWDI sca file is generated after assembly.
    consolidation is only for verifying you changes before packaging you application. it can't be a test server.

  • API with external system

    Hi,
    I have to develop API with external system through messages.
    This is new to me.
    Could anyone help me how to do this?
    Thanks,
    Ashok.

    Checkout the link :
    http://help.sap.com/saphelp_46c/helpdata/en/22/04280f488911d189490000e829fbbd/frameset.htm
    Thanks

  • Which operating system: Linux or Windows Server 2003?

    Hi,
    it doesn't matter which operating system we install an our server.
    What are your experience with Linux and Windows?
    Which System do you recommend regarding performance issues?
    best regards
    Felix

    Linux has a higher per process memory limit. The fmscore process can use up to 2 GB on Windows and up to 3 GB on Linux.
    The performance increases in Flash Media Server 3.5 are roughly equivalent on Linux and Windows.
    HTH,
    Jody

Maybe you are looking for

  • Is it possbile to get URL from the browser address bar?

    Hi I'm in the process of creating a JITIR agent in java that takes in the url of the website that the user presently viewing. I don't want the user to have to copy or type in to my app the websites URL. Is it possbile to get this from the process e.g

  • Why won't my MBOX 2 light up with with LION! SOS

    SO I just got this new mac and i have installed my old protools LE 8 and i just can not get my system to recognize my MBOX 2 ,  please someone tell me what is going on.  My mac is useless with out protools!

  • Best Practive - One mapping reading multiple source files

    I want to develop a solution for one single mapping reading multiple similar source files that are stored on different directories on my OWB server. I want to be able to determine on runtime of my mapping from what location to load the source file fr

  • HP 2575 Photosmart on Windows XP will not printing

    The printer will not print documents saved on my computer but will print emails. When the print screen appears it says UBS001 in the "Where" when trying to print documents saved on the computer but this is blank printing emails. Don't know if this is

  • Apps Don't Work When Synching to New Computer

    Hello, I recently got my first Iphone 3G while I was out of town. I synched it with my MacBook and have loved it. When I got home, I wanted to synch it with my MacPro instead because that is where all my real data is stored, but when I do, the Apps d