Async mail to rfc scenario

hi
i receive an xml file vie mail and want to post it with rfc -bapi call into ERP system.
The  adapter monitor of the rfc call tells me that he has no communication problems. Each message I try to transfer ends with the following message:
Message-Verarbeitung fehlgeschlagen. Grund: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientBapiException: BAPI not executed successful
Where can i check what the reason for not executing the bapi is? On the ERP-System, no entry in SM58 is visible. Where else can i check, what happend to my bapi and why can it not be procesed correcktly?
Thanks for your help
Rauno

Have you tried running the BAPI manually with the same input data? Is it working? What are the transaction settings in receiver RFC channel?
Regards,
Prateek

Similar Messages

  • Sync mail to rfc scenario

    Hi,
    I've implemented a simple scenario in which incoming mail msg is "pushed" to R/3 by rfc (i.e., mail to rfc). is it possible to config this scenario so returned answer (from rfc call) will be send back to the original mail sender?
    Regards
    Uri

    Mail and RFC both support sync behavior....the above mentioned scenario is very much possible...below should be the setting in your sender Mail channel:
    Transport Protocol: IMAP/ POP3
    Message Protocol: XIPAYLOAD
    Quality of Service: Best Effort.
    Have a doubt on the working......Sender Mail channel picks up any new mail that comes in the mailbox....so if the response from RFC comes back to the mailbox it will be a new mail.....sender mail channel will pick it up....may error out.....let us wait for experts to comment if this scenario (sync mail) is really possible.
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Dec 28, 2009 10:58 PM

  • Mail to RFC -- Data Structed in Inbound Queue  -- Help needed !

    Hi Friends ,
                           I am doing Mail to RFC Asyn Scenario . Mail mails are come into the mail box . XI is trying to read the mail and send to R3.
                            It was working fine suddenly , Many mails read succesfully and data send to RFC , But it is structed in   ( SMQ2 ) inbound Queue ( <b>Message Scheduled on Outbound side</b> )
                  For long time it is showing like this . No data is accepted  by RFC. I have checked the Adpater confi for rfc it is fine .  I have given Max connection as 50 also .
              Please help me to solve this issue !
    Regards.,
    V.Rangarajan

    Hi,
    Have the Queues being registered in the R/3..?
    If not....
    1.Go to SXMB_ADM(R/3)
    2. Go to Manage Queues and then
    3. Register All Queues.
    <a href="/people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically Failed Messages</a>
    Regards
    San
    <a href="Remember to set the thread to solved when you have received a solution to set the thread to solved when you have received a solution</a>
    Where There is a <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/16">blog</a> there is a Way.

  • Help SOAP to RFC Scenario using BPM (Synchronous communication)

    Hi,
    I am doing a scenario from SOAP to RFC scenario(Synchronous communication).  Here I am creating a PM Notification in the SAP system through a webservice. 
    I am using three BAPI'S here,
    1. BAPI_ALM_NOTIF_CREATE 
    2. BAPI_ALM_NOTIF_SAVE
    3. BAPI_TRANSACTION_COMMIT
    I am successful in calling the first BAPI from the Web Service.  For this I have not used BPM.  But to commit the transaction(PM notification in this case), I have to execute the other two BAPI's as well.  I have to pass the output of first BAPI to the second BAPI and then execute the 2nd BAPI.  And finally have to execute the 3rd BAPI.     FYI, 3rd BAPI is not dependent on any output.  It has to be executed independently after execution of the first two BAPI's.
    How can I execute this scenario?  Do I have  to use BPM?  If yes please let me know the steps in detail.  I have not done any BPM scenario till now.  So please answer me in detail.
    Thanks in Advance,
    Vijay
    p.s. reward points are must

    Hi Vijay,
    Yes, You will indeed need a BPM in this case...
    Based on my understanding of the Scenario u have explained, here are the steps that would be needed.
    1. Receive With the Sync-Async Bridge open.
    2. Transformation Step (Between the source Request and The BAPI_ALM_NOTIF_CREATE Request)
    3. Send Synchronous
    4. Fork
    5. In one Branch of the fork - Transformation (Between the BAPI_ALM_NOTIF_CREATE Response and API_ALM_NOTIF_SAVE Request)
    6. In the other branch of the fork - Transformation (Between a Dummy Source and the BAPI_TRANSACTION_COMMIT Request)
    7. Send Synchronous (to make the 2nd BAPI Call)
    6. Transformation ( BAPI_ALM_NOTIF_SAVE Response and the source Response)
    7. Send Asynchronous (to make the 3rd BAPI call)
    8. Send the Source Response and close the Sync-Async Bridge.
    There might be alternative ways also of doing it...
    Also a better design would be to take care of the 2nd and the 3rd BAPI call within the code of the 1st RFC Function Module.
    Regards,
    Abhy Thomas

  • Mail to RFC is there way to make mail to READ only when data sent to RFC

    Hi friends ,
                        My scenario is Mail to RFC  .  I am reading mails marking as read and sent to  RFC .
                       Due to this , If   for eg 400 mails comes , xi is reading all mails correctly but sometimes  inbound queue getting stuck so , unable to send data to RFC .
               Because of that  many mails which read cannot able to send data  , everything stuck in InBound Queue.
                 Can any body explain how to resolve this issue ?
               <b>   If there way to mark mail as read only when data uploded to RFC ?</b>
              Any suggestions please!
    Regards.,
    V.Rangarajan
    null

    Hi
    Even we did this scenario for one of our clients,but in our case mails were getting deleted by itself once processed.And those that did not get processed due to some reason remained in the mail box.
    Thanks

  • FTP TO RFC scenario

    In this scenario i am sending companyid from ftp and want to receive company details in response,
    I have designed the scenario the output file is generated in response but the data is not getting retrived so can anyone help me out in this scenario

    BTW
    have you seen this weblog:
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    it shows exactly your scenario,
    unless you're calling the RFC in an async call:
    file - RFC
    then
    RFC -file
    then you don't need BPM
    Regards,
    michal

  • 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

  • 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-File/RFC scenario with reading filename

    Hi,
    i have a File-to-File/RFC scenario which causes some problems in desining it correctly. Maybe some of you has an idea how to do this.
    Scenario:
    - A file is picked up by a File-Adapter. The files are different: pdf, doc, tiff, jpg, txt, ...
    - The file must now go through a business process (not necessary the file, but i need the filename in the business process).
    - The process has to contact several backend systems (SAP R/3) to collect some data. To achieve this the filename has to be send to this systems.
    - The collected data are send via SOAP to a receiver system
    - The file itself has to be stored in a directory via File-Adapter.
    Here's my problem:
    - Is it possible to transport the binary file content within a message which contains other elements (e.g. filename)?
    - Is it possible to do graphical mappings with such a payload (only 1 to 1)? Or must i use Java Mappings only?
    - How to generate a Message from the sender File Adapter which contains binary file content AND filename? Is this possible with a Module?
    - Is it better to create 2 messages with an adapter module? One with the image the other with the filename. Or is it better to split them later in a Mapping?
    Thanks in advance,
    ms

    If all that you need is the file name, use adapter specific settings in the sender file adapter. Then you can access the file name in mapping runtime in UDFs. If you want to have content of the pdf, jpg etc images, i do not think there are ready modules available except for reading pdfs ( you might have to research on this).
    For look ups etc with R3 systems, you can use the file name that you got from the adapter and store it in mapping fields.
    VJ

  • Receiver Determination Problem In Mail to File Scenario.

    Hi All,
    I am trying to do Mail to File Scenario. I defined two business systems, one s/w component in SLD and in IR I defined a DataType , MessageType and Two MessageInterfaces. In ID these are mail adapter settings I gave :-
    Message Protocol :- POP3
    Message Protocol :- XIPAYLOAD
    MAIL ATTRIBUTES -- Enabled checkbox for "Use Mail Package"
                                    Content Encoding - "base64"
                                    Enabled checkbox for "Keep Attachments"
    DEFAULT XI PARAMTERS --
                                    Default Interface Namespace -- http://mtf
                                    Default Interface Name         --  mtf_mi1
    And in Modules Tab I also defined the "PayloadSwapBean" module and swap.keyName and swap.keyValue.
    Infact I followed all the steps specified in /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    But in SXMB_MONI this is the error I am getting :-
      <b><?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Identification
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_BE</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>No receiver could be determined</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error></b>
    Please help me out.
    Thanks All,
    Madhu.

    Hi,
    Please verify letter by letter if you haven't make a typo here:
    Default Interface Namespace -- http://mtf
    Default Interface Name -- mtf_mi1
    please also make a test of your scenario in integration directory
    please also do not use best efort quality of service
    /wg
    Message was edited by:
            Wojciech Gasiorowski

  • Fixed Length of a field in the File-XI-RFC Scenario

    Dear All,
    I am doing one File-XI-RFC scenario in which user is sending me the file with some delivery nos (VBELN) in it and I am sending those all delivery nos to my RFC in R/3.
    Now I want one conition to be put that if any delivery no is of less than 10 characters than that delivery no should not be sent to RFC rest the remaining will be processed to RFC.
    I have put one UDF for this whose code is as follows:
    int len = a.length();
    if  (len == 10)
    int b=1;
    b = (1/len); 
    return a;
    But this code is not working. Please guide me how to solve this problem.
    Regards,
    N.Jain

    HI,
    Input is A : Delivery No take all the delivery no in one context.
    for(i=0;i<A.length;i++)
    int b= Integer.parseInt(A<i>); it will remove all the leading zeros if it has any.
    int j=(new Integer(b).toString().length()); count the lenght of the Del no.
    if(j>10)
        result.addValue(A(i));
    else
         result.addValue("null"); will not send anything.
    Thanks and Regards,
    Chirag gohil

  • Soap -- XI -- IDOC/RFC scenario

    Hello,
    I have a jsp page that working in tomcat server.
    I want to send values from jsp page to xi to r/3. I think it will have
    soap-- xi -- IDOC/RFC scenario
    Pls send me pdf /doc to implemet it
    Regards

    Hi,
    Please Refer the Following Links
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi - Invoke Webservices using SAPXI
    /people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2131 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9
    Regards
    Khanna

  • Issue in HTTP to RFC scenario

    Hi Experts,
    i am working on HTTP to RFC scenario.From Http client i am sending data to integration engine.
    i am unable to see any messages in SXMB_MONI.Means data from HTTP client not reached Integration engine.
    why the data is not reaching integration engine?
    This scenario needs any configuration settings in XI or any changes in HTTP client??
    Plz suggest me in this issue?
    Regards,
    Bhuvan.

    Hi Experts,
    thanks for giving replies.
    The response i am geting in HTTP client:
    Result:  
    <!   DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>Error Report</title>
    <style>
    td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}
    A:link
    A:visited
    A:active
    </style>
    </head>
    <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
    <tr bgcolor="#FFFFFF">
        <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  404 &nbsp Not Found</b></font></td>
    </tr>
    <tr bgcolor="#3F73A3">
        <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>
        <td height="23"><img width=1 height=1 border=0 alt=""></td>
        <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/7.00 </b></font></td>
    </tr>
    <tr bgcolor="#9DCDFD">
        <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>
    </tr>
    </table>
    <br><br><br><br><br><br>
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
    <tr bgcolor="#FFFFFF">
        <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  The requested resource does not exist.</b></font></td>
    </tr>
    <tr bgcolor="#FFFFFF">
        <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>  Details:</b></font></td>
        <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre>  Go to <A HREF="/" target="_parent">main page</A> of this application!</pre></font></td>
    </tr>
    </body>
    </html>
    Regards,
    Bhuvan.

  • XI to RFC Scenario: Runtime error during RFC Call

    Hi,
    I am testing a XI-to-RFC scenario involving BPM. The RFC works perfectly from SE37; but I get 'ICM_HTTP_TIMEOUT, Error code 402' when I invoke it from XI. On digging through the problem, it appeared that the calling program produced a short dump at the ABAP end. The code is as follows:
    <b>module %_rfcdia_start output.
        "Do not display screen !
        call 'DY_INVISIBLE_SCREEN'.
        perform remote_function_diastart.
    endmodule.
    module %_rfcdia_call output.
        "Do not display screen !
        call 'DY_INVISIBLE_SCREEN'.
        perform remote_function_diacall.
    endmodule.
    module %_cpic_start.
      if sy-xprog(4) = '%RFC'.
        perform remote_function_call using rfctype_external_cpic.
      else.
        call 'APPC_HD' id 'HEADER' field header id 'CONVID' field convid.
        perform cpic_call using convid.
      endif.
    endmodule.
    form cpic_call using convid type c.
      communication send id convid buffer header.
      if sy-subrc eq 0.
        perform (sy-xform) in program (sy-xprog).
      else.
        message a800.
      endif.
    endform.
    form remote_function_call using value(type).
      data rc type i value 0.
      do.
    ********This is the line where error occurs************
        <i>call 'RfcImport' id 'Type' field type.</i>
        if sy-xprog = 'JAVA'.
          system-call plugin
                      id 'JAVA' value 'FORW_JAVA'
                      id 'RC'   value rc.
      if there is no rollout on the JAVA side which
      rolls both, JAVA and ABAP, we return to the
      C-Stack and reach this point
      in case there was an rollout, the ABAP-C stack is lost
      and we jump direkt to this point
      here we trigger the rollout on this Abap side with
      the following statement
          system-call plugin
                      id 'JAVA' value 'ROLL_OUT'
                      id 'RC'   value rc.
        else.
          perform (sy-xform) in program (sy-xprog).
          rsyn >scont sysc 00011111 0.
        endif.</b>
    Anybody has any idea why it is happening? Is it a network issue? The dump in ST22 says that 'The program "SAPMSYS1" was terminated manually'. How it is possible to manually abort an automatic call?
    Awaiting reply.
    Regards.

    Hi,
    Probably because of timeout, it is unable to execute the request ..so it is aborted.
    btw, is it a synchronous call ? what is the message size ? the given data to RFC is correct and valid structure ? check the mapping .for this use the data from SXMB_MONI and test it
    Check this blog for timeout errors-
    /people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
    Regards,
    moorthy

Maybe you are looking for

  • How do I sync a "troublesome" voicememo to my mac?

    I have a memo that wont go over to my mac. A later recorded memo is send over to iTunes on the mac, but one is still there. I changed the name of the memo on the iphone. Maybe thats the problem..It playes fine on the phone.

  • Oracle 8 backup on windows NT 4.0

    If you stop the oracle services without shutting down the instance and do your OS backup (running in NOARCHIVELOG mode), does this backup is good to use or you have to shutdown instance using shutdown immediate or GUI tools and then do your backup.

  • Acrobat Standard XI key verification problem

    There is not an option to select Acrobat Standard XI to verify the product key.  I read some other posts related to this.  I bought the program from the website.  I have never purchased a program from adobe before now.  I have downloaded reader in th

  • Future Price Material Master

    We have 230 plants where we execute. We created all materials in one dummy plant where we execute costing for all plants and then update the price through MM02 in Accounting View Future Price and enter the valid from date. Then we go to CKMPRP - Main

  • Why is cropping & radial filter isn't working on my LR CC

    Why is cropping & radial filter isn't working on my LR CC ? I have OSX Version 10.9.5