Multiple adapters scenario

Hi there,
i am working on a multiple adapters scenario and would like to get some help from you experts.
I will try to explain the requirements of it:
1) An external system will send a request to XI (in order to "start" the process) --> SOAP adapter (sender/request)
2) XI will communicate with SAP and retrieve a table from there --> sRFC adapter (receiver)
3) XI will update a table (Oracle DB) of the source system (the external one from step1) --> JDBC adapter (??)
i have been involved in scenarios with SOAP adapter and JDBC separately but not all together.Thus i dont know how to elaborate the third step.In addition i would prefer avoiding the use of BPM if possible.
Questions:
a) What is the best practise here?
b) I am not using WS.response so i dont know how to retrieve back the data to the sorce (that is the target system at the same time) by using the JDBC (cause i need to update a table).
Could you please help me on this?
Thanks in advance and best regards,
David

Hi,
Here is a sample code for RFC lookup
package com.ibis.mapping.lookup.websiteorders;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
import com.sap.aii.mapping.api.AbstractTrace;
import com.sap.aii.mapping.api.MappingTrace;
import com.sap.aii.mapping.api.StreamTransformation;
import com.sap.aii.mapping.api.StreamTransformationConstants;
import com.sap.aii.mapping.api.StreamTransformationException;
import com.sap.aii.mapping.lookup.Channel;
import com.sap.aii.mapping.lookup.LookupException;
import com.sap.aii.mapping.lookup.LookupService;
import com.sap.aii.mapping.lookup.Payload;
import com.sap.aii.mapping.lookup.RfcAccessor;
import com.sap.aii.mapping.lookup.XmlPayload;
public class RFCLookup implements StreamTransformation
     public Map param = null;
     public static void main(String[] args)
          try
               InputStream in = new FileInputStream(new File(
                         "TestFile.xml"));
               OutputStream out = new FileOutputStream(
                         new File(
                                   "Test.xml"));
System.out.println("Hello");
               RFCLookup rfcLookup = new RFCLookup();
               rfcLookup.execute(in, out);
          catch (Exception e)
               System.out.println("ERROR IS :" + e.getMessage());
     public void execute(InputStream inputStream, OutputStream outputStream)
               throws StreamTransformationException
          MappingTrace importanttrace;
          importanttrace = (AbstractTrace)param.get(StreamTransformationConstants.MAPPING_TRACE );
          RfcAccessor accessor = null;
          try
               // 1. Determine a channel (Business system, Communication channel)
               Channel channel = LookupService.getChannel("BS_name", "Comm_channel_name");
               // 2. Get a RFC accessor for a channel.
               accessor = LookupService.getRfcAccessor(channel);
               importanttrace.addInfo("Accessor Looked up.");
               // 4. Create xml payload from the inputStream
               XmlPayload payload = LookupService.getXmlPayload(inputStream);
               importanttrace.addInfo("Input stream payload fetched");
               // 5. Execute lookup.
               Payload result = accessor.call(payload);
               importanttrace.addInfo("Called the RFC");
               // 6. Get the lookup response in new InputStream
               InputStream in = result.getContent();
               importanttrace.addInfo("got output");
               // 7. Transfer the inputstream into outputstream
               byte[] buffer = new byte[1024];
               for (int read = in.read(buffer); read > 0; read = in.read(buffer))
                    outputStream.write(buffer, 0, read);
                    outputStream.write('\n');
               outputStream.flush();
          catch (LookupException e)
               importanttrace.addWarning("Error while lookup " + e.getMessage());
          catch (IOException e)
               importanttrace.addWarning("Error " + e.getMessage() );
          finally
               // 8. close the accessor in order to free resources.
               if (accessor != null)
                    try
                         accessor.close();
                    catch (LookupException e)
                          importanttrace.addWarning("Error while closing accessor " + e.getMessage() );
     public void setParameter(Map param)
          this.param = param;          
          if (param == null)
              this.param = new HashMap();
This code works and all you need is the source RFC interface and target RFC interface.
compile this code and import it as java mapping in interface mapping..
now specify some RFC request in the test tab of interface mapping. the o/p will be response from RFC
Dont forget to modify the name of ur comm channel and business system in the code
Channel channel = LookupService.getChannel("BS_name", "Comm_channel_name");
Edited by: Progirl Progirl on Jul 21, 2008 4:25 PM

