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

Similar Messages

  • 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

  • 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

  • XML file to RFC

    Hi,
    i have scenario (XML file to RFC), it's by BPM, I can see XML content by file sender adapter but can't get detail field data into my data type of interface. what's wrong, please advise! Thanks!
    my data type as follows,
        EXPORT Complex type
          SHIP       element
          INVOICE element
    and file content as follow
      <?xml version="1.0" ?>
    - <EXPORT>
      <SHIP>A</SHIP>
      <INVOICE>ZZ12387379</INVOICE>
      <?xml version="1.0" ?>
    </EXPORT>

    >
    robert yu wrote:
    > I still can't understand, Could you give me more information? Thanks!
    when you receive/ process an XML....this XML has a namespace associated to it.....which in your case should be http://aaa.bbb.com/SVRFIS/Forwarder_File.....
    However looking at your Payload ther is no namespace in it....so what you do is...open the Interface/Message mapping--- go to the Test tab and click on the SRC tab and then check what/ how the namespace should be or rather how the XML should be while testing...it would be something like:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Name xmlns:ns0="http://aaa.bbb.com/SVRFIS/Forwarder_File">

  • Creation of XML file from RFC

    Hi Experts,
    Iam getting input parameters to my RFC from JAVA.
    With that data i have to create XML file from my RFC, and i have to send that file to third party.
    Could you please tell me the total procedure.
    I know how to create RFC, i need how to create XML and how to send to third party.
    Thanks and regards,
    Kumar.

    HI,
    Follow the procedure :
    1.Get the schema by using add generated items according to particular RFC.
    2.Then  create the target schema.
    3.Create the map file and mapp both the schemas.
    After deployement follow the below steps
    1.In BizTalk administration console  create the send port to send the resulted XML to particular location.
    2.Then configure the receive port with values(pipeline=xmlreceive;clientid,userid,pwd,sap gateway host;sap gateway service to connect the sap.
    Now  start the application !
    Let me know if u still have a problem ?

  • Generate XML file from RFC using Web Services

    Hi,
      I am trying to save an RFC enabled Function Module output to an XML file using ABAP web services.
    I could able to create Web Service and release it using WSCONFIG/WSADMIN. I can actually get the output in XML file when i launch the web service home page. But I need this to be done in the ABAP program itself. So If i run the RFC I could able to create,release web service and capture the Generated XML file by SOAP runtime.
    Any FM available?
    Thanks,
    Ram Sanjeev

    which version of WAS you are on .
    if you are on WAS6.40 check the following weblog on how to consume webservice using the wsdl file.
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    lower version of WAS use class cl_http_client.
    if this case you have to manually build the soap message.
    /people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap
    Regards
    Raja

  • Maping of an XML file to RFC

    Hi
    I have a scenario where the PI receives an XML response (the interface is of a predefined xsd type) from an HTTP destination; I need to pass the same  to the ABAP system using an RFC. Can I use any standard mapping function to map the XML file of type xsd to a string parameter of the RFC ? How should I do the mapping ?
    Just to elaborate:
    The source message is of type xsd ; the target message is of datatype string. Can I pass the file as such to the string using any mapping function available?
    Helpful answers will be rewarded ; thanks.

    The source message is of type xsd.Can I pass the file as such to the string using any mapping function available
    You can create and External definition out of the source xsd.Use it in the mapping as source and use the RFC as the target.
    Now in the graphical mapping, if you want to send an xml to a single string parameter at target you could refer to the blog already been suggested above.

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

  • 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 to RFC(BAPI) using BPM

    hi
    i have a scenario that is XML file TO RFC
    i am new to XI, can you please help me in doing the  configurations in
    1)   XI
    2)   R/3)
    3)  IR
    4)  ID
    if you have screen shots of this thing please forward it to me
    id:[email protected]
    regards
    Pradeep P N

    Hi,
    it's a standard non BPM scenario
    (you can find many weblogs like this)
    the only different thing is the RFC signature import
    (inside repository)
    and the use of different channels (file and RFC)
    you can find many examples in my XI FAQ
    (document section)
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • 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

  • 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

  • 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

  • Multiple records of table from RFC to XI in single XML file

    Hi
    My Scenario is as following -->
    <b>RFC ---> Sender RFC Adapter ---> XI -
    > Rec SOAP adapter ---> Web Service</b>
    Now we need multiple records from RFC which can be put in single XML file & XI can transport the whole XML file to Web Service. All the configuration in XI, Web Service is complete & I tested my mapping which is able to accept multiple records.
    But when ABAPer is sending the records I am not getting it in XI, I checked that in message payload from RFC.
    He put the table name in TABLE tab of RFC. But not under Import Tab, as whatever he is providing under Import parameter & exporting it through report I am getting in message payload but not the table data.
    Did anyone try such scenario, can you tell me how can we achieve this.
    Pls. provide me your mail ID in case you need an attachment of the current RFC & report code & my mapping snapshot.
    Regards
    - lalit -

    Hi
    We have created the BAPI in which we are just describing the structure of the payload & which I am importing in Integration Repository.
    And we are calling this BAPI from another program using " Call function ... " command & also provinding the data in that program.
    Actually ethically ABAPers are against the idea of provinding the data into program they would like to provide it in BAPI but that won't work, you have to provide data in program which in turn populate the fields of BAPI.
    Let me know with your mail ID in case you need snapshot of function & programs.
    Regards
    - Lalit -

  • Create a Purchase order using the BAPI using the data in the XML file.

    Hello Gurus,
    here is the scenario can anyone help me how to proceed explaining the procedure?
    Create a Purchase order using the BAPI using the data in the XML file.
    comprehensive explanations are appreciated.
    thanks in advance.

    hi,
      first use fm "bapi_po_create".
      then use fm "BAPI_ACC_GL_POSTING_POST"
    The demo environment was made with real business scenario in mind, but following subjects need to be addressed in a live implementation:
    •     No exceptions and error handling is implemented, except the order rejection (e.g. partly delivery);
    •     In Navision both XML Ports and the XML DOM has been used to integrate with SAP XI, because XML ports has some drawbacks regarding to Namespaces in XML Documents (mandatory in SAP XI);
    •     A minimum of SAP and Navision customization is required to implement this solution. (e.g. user exit in SAP, Navision XML DOM).

Maybe you are looking for

  • How to show next instance of Recuring Event in Calendar List View

    We have a calendar that we are using to display upcoming events.  However we are unable to get a clean output of next instance date for recurring events such as paydays or monthly meetings.  As opposed to showing next instance it shows the date the e

  • Help! Trying to Sum Quantity with Duplicate Rows

    I have a database that have the following columns barcode, quantity, etc. The barcode colum has barcode duplicates and the corresponding quantity differs. I have been working hours trying to solve how to sum each different barcode and replace the tab

  • How to get Task Id in Visual Studio 2012 Workflow?

    Hi, How can I get Task Id when create Single Task before user Accept/Reject the Task? Can anyone help me to this , bit urgent next week going to production? Thank you. S.Shangar

  • Is it possible to set a minimum height for a DIV container?

    Hello fellow developers, I wonder if it is possible to set a minimum height or a fixed height for a DIV container (P container, SPAN conrainer) like in HTML? Thank you!

  • How the Connector works inside ?

    Hello, now I got a sample with a BAPIRET2 table and it is working, but I have a general question to integer types. I saw that the field "ROW" is an ..._INT (INT4) and has a 4 byte length exactly how the byte store in memory. The ABAP dictionary says