File to RFC(BAPI) asynchoronous strange error.

Hi,
Iam doing a File to RFC scenario. It is a sale order creation. We are using the BAPI BAPI_SALESORDER_CREATEFROMDAT2. I tried to execute the BAPI in R/3 manually with the mandatory fields like DocType, Material, Quantity, Parnertype & Partner number. It is executed successfully manually. But when implemented the same in XI with the same data. It is throwing some stange errors like
Order type not defined.,
TYPE='E', Message (ID:VP, NUMBER:112): "Please enter sold-to party or ship-to party", LOG_NO:, LOG_MSG_NO:000000 (PARAMETER:SALES_HEADER_IN, ROW:0, FIELD:, SYSTEM:ERDCLNT220)
TYPE='E', Message (ID:V4, NUMBER:219): "Sales document  was not changed", LOG_NO:, LOG_MSG_NO:000000 (PARAMETER:, ROW:0, FIELD:, SYSTEM:ERDCLNT220).
Finally BAPI Executed with the errors. Manually it is working in R/3. But when I call it Xi it is erroneous. Please help me in resolving this.
Thank You.
Radhika.

>>Finally BAPI Executed with the errors.Manually it is working in R/3. But when I call it Xi it is erroneous.
It should be because of the DATA  you are passing to the BAPI.
Try to execute the scenario by passing similar data to bapi that was executed manually and check what happens.
Also check if you have missed to map/pass some fields value to BAPI which is causing the BAPI to error out. Check you mapping again...
Thanks
SaNv...

