IWay SAP Adapter

Hello,
I want to use the IWay SAP Adapter to integrate a BPEL Process with SAP. I have already used the iaexplorer to configure the SAP Adapter. Now I have a question. If I have multiple SAP instances, and each instance is similar (the only different thing is their respective location), is it possible to reuse the configuration I have already done or do I have to re-do the whole process with the iaexplorer all over again for each instance??
thanks in advance, Nicolas Fonnegra

It is recommended that you create target and create wsdl for that target and the use the wsdl for connecting to specific SAP system
I faced with similar issues used the following procedure in OSB for SAP
1) Create targets one each for multiple sap system.
2) Instead of creating WSDL for each target, copied WSDL for one target and change <jca:address/> element attributes to reflect the appropriate target.
Manoj

Similar Messages

  • Which version of iway sap adapter is compatible with SOA 11g

    Hi,
    I am doing a POC on iWay SAP adapter connectivity with BPEL 11g, so kindly let me know which version of iWay SAP adapter i need to install for the same.
    If you have any document for the installation steps of the iWay SAP adapter kindly share the document.
    Thanks,
    Anjani.

    Hi:
    Take a look to this document http://docs.oracle.com/cd/E23549_01/doc.1111/e17059/sap_bp.htm
    hope this helps
    best

  • Issue while migrating from File to DB based repository for SAP adapter

    Hi
    I recently migrated from file based repository to DB based repository.
    SAP Adapter: DB repository for JCA configuration
    After that I created the new targets and the jca log file showed me correct entry saying that it read from DB repository.
    Thread[Thread-6,6,main] [info ] Repository URL 'jdbc:oracle:thin:@db_host:1521/fmwdbqa' resolved to repositoty type: oracle
    But when I restarted the weblogic server I observed that it is again reading from the file repository.
    Thread[[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads] [info ] Repository URL 'file:///opt/apps/Oracle/Middleware/Oracle_SOA1/soa/thirdparty/ApplicationAdapters/config/XYZ/repository.xml' resolved to repositoty type: file
    Any reason why this is happening? Any other setting required to avoid this?
    Regards
    Subhankar

    Hi Manoj
    I checked the web.xml under MW_HOME/Oracle_SOA1/soa/thirdparty/ApplicationAdapters/iwafjca.war/WEB-INF folder. The iway.jndi is set to below :
    <param-name>iway.jndi</param-name>
    <param-value>eis/OracleJCAAdapter/DefaultConnection</param-value>
    I checked the outbound connection settings from Admin console under below path
    Home >Summary of Deployments >iwafjca > configuration
    I can see that the properties IWayRepoURL, IWayRepoUser and IWayRepoPassword are set to blank here. Where exactly are these property values picked from ? Or do I need to manually edit it here in admin console itself?
    Regards
    Subhankar

  • Using Oracle SAP Adapter and IBSE for inbound IDOCs

    I have been able to successfully use the Oracle SAP Adapter (e.g., IWAY) using the IWAY Business Services Engine (IBSE) to call a BAPI and have information returned. This use case is well documented and seems to be reliable.
    However, I have had difficulty finding any examples where IBSE is used with IDOCS. In my case, I would like to have SAP send an IDOC and receive this IDOC in a Fusion 11g environment. I see conflicting statements in the document. On one hand, Section 3 of this document
    http://download.oracle.com/docs/cd/E15523_01/doc.1111/e17057/config.htm#BABBGAAH
    States "Events are not applicable when using a BSE configuration."
    On the other hand, I see lots of documentation that says that you need to configure an Event in order for the IDOC to be sent to the proper destination. IBSE gives the ability to define events for IDOCs but the events are limited to either RMI or JMS. I have looked at the format of the JMS message and it looks extremely difficult to setup.
    Has anyone done this before?

    Let me try what ever I can to answer.
    Loss of IDOCS should not happen. Are you starting the channels in iWay test tools while the JCA adapter is also running?. That should not be the case. iWay Test tools is only for design time purpose. It is not required for runtime. ie. Create channels and test the IDOCS being received. After that stop the channel and start running the server.
    I suspect that starting channel in iWay test tools and JCA adapter/BPEL simultaneously will definitely result in IDOCS loss. Some of the IDOCS will come to iWay test tool while others will go to JCA/BPEL.
    Regarding 2, lets us discuss this after this loss of messages is solved.
    "Another issue that we have with the JCA approach is the requirement to have have a separate channel and a separate program ID for every IDOC. In our SAP system, we have thousands of IDOCS so having to setup a different channel and program ID for each one is going to be a difficult task".Yes. Initial versions of adapter used to support receiving all idocs on same channel. In your case MATMAS05/IORDER01 are received on same programID and customers used has logic to identify what idoc was coming. It was observed that complexity of the application increases exponentially with increased idocs and the debugging effort.And also the interface is not clean. That is the JCA end point cannot be assocaited with a specific WSDL so you will not what you will receive and of what type. To ease this, later version of adapter supported this feature that each idoc type is assocaited with a specific program ID. MATAS05--PID1, IORDER01--PID2. Adapter will ignore if MATMAS05 is sent on PID2.
    In OSB we have concept of AnyXML service but I doubt if BPEL has such concept. If I remember OSB smart connect supported your exact use-case, but in later version it was decided to discontinue AnyXML inbounds.
    Are you really planning to use hundreds of IDOCS on same PID?. Did you think of debugging complexity in such application? If you really think this need to be supported, please raise an enhancement request with Support. Product management will review your request for further action.
    Thanks
    Manoj

  • BEA SmartConnect SAP adapter Vs Oracle SAP adapter

    Hi,
    Please provide your inputs:
    1. What is the roadmap going forward?
    2. Is there any comparison study about these? Or what all the additional features one has over the other?
    Thanks in advance,
    AP

    On July 1st 2008, in the BEA Welcome Address, Oracle SVP Joseph Kurian mentioned that Oracle would go ahead with one set of adapters in the future. We will have to wait to hear about the timelines for this.
    Irrespective of SmartConnect or Oracle SAP Adapter, both are developed by iWay Software. In SmartConnect, it majorly used with the SOAP Binding(Web Services) and in Oracle BPEL / ESB, it used with JCA Binding.

  • Display SAP R/3 table in a portlet with the SAP Adapter

    Hello everybody!
    I still can`t figure out the whole pictue of Bea Weblogic`s SAP Adapter.
    I installed the SAP Adapter (BEA_SAP_1_0_70.ear) and the Applicaton Explorer,
    made an Application View with the generated XML-Schema and the Template example
    in the WL Integration Studio. So what`s next??? (I want to make a portlet which
    displays a table from a BAPI request.) Any help would be helpful!
    Thanks 4 answering !
    Kind regards,
    uggar

    Hi Simon,
    Thanks for your inputs.
    Why the amount is changed in display mode only for WRBTR and not for DMBTR as both are of CURR datatype and created using same domain. I fail to understand any logic behind this.
    I have even created a ABAP report on this table which displys fields DMBTR and WRBTR, and in the report output following values are displayed.
    DMBTR 100.05
    WRBTR 100.05
    If anybody else has come across this before and has any clue please help.
    Thanks and Regards
    Shilpa

  • BizTalk 2009 WCF-SAP Adapter Could not load file or assembly 'Microsoft.Adapters.SAP.SAPGInvoker...' one of its dependencies error

    Hello,
    I have a BizTalk Server 2009 running on Windows Server 2003 x64. I am installing WCF-SAP adapter and have done the following for the same. However, I am getting an error as mentioned below when I click on the Configure button of WCF-SAP adapter in send
    port. I would appreciate if anyone could let me know how to fix this error and make the WCF-SAP adapter working.
    TITLE: BizTalk Server 2009 Administration Console
    Exception has been thrown by the target of an invocation. (mscorlib)
    ADDITIONAL INFORMATION:
    Exception has been thrown by the target of an invocation. (mscorlib)
    Could not load file or assembly 'Microsoft.Adapters.SAP.SAPGInvoker, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling
    the application may fix this problem. (Exception from HRESULT: 0x800736B1) (Microsoft.Adapters.SAP)
    This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
    I have copied the following 32 bit & 64 bit unicode DLLs in SysWOW64 and System32 folders respectively.
    icudt30.dll
    icuin30.dll
    icuuc30.dll
    librfc32u.dll
    libsapu16vc71.dll
    libsapucum.dll
    Following r3dllinst DLLs are there in System32 folder.
    mfc42.dll
    mfc42u.dll
    mfc71.dll
    mfc71u.dll
    msvcp60.dll
    msvcp71.dll
    msvcp80.dll
    msvcr71.dll
    msvcr80.dll
    Following r3dllinst DLLs are there in SysWOW64 folder.
    mfc40.dll
    mfc40u.dll
    mfc42.dll
    mfc42u.dll
    mfc71.dll
    mfc71u.dll
    mfc80.dll
    mfc80u.dll
    msvcp50.dll
    msvcp60.dll
    msvcp71.dll
    msvcp80.dll
    msvcr71.dll
    msvcr80.dll
    I have the following softwares installed on the server.
    Microsoft Visual C++ 2008 Redistributable x64
    Microsoft Visual C++ 2008 Redistributable x86
    WCF LOB Adapter SDK (64-bit)
    BizTalk Adapter Pack 2.0 (64-bit)
    BizTalk Adapter Pack 2.0 (32-bit)
    The following bindings are also present in the machine.config under Framework\v2.0.50727\CONFIG and Framework64\v2.0.50727\CONFIG
    <system.serviceModel>
    <extensions>
    <bindingElementExtensions>
    <add name="sapAdapter" type="Microsoft.Adapters.SAP.SAPAdapterExtensionElement, Microsoft.Adapters.SAP, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </bindingElementExtensions>
    </extensions>
    <client>
    <endpoint binding="sapBinding" contract="IMetadataExchange" name="sap" />
    </client>
    </system.serviceModel>
    Thanks,
    Tarun

    Have you tried this?
    http://geekswithblogs.net/MoonWalker/archive/2013/07/17/could-not-load-file-or-assembly-microsoft.adapters.sap.sapginvoker.dll.aspx
    Morten la Cour

  • Problem with WLI-SAP adapter

    Hi all,
    When i am trying to connect to SAP system using WLI-SAP adapter i am getting
    the following exception when i am trying to click on TEST button in wlai console.
    Can any body help me what does it mean.
    java.lang.AbstractMethodError: com.ibi.beaSAP.spi.ResourceAdapterImpl.setID(Ljav
    a/lang/String;)V
    at com.bea.wlai.AdapterDeployer.createResourceAdapterInstance(AdapterDep
    loyer.java:1213)
    at com.bea.wlai.AdapterDeployer.deployAdapter(AdapterDeployer.java:271)
    at com.bea.wlai.ApplicationViewDeployer.deployAdapterInstance(Applicatio
    nViewDeployer.java:770)
    at com.bea.wlai.ApplicationViewDeployer.deployAdapterInstances(Applicati
    onViewDeployer.java:662)
    at com.bea.wlai.ApplicationViewDeployer.internalDeploy(ApplicationViewDe
    ployer.java:553)
    at com.bea.wlai.ApplicationViewDeployer.access$600(ApplicationViewDeploy
    er.java:68)
    at com.bea.wlai.ApplicationViewDeployer$DeployTask.runTask(ApplicationVi
    ewDeployer.java:3035)
    at com.bea.wlai.Task.internalRunTask(Task.java:78)
    at com.bea.wlai.Task.access$000(Task.java:11)
    at com.bea.wlai.Task$1.run(Task.java:58)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    at com.bea.wlai.Task.runAs(Task.java:51)
    at com.bea.wlai.TaskHandler.run(TaskHandler.java:86)
    Thanks and Regards,
    kishore darisipudi

    Hi
    Thank u all,  Problem is solved, i changed write mode to Over write existing file. It is working fine.
    VS

  • How to handle idoc documents by BizTalk without WCF-SAP Adapter?

    Dear All,
    our company is no customer of SAP.
    But one partner company of us uses SAP Systems to generate business transactions like "INVOICE".
    Then they send us such a idoc-file per email.
    So I can not use the SAP-WCF Adapter by BizTalk (the download of SAP RFC SDK is constrained and only for customers) to generate a schema of such a flat file automatically.
    The second problem: I believe that only the WCF Adpater can validate the structure of the infomartion in inbound idoc files.
    Is there a way to solve this problem without using the WCF-SAP Adapter?
    Thanks in advance

    Actually I only need an idoc decoder and disassembler to import the information of the idoc file.
    Is there a special pipeline component by MS?

  • SAP Adapter Issues

    Dear All,
    Facing two issues as below, any help/pointers greatly appreciated.
    1> Where can I download correct Oracle AS Adapter pack which will support SAP ECC 6.0?
    2> Using the Adapter pack for 10.1.3, I am able to connect to SAP using Application Explorer, browse the Business Objects & RFCs. Then I have generated an Outnound JCA service (request-response) using the Adapter application explorer (right click menu option). Next trying to invoke the JCA service from BPEL using a partner link, when it gives following error at runtime. The same RFC when tested from Adapter applicatio explorer, however, runs fine; the problem occurs at BPEL runtime.
    (input_BAPI_COMPANYCODE_GETLIST,output_BAPI_COMPANYCODE_GETLIST) ] - WSIF JCA Execute of operation 'BAPI_COMPANYCODE_GETLIST' failed due to: Adapter Framework unable to create outbound JCA connection.
    http://127.0.0.1:9080/orainfra/wsil/adapters/applications/BAPI_COMPANYCODE_GETLIST_invoke.wsdl?wsdl BAPI_COMPANYCODE_GETLISTPortType::BAPI_COMPANYCODE_GETLIST(input_BAPI_COMPANYCODE_GETLIST,output_BAPI_COMPANYCODE_GETLIST) - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: javax.resource.spi.EISSystemException: IWAFManagedConnectionFactory:Exception javax.resource.ResourceException: Adapter 'SAP' not available. Names are case sensitive.
    ; nested exception is:
    ORABPEL-12511
    Adapter Framework unable to create outbound JCA connection.
    http://127.0.0.1:9080/orainfra/wsil/adapters/applications/BAPI_COMPANYCODE_GETLIST_invoke.wsdl?wsdl BAPI_COMPANYCODE_GETLISTPortType::BAPI_COMPANYCODE_GETLIST(input_BAPI_COMPANYCODE_GETLIST,output_BAPI_COMPANYCODE_GETLIST) - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: javax.resource.spi.EISSystemException: IWAFManagedConnectionFactory:Exception javax.resource.ResourceException: Adapter 'SAP' not available. Names are case sensitive.
    Sincere thanks in advance.
    Regards
    sibendu

    Dear Shiva & Others
    I am still stuck up with J2CA repository config of SAP adapter. I have been able to successfully test JCA outbound service (request-response to SAP BAPI/IDOC) with BSE config only. Below are still problems, with J2CA config, if i create a outbound JCA request-response service, wsdl generation and everything is fine, but runtime when called thru BPEL partner link it gives below error in adapter log (still working on inbound jca service and getitng some problem there too which hopefully can be resolved).
    Mon, 3 Aug 2009 19:41:28.0459 IST - Thread[AJPRequestHandler-HTTPThreadGroup-56,5,HTTPThreadGroup] [debug] [IWAF JCA] [container] ENTER AdapterManager.getActivatedAdapter(String adapter, String config)
    Mon, 3 Aug 2009 19:41:28.0475 IST - Thread[AJPRequestHandler-HTTPThreadGroup-56,5,HTTPThreadGroup] [info ] [IWAF JCA] [container] [SAP.service_Blore] Created adapter instance for class'class com.ibi.sapr3.SapAdapter20'.
    Mon, 3 Aug 2009 19:41:28.0475 IST - Thread[AJPRequestHandler-HTTPThreadGroup-56,5,HTTPThreadGroup] [info ] [IWAF JCA] [container] [SAP.service_Blore] SAP activate() : com.ibi.sapr3.SapAdapter20@568dbc
    Mon, 3 Aug 2009 19:41:28.0475 IST - Thread[AJPRequestHandler-HTTPThreadGroup-56,5,HTTPThreadGroup] [error] [IWAF JCA] [container] [SAP.service_Blore] Problem activating adapter. (null). Check logs for more information
    java.lang.NoClassDefFoundError
         at com.ibi.sap.SapAdapter20.bindToPool(SapAdapter20.java:484)
         at com.ibi.sap.SapAdapter20.activate(SapAdapter20.java:155)
         at com.iwaysoftware.af.container.adapter.ProxyAdapter.activate(ProxyAdapter.java:104)
    Most strange to me is the NoClassDefFoundError, I have seen the code in SapAdapter20 and all dependencies are there in classpath, i have gradually added them to everywhere and now all the jars/dlss are present in system classpath, server classpath, <soahome>/opmn/lib, <soahome>/j2ee/<container>/lib and adapter directories :-)
    I also get another exception at server startup, but assuming this has nothing to do with the above problem (and adapter works without the keystore config, please correct me if wrong), still would be nice to get rid of this as well.
    java.lang.IllegalStateException: Problem loading keystore: java.io.FileNotFoundException: D:\SOASuite\adapters\application\config\base\security\keystore.jks (The system cannot find the file specified); make sure the password is correct
         at com.iwaysoftware.security.KeyStoreUtil.getKeyStore(KeyStoreUtil.java:41)
         at com.ibi.adapters.util.security.SecurityManagerImpl.<init>(SecurityManagerImpl.java:45)
    Any help really greatly appreciated.
    regards, sibendu

  • Problem with SAP Adapter (URGENT)

    Hello.
    We are trying to execute a SAP function via SAP Adapter and we receive the following exception... ANY IDEAS?
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6912aa20
    Function name=VobBufferedFunc::SetReturnStream
    Library=C:\oai\oai\9.0.2\bin\acb30.dll
    Current Java thread:
         at com.actional.oai.Agent.Invoke(Native Method)
         at com.actional.oai.Agent.messageReceived(Agent.java:420)
         at oracle.oai.agent.client.SmartQueueDispatcher.run(SmartQueueDispatcher.java:296)
         at java.lang.Thread.run(Thread.java:484)
    Dynamic libraries:
    0x00400000 - 0x00436000      C:\oai\oai\9.0.2\bin\JavaService.exe
    0x78460000 - 0x784E1000      C:\WINNT\system32\ntdll.dll
    0x79450000 - 0x7950D000      C:\WINNT\system32\KERNEL32.dll
    0x78FF0000 - 0x79052000      C:\WINNT\system32\ADVAPI32.dll
    0x77120000 - 0x7718E000      C:\WINNT\system32\RPCRT4.DLL
    0x6D420000 - 0x6D4F0000      C:\oai\jdk\jre\bin\hotspot\jvm.dll
    0x77E10000 - 0x77E6F000      C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F79000      C:\WINNT\system32\GDI32.dll
    0x77550000 - 0x77581000      C:\WINNT\system32\WINMM.dll
    0x78000000 - 0x78045000      C:\WINNT\system32\MSVCRT.dll
    0x6D220000 - 0x6D227000      C:\oai\jdk\jre\bin\hpi.dll
    0x6D3B0000 - 0x6D3BD000      C:\oai\jdk\jre\bin\verify.dll
    0x6D250000 - 0x6D266000      C:\oai\jdk\jre\bin\java.dll
    0x6D3C0000 - 0x6D3CD000      C:\oai\jdk\jre\bin\zip.dll
    0x6D340000 - 0x6D348000      C:\oai\jdk\jre\bin\net.dll
    0x75000000 - 0x75009000      C:\WINNT\system32\WSOCK32.dll
    0x74FE0000 - 0x74FF4000      C:\WINNT\system32\WS2_32.DLL
    0x74FD0000 - 0x74FD8000      C:\WINNT\system32\WS2HELP.DLL
    0x77840000 - 0x7784C000      C:\WINNT\System32\rnr20.dll
    0x77980000 - 0x779A4000      C:\WINNT\system32\DNSAPI.DLL
    0x77320000 - 0x77333000      C:\WINNT\system32\iphlpapi.dll
    0x77500000 - 0x77505000      C:\WINNT\system32\ICMP.DLL
    0x77300000 - 0x77317000      C:\WINNT\system32\MPRAPI.DLL
    0x75100000 - 0x7510F000      C:\WINNT\system32\SAMLIB.DLL
    0x75120000 - 0x7516F000      C:\WINNT\system32\NETAPI32.DLL
    0x790D0000 - 0x790DF000      C:\WINNT\system32\SECUR32.DLL
    0x75170000 - 0x75176000      C:\WINNT\system32\NETRAP.DLL
    0x77950000 - 0x7797B000      C:\WINNT\system32\WLDAP32.DLL
    0x77A50000 - 0x77B3C000      C:\WINNT\system32\OLE32.DLL
    0x779B0000 - 0x77A4B000      C:\WINNT\system32\OLEAUT32.DLL
    0x77390000 - 0x773BF000      C:\WINNT\system32\ACTIVEDS.DLL
    0x77360000 - 0x77383000      C:\WINNT\system32\ADSLDPC.DLL
    0x77830000 - 0x7783E000      C:\WINNT\system32\RTUTILS.DLL
    0x783C0000 - 0x78451000      C:\WINNT\system32\SETUPAPI.DLL
    0x78DF0000 - 0x78E52000      C:\WINNT\system32\USERENV.DLL
    0x774C0000 - 0x774F3000      C:\WINNT\system32\RASAPI32.DLL
    0x774A0000 - 0x774B1000      C:\WINNT\system32\RASMAN.DLL
    0x77510000 - 0x77532000      C:\WINNT\system32\TAPI32.DLL
    0x71710000 - 0x71794000      C:\WINNT\system32\COMCTL32.DLL
    0x70A70000 - 0x70AD5000      C:\WINNT\system32\SHLWAPI.DLL
    0x77340000 - 0x77359000      C:\WINNT\system32\DHCPCSVC.DLL
    0x777E0000 - 0x777E8000      C:\WINNT\System32\winrnr.dll
    0x777F0000 - 0x777F5000      C:\WINNT\system32\rasadhlp.dll
    0x74F80000 - 0x74F9E000      C:\WINNT\system32\msafd.dll
    0x74FC0000 - 0x74FC7000      C:\WINNT\System32\wshtcpip.dll
    0x69100000 - 0x6943E000      C:\oai\oai\9.0.2\bin\acb30.dll
    0x6D900000 - 0x6D92C000      C:\oai\oai\9.0.2\bin\oaicba.dll
    0x69AD0000 - 0x69AED000      C:\WINNT\system32\NTMARTA.DLL
    0x77800000 - 0x7781E000      C:\WINNT\system32\WINSPOOL.DRV
    0x79520000 - 0x79531000      C:\WINNT\system32\MPR.DLL
    0x77BF0000 - 0x77C01000      C:\WINNT\system32\NTDSAPI.dll
    0x77920000 - 0x77943000      C:\WINNT\system32\imagehlp.dll
    0x729A0000 - 0x729CD000      C:\WINNT\system32\DBGHELP.dll
    0x68F70000 - 0x68F7B000      C:\WINNT\system32\PSAPI.DLL
    Local Time = Fri Mar 19 16:45:14 2004
    Elapsed Time = 2034
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.3.1_02-b02 mixed mode)

    do you run patchlevel 2 (9.0.2.2)?
    Invoke/Implement will not work using a lower patchlevel!
    What SAP version are you running? Using Windows for the SAP adapter it works with 4.6C

  • Certified SAP adapter for INFOR WMS

    Dear Al,
    Is there any certified SAP adapter for INFOR WMS.
    Warm Regards,
    Saurabh.

    There are no SAP adapters for integrating with INFOR.
    We have to use proxy communication to integrate with INFOR.

  • Urgent - Big POC: SAP Adapter Java API !

    Hi,
    I'm trying to get from an SAP BAPPI values using SAP Adapter Java API.
    I had tested at BEA and it worked fine.
    the code is:
    try {
    InitialContext ic = new InitialContext(env);
    // Create an object that provides the services established during
    configuration
    ApplicationView applicationView = new
    ApplicationView(ic,SapConstants.APPVIEW_NAME);
    // First, get the schema for the request document and use it to
    construct a default document.
    IDocumentDefinition requestDocumentDef =
    applicationView.getRequestDocumentDefinition(SapConstants.APPVIEW_SERVICE);
    IDocument requestDocument = requestDocumentDef.createDefaultDocument();
    requestDocument.setStringInFirst("/Material.GETDETAIL/MATERIAL",
    "000000000000001667");
    requestDocument.setStringInFirst("/Material.GETDETAIL/PLANT", "0001");
    // Problem at this line
    responseDocument =
    applicationView.invokeService(SapConstants.APPVIEW_SERVICE,
    requestDocument);
    On site, the plateforme has no Internet connexion. limitation
    Is there type limitation: here it's only a String.
    I get this error message:
    <Material.GETDETAIL><MATERIAL>000000000000001667</MATERIAL><eda:control
    xmlns:eda="http://www.iwaysoftware.com/iwse" clip="yes"
    by="SAPIFRService"><eda:expire>2003-01-10T19:53:14Z</eda:expire><eda:attempt
    1</eda:attempt></eda:control></Material.GETDETAIL>
    DEBUG 09 Jan 2003 19:53:14,468 BEA_SAP_1_0.AppViewSapDev - DEEP
    [SAPIFRService] localWorker: Agent review SNIP <eda:control
    xmlns:eda="http://www.iwaysoftware.com/iwse" clip="yes" by="SAPIFRService">
    [parent=Material.GETDETAIL]
    DEBUG 09 Jan 2003 19:53:14,484 BEA_SAP_1_0.AppViewSapDev - DEEP
    [SAPIFRService] localWorker: Agent review result <Material.GETDETAIL>
    <MATERIAL>000000000000001667</MATERIAL>
    </Material.GETDETAIL>
    DEBUG 09 Jan 2003 19:53:14,484 BEA_SAP_1_0.AppViewSapDev - DEBUG
    [SAPIFRService] localWorker: SafIFRAgent rootname: Material.GETDETAIL
    ExecuteThread: '10' for queue: 'default': com.ibi.sapjco.SapDriver: connect
    ExecuteThread: '10' for queue: 'default': com.ibi.sapjco.SapConnection:
    Initializing connection ...
    ExecuteThread: '10' for queue: 'default': Create callable statement: {CALL
    IDOC_INBOUND_ASYNCHRONOUS(?)}
    DEBUG 09 Jan 2003 19:53:14,515 BEA_SAP_1_0.AppViewSapDev - DEBUG
    [SAPIFRService] localWorker:
    IFRXML=<Material.GETDETAIL><MATERIAL>000000000000001667</MATERIAL></Material
    .GETDETAIL>
    java.util.NoSuchElementException
    at java.util.Vector.lastElement(Vector.java:449)
    at
    com.ibi.sapjco.SapIdocXmlParser.endElement(SapIdocXmlParser.java:189)
    at
    org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.jav
    a:559)
    at
    org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinde
    r.java:853)
    at
    org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java
    :643)
    at
    org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
    java:2978)
    at
    org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:9
    18)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo
    cumentFragmentScannerImpl.java:1145)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
    mentFragmentScannerImpl.java:988)
    I'm on site so could you send me the answer directly : [email protected]
    Thanks
    Christophe

    Hi,
    I don't know how much it will help but it must add some value.
    please check these links
    http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/78/759f3cad1e3251e10000000a114084/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710
    Regards
    Aashish Sinha

  • SAP Adapter Best Practice Question for Migration of Channels

    I have a best practice question on the SAP adapter when migrating an OSB project from one environment (DEV) to another (QA).
    If my project includes an adapter channel that (e.g., Inbound SAP Proxy listening on a channel), how do I migrate that project to another environment if the channel in the target environment is different.
    I tried using the search and replace mechanism in the sbconsole, but it doesn't find the channel name in the jca and wsdl files.
    What is the recommended way to migrate from one environment to the other when the channel name changes?

    I have a best practice question on the SAP adapter when migrating an OSB project from one environment (DEV) to another (QA).
    If my project includes an adapter channel that (e.g., Inbound SAP Proxy listening on a channel), how do I migrate that project to another environment if the channel in the target environment is different.
    I tried using the search and replace mechanism in the sbconsole, but it doesn't find the channel name in the jca and wsdl files.
    What is the recommended way to migrate from one environment to the other when the channel name changes?

  • File transfer through IBM SAP Adapter

    Hi,
    We are developing a solution where our SAP ECC 6 needs to receive transactional information via the IBM SAP ADAPTER.
    The Adapter will make a call to a remote function module that we will expose.
    I would like to know whether it is advisable to pass the file data as a string in the function module.
    The file is a flat file which consists of header, detail and trailer sections and can be bigger than 1MB.
    The IBM SAP Adapter will call the function and can the data be passed as a string without any performance issues.
    Regards,
    Michael Mayisana
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on Nov 5, 2009 9:04 AM

    Hi Michael,
    It's tough to answer your question as there's different perspectives to performance and it also depends a lot on the system and usage model. In general I'd say you shouldn't have any issue transferring even 10MB via RFC. I've done this several times and it works fine. However, you're just mentioning file might be above 1MB (so can it be arbitrary big?) and you don't mention what else is going on (e.g. are there lots of those processes that might run in parallel or are there already lots of other things going on).
    In principle I'd say the more scalable approach would be to utilize the usual OPEN-TRANSFER-CLOSE approach that you normally have with files. I.e. you'd call one RFC to initialize the transfer, then have another RFC (called possibly multiple times) that transfers chunks/blocks of data and finally another RFC that signals the end of the data transfer. The data transfer can be configured with a predefined block size (e.g. 1MB), which would work as the single RFC in most cases, but also be able to process files that are 100MB without any issues. Of course this introduces more overhead and assumes that memory is possibly scarce. If memory is there in abundance, it's probably easier to transfer everything in one chunk.
    Best wishes, harald

Maybe you are looking for