RFC (Async) to XI to File

I need to create a Scenario where an Asynch RFC sends some data to a file system using XI. I have given below the Template, would some one say whether the format what I have is correct?
DATA:  queuename    TYPE  trfcqout-qname      VALUE         'XI_QUEUE'
CALL FUNCTION 'TRFC_SET_QUEUE_NAME'
  EXPORTING
    qname              = queuename
  EXCEPTIONS
    invalid_queue_name = 1
    OTHERS             = 2.
CALL  FUNCTION       'ZName'
            IN BACKGROUND TASK
            DESTINATION      'XI_QUEUE'
         EXPORTING
               Name = "Pete Thomas"
         TABLES
          EXCEPTIONS
               OTHERS       = 1.
COMMIT WORK.

you might want to look at this link
/people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
thx

Similar Messages

  • Testing RFC (Async RFC to file)

    HI,
    can we test whether message has reached XI by triggering FM in Sender SAP system just by creating RFC destination in sender SAP and a communication channel in XI with RFC Sender Adapter?
    I think, we cant right.
    we tested FM in sender SAP but we get short dump error (TCode: ST 22   call_function_remote_error)in sender SAP.
    so we just need to do all the steps as usually we do ,right?
    is there any way we can test our Async RFC whether data reaching XI system/
    thank you.
    Babu

    Hi babu..
    Have you checked the RFC destination? This could be as basic as incorrect password for WF-BATCH.
    Use SWU3 to test the RFC destination, then run the verification workflow and choose the "[...] in background" option. If this works, your RFC destination is OK.
    refer this...
    http://help.sap.com/saphelp_nw04s/helpdata/en/f9/3f69fd11a80b4e93a5c9230bafc767/frameset.htm
    regards,
    vasanth

  • Sender RFC Adapter AND Rec. File Adapter

    Hi
    Workflow of my scenario is like this :
    <b>SAP R/3 ---> Sender RFC Adapter ---> XI Server -
    > Rec. File Adapter -
    > Legacy System</b>
    I am using Async Inbound interface for this as I dont need any response back & I just need to create file.
    I am just picking some data from BAPI & creating a file on a folder in Legacy System.
    Now during execution, file is getting created but I am getting dump on SAP R/3 and even when I am using Async communication, response is coming back from Legacy Business System ( service ) & giving an error " <i>No Mapping Program Found</i> " in sxmb_moni.
    Kindly suggest how can I avoid getting response from Legacy System. Pls. take note again I am using Async Inbound Interface.
    Regards
    - Lalit -

    Hi Lalit,
    When your RFC is called from R/3 by default it would be in Sync mode. When this is in Sync mode it obviously will expect a response and where as in your scenario XI dose'nt give any response and there is no mapping for that and I think that is the reason you are getting that error.
    So when your Sender RFC is triggered it will like this in ABAP
    CALL Function "Function Name" <SM59 Destination>
    and this is Sync call. To make it Async i should be
    CALL Function "Function Name" IN BACKGROUND TASK <SM59 Destination>
    Hoep this helps
    Thanks,
    Prakash

  • RFC to HTTP (Async) and HTTP to RFC (Async)

    Guys,
    I have one scenario.
    RFC need to be Executed (Async) to Fetch a XML file at one location.
    Say. www.onecompany.com/details.xml
    How should I Proceed.?
    Which adapter should I use HTTP or SOAP.
    Should I have combination of RFC to HTTP and the HTTP to RFC.
    Kind of confuse.
    Please help.
    BD.

    Ok,
    i am doing it in the way you suggested. (syncronous)
    i have following problems.
    1. How to configure the Reciver HTTP Adapter.
    2. What should I use in Address Type.
        HTTP Destination or URL Address.
    3. If I use HTTP Destination , The length of the field is very short to accomodate complete address.
    4. If I use URL address, what should I put in all the fields , like Target host, Service Number, path.
    I have URL , something like this, www.yahoo.com/exchangerates.xml
    I dont know what to put in Target Host, service name and host.
    Please help.

  • Async/Sync Bridge JMS/File

    Hello,
    An Async/Sync Bridge with usage of the JMS adapter is described in several blogs. Is there a chance to use the JMS Adapter as a sender system and a File Adapter as the receiver system in such a scenario?
    Any suggestions are appreciated.
    Peter

    This "How To" Wiki should help you with the parameters you will need in the JMS Adapter.
    http://wiki.sdn.sap.com/wiki/display/XI/HowTo...ContentconversionmodulewithJ2EEJMS+adapter
    You can go to/from files with no problem, and you don't need the Business Process Engine.

  • Need to make RFC Sync  to RFC Async

    Hello All,
    I have RFC Sender and RFC Receiver Sync
    I want to make RFC Sender and RFC Receiver Async
    I have removed the export parameters of both the RFCs
    In interface mapping I used the request message mapping. and kept the response mapping part blank.
    Now when I run this scenario it works fine but also
    in sxmb_moni I see two messages.
    One for my request mapping. -- ok .
    Second empty message for response mapping.
    I do not want this second message in my sxmb_moni.
    Can this be handled.?
    Regards

    Hi Rick,
    RFC is by default synchornous communication, so even if you tried to supress it and trat as asynchornous call, the second message will not be supressed.
    When you create the Interface Mapping, by default it will ask for response mapping also, even if export parameters are not avaialble.
    Thus you can't avoid it. if there is requirment of Response in interface mapping then it will add the second message in SXMB_MONI.
    refer below link may be this will help you
    Send RFC to SAP XI – Asynchronous
    /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    Thanks
    Swarup

  • RFC enabled function module for file browse

    Suggest a Function Module which is RFC enabled one.
    to perform directory browse and file browse
    Thanks

    hi,
    check these fm.
    SRM_RFC_CALL_BROWSER
    /BDL/_GET_RFC_DESTINATIONS
    SCMS_RFC_FILE_GET
    SA_KW_RFC_FILENAME_EXT_GET
    SA_KW_RFC_PHIOS_FILE_PROPS_GET

  • File to RFC scenario want to read file name

    Hi All,
    I am having file to RFC scenario in which i am having file name in format  text_yyyymmdd.txt.
    i want to read this file name and by separating the date in file name i have to pass this to one of the RFC date parameter.
    please help me to sort out this.
    Thanks
    Swapnil

    Hi,
    By writing simple UDF in your mapping you can Acheive this
    Try this Once
    DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    String MyFileName = dynamicconfiguration.get(key);
    String str[] = MyFileName.split("_");
    return str1[1];
    Map this to the date parameter(RFC) in the mapping .
    Thank & Regards,
    Deepthi
    Edited by: Deepthi Muppasani on Sep 23, 2011 8:17 AM

  • RFC error in idoc to file scenario in PI 7.0

    Hi Experts,
       I am getting a RFC error message like this below
    :u201D  RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught.: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: JCO.Exception while calling Z_XI_SEND_MAIL in remote system (RfcClient[RFC_REJECTION_MAIL]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught.u201D
    Here  Z_XI_SEND_MAIL is a customised function module which is calling some classes. This function module is responsible for sending emails to a group of people.  This function module is working fine in acceptance server and development server but throwing exception in production. Thus the users are unable to receive emails. There has been no code changes in the function module. Idocs are being triggrred from sap r/3 system into XI, then being processed by a BPM, finally RFC   (Z_XI_SEND_MAIL )   is being called to send email messages. SXMB_MONI  is showing that the email message is being send to the RFC properly but communication channel is showing the above mentioned error.
    Please suggest me what might be the reason of such errors?
    Regards
    Anupam

    Hello,
    Have you tested the production data in your acceptance system or development system for the interface?
    Is it working fine??
    It seems that the function module is generating exception, which could be due to data.
    -Rahul

  • Async Client proxy -PI - File scenario- Pipeline steps missing in SXMB_MONI

    Hi
    I made a scenario where an ABAP client proxy(in a BW system) pulls data from a BW table and push it to PI.
    In PI a Mapping is done to write an XML file and sump it to a desired location.
    It is working fine in the development environment(request send to PI and mapped into an xml file)..so i migrated it to the quality/test environment where it started failing(It is only visible till SXMB_MONI of Client system and not reaching PI in case of quality/test environment).
    I checked SLDCHECK in the Client environments (say DWC for development and DWA for quality) and it looks fine.
    All I could see is:
    In SXMB_MONI of development system DWC--> Steps that are followed are
    Inbound Message
    Call Integration Server
    Response
    In SXMB_MONI of quality/test system DWA-->The only step is
    Inbound Message
    Could this be an Integration Server issue ??
    Please advise !!
    Regards,
    Naina

    check and compare the the parameter are set in SXMB_ADM of Dev system with Quality system.
    u can refer this blog for steps.
    /people/michal.krawczyk2/blog/2005/05/10/xi-i-cannot-see-some-of-my-messages-in-the-sxmbmoni
    chirag

  • RFC to ISO 20022 xml file scenario

    Hello Experts,
    I have a scenario in which i need to pull data from SAP and create ISO 20022 xml file.
    I have no idea about ISO 20022 xml file format.
    Can anybody send me the links which have examples of how to achive that through XI?
    Thanks,
    Hetal

    Hi,
    ISO20022 is just a standard for XML messages you can obtain informations here:
    http://www.iso20022.org         and
    http://www.iso20022.org/catalogue_of_unifi_messages.page
    Hope this brings some light in.
    Kai

  • HTTP to RFC  - Async scenario

    Hello Experts,
    I am getting the following error when working with HTTP to RFC Asynchronous scenario (In this scenario, my client sends data through scheduling like per day at around 25 to 30 messages out of which 1 or 2 messages are in errored out with the following error message)
    ERROR:
    <?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_xxxxxxxxxxxx_~</SAP:P1>
    <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
    <SAP:P3>Invalid byte 1 of 1-byte UTF-8 sequence.</SAP:P3>
    <SAP:P4/>
    <SAP:AdditionalText/>
    <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_xxxxxxxxx_~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Invalid byte 1 of 1-byte UTF-8 sequence.
    </SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    However if I process the same error message manually, it is processing sucessfully.
    Please help me in resolving this issue.

    Hello Stefan,
    I don't find any non-ascii character in that respective XML Tags.
    As I explained you, Suppose when there is an invalid character in the XML tags, even it should not process the message when I process it manually, But it is sucessfully processing(when manually processing).
    Below are the few XML Tags at which the invalid character is comming(message is errored out) in this XML Tags, but i dont find any invalid character in these
    Can you please help us in resolving this.
    Regards
    Madhu

  • 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.

  • File based Sync-Async Bridge

    Hi All,
    I have a scenario where a file is available in a shared folder.
    This file needs to be picked by a RFC Function module called in a Synchronous mode and the contents of the file needs to be displayed as the output of this RFC.
    Is this achievable using Sync-Async Bridge.If so can someone explain me the steps to achieve the same?

    If i were to open a Sync-Async bridge, I need to do the following
    Step 1: Receive step to open the sync/async bridge
    Step 2:Asynchronous send step
    Step 3:Receive step
    Step 4: Send step to close the sync/async bridge
    In my scenario.
    Step 1: Receive the RFC's request message
    Step 2: ????
    Step 3: Get the message from the file
    Step 4: Transform the file's message to RFC's response message
    Step 5: Send the RFC's response message  
    Moreover file adapter works in a polling mechanism..

  • File- rfc- soap- rfc

    Hi
    I have a scenario  File to rfc it has to update the rfc table & the same file request has to call soap after updating the rfc table & the response from soap has to update rfc again....
    I have designed bpm
    1)Receive step asyc to receive the file
    2)Send step aschyronus to update the rfc
    3)Send step sychronous to call the soap
    4)Transformation step to convert soap response to rfc input.
    5)Send step aschyronous to update the rfc..
    Do i need to use S/A bridge in my scenario...
    Can any one you please breif  me what steps are going to involve in bpm & Coresponding Message mappings & the interfcae mapping.
    Any responses would be greatly appreciated...
    I have seen all the related weblogs...
    Thanks
    ram

    Hi,
    The step are good if you don't need to see whether the uopdate has happened in RFC and based on that you want to go ahead.
    <i>1)Receive step asyc to receive the file</i>
    MI- Oubound async
    MI- Abstract async1
    2)Send step aschyronus to update the rfc
    MI-Abstract async1 (send step will be async)
    The above is if the data structure requred to be sent to RFC is same as in Abstract async1 else do a transformation from MI-Abstract asyn1 to abstract async2
    3)Send step sychronous to call the soap
    Here also if the metadata is not same as that of MI abstract1 then transformation step to move data to abstract sync3 (you need to have two message Interface here request response
    4)Transformation step to convert soap response to rfc input.
    response of the soap will be the input and output would be another MI for file metadata
    5)Send step aschyronous to update the rfc..
    MI for file metadata in previous step.
    6. MI -Inbound async to pass from IP to the service you are using.
    Hope this helps.
    Regards
    Vijaya