Similar Messages

  • Scenario File to RFC (BAPI): BAPI not executed successful

    Hi Dear Friends!
    At execution of asynchronous Scenario File to RFC (BAPI BAPI_ACC_DOCUMENT_POST)
    I have the following error in RWB Communication Channel (RFC receiver):
    - Error: 2007-07-25 11:08:25 EEST: Message processed for interface BAPI_ACC_DOCUMENT_POST:
    com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message
    to remote system:com.sap.aii.af.rfc.core.client.RfcClientBapiException:
    BAPI not executed successful
    Simultaniously <b>Test Configuration</b> was executed successfully. And mapping is good.
    But I don't any message in <b>target system</b> in <b>sxmb_moni</b> (formed by BAPI).
    In <b>XI system</b> I see in <b>sxmb_moni</b>:
    <Trace level="1" type="T">--start sender interface action determination</Trace>
      <Trace level="1" type="T">select interface mi_sender*</Trace>
      <Trace level="1" type="T">select interface namespace urn:file:to:bapi</Trace>
      <Trace level="1" type="T">no interface found</Trace>
      <Trace level="1" type="T">--start receiver interface action determination</Trace>
      <Trace level="1" type="T">Loop 0000000001</Trace>
      <Trace level="1" type="T">select interface *</Trace>
      <Trace level="1" type="T">select interface namespace</Trace>
      <Trace level="1" type="T">no interface found</Trace>
      <Trace level="1" type="T">--no sender or receiver interface definition found</Trace>
    Please help me understand my error.
    With the best regards,
    Natalia Maslova

    Hi, Dear Friends! Thanks for support!
    My settings of
    Connection between systems:
    DX7 01 (client 001) - XI Integration Server and DE2 13 (client 200) - target system.
    Phisically both systems are in one server: 10.20.30.24 (srv24)
    Business system DE2_200 has Communication Channel: cc_bapi_r, its settings (in Integration Builder Configuration):
    Adapter Type: RFC
    Receiver
    Transport Protocol: RFC
    Message Protocol: RFC (RFC XML)
    Adapter Engine: Integration Server
    RFC Client Parameter:
    RFC Server Type: SAP System
    Application Server: 10.20.30.24
    System Number: 13
    Authentication Mode: Use Logon Data for SAP System
    Logon User: n_maslova
    Logon Password: *******=*******
    Logon Language: EN
    Logon Client: 200
    Maximum Connections: 1
    x Advanced Mode
    x Send 'Confirm Transaction'
    x Commit Handling for Single BAPI Calls
    x BAPI Advances Mode
    Successful RETURN-TYPE Values: 0
    As I understand these settings are the settings of RFC-destination for target system DE2 13 (200) from XI (DX7 01 001).
    In SLD, Business system DE2_200 is defined as:
    Integration:
    Role: Application System
    Related Integration Server: DX7_001
    Technical System: DE2 on srv24
    Client: 200 of DE2
    Logical System Name: DE1CLNT200
    In target system DE2 13 (200) with the help of transaction sm59 I created
    RFC-destination DX7_001 of type H:
    Technical setting parameters:
    Target Host: 10.20.30.24
    Prefix Path: /sap/xi/engine/?type=entry
    Service Number: 8001
    Registration and Safe:
    SSL: Non active.
    SSL: client certificate: DFAULT SSL-client
    Enter to system:
    Language: EN
    Client: 001
    User: PIAPPLUSER
    Status PW: saved
    Password: ********
    After that in this system DE2 13 (200) with the help of transaction sxmb_adm I set in Integration Engine -> Configuration -> Configurate Integration Engine
    (Change Global Configuration Data):
    Role of Business System: Application System
    Related Integr. Server: dest://DX7_001
    Best regards,
    Natalia

  • 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

  • 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

  • XML file to RFC (BAPI)

    hi
    can you please give the configuration steps that i have to follow while doing xml file to RFC,
    1)configurations in XI part
    2)configurations in R/3 part
    and i am using bpm in this scenario, is there any need of  "program id " while doing configurations in ID part, from where we get this programid. if you have some screnshots of this scenario, can you please forward it to me.
    mailid:[email protected]
    regards
    Pradeep P N

    hi pradeep,
       no need of defining programid here...because u r using RFC as receiver...
    dont define the RFC as sender....if u do so it will ask u the programid..
    in u r case RFC is a receiver,so no need to define programid....
    watch this
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    thanx,
    krish..

  • Error in table parameter (file to rfc)

    hi,
    i debugged file to rfc(bapi wrapper)  sceneario and i did not find data in table parameter.
    data is perfect in import parameter.
    plz help me.
    vijender

    hi,
    i am configuring file to rfc scenario. i created a rfc wrapper. a wrapper is a comination of a bapi and commit work or
    bapi_transcation_commit.
    i on receiving side in r/3 system i dont find data in table parameter but iam getting data in import paramters
    where is data missing .
    plz help me.
    t & g
    vijender

  • 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

  • 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

  • Sample java client not running--showing a strange error-- help urgently

    Hi,
    I have followed all the steps, given in JDevloper help, to create and deploy an EJB onto a 9ias server and I have been successful in creating the EJB and deploying it from the JDevloper machine to 9ias machine.My JDevloper is on one machine and 9ias is on another. After deploying when I am creating a sample java client, as given in the JDevloper help file, it gives a very strange error
    java.lang.NullPointerException
         void Samplemypackage1.MySessionEJB1Client.main(java.lang.String[])
    Process exited with exit code 0.
    I have tried a lot but it's not happening. Is it becuase
    1. 9ias and JDevloper should be on the same machine
    2. some configurational changes need to be done in the settings
    3. jdk1.3.1 is not compatible with JDevloper.
    I am enclosing the code snippet for your quick reference.
    package Samplemypackage1;
    import java.util.Hashtable;
    //import javax.rmi.PortableRemoteObject;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import mypackage1.MySessionEJB1;
    import mypackage1.MySessionEJB1Home;
    public class MySessionEJB1Client
    public static void main(String [] args)
    MySessionEJB1Client mySessionEJB1Client = new MySessionEJB1Client();
    try
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "admin");
    env.put(Context.PROVIDER_URL, "ormi://9ias:23791/MySessionEJB1");
    Context ctx = new InitialContext(env);
    MySessionEJB1Home mySessionEJB1Home = (MySessionEJB1Home)ctx.lookup("MySessionEJB1");
    MySessionEJB1 mySessionEJB1;
    // Use one of the create() methods below to create a new instance
    mySessionEJB1 = mySessionEJB1Home.create();
    // Call any of the Remote methods below to access the EJB
    System.out.println(mySessionEJB1.calc("om sri"));
    catch(NullPointerException ne)
    ne.printStackTrace();
    catch(Throwable ex)
    ex.printStackTrace();
    When I tried to debug the program I found that the line " mySessionEJB1 = mySessionEJB1Home.create()" returns a null. I really fail to understand as to why it is happening.
    Please help me.
    Thankx

    That's strange. home.create() should never return a null.
    Do you see any exception trace on the server side?
    Do you have the same version of oc4j.jar on client and server machine? Which version of Jdeveloper and 9iAs are you using?
    Try copying oc4j.jar from the server machine to client machine and use that to connect to the bean.
    HTH
    Dhiraj

  • ERROR  IN  FILE--XI--RFC SCENARIO.  BAPI  did not UPDATE the DATABASE TABLE

    Hi
    I have created a scenario  FILE -XI- RFC
    File is picked by file adapter  - Its working fine
    I have used BPM
    In RFC side  i used BAPI_INCOMINGINVOICE_CREATE
    Its working fine and return an Invoice Number and Fisical year .
    When i Check this in the R/3 System , in Invoice no Does not Exist .
    Message mapping is ok
    SXMB_MONI all are ok
    Receiver file i got the invoice no and fisical year .
    The Problem is " DATABASE TABLE DID NOT UPDATED "
    So  should i do BAPI_COMMIT seperately ........
    Any solution ................
    VERY VERY URGENT .....
    thanks in advance
    B.Jude

    hi jude,
    Commit Control for Single BAPI Calls
    If you want to use this communication channel to call BAPIs as remote-enabled function modules that change data in the database, set the indicator.
    If executed successfully, the transaction is written to the database by calling the function module BAPI_TRANSACTION_COMMIT explicitly. If an error occurs, the transaction is rolled back by BAPI_TRANSACTION_ROLLBACK.
    The result is determined by the value of the field TYPE in parameter RETURN. If successful, the tables are empty and the values “”, “S”, “I”, and “W” are displayed. All other values are regarded as errors.
    To change this setting, set the indicator BAPI Advanced Mode.
    <b>In the Successful RETURN-TYPE Values table, enter the values that should lead to a successful execution.</b>
    Regards,
    Mandeep Virk

  • File to RFC with multiple records using BPM Scenario Error...!!!

    Hello Guru's,
      I have done the File to RFC with multiple records using BPM scenario as per the Materiel available in the sdn.sap. This involves BAPI (BAPI_MATERIEL_AVAILABILITY). I have done exactly the same what is their in the materiel. SXI_CACHE is also giving return value " 0 ". File is getting deleted from the source directory, but no file in target directory. SXMB_MONI is also showing no error (black Flag). BPM is also error free. Checked the interfaces also.
    Can any one tell me what mistake would i have done.
    Thanks in advance.

    Hi,
    There is one similar discussion I found,
    FTP TO RFC using BPM
    Thanks
    Swarup

  • Problem in storing data in BAPI in File to RFC Scenario

    Hi everyone,
    I m doing File to RFC Scenario.......I completed design and configuration part and actived the Communication Channels.....
    Now when I check in Runtime workbench I am getting succefully executed both at outbound and Inbound Channels.......but
    data is not updated in BAPI...........
    I m getting following error when I check in Component monitoring......
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: RfcAdapter: receiver channel has static errors: configuration exception caused by: com.sap.aii.af.rfc.core.config.RfcChannelInactiveException: channel has status inactive: com.sap.aii.af.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: configuration exception caused by: com.sap.aii.af.rfc.core.config.RfcChannelInactiveException: channel has status inactive
    Please help me out.......
    Regards,
    Sudheer.

    Hi
    "I took Business Service as Service but not Business System.....Will it effect the scenario???......"
    I suggest While dealing with the SAP Systems we should use Business systems.
    Pls check the foolowing Threads for the above Query
    RFC - Business Service
    Re: business service for file to rfc
    Regards
    Abhijit

  • 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

  • Strange error message when I tried to use the "collaborate" function under "File"

    Has anyone else met this before? : I am trying to share my project with my team members. Tried File -> Collaborate and then try three options under it. Non e of them works. It asks for your Adobe ID in order to sign in and upload. However, every time I typed in my Adobe ID and password, it gave me strange error messages. The first time it says: User has not verified email address yet. I have been using this Adobe ID since 2008 or 2009 and of course I have verified my email address. But to make sure, I went back to my email box and search for emails about Adobe ID verification but I didn't find any (I never delete emails such as this).
    Then I tried to register a new Adobe ID. This time when I tried to singn in with the new Adobe ID, it will either say "Network may not be available" (which is not true because I am able to surf on the Internet at the same time), or it says "User has not accepted user condition/agreement".
    I feel so frustrated because I feel this is definitely not my mistake which caused the failure of log in.
    Hope someone can tell me what the reason is and how to fix it though.
    Thanks a lot.

    Hi Lilybiri,
    Thanks for your quick response. I followed your suggestion and verified my Adobe ID on acrobat.com.
    Now I can enter the collaborate function. However, everytime when I tried to send it to myself (for test purpose) I got another error message "You need to enter a valid emaill address". I saw someone else on this forum has met the same problem. Do you have any suggestion on what is the possible reason for this to happen?
    Again, thanks for the fast response. You have been helping me and other ppl so much.

  • File to RFC - error while processing message to remote system:com.sap.aii.

    Hi
    i m working on File to RFC scenario. the records are getting displayed in sender CC and receiver CC. But in receiver CC i m also getting the following error:
    Message processing failed. Cause: 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.RfcClientException: JCO.Exception while calling ZRFC in remote system (RfcClient[CC_RIS_STC_PIMASTER_RECEIVER]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE:      Screen output without connection to user.    
    Error in processing caused by: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZRFC in remote system (RfcClient[CC_RIS_STC_PIMASTER_RECEIVER]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE:      Screen output without connection to user.   
    It was working fine few hours earlier but showing this error now. i was giving a SUBMIT program , but stopped that now.
    But still facing the same problem. and in SXMB_MONI its showing recorded for Outbound processing.
    could anyone help.

    Hi
    I am Facing  Following Error When I am trying to call SAP Screen through JCO.jar
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Screen output without connection to user
    Please Guide Whethere it is possible to call SAP screen Through JCO.jar  ot NOT
    Please HELP if it is possible to Call SAP screen through JCO.jar with step and Code
    Thanks
    Vivek

Maybe you are looking for

  • Can't add more than one music file at a time

    i used to be able to use "add file to library" to add several newly downloaded songs to itunes all at once by highlighting several song files. all of a sudden, i can no longer do this. i have to add them one at a time. it allows me to highlight more

  • Struts application using wsad 5.0 - unable to Run on server

    Hi, I m developing a small struts application using WSAD 5.0. Here is the code index.jsp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ page language="java"

  • Acrobat 9 Pro - Bookmarks snapping to page boundary.

    Most PDFs I work with are set to display as single-page continuous.  When, for example, a chapter starts in the middle of the page, I try to scroll to the middle of the page before creating the bookmark.  Usually this works OK.  But if I try to creat

  • OVM Manager w 2nd NIC = A port conflict was detected in the server config

    Greetings, ENV: Oracle VM 3.1.1.544. Issue: We had to add/setup a second interface/NIC on a second subnet on Oracle VM Manager. Now, when ovmm is started, we get: <A port conflict was detected in the server configuration. The server is configured to

  • Type pool: slis

    Hi experts    pls could you explain what is TYPE-POOLS: SLIS clearly in ALV program. i want to know what is the basic structure of slis and what is type pool. thax heaps....... points awarded... kondal