Doubt in file to rfc to mail scenario

Hi All,
I have a doubt in configuring File2Rfc2Mail scenario,
Actually my requirement is to send flat File to RFC, and trigger mail alerts for successfull execution , like after successfully posting the mesg to rfc i need to trigger a mail alert to mailserver,
For that what i thought to do is file to rfc and from rfc response to mail , i don't know whether i can do like that or not , do anybody help me in this issue,
Thanks in advance,
Nousheen.

Hey,
   Your BPM will be like this.
recieve step(file)-> sysnchronous send step(rfc)-> send step(mail)
3 abstract interfaces:-
abstract asynchronous(file structure)
abstract synchronous (in this request as file sturcture and response as mail structure)
mapping between abstract synchronous and rfc(no need for transformation as mapping is outside)
abstract asynchronous(mail structure)
create two container variables, one for each abstract asynchronous interface.
use them in recieve step(file) and send step(file)
revert in case of any queries.
reward points if useful.
regards,
       Milan

Similar Messages

  • Doubts in File to RFC scenario

    <u><b>Scenario we are working on:</b></u>
    Legacy System -> Flat File -> XI2.0 -> RFC -> SAP R/3 470 ( WAS 620 )
    <u><b>What we have done till now:</b></u>
    1. Created technical system for XI server and the SAP 620 ( target system )
    2. Created business system for XI Server and target system
    3. Created a software product for legacy system and the corresponding technical system and the business system
    4. Defined the business scenario in Repository including Actions, Message Interface, Message Type, Data Type (for source file), Imported RFC signature from target system, message mappings and message interfaces.
    5. Configured the file adapter.
    6. Configured business scenario in Integration Directory including interface determination and receiver end points
    <u><b>Where we are stuck:</b></u>
    1. Currently I have created the entire set of objects under the new software component I created for source system. I want to know how to decide under which software component should I create the design objects, e.g under the software component for source system, or under the software component for target system or am I supposed to create a new product altogether including all the software components in my scenario.
    2. What is the significance/dependency of namespace in the design process?
    3. I have configured the inbound file adapter (attached is the configuration file). How do I integrate it with the Integration server? In other words where to specify the link between my business scenario the file adapter.  How do they talk to each other?
    4. We are not able to configure the RFC adapter. Can we get a configuration file for a working adapter? Are there any pre-requisites for the RFC adapter configuration? Also once configured how will it talk to Integration Server?
    5. Is it possible to use proxies on Integration server in our scenario? Our XI system is installed on WAS 620 with J2EE 620 and the target system is also WAS 620.
    6. Is it possible to send email notification from XI in case or any errors e.g while accepting the file, while mapping, or while passing to target system

    Hi Satinder,
    Below are the answers for your questions:
    Regards
    Prasad
    Netweaver RIG-XI
    SAP Labs LLC.
    Ans1: If you are creating a new sceanrio, you can create a product and a software component in SLD and import the software component into Int.Repository. You can define 1 namespace or mutliple namespaces under this SC.
    It all depends on how are desiging your objects in SLD, Int Rep etc. This can be done in various ways.
    Ans2:
    Namespaces  Definition:
    Namespaces in the Integration Builder are namespaces in the sense of XML namespaces that are sub-divided further into semantic units within the Integration Builder software component versions. Objects of a namespace can only be shipped as part of the corresponding software component version and not separately.
    XML Namespace Definition: An XML namespace is a collection of names, identified by a URI reference , which are used in XML documents as element types and attribute names
    RFC2396
    IETF (Internet Engineering Task Force) RFC 2396: Uniform Resource Identifiers (URI): Generic Syntax
    Use
    The following types of namespaces exist in SAP Exchange Infrastructure:
    ·        Repository namespaces are displayed in the Integration Builder (Design) navigation tree. They are all assigned to a software component version but are used differently:
    ¡        Repository namespaces are used to avoid naming conflicts. For objects of the same object type, it is not possible to have duplicate object names within a repository namespace. In other words, a repository namespace is a quantity in the Integration Repository in which the object names are unique.
    ¡        Software component versions are used to define shipment units. It is not possible to ship objects in a namespace (business scenario objects, business process objects, interface objects, mapping objects, and adapter objects) on their own. Instead, they are shipped as a part of the relevant software component version.
    Although repository namespaces are assigned to the software component version in the navigation tree, the software component version does not affect the uniqueness of the object names.
    ·        XML namespaces are used as identifiers for message instances or customer-specific fields in the instance. You can specify XML namespaces as an attribute of (fault) message types and data type enhancements.
    ·        Namespaces in the System Landscape Directory (SLD), which have nothing to do with repository or XML namespaces (see: Namespace).
    ·        Internal namespaces, which are required in message instances, for example. The internal namespace for fields in the message header is: http://sap.com/exchange/MessageFormat, for example. These namespaces are of no further interest for SAP XI users.
    Ans3: Check the Adpater Documentation. In your case, the legacy system will be creating a file in the file system where the file adpater is installed.You have to mention this path in your FA configuration. Once the FA is running, The file is polled automatically. The parameter defined in the config file will send direct the message to XI server. For Ex:
    XMB.TargetURL=http://:8000/sap/xi/engine?type=entry
    Ans4: Check the documentation for RFC Adapter Config. Once configured it will talk to XI via JCO. send me an email if you have more questions.
    Ans5: Yes you can use Proxies as your target system is was620.
    Ans6: this is possible in XI-3.0 -SP04 as the SMTP adpater is available. You have to model the message in XI-3.0 when to send an email message.

  • File to RFC (Error Mail )

    Hi,
    I have a requirement like legacy system details ( flat file ) send to RFC/Bapi and the status ( Success or Error ) should be updated to the concerned people with the mail. How can we achieve this in XI?
    I have done with the File to RFC scenario...need help on update the status (error/ success) with mail.
    Where should we implement mail adapter settings for this scenario?
    Can anybody share their experiences with me.
    Cheers.,
    Esha

    Hi !
    You can make it as a File - Mail scenario, and call the RFC synchronously using JCO during the graphical mapping (or java mapping) using a user defined function.
    Then, based on the response of the RFC, decide what should be the content of the mail or maybe decide not to send it.
    pros: no use of bpm
    cons: need ad-hoc methods for managing connection parameters of the rfc connection.
    other:
    RFC Scenario using BPM --Starter Kit
    Regards,
    Matias
    ps: please award points if helpful.
    Please read the Forum's Rules of Engagement,
    i.e.,
    /thread/117188 [original link is broken]
    and refrain from requesting points
    SDN PI/XI Forum Moderator

  • Doubt on FILE to RFC & PROXYS

    Hi everybody,
                        I'm able to solve most of my doubts by this forum, thankz to everybody who assisted me.Here are some simple doubts plz give solutions to them as many as possible
                  1.In my FILE to RFC scenario I'm using BPM & i should send response back to SENDER so what steps should i include in it ? I'm using BAPI_GOODS_MVT_CREATE bapi?
                  2.In my FILE to RFC scenario  I'm maintaining single SLD for DEV,CONS,PROD ,so can i configure my file sender service directly in ID as a BUSSINESS SERVICE?
                  3.Can any one give some information In which case we have to go for
    PROXY &  in which case for IDOC?exluding this reason  " if syst config is >6.20 or else go for IDOC or RFC for an sap system?
                  Plz kindly answer to this questions & valuable answers are rewarded.
                                                                                    Regards,
                                                                                    Vinod.

    <i>1.In my FILE to RFC scenario I'm using BPM & i should send response back to SENDER so what steps should i include in it ? I'm using BAPI_GOODS_MVT_CREATE bapi?</i>
    >>>
    Ref: /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Else in case you have SP19 then ref this abstract from an earlier post !!
    <i>All,
    Just thought I'd add a quick note here.
    From SP 19 on XI 3.0 and SP 10 on PI 7.0, a File - RFC - File ( Asynch - Synch ) scenario can be done without a BPM.
    Steps:
    Integration Repository
    The Integration Repository will be similar to any Synchronous Scenario ( say HTTP - RFC ) . 1 Outbound Synch message Interface and 1 Inbound Synch Message Interface.
    Integration Directory
    This is where a few differences lie, so let me take some time.
    1. The Receiver Determination , Interface Determination will be the same as in HTTP - RFC synch scenario. Create the Sender File Adapter, Receiver RFC Adapter and Receiver File Adapter.
    2. Sender Agreement will be for the Sender File Adapter. Sender Agreement uses the Synch Outbound Message Interface.
    3. Receiver Agreement will be for the Receiver RFC adapter. Receievr Agreement will use the RFC as thge Inbound Message Interface.
    4. We need to add a few modules in the Sender File Adapter.
    Go to the Modules Tab of the Sender File Adater, and add the following modules in the same sequence,
    Number - ModuleName - Type - ModuleKey
    1- AF_Modules/RequestResponseBean - Local Enterprise Bean - 1
    2- CallSapAdapter-Local Enterprise Bean - 2
    3-AF_Modules/ResponseOnewayBean-3
    Parameters
    ModuleKey - ParameterName - ParameterValue
    1 - passThrough - true
    3-receiverChannel - Receiver File Adapter Name
    3-receiverService - Receiver Business Service/ System
    With this configuration, you can now handle the requirement without a BPM
    This feature been already blogged for JMS Adapters in these blogs ,
    Sync/Async communication in JMS adapter without BPM (SP19)
    Async/Sync Communication using JMS adapter without BPM (SP 19)
    Dynamic Configuration is also possible,and this as well as many other options are discussed in the How To guide - "How To Realize a sync-async and async-sync
    bridge within the Adapter Framework" available on the Service Market Place.</i>
    <i>
    In my FILE to RFC scenario I'm maintaining single SLD for DEV,CONS,PROD ,so can i configure my file sender service directly in ID as a BUSSINESS SERVICE?</i>
    >>
    you can use Business service !!!
    <i>3.Can any one give some information In which case we have to go for
    PROXY & in which case for IDOC?exluding this reason " if syst config is >6.20 or else go for IDOC or RFC for an sap system?</i>
    >>>
    Advantage of Proxy over RFC, IDOC
    /people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-with-sap-systems

  • RFC - XI - Mail scenario special characters

    Hi Experts,
    I'm developing the mentioned scenario and have one problem.
    In my scenario I have one transformation RFC -> XML that uses graphical mapping one second transformation XML -> Mail package that is a java mapping where I take one of the fields of the XML, and pack all XML in the Content field.
    The process works, but when in the XML I have one text data and it has one special character(in spanish á, é, í, ñ...), the payload and the mail that is sent reflects those characters as ��. For example if the data is 'dirección', in the mail sent appears 'direcci��n'
    Best Regards.
    Alfredo Lagunar.

    Hola Alfredo,
    In deed you have a character encoding mismatch.
    The encoding the browser is expecting and the encoding of your mail message must match or you will see those strange characters instead of á, é, etc.
    So you either change your browser's default encoding (Internet explorer: view->character encoding) or you indicate in the Mail package the type of content and the encoding you are using so your browser or email program knows what is the correct encoding.
    You see the error in SXMB_MONI because it uses embedded browser windows to display the XML messages.
    To fix it you have to put the following string: "text/html; charset=utf-8"
    into the field Content_Type of the Mail package in the message mapping you use to generate the email.
    If you are using XIALL in message protocol instead of Mail package (XIPAYLOAD) you have to add the message transform bean (MTB) to the Mail adapter modules. Using the MTB add the Transform.ContentType parameter with the same string as above.
    You can see how to configure the MTB in the sap online documentation: http://help.sap.com/saphelp_nw70/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm
    Hope it helps...
    Saludos!
    -Sam.

  • Xi file to rfc scenario

    hi,
    I have to pass an excel file from  server pass , all the contents and name(both are changing everyday) as a string to a filed of wrapper ZRFC(bapi ),based on return code of zrfc (return code for error )it will shoot mail to concerned person

    If the RFC call is used to insert data in some database, then you will have to use BPM, with async-sync bridge. File - RFCreq - RFC Resp - Mail.
    If just a lookup from RFC is required, then you may avoid BPM by creating file to mail scenario with RFC lookup.
    Regards,
    Prateek

  • File - BPM (RFC) - Mail Scenario

    My scenario is File to Mail scenario thru BPM. in BPM I need to make RFC Call. I set ASMA in File sender adapter and File Nmae is not accessible in BPM Mapping. we are PI7.0 SP12. Im sure this is possible but for some reason not working. Any clue ?

    Hi,
    >>So Q1: Im not getting Filename into BPM though I checked ASMA in the Sender File Adapter
    You cannot take the filename (using Dynamic Configuration) in Message Mapping inside BPM transformation step. So I will propose to take it before entering into BPM.
    >>Q2: I need to send attachment name as Dynamic which I should get from the Input Message. we are on PI7.0 SP12.
    Check the blogs in sdn, you will get more idea on this. If I get any I will reply back
    Regards
    Suraj

  • File2RFC Scenario in XI-want to send and the response of rfc by mail/fil

    I have an File to RFC scenario in PI.The initial requirement was to just pick the file and update the data in sap.its file to rfc sceanrio in XI...
    *Now i need to send the response of the rfc function module via file or could be via mail*
    Please tell me the best way to approach..howdo i handel this scenario.
    Thanks.
    Rohan Patil.

    Hello Rohan,
    In your case you can follow two approaches.
    1. If need to send RFC Response through Mail Use BPM
    2. IF need to send via File
           2.1 you can implement with the  BPM
           2.2 you can implement the same without BPM also(but needed SP10 of PI7.0 for this implementation by using standard modules check wiki for the same )
    Regards
    Rajesh

  • File to RFC, and through RFC response i am trying to trigger the Mail adapt

    Hi All,
    Right now i am doing File to RFC, its working fine but now the requirement is when xi connect to ftp and picks the  file need to send one success mail after the file pickup and data sent to BW system again i need to send one mail and also error alerts to inbox.
    Till now i am not using BPM, can we do this without BPM pls let me know
    now i am trying to achieve this in File to RFC, and through RFC response i am trying to trigger the Mail adapter.
    or else  i need use only BPM pls share  the steps which i need to be configure.
    Am i correct or pls suggest me some idea to achive this and also pls share some smaple ones in BPM .
    Thanks in advance
    Venkat

    With BPm, follow this:
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Instead of receiving the response in file, use mail adapter
    Regards,
    Prateek

  • How to explain the business requirement of a file to rfc scenario

    Hello Experts,
                       How do i explain the business requirement of
        1. FILE TO IDOC.
        2. FILE TO RFC.
        3. FILE TO JDBC scenarios?
            Cud anybody explain me how to explain the requirement of these scenarios in an interview?Cud u pls send me the example for these and the systems involved and the documents involved...helpful answers will be rewarded...
                                                                                    cheers
                                                                                    Jay.
    my mail :  [email protected]

    <b>1. FILE TO IDOC</b>.
    When u have ur master data stored in a file thru a legacy system say in some xml format then u may need to have this scenario configured.
    <b>2. FILE TO RFC.</b>
    Consider pt1 but here for example consider delete scenario. when u have deleted the mater/transaction u may need to update another file...so in this case u will need to config this scenario...y we cannot use idoc is becoz sync scneario is not possible with idoc but yes with rfc
    <b>3. FILE TO JDBC scenarios?</b>
    u have some business data extracted from a file and before u update a r3 transaction u may need to refer a datbase table to read some data baed on keyfield...so u will take a jdbc response and based on that u may validate with the data for r3 updation.
    the scenario keeps varying in real life and the above are very few examples of the kind of scenario that would exists in the business world

  • Step by Step Guide Details for RFC to File and File to RFC scenario

    Hi Guru's
    Good day to you. I am tyring to develop some scenarios based on RFC adaptor. so i want to start up with basic scenarios like RFC to File  scenario(Here i just want to pull some data from SAP using RFC and put it in destination folder as an text file) and FILE to RFC scenario (Here i just want to take some data from the file and update into SAP).
    For doing these scenarios i would like to request you people to send me the step by step guide which explains me about the complete steps of configurations required to do the RFC to FILE scenario and FILE to RFC scenario.
    I found some scenarios and i am in confused state. so i request you to please put your experience to help me out.
    thanks in advance.
    Regards
    Raj

    Hi Aaron,
    I don't know your scenario and your ECC and PI versions but I learned how to use ABAP Proxy more than 1 year ago with the following tutorial:
    Edit--> The forum doesn't allow me to post external link, just search "ABAP Proxy Communication Scenario" in google and visit the 1st result
    The way to develop ABAP Proxys has changed a little if your PI is 7.1. In the ECC side, the transaction SPROXY looks much better too if you have a recent version of the ECC.
    Edited by: Marshal on Oct 8, 2009 5:08 PM
    I've found that SDN Document. Maybe the scenario is not the most simple to start with ABAP Proxy but is very well documented and is for PI 7.1. The document also handles the inbound and outbound proxys
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c00ca32e-f991-2b10-f5be-97114bd2b08f&overridelayout=true]
    Edited by: Marshal on Oct 8, 2009 5:22 PM

  • Error while calling RFC adapter(FILE-XI-RFC scenario)

    Hi,
    I am trying for FILE-XI-RFC scenario. I am getting the following error. I have checked in message monitoring. The error is coming while calling the RFC adapter. Can any body tell what problem is this?
    Regards,
    Dhana
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
      <SAP:P1>af.f23.sofd00001530a</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>2: Unable to find URL for Adapter Engine af.u7a.us4296</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error while reading access data (URL, user, password) for the Adapter Engine af.f23.sofd00001530a</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Hi,
    I did SLD check.
    The status says 'Summary: Connection to SLD works correctly'.
    But it fails while checking the access to XI profile.
    Here is the status
    Summary: Connection to SLD works correctly
    Now checking access to the XI Profile
    Properties of RFC destination LCRSAPRFC
      RFC host:
    %%RFCSERVER%%
      program id:      LCRSAPRFC_DZ1
      gateway host:
      gateway service:
    Testing the RFC connection to the SLD java client...
    RFC ping returned exception with message:
    / CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=679#Transaction program not registere

  • Issue in File to RFC to File Scenario with BPM using Block Step

    Hi Everybody,
                           I am doing File to RFC to File Scenario for multiple records using BPM using Block Step. The File Message is getting posted and after that, the message is getting stuck up in the qRFC Monitor (Inbound Queue).
                        After seeing the message in Inbound Queue, I am trying to execute and release the message. But when i execute the LUW, it says " Function module doesnt exist or EXCEPTION raised" in Inbound queue.
    Could somebody suggest me the outcome of this? What does this mean and how to
    release the stuck up message in Queue.
    Thanks and Regards,
    N.Jayanth Kumar

    Hi Rajesh,
                           After going through the blog, i saw the trace messages. It says      
    " The   exception occurred (program: CL_SWF_XI_INBOUND=============CP, include CL_SWF_XI_INBOUND=============CM00F, line: 19)"
    Regards,
    N.Jayanth Kumar

  • File to RFC scenario with no BPM

    I want to create File to RFC scenario with no BPM. I want to invoke RFC synchronously to verify that I'm getting correct response back, but i dont wanna process the response. So, In SXMB_MONI i can check the response back from RFC right? Or do I need to have BPM if want to see the response back from RFC?
    What kind of business system i need to create for RFC? can i use same business system for both File and RFC? I'm using one Business System created on Third party technical system, which i'm using for file Input, also for RFC. Is that OK?
    Thanks,
    Deepesh

    Hi,
    I need to have BPM if want to see the response back from RFC? ... yes
    The BPM will help you find the response very comfortable.
    What kind of business system i need to create for RFC? can i use same business system for both File and RFC? I'm using one Business System created on Third party technical system, which i'm using for file Input, also for RFC. Is that OK? ..Yes you can .
    Regards
    Agasthuri Doss

  • File to RFC Scenario

    Hi,
    Iam doing File to RFC(BAPI) Asynchronous.
    Iam using the BAPI BAPI_SALESORDER_CREATEFROMDAT2
    Te Fields iam passing for sale order creation are
    DocType : OR
    Material  : 723300
    Quantity : 10
    Partner Role : SP (sold to party)
    Partner Number : 100006
    With these fields Iam able to create the order in R/3. When I call the same BAPI from XI and pass the same values Iam getting an error saying OR is not defined. Then I had to debug the BAPI. The fields DocType, Partner Role have conversion routines. If I pass OR they will convert them into TA like wise SP would be converted to AG. This conversion is taking place when i execute BAPi in r/3 directly.
    But when I execute it from XI Iam getting the error.
    If I pass TA instead of OR , AG instead of SP it works for me.
    Why BAPI is not able convert them when i call it from XI.
    What can I do in this scenario. I cannot all the time search for the routine and pass that value. Also my input file would be using OR, SP and all.
    Please suggest me what I need to do to overcome this
    Thank you
    Radhika.

    Hi Radhika,
    Yes....BAPI can execute with any values(test mode).But if you are passing values to the BAPI from XI or any external system, have to pass the conversion routine values ie TA or AG.Otherwise you get errors as u said.
    To overcome this problem,You can use the Inbound proxy and bu using conversion exits in the proxy ,can solve the problem and we can pass the actual values like OR,SP etc.
    Regards,
    Sekhar D

Maybe you are looking for