Middleware vs RFC

Hi,
When to use middleware and when to use RFC? i am a little bit confused....
can some one explain briefly?
Thanks,

earth 2v,
im new in this middlewarre business... so my answer is just based on what i knew..
The data exchange between the CRM Middleware and external systems is performed via adapters.
The adapters map and convert data between various formats.
The CRM Server Applications exchange data with the CRM Middleware via the CRM Adapter.
The data exchange via the CRM Middleware requires that an R/3 Plug-In is installed on SAP R/3.
In CRM, the R/3 Adapter communicates with the R/3 System via remote enabled functions of the R/3 Plug-In.
->On the R/3 side, you have to create an RFC Destination to the CRM system. Then activate CRM as consumer in table CRMCONSUM and maintain the table CRMRFCPAR. Through this table, the determination of the RFC destinations for the data transfer is connected with the consumer, client,object name and transfer type. For example, you can send data to a consumer in an initial download only, and not in a delta download.
->In the CRM system, you have to create an RFC Destination to the R/3 backend and a R/3 Site with the tool Administration Console. The R/3 Site references the RFC-Destination. Activate R/3 OLTP as consumer in table CRMSONSUM.
Hopefully this will help u.
Best Regards
Indah Puspita.
note : you can learn moore about CRM middleware in CR555.
overall my opinion is middleware is the teknologi for CRM to exchange data to other system and CRM still need RFC to define the destination of the connection.

