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

Similar Messages

  • Xml validation in File to RFC Sync Scenario with Validation fails message

    Hi All,
    We are using PI 7.4 (Dual Stack) the Requirement is File to RFC Sync Scenario(File <---> RFC).and need to do XML validation against XSD Schema. if any Validations fails Response message should send back to sender.RequestResponseBean standard module is using for File to RFC Sync scenario but how to send the response message to sender if any validation fails. adapter level XML validation is not helpful for this requirement. please help out me how to achieve the requirement with graphical mapping.
    Thanks in advance.

    to validate schema you cannot solve it with graphical mapping but validating the schema in the AAE or the integration engine.
    y recomend you to use the AAE validation at sender side, coz the sender system will be notified in case of schema errors.
    The response will be validated at Integration Server level.
    you can search in the forum, you will get many document about how to configure it.
    take a look to my blog: PI 7.3  - XML Validation

  • File to RFC synchronous scenario stopped Picking the files

    Hi Experts,
    We have a File to RFC synchronous scenario. Till yesterday night it is working fine.
    But suddenly it is stooped working.In moni, i can see the failed messages with the Mapping error " Can not create target element, values missing in the queue context "
    No Payload in moni / communication channel monitoring / Message monitoring. I've noticed that, wrong files placed in the To-be- processed files and the adapter picked those files and failed in mapping.
    I tried by stop and start the communication channel / did some dummy changes in the communication channel and activated. cleared the cache.
    But still the communication channel is not working.when i stop and start the communication channel it will try to process the wrong files and failed.
    Give me your valuable inputs to resolve this issue.
    Regards
    Bhargava krishna

    Hi Bharghav,
    Please go through the below,
    Symptom
    FTP Adapter is being used in the business scenario for message processing.
    During file processing it is noticed, that the FTP sender channel stops
    polling. There is no error in the channel monitor or the trace/log files
    and the polling jobs are correctly displayed in the AFW scheduler table.
    The issue is observed after a network connection issue with the FTP server.
    In order to remove the hanging locks from the FTP Adapter, the parameter
    'ftp.timeout' setting is required to be set, which releases the lock once
    the timeout value is expired. But in the above situation, the value for the
    'ftp.timeout' is not taken properly while establishing the data connection
    by File Adapter.
    Other terms
    FTP Adapter, sender, FTP, adapter, timeout, stalled, network, hang, polling
    Reason and Prerequisites
    Program error
    Solution
    The hanging situation has now been improved by code changes. Please see
    section "SP Patch Level" of this note for a list of updated software
    components.
    To get this correction available in your Support Package you need to apply
    the patch matching to your Support Package version as per the instructions
    in the NetWeaver Support Package Stack guide which can be found on the SAP
    Service Marketplace as described in SAP Note 952402.
    Thanks & Regards
    Uday.S

  • File to RFC synchronous scenario

    Hello Friends,
    I have a file to RFC scenario.
    Sender is sending file synchronously and based on conditions within file i have to make call to various ECC instances and returning responses.
    I am using BPMmulticastparallel. Implemented conditional receiver determination and the correlation.
    Does anyone have such scenario example.
    Kindly share.
    Edited by: vishal kharat on Aug 5, 2011 2:47 PM

    Hi Mr.
    You can follow this example, regarding BPM implementation:
    http://www.riyaz.net/blog/a-step-by-step-guide-to-bpm-asynch-sync-bridge/technology/sap/170/
    For XPath Receiver Determination, follow this links:
    http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
    http://wiki.sdn.sap.com/wiki/display/XI/EnhancedReceiverDeterminationinSAP+XI

  • Error loading fields in file to RFC (bapi) scenario

    Hi,
    I'm developing and testing a file to RFC interface
    In message monitor all is processed successfully and payload in Technical Routing it's like:
    - <IT_TAB>
    - <item>
      <WERKS>0001</WERKS>
      <FECHA>20080129</FECHA>
      <HORA>131250</HORA>
      <FILENAME>filename</FILENAME>
      <MATNR>000000000000000015</MATNR>
      <SPEME>00000000.000</SPEME>
      <LABST>00000432.000</LABST>
      </item>
    - <item>
      ...  </item>
    I've create a function in R3 which imput table has the same fields (werks, fecha, hora, filename, matnr, speme, labst)
    However, when i try to process data, this function seems to load fields incorrectly:
    werks = 0
    fecha = 00000000
    hora = 000000
    filename = 0150001
    matnr = filename
    Why?
    Carme

    Hi Carme !
    1) check that the imported RFC definition in XI is the current one and matches with the one of SAP R3.
    2) check that you mapped the file message type to the imported RFC request message type object
    3) check that the mappings are ok. Test mapping works ok?
    4) try to use a file adapter instead of an RFC adapter in the receiver channel to have the content of the input file written on a file in the file system to check if the data is coming in the right format out from XI.
    5) try your RFC manually in R3 and see if it works ok.
    6) compare the data types of the parameters between the RFC that does not work and one that it does, to see if there is something strange
    Regards,
    Matias.
    ps:please award points if helpful

  • Attached file in receiver mail scenario and ConvertCRLFfromToLF

    Hi,
    I have a problem attaching a text file in a receiver mail channel.
    I use mail package, and I've created a UDF to create field content with:
    for (int j=0;j<a.length;j++)
      b = b + a[j] + "\n"  ;
    result.addValue(b);
    In my receiver CC, I have configurated:
    SAP XI Sample/ConvertCRLFfromToLF
    mode --> LFtoCRLF
    But when I open file attached by mail, it has only one line and line feed it's not correct.
    How to insert correctly CR LF ?
    Thanks,
    cARME

    I need CRLF at the end of every line in text file (windows end line).
    I have tried
    1) inserting \r\n t in the UDF and no module in CC. With this I see 0A 0A at the end of every line (it would  be 0D 0)
    2) inserting \n in the UDF and use module in CC to convert LF into CRLF. With this I see 0A at the end of every line.
    How to do it?
    Thanks,
    Carme

  • FILE-BPM-RFC-FILE ERROR

    I had created the BPM scenario excatly (I believe) as per the BLOG provided by Arpit (very helpful).
    It does pick the input file and gets the response (as seen from the payload) but does not write the output file. Tried several options for last 3 days but could not suceed till date.
    In SXMB_MONI it creates 3 entries and do not see any error even in the workflow
    Sender      Service     Sender Interface     Receiver Service     Receiver Interface     Pipeline     Inbound     Outbound     
    ADR100     FileRequest_OUT_MI     File_RFC_BP     FileRequest_AI     CENTRAL     XIRA     PE     Asynchronous
    File_RFC_BP     FileDetails_Sync_AI     ADR100     BAPI_COMPANY_GETDETAIL     CENTRAL     PE          Synchronous
    ADR100     BAPI_COMPANY_GETDETAIL     File_RFC_BP     FileDetails_Sync_AI     CENTRAL     PE          Synchronous
    Any help will be appreciated
    Thanks

    Hi,
    Please chk the status of your bpm in SXI_CACHE for a return code of 0.If its not then you got error in the process.
    Rectify the errors and reimport the bpm in ID and redo the agreements.Hope this helps.
    Regards
    Priyanka

  • How to e-mail a file? File- XI- e-mail scenario

    Hi guys!
    I need to create a scenario for sending all files from one source directory to target e-mail address. I tried using it without mail package, but this renames the file (attachment) to a e-mail subject's name.
    I need to send this file and need the file's name remain the same.
    Any ideas how to achieve this?
    Thank you! Peter

    Guys, if you'll have similar problem:
    use e-mail package and map COntent_Type field:
    <type> / <subtype>; name=<dinamically_assigned_name_taken_from_file_adapter>
    this renames your attachment to required name.
    Peter

  • How to handle Responce in FILE to RFC Scenario

    Hi All,
    In file to RFC[sync] scenario...
    Sender side we are using FTP server. Many folders are there .Data is located in folder1 . File adapter picked the data and forwarded it to XI. RFC adapter processes the data.If RFc adapter sends responce , how can we store this responce in Folder2 in FTP server  .Is it possible without BPM .Is this Possible with in a single scenario . If so pls explain the IR and Id steps.

    Hi,
    Why dont you use dynamic configuration for both Directory 1 & Directory 2???
    I had  a similar scenario where we have to define a directory name based on source file names. The sample code is as follows. You can modify this as per your requirement. Let me know if you have any issues.
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    and
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    conf.put(key, arg)
    String fileName = conf.get(key);
    if(filename.equals("file1.txt")){
         conf.put(key1, Directory1)
    else
         conf.put(key1, Directory2)
    return "";
    Warm Regards,
    Gouri

  • Help in file to RFC scenario

    hey guys i m doing a File to RFC scenario using BPM and taking help from the following blog /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit i m a bit confused about the services being used in figure 19 and figure 20,for a File to RFC(sync) scenario,do i need to have 2 business systems,one of WEB as ABAP and one of third party?
    why is he using two different services in figure 19 and 20.
    thanx
    ahmad

    Dear Bhavesh,
                          Someone earlier told me via SDN that, it is mandatory to create a WEB AS ABAP business system for any SAP system running on ABAP stack participating in the integration scenario. If the above is true than Ahmad needs to create one WEBAS ABAP business system for the R/3 end
    also a third party business system or a business service for file system.
    Pls advice.
    Regards,
    Ashish

  • Business service for file to rfc

    hi
    can someone tell me the business services used for each of the communication channels and their inbound outbound interfaces for Arpit Seth's blog file to rfc synchronous scenario
    this is the url
    RFC Scenario using BPM --Starter Kit
    Edited by: pratichi chauhan on Aug 19, 2008 9:12 AM

    Hi,
    In the RFC Service, Add the Standard Idoc's Message Inetrface name at Receiver TAB only
    that all
    You can Implement the same Scenario with out BPM also
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file-rfc-file%28without+bpm%29&
    Regards
    Seshagiri
    Edited by: N V Seshagiri on Aug 19, 2008 10:11 AM

  • File to RFC/BAPI - Async- How to capture response field value

    Hi,
    I am doing File to RFC/BAPI Scenario. I have Two BAPI's. THe same source xml file is mapped to the Two Target BAPI's.
    For the first flow i.e File to BAPI1, I need to capture BAPI Response, field value and pass this value as Input to the BAPI2.
    How do I proceed with the Mapping. I am working on PI 7.1
    Any input would be Appreciated.
    Thanks & Regards,
    Varun

    Hi Varun,
    apparently you need a Business Process:
    XML -> BP (asynchronous), Map to Bapi1 request structure
    BP -> BAPI 1 (synchronous)
    Transformations step with multi mapping merging XML and Bapi1 response to Bapi2 request structure
    BP-> BAPI2
    Regards,
    Udo

  • File to RFC Issue

    Hi All,
    I am doing a File to RFC async scenario. I have done the related development in ESR and ID. While testing the file adapter picks the file does the required content conversion and is successful . When I check the RFC adapter it also shows successful. But the problem is the payload is the same as it was in the sender adapter. I mean after mapping the payload must change to the target message. Somehow in the RFC adapter I am seeing the same source payload. I deleted the Service interfaces, deleted the channels, deleted the ICO and recreated everything again but still the same issue. Can someone please provide inputs on the same. All configurations look correct. Ideally the message has not reached ECC but atleast the payload conversion should have happened.

    Hi Amit
    Check the log in message monitoring and see whether the operation mapping has been called or not.
    Also with the default configuration we can only see the payload before mapping in RWB.
    If you need to see the payload after the mapping then you need to add the below entries in NWA
    Goto configuartion-->infrastructure-->Java system properties--->services
    Choose the service XPI Adapter:XI and change the below property
    Then once you open the message in RWB, you see one more entry with AM which will show the payload generated after mapping.

  • HTTP - RFC - Mail  - Mapping

    Hello,
    I want to set up an HTTP -> RFC -> Mail Scenario.
    HTTP from external party to XI (async).
    XI calls the RFC (sync)
    The RFC-response I want to sent via the Mail-Adapter (sync).
    So I have one Oubound Interface (HTTP)
    I have an Inbound Interface (RFC)
    And I guess I need another Inbound Interface for the Mail Adapter.
    Now I have a problem with mapping. How should I map the response of the RFC to the Mal-Interface. In the Interface-Mapping Editor I only have the option to map the RFC-Request to the Mail-Interface.
    I hope it is clear.
    In other posts it said that such a szenario is possible. I just need to know how to do the mapping.
    Thanks,
    Elko

    Hi Elko
    Hi Pl refer These link for ur Scenario
    <b>HTTP -> RFC</b>
    Passing RFC Table parameters from XI
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/httpToRFCSynchronousScenario-FAQs&
    Unable to view payload in HTTP to RFC Scenario
    /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
    /message/266750#266750 [original link is broken]
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    <b>Mail Scenario</b>
    Check this blog-
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    Thanks!!

  • File to rfc step by step

    hi
    can you please give the configurations step by step instructions  for file to
    RFC(BAPI) scenario.
    i need to know what all steps needed  in XI, IDES,IR&ID.(like rfc destination, port
    creation, partner profiles...) i don't know all the transaction codes or what all steps I have to follow.
    regards
    Pradeep P  N

    hi
    while executing i am getting some error like shown below
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_TestFileToRFCPradeep_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_TestFileToRFCPradeep_: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    i tested the mapping in IR and tested the configurations in ID both are success, but finally executing it is shown like this. could you please help me in correcting this error.
    regards
    Pradeep P N
    null

Maybe you are looking for