Similar Messages

  • SAP CRM Multiple Backend Scenario with Solution Manager

    Dear Experts,
    We are implementing CRM Middleware - Multiple Backend Scenario (MEP / MBE Concept) in our client landscape for SAP CRM on HANA (Ehp3)
    set-up.
    And If any one of you have already implemented MEP Scenario in the SAP CRM Landscape, Could you please help us to provide with the Configuration Steps / Documents, so that we can proceed further.
    Below are the following Queries:
    For Customizing Adapter Object:
    1) Does MEP Concept support the Customizing Adapter object to download from more than one ECC System to single CRM System.
        If Yes, Could you please provide the Configuration steps or Procedure to download the customizing data.
    For Master Adapter Object:
    2) The Adapter objects for Master Data like Customer and Materials are technically supported under MEP for the data exchange.
         However, is it possible to download the Equipments Master Data from more than one ECC System to single CRM System?
         If Yes, Could you please provide the steps or Procedure to download the Equipments Master Data.
    And please provide if you have done the Solution Manager Configuration mapping for MEP Scenario, which is required for the maintenance and transfer of customizing mappings to CRM and Mapbox.
    Thanks,
    Mohanram.

    Hi Alagammai,
        We are also implementing CRM Middleware - Multiple Backend Scenario (MEP / MBE Concept) in our client landscape for SAP CRM on HANA (Ehp3) set-up.
    Required some Information on the below Query.
    For Customizing Adapter Object:
    1) Does MEP Concept support the Customizing Adapter object to download from more than one ECC System to single CRM System.
        If Yes, Could you please provide the Configuration steps or Procedure to download the customizing data.
    For Master Adapter Object:
    2) The Adapter objects for Master Data like Customer and Materials are technically supported under MEP for the data exchange.
         However, is it possible to download the Equipments Master Data from more than one ECC System to single CRM System?
         If Yes, Could you please provide the steps or Procedure to download the Equipments Master Data.
    And please provide if you have done the Solution Manager Configuration mapping for MEP Scenario, which is required for the maintenance and transfer of customizing mappings to CRM and Mapbox.
    Thanks,
    Mohanram.
    7829055537

  • File to Multiple Idocs scenario. Pls help

    Hi All,
    For Single File to Multiple Idocs scenario i am referring blog --
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
    Suppose my source file is
    AAA, BBB,CCC
    111,222,333
    ZZZ,ZZZ,ZZZ
    I want to make 2 IDOCS for the first 2 records (AAA, BBB,CCC   and  111,222,333)
    and do not want to make IDOC for the 3rd record  -- how to achive this.
    Regards

    Hi,
    If the condition is like, for 'AAA' and '111', IDocs to be generated, then do as follows.
    If IDOCs are of same type.
    1. Value
    > Equals -
    > createIf -
    > IDOC
       Constant('AAA')
    2. Value
    > Equals -
    > createIf -
    > IDOC
       Constant('111')
    3. Value
    > Equals -
    > not -
    > createIf -
    > IDOC
       Constant('ZZZ')
    If 2 IDocs are of differnet types,
    create different mapping programs with same logic.
    If 2 IDocs are to be generated based on the record no in the file rather than the first field value, i think you can go for Global container.
    Refer these,
    [http://help.sap.com/saphelp_nw04/helpdata/en/ee/bf9640dc522f28e10000000a1550b0/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/EN/49/1ebc6111ea2f45a9946c702b685299/content.htm ]
    [http://help.sap.com/saphelp_erp2004/helpdata/en/75/8e0f8f3b0c2e4ea5f8d8f9faa9461a/frameset.htm]
    thanks.
    Edited by: P.Ravi Varma on Apr 22, 2009 10:27 AM

  • XI-Multiple instance scenario -File & SQL sender communication channels

    Hi
       i have a basic question regarding how file sender communication channel ( where we poll for a particular file pattern either using file/ftp types in a particular subfolder ) or a sql sender communication channel - ( selecting records from a sql source ) would work in a scenario with two active XI instances and j2EE file and sql adapter services running on both of the J2EE servers ?
    1. How would the file polling from both J2EE servers - avoid a conflict looking for the same file pattern ? Is there any inbuilt mechanism from SAP to make multiple instances work with the file polling - without a confict ?
    2. Simlar question for SQL sender type communication channel ?
    If SAP does have a mechanism to handle multiple instance scenarios for file and sql sender adapter based communication channels, is there a link/document on this ?

    Hi Karthik,
    Please see my comments.
    I am just wondering aloud - what will happen if we use a select for update clause in the sql sender adapter communication channel -
    Gouri: Yes you can use select + update. In fact that is the right way.
    will this ensure that polling from one J2EE instance will lock the selected records so that the second instance does not select the same set of records from the sql server ? Or should we not use a select for update and use a simple select statement ?
    Gouri: Yes. SQL DB will ensure that same data will not be picked by another node. As I mentioned earlier use serilizable option from advanced mode.
    -Gouri

  • File-XI-multiple IDoc Scenario

    Hi there -
       I am working on single File-XI-multiple IDoc Scenario and have following questions:
    (please keep in mind that there is already an existing multiple IDocs-XI-single File scenario between the same systems)
    1. Please provide any detailed step by step documentation from end-to-end.
    2. I am thinking it's compulsory to use BPM, is there any way to aviod?
    3. Is it possible to update existing IDocs in R/3 directly from the data from XI?
    Thanks everyone in advance...
    Pat

    HI,
    Pls go thru following links-
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Single inbound file -> XI -> Multiple IDOCs in SAP
    One file for multiple IDOCs
    Hope this helps..
    Regards,
    Moorthy

  • Multiple IDOC to Multiple IDOC scenario without BPM steps????

    Hi
    Could you please give me the solution for this ???
    I want steps for sending all IDOCs at a time- ---"Multiple IDOC to Multiple IDOC scenario without using BPM".???
    thanks
    3nadh

    Hello,
    Refer the below, for certain details!
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi     ALE configuration for pushing idocs from SAP to XI
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change     XI: IDOC bundling - the "trick" with the occurance change
    Regards,
    Jilan

  • JDBC to Multiple IDOC scenario

    Dear Experts,
    My Scenario is JDBC to Multiple IDOC scenario.
    I am reading 100 records and generating 100 IDOC's at the target ECC system, the problem which I am facing is if I have any issue with 1 record the total message gets failed in SXMB_MONI due to mapping failure.
    So again I need to reset all 100 records in my source database and I should reprocess the same.
    Is there any way to process the 99 and fail only one record which causes error.
    Is Stored procedure will fix this issue or do I need to use BPM for this to achieve.
    Please advice.
    Thanks,
    --Sai

    Hi Sai,
    As you are selecting 100 records in one go, all the records will come as a single message in PI.
    Please find below my suggestion for this issue.
    1. Selecting one record per message will not be efficient. So please do not use it.
    2. Create a secondary sctucture. Generate it only if there is an error in the record. You may set up an alert for that message. So if any error occurs, other 99 idocs can go normally, while you will get an aleart for the failed record.
    3. Another option is to create an idoc for error record also. You can do this by providing some default values in place of error fields. You can then monitor such idocs in ECC.
    Personally, i feel 2nd option is the best. Let me know if you need more information on this.
    Regards,
    Gavaksh

  • IDOC to multiple header scenario..

    Hi,
    My scenario is Idoc to multiple flle scenario..(CDMA & GSM files needs to routed to differient structures)
    The requirement is Idoc is triggered at R/3 ECC side, at the target end we have 3 structures, the 1st structure is common as it has email details and the 2nd structure (CDMA structure)and the 3rd structure (GSM Structure) is differient which should handle CDMA & GSM.
    so, the IDOC triggers with the following case
    1. Only CDMA files
    2. Only GSM files
    3. Mixed CDMA & GSM files
    4. Sometimes missed data without having anyinformation to differentiate (For this case the records should not be geterated)
    Ouput should be as follows:
    for the first case:
    1. If only CDMA files -
    > In this case the output should be 2 files (one email file , CDMA text file--- so totally 2 files)
    2. If only GSM files  -
    >In this case the output should be 2 files (one email file , GSM text file--- so totally 2 files)
    3. If both CDMA & GSM -
    > Then here totally 3 output files where (One email file, CDMA text file, GSM test file -- totally 3 files)
    Please throw some light for how to proceed with this type of scenario..
    Thanks,
    --Kishore

    Hi Sarvesh,
    The reply was really useful and also can you clarify the below things,
    1. I have to drop the files by using dynamic file naming configuration i mean i have to drop the files with the name as below
    First case: If only CDMA records in the IDOC then i need to drop 2 files (1 email file -- 1 CDMA text file)
    the file names should be as : IDOCNumber_Currentdate.xml -- For email file & IDOCNumber_CurrentDate.txt for CDMA text file
    Second case: If only GSM records in the IDOC then i need to drop 2 files (1 email file -- 1 GSM text file)
    the file names should be as : IDOCNumber_Currentdate.xml -- For email file & IDOCNumber_CurrentDate.txt for CDMA text file
    Third case: If mixed CDMA & GSM records in the IDOC then i need to drop 3 files (1 email file -- 1 CDMA text file & 1 GSM text file)
    the file names should be as : IDOCNumber_Currentdate.xml -- For email file & IDOCNumber_CDMA_CurrentDate.txt for CDMA text file, IDOCNumber_GSM_Currentdate.txt)
    Here the IDOC number and the text GSM is not used in the ouput structure to use variable substitution method, when we use dynamic file naming configuration UDF then the files are getting overwritten with the first UDF.
    Please let me know how to proceed further..
    Thanks,
    --Kishore
    Edited by: Kishore Kumar N.T on Dec 10, 2010 11:33 AM
    Edited by: Kishore Kumar N.T on Dec 10, 2010 11:34 AM

  • How to Implement a Single Folder - Multiple Authors Scenario für NW 7.3?

    Hello,
    is a version "How to Implement a Single Folder - Multiple Authors Scenario" for NetWeaver 7.3 planned?
    Best regards,
    Arnold Gallemann

    Hi Detlev,
    thanks a lot for sharing your work!
    Due to the reason we need a different configuration in KM, I changed e.g. some values in the .cc.xml and .co.xml files. I rebuild the project and checked the created EAR file. I noticed that the ConfigArchive file in EAR file still has the old values. It seems that SAP NetWeaver Developer Studio 7.3 is not recognizing in a portal application project the configuration of the src.config folder anymore. To test this, I removed the initial provided ConfigArchive in the folder dist\PORTAL-INF\config\ from your project. I rebuild it and the ConfigArchive in the EAR file wasnu2019t included.
    I found in the documentation (http://help.sap.com/saphelp_nw73/helpdata/de/42/60aec0032c1422e10000000a114cbd/frameset.htm) the SAP Note 1572813, which would describe how to use KMC wizards in SAP NetWeaver Developer Studio 7.3. But the article is currently not released to public.
    In addition I have discovered, that it is possible to include the src.config folder in the build process if the project is set up as a development component (see for details bullet point Optionally of http://help.sap.com/saphelp_nw73/helpdata/de/42/60aec0032c1422e10000000a114cbd/frameset.htm). This works. But later on I am facing another problem: I am missing the entry KMC-CM to add it as a dependency for the development component.
    Best regards
    Mario

  • Single folder multiple Author scenario in KM

    Hi Every One,
           I have tried to configure Single folder multiple Author scenario in KM. i have done all configurations Given in Following document  but i haven't Succeeded. Please help me Out.
    Configuration Document like:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f74d7c0-0d01-0010-50b1-9810a1584b00
    Regards
    Sridhar.

    Hi All,
    Sorry for the previous post. Let me explain the scenario in brief..
    We need to upload a document to a particular folder in KM and assign Permissions to the same. Say For example, we have 100 users and a admin user. The uplaoded file by a user should not be viewed by other 99 users, the admin & the user who uploaded the doc can have full control over it.  Similarly the case should be generated for the other 99 users.
    We tried to uplod the document and assign permnissions manually. But i know this is not the best way to approach this requirement.
    What should be the best solution to assign permissions to the uploaded document?
    Regards,
    Sridhar

  • Role of clients in CRM Multiple Backend Scenario

    Does the CRM Multiple Backend Scenario only apply to a single client pointed to multiple CRM or ERP systems.
    All the relevant tables are client dependent in CRM 2007 and the client independent ones use logical destinations which can easily be pointed todifferent clients.
    We want to point different clients on a CRM or ERP system to multiple back ends, but each client will only have a single client that it points to.
    For example
    CRM (dev) client 100 is connected to ERP (sandbox) client 100
    CRM (dev) client 200 is connected to ERP (dev) client 100
    CRM (test) client 100 is connected to ERP (qa) client 100
    CRM (qa) client 100 is connected to ERP (qa) client 200
    This will only be in the development and qa systems. Production will be a single system and client on each side.
    Regards,
    Aubrey Smith

    Aubrey,
    Development will happen in only one client system. This can later be moved to Quality and further to production. All customization will also be moved same way. It may also happen that your development is cross client so if you do development on 100 , it will be available on 200 client as well.
    Regards,
    Harshit

  • Multiple Backend Scenario with SolMan

    Hi Gurus,
    i need the information about the multiple backend scenarios implementation with SolMan. In the Note 1084315 - Consulting: Information about the multiple backend scenario,  there is the Way decribed:
    You can find documentation about this in Solution Manager under 'Basic Settings for SAP CRM' -> 'Multiple Systems Exchange Projects: Multiple Backends'.
    But i can not find it in Solution Manager, where can it be?
    Thanks and Regards,
    Stefan

    Hi Alagammai,
        We are also implementing CRM Middleware - Multiple Backend Scenario (MEP / MBE Concept) in our client landscape for SAP CRM on HANA (Ehp3) set-up.
    Required some Information on the below Query.
    For Customizing Adapter Object:
    1) Does MEP Concept support the Customizing Adapter object to download from more than one ECC System to single CRM System.
        If Yes, Could you please provide the Configuration steps or Procedure to download the customizing data.
    For Master Adapter Object:
    2) The Adapter objects for Master Data like Customer and Materials are technically supported under MEP for the data exchange.
         However, is it possible to download the Equipments Master Data from more than one ECC System to single CRM System?
         If Yes, Could you please provide the steps or Procedure to download the Equipments Master Data.
    And please provide if you have done the Solution Manager Configuration mapping for MEP Scenario, which is required for the maintenance and transfer of customizing mappings to CRM and Mapbox.
    Thanks,
    Mohanram.
    7829055537

  • Multiple account scenario and transaction launcher (CRM7.0)

    When I want to get the personnel number transferred from the webclient into R3 via the transaction launcher I can get the current customer copied into R3 from the service ticket. In the multiple account scenario I want to get the BP "involved employee" transferred instead of the current customer being the reporting customer (on behalf of).
    Does anyone has the parameter for this?
    Thanks,
    Donny
    Edited by: Donny Mensen on Sep 1, 2009 10:12 AM
    Edited by: Donny Mensen on Sep 1, 2009 10:15 AM

    Wrong interpretation of multiple account scenario by user.

  • How to maintain EOIO for JMS to multiple webservices scenario

    Hi,
    I have a requirement that
    how to maintain EOIO for JMS to multiple webservices scenario.
    JMS queue has multiple messages, each message has to be sent to either of 2 receivers.
    How to maintain EOIO in case, when there are 2 receivers.
    Regards
    Sekhar

    Hi,
    since messages are split between 2 webservices receivers, each would have its own SOAP adapter.
    So if order of messages in the JMS queues is M1, M2, M3 and M4 . There is a field based on which split happens.
    Say, if M1 and M3 have to go Webservice1 (will have its own mapping)
    and M2 and M4 have to go Webservice2. (will have its own mapping)
    we'll have two receivers in the receiver determination and hence two Interface determinations.
    The result should be
    M1 delivered to Webservice1
    M2 delivered to Webservice2
    M3 delivered to Webservice1
    M4 delivered to Webservice2
    How will we maintain EOIO in this case?
    Regards,
    Balaji.M

  • My iPod will not charge though it is turned on. and I've tried multiple adapters and computer usb. My computer doesn't recognize it either.

    I've tried multiple adapters and computer usb. My computer doesn't recognize it either.

    Try:
    iPod touch: Hardware troubleshooting

Maybe you are looking for