Similar Messages

  • RFC destination definition with non-unicode external program

    Hello All,
    we have one issue with our RFID system connecting to WM system (SWD). 
    For most functions, external RFID server/middleware makes RFC call to SAP system.  Means, from outside system to inside SAP.  This seems to be working fine.
    But in one case, SAP needs to print label to RFID printer.  In this case, SAP is calling external RFID server/middleware using RFC destination.  Means, from inside SAP to outside system.  This is failing.
    We think this has something to do with ECC60 being unicode system, and the RFC destination setup.  We define rfc destination "ZRFID_SSI" in SM59.  We define it same way as in as-is SSI 4.6B production system.  But in SWD ECC60 system, SM59 has more options.  We define as 'non-unicode' because target RFID server/middleware is non-unicode Windows server.  RFC destination is actually working ok.
    To send label to printer, SWD calls function ZFSSIRF202 with remote destination ZRFID_SSI.   Listener on RFID server/middleware will respond to function call.  This also seems to be working.  But then, RFID server/middleware cannot process the data from ZFSSIRF202, log says that data is "0".  (Actually, the first time SWD calls, log says 0 data, the 2nd time there is connection failure, the 3rd time it is 0 data, 4th time connection failure, etc, etc.)
    Compared with production environment, everything is the same, except that SAP is unicode system.  So, our suspicion is, that when ECC60 system sends data, it is encoded somewhat a little different than when SAP 46B system sends data.  I have similar experience with our other interface (XSI), also involving RFC desintion, but XML file exchange.  Here, ECC60 is encoding XML file with UTF-16, but SAP46B was encoding with UTF-8.
    Anyone know how to help ?

    Hi Jeongbae,
    as of NW 7.0 EhP2, it is possible to directly set the code page in SM59.
    In earlier releases, this is not possible.
    In general, SAP systems use the logon language (SY-LANGU)  to determine the code page, if this is available.
    Please check SAP note 788239.
    Please also have a look at SAP note 991572 for possible alternative settings, if SY-LANGU is not available.
    In addition I would recommend to have a look at SAP note 1021459.
    However in order to analyze the problem properly, you need to know the exact short dump text (via rfc trace).
    For XML processing, please read SAP note 1017101. UTF-16 should NOT be used in an XML file !
    Best regards,
    Nils Buerckel
    SAP AG

  • TABLE_ENTRIES_GET_VIA_RFC in unicode system

    Hi all,
    I know this is going to be a long initial post, but please please take the time to read it. Otherwise there would be many unnecessary questions.
    We are using a middleware for mobile devices that reads connects to SAP for reading table data (via a.m. RFC) and posting RFCs/BAPIs.
    Now we try to connect to an unicode SAP system (6.20). The statement
    SELECT * FROM (TABNAME) INTO TABLE TABENTRY WHERE (SEL_TAB)
    where TABENTRY is a table of type char(2048) does not work any more as in unicode systems the structure of the db table and the internal table have to be the same.
    So we found the fm CRM_CODEX_GET_TABLE_VIA_RFC in CRM which is built from a copy of the a.m. fm and solves this problem by
    1.) creating dynamically an internal table of the same type as the db table.
    2.) select the data into this new internal table
    3.) loop over the internal table and converting each field of its structure to a char variable and then appending it to a the result char(2048).
    Theoretically everything's ok. The fm works now and returns correct data. But there's still one problem, the middleware doesn't convert the data correctly, as the values of fields of type 'p' are passed differently.
    non unicode (standard fm):
    1000000000000280401011000COMPDL              200408 ###E8##############################
    unicode (changed fm):
    1000000000000280401016000COMPDL              200504 10.000       0.000        0.000        0.000
    As you can see, the select statement from the top of this post just puts the data into the string without actually converting the numbers in fields of type p (or QUAN, CURR in db).
    The changed fm with converting every field also converts the number values, now they appear as char fields.
    The middleware tries to convert the number values, but always returns 0 (I can only the results as the actually programming is a black box for me).
    Has anyone any idea how to solve this problem? (beside getting help from the middleware vendor, which is difficult, as there is a new release working with unicode systems. But we will stay on the old release for some months from now...)

    Hi Raja,
    thanks for your answer.
    I had already searched the forum and found your document about RFC_READ_TABLE which I think is quite interesting and a good solution.
    But unfortunately, I cannot change the middleware's RFC logic, e. g. change the BAPI or make changes to the in-/output streams.
    I now live with a workaround:
    I modified the RFC to convert all p type fields to character fields and also changed the metadata RFCs accordingly, which works OK.
    For all RFCs I use to post data to SAP, I write a wrapper RFC with character only structures and convert them to the internal RFCs inside SAP.
    This is not my preferred solution, but I am very short of time and it works pretty well.
    Regards,
    Hans

  • E-Commerce CRM 5.0

    Hi,
    We are setting up CRM 5.0 B2B E-Commerce application. I am looking for configuration documents for setting up web middleware like RFC Connection between CRM - TREX-J2EE Server and XCM Configurations .
    Thanks & regards,
    Surya

    Hi Surya,
    Here is the link for CRM best practices. You will get everything here.
    http://help.sap.com/bp_crmv150/CRM_DE/index.htm
    Click on technical Information --> Building Block  Library
    Reward me, if the link helps,
    Regards,
    Paul Kondaveeti

  • Input feed to HRP SAPR/3

    Hi,
    Can you suggest me XI/PI best practices for following scenarios:
    1. Input feed to HRP SAPR/3 application will utilize and XI middleware and RFC or IDOC to
    validate and load into the database.
    Input  is : CSV file.
    File size expected to be less than 10,000 rows and typically less than 5,000 rows
    SAPR/3 would use either RFC or IDOC to process input file
    --> Still we need to find standard IDOC or RFC for feed this input.if we do not find IDOC
    or RFC then what is other methodology to feed this data into HRPSAPR/3? and how do we find
    standard IDOC or RFC for HR employee details?
    2. Output feed to Customized application (SF) will utilize extracted  data from HRP SAP
    R/3. The file will be sent to a secure FTP location to be processed by SF.
    ---> Does XI/PI supports secure FTP? then how do we achieve this SFTP?
    Thanks in Advance.
    PIleran

    Hi,
    For your sec question. XI will not support SFTP. Probably u can temporarily write to folder and using scripts u can push into SFTP, but I haven't worked on this.
    Best regards,
    raj.

  • In middleware why we give RFC destination as CRM and consumer as SRM?

    Hi friends
    In middleware why we give RFC destination as CRM and consumer as SRM
    Regards
    Vinny

    Hi,
    As Michaels said SRM and CRM are developed on same base and even still now if you go and check some tables u will find dataelements and others with CRM extension.
    Regards
    Anil

  • How to consume web service without any middleware from abap RFC

    Hi Experts,
    I have a  RFC and i need to send the data to a web service.
    So, I came to know that i need to create a proy for that.
    While creating proxy what shd i choose,
    URL  or
    http  or Local file
    or Enterprose service repositort
    please give some steps.
    Thnak You.

    Hi,
    You need to download the WSDL file on your local desktop and choose the Local file option.
    Regards,
    Vikas

  • File-to-file or File-to-RFC for Automatic PO creation and GR creation

    Hi,
    We are on XI 3.0 and the following has been put to me:
    We will receive a .CSV file from FTP server, into XI and then need to create Purchase Orders followed by the Goods Receipt documents in R/3 based on the incoming data.
    Further to this, the requirement is to give a log of the successfule and failed PO + GR document summary to the business.
    The programme in R/3 will compare the incoming file nmame with archived files already processed and will reject any files with duplicate names.
    I was suggesting to go with the file to RFC in R/3 whereby we can have a Z shell BAPI to include the standard BAPI for PO creation and GR creation. This Z code can then be extended to email the log to the business of which records were successfully created and which failed.
    However, I am stumped as to how can I make the file duplication comparison on R/3 as the incoming file will also be stored on R/3 archive somewhere.
    Can this be made when the BAPI is called in XI?
    I can configure alerts when the BAPI is mapped from incoming file for that interface.
    What was suggested also was to pick up the CSV file and thow it as it is in R/3 and then the Z code can go through it and create the PO and GR objects. However, then it does not make much sense to use XI as the middleware platform.
    Please advice.
    Regards,
    Arcahna

    Hi Archana,
    Take a look to this blog: 
    https://wiki.sdn.sap.com/wiki/display/XI/Different%20ways%20to%20keep%20your%20Interface%20from%20processing%20duplicate%20files
    Maybe it could help you for the duplicate files.
    Regards,
      Juan

  • RFC : Transaction Program not Registered

    Hi Folks,
    We have registered the server program from the middleware onto SAP R/3 System and is successfully registered as per the logs. As a next step, we have logged into R/3 System, SM59, in the RFC destination (Type TCP/IP) after specifying the registered program, we have tested it(Connectivity test). The test is positive and connectivity is established successfully.
    The solution was working for months and suddenly connectivity is broken.
    To restore the connection, we have repeated the steps, registered the server program, tested and everything is fine.
    But when we have pushed a new message, then onwards the RFC destination shows an error. "TP is not registered", Return Code 679. That is when the first message is pushed, it is de-registering the server program and running into error. All the messages got stuck in SM58 with status 'Error when opening an RFC connection'.
    RFC trace shows
    ERVER> Caller transaction code:  (Caller Program: SAPLQOWK)
    ERVER> Called function module: ARFC_RUN_NOWAIT
    Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1501
    CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=679
    Transaction program not registered.
    Please let me know for any inputs.
    Thanks, Suraj

    My problem got solved. In the middleware, when TRFC connection is made, it has created a lock entry during the time, system was brought down for maintenance activity. When the system is brought up, then as the connection lock entry is available, then it deregistered the server program and not able to establish further connection.
    To resolve the issue, we have just deleted lock file and registered server program from middleware. This time the connection was established successfully and could able to restore the message flow.
    Thanks, Suraj

  • Middleware problem -Outbound queue is stuck in SAP R/3 system with message

    Hi Middleware gurus ,
    We are stuck with a serious issue . We are trying to download Business partners from SAP R/3 4.6c system to SAP CRM 5.2 system using CRM Middleware
    Previously we did a successful Initial download of 2 Business partners from SAP R/3 to CRM . Their BP numbers in CRM are 001 and 002 . The Delta load is working fine for the both the BPs which are already downloaded
    Now , the real problem is when we are trying to download a new Business partner . When we set the Filter ( BP no 003 ) in MW adaptor object CUSTOMER_MAIN and start the Initial load again , we see that the Outbound queue is getting stuck with message “STOP” .
    There are two queues generated in SAP R/3 system with names “MASS_CRM_CUSTOME” and “R3AD_CUSTOME” . The status for both the queues is “STOP” and when go for details it mentions “sapsuck ..SAPMSSY1 “ -Message no. SR 053.
    Even we checked the txn SMW01, the Bdocs message is "Recived ( Intermediate state) " for Bdoc type BUPA_MAIN.
    We really don’t as to why the Initial load worked fine with 2 BPs  and later when want to do more BP Initial Load the Outbound queue is getting stuck
    Also , by unlocking the 2nd queue “R3AD_CUSTOME” we are able to release it , but the first queue “MASS_CRM_CUSTOME*” is stuck
    Please help us urgently
    Regards
    Dinesh and Ritvij
    Email : [email protected]
    Mobile -+91=9704933315

    Hi Praveen and other Middleware gurus,
    We checked on this . Actually the RFC is used for connecting to SAP R/3 system.
    We also raised an OSS message on this and found a reply that in transaction CRMM_BUPA_MAP, we can map the required BP . But the SAP support guy recived an error received the error:
    An RFC link is not maintained in the Middleware
    Message no. CRM_BUPA_MAPPING051
    We have set the RFC link , but still the problem continues!!!
    Please help further..
    Regards
    Dinesh and Ritvij

  • Doubt in Middleware configuration setting in transaction code - smoeac

    Hi,
    For your information this is a new SRM 7.0 installation and I am connecting to a existing ECC system.
    I have performed all the step metioned in SAP Note: 720819 for middleware configuration in SRM system. Bit confused about the setting in Transaction code - SMOEAC. I have done following step in transaction code - SMOEAC.
    1. Created a new site type R/3
    2. I have mentioned RFC connection name (RFC connection from SRM to ECC) in 'Site Attributes'.
    3. System showed correct Logical system name When I clicked on 'Get value' option.
    For your kind information, a site type CRM exist in the system without any data in 'Site Attributes'.  We have not define the CRM site. It come while install the new SRM server.
    My question, apart from the above setting. do I need to define enter any data for the site type CRM in SMOEAC?
    Thanks in advance,
    Regds,
    Jennifer
    Edited by: Jennifer Batty on Aug 15, 2011 2:34 PM

    Hi Jennifer,
    Apart from the note, you should refer http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5728. [original link is broken] [original link is broken] [original link is broken]
    Regards,
    Nikhil

  • Error while creating a RFC model for WD for Java

    Hi,
    While trying out the example(TutWD_FlightList_Init.zip) for model programming in the NDS,I got the following error when I try to create a model:
    Plugin Name     Web Dynpro Model Editor Services
    Plugin Id     com.sap.ide.webdynpro.service.modeleditor
    Class     com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog
    Method          nextPressed
    Message          Internal error - see detail information in exception trace
    Exception     org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoClassDefFoundError)
    Can anybody help?Is there any place in NDS to see the detailed error message?
    thanx in advance,
    Bhupesh

    I modified the xml file as described in the forum.But the error persists.
    One interesting thing is:
    When I create model after restarting the NDS,I get the following error:
    org.eclipse.swt.SWTException: Failed to execute runnable <i>(java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library librfc. Found version "620.0.1237" but required at least version "620.0.1374".)</i>
    I get the NoClassDef found error next time onwards,
    Where do I get the 620.0.1374 version of librfc?
    thanx.
    Bhupesh

  • Error while creating adaptive RFC model

    Dear All,
    I am trying to create Adaptive RFC model by  which i can fetch data from R/3 trough BAPI and display on the webDynpro UI.
    I am getting error
    Exception: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library librfc. Found version "640.0.55" but required at least version "640.0.76".)
    Kindly suggest.
    Thanks
    Ashish

    Hi,
    Check this link....
    com.sap.mw.jco.JCO$Exception (104) RFC_ERROR_SYSTEM_FAILURE

  • RFC to get sales orders for customers from r/3 to crm ..

    Hello,
    Is there already a FM (RFC) in place to get the list of sales orders from r/3 to crm.
    CRM middleware is not configured to get this data from r/3 to crm .. so am looking out for a r/3 FM module which i could call from crm system to get the sales orders as an export parameter ..
    Regards
    Shivani

    Hi,
    If you are replicating the sales order from R3 to CRM then you will get all the orders present in CRM. If that is not the case then you need to write one RFC in R3 to get the desired data as R3 is governed by Select queries on tables instead of Function modules in CRM.
    So if you want to fetch any information from R3 then you need to create RFC and use select query to get the data.
    Thank you.
    Ashish

  • Z table middleware replication from R/3 to CRM

    Looking for a CRM Middleware Guru out there !!!
    I'm trying to replicate a simple R/3 table (list of countries in my example below. The replication must include both initial and delta downloads.
    My problem is the following:
    When doing an initial load using Transaction R3AS the BDOC is created correctly.  
    The traffic lights are green in transaction SMW01 with a status of Confirmed (fully processed). 
    The segments of the BDOC are populated with the correct value from R3 <b>BUT</b> <b>the table on CRM is not populated.</b>
    Here is what I have done so far:
    1-Created table on R3 ZCOUNTRY
    2-Created mapping Function on R3 Z_CRS_MAP_ZCOUNTRY_BAPIMCTS
    3-Created extract Function on R3 ZCOUNTRY_EXTRACT
    4-Created an entry in Table CRMSUBTAB for Function ZCOUNTRY_EXTRACT
    5-Created Receiving Module in R3 Z_CRM_COUNTRY_COLLECT_DATA triggered on SM30 for the Delta Load
    6-Created table on CRM ZCOUNTRY
    7-Created Bdoc on CRM ZCOUNTR_MESG
    8-Created validation Function on CRM ZCRM_ZCOUNTR_MESG_VAL
    9-Add an entry in SMW3BDOCIF for BDOC ZCOUNTR_MESG and Validation Function ZCRM_ZCOUNTR_MESG_VAL
    10-Created mapping Function on CRM ZMAP_COUNTRY_BAPIMTCS_TO_MBDOC
    11-Created MW Adapter Object in CRM ZCRMCOUNTRY
    12-Created a replication Object on CRM ZCOUNTR_MESG
    13-Created a publication on CRM ZCOUNTRY
    I'm not sure why the CRM does not get populated. Could it have anything to do with "GUID" keys?
    The 2 fields on my bespoke table are:
    -Country
    -Continent
    In my Root Data Structure for the MBDOC do I need to add GUID as the first fields i.o.w.
    -GUID
    -Country
    -Continent
    When I choose my segment fields do I choose (?):
    -GUID
    -Country
    -Continent
    In my CRM Mapping function how do I populate the GUID field? (see the code below in the mapping function).  How do I get a value into lv_sfakey and does this have anything to do with the GUID mentioned above.
    MOVE lv_sfakey TO segment_line-guid.
    AND
    MOVE lv_sfakey TO ext_line-data-guid.
    Thanks for any help
    Manoj

    Hi Manoj,
    I have a similar situation as you have described. However my problem is that when i start the initial load, the status in the RFC inbound queue of CRM (smq2) shows stop and the oject shows the status running. I dont know how to debug the
    Validation FM and Mapping FM written for the same. Can you please explain me the meaning of the status shown in the crm queue.
    Thanks,
    Vaishali

Maybe you are looking for

  • How to declare and use a variable in BI Publisher report

    Hi Experts , I have to groups of serial numbers and both group are put in same table and same row one after another , and i have a condition that if no serial number is present in both group than the line of that table should not be appeared ,i used

  • Can't add a new event to an imaged iMac.

    I have an older iMac at work. It is on a network so all the macs are imaged. When trying to add a new event to iCal it just doesn't work. I try to drag in day but the it just diasappears. This iCal is synced with my computer at home. It works fine on

  • Problems when trying to add a class

    Hi all, I realise that this might belong more as a bug file, but I thought I would ask here first. I have a web application, with a few packages, some code, nothing out of the ordinary. But today, when I started up the IDE and loaded the project, the

  • Maximum Royalty check in during Create Rebate Agreement( vbo1 transaction)

    Hi experts, There is need to implement a maximum royalty check for a particular material. This maximum percentage is stored in the material master itself.( Say 10 %) When a Rebate Agreement is created / changed a particular amount is entered against

  • ITunes Skipping Songs/Part Songs

    Hi, I purchased an Apple iPod 3-4 years ago and loaded music into iTunes and purchased songs from the iTunes store. Late 2007 I started experiencing problems with songs starting then skipping partly through and moving on to the next song. This occure