Maybe you are looking for

  • Is it possible to change the ALV report layout settings in spool request

    Hi All, Please let me know is it possible to change the ALV layout settings in background as we can change the layout settings in foreground to get correct format when download to excel. Regards, Jyothi CH.

  • Runtime error in FM HR_HK_DIFF_BT_2_DATES

    hi experts, i am getting runtime error at years = ( l_date3+0(4) + ( l_total_number_days / days_in_year ) ). in the FM HR_HK_DIFF_BT_2_DATES. the runtime error is  Overflow during the arithmetical operation (type P) in program "SAPL3HKC". can any one

  • My macbook pro is using all its RAM

    Can anyone help me to reduce the amount or RAM that is being used by my mac? It's a 4Gb RAM model and the activity monitor almost constantly shows that there is 3.99Gb RAM in use. Thanks

  • How much memory to add to 5 yr. old MacBook Pro that already has 2 gb

    I thought I heard somewhere that I could add 2 x 2gb memory in the slots that have 1 gb x 2 in there right now.  However, now I'm hearing that my macbook will only use 3 gb of that.  By any chance is it 3 + anything - if so I'll go ahead & get the to

  • Transparent Background Won't Export

    I've created an After Effects project using the Keylight plugin exactly as described in this video, http://www.adobe.com/designcenter/video_workshop/?id=vid0229. However, the Flash Video contains a white background and is not transparent. I've gone b