BAPI to file

Dear Experts,
I have a scenario in which i have to integrate SAP EH&S and MDM through XI.
For extraction purposes i'm using a BAPI which will extract the substance data based on a substance id. This data is then sent to a xml file in MDM.
My query is, in XI should i use the BPM for acknowledgment purpose or can i do it without it?
It would help if you gave some tips as to how to go about my scenario.
Thanks and regards,
Merrilly

Hi Mathew,
If acknowledgement is not your requirement then you dont need that. You can do a simple RFC-XI-File scenario.
Regards,
---Satish

Similar Messages

  • Unable to generate WebService Client with Exported (BAPI) WSDL file from XI

    Hi there,
    I, trying to setup a simple Web Service environment where I'll be exposing a BAPI as Web Service via XI.
    So these are the steps I followed:
    <b>1)</b> first I imported the BAPI meta data into my SWC in the repository. <b>2)</b> Second I defined my interrface etc.. <b>3)</b> Third I exported the generated BAPI WSDL file. <b>4)</b> Fourth, I tried to generate a Java proxy/client for my Web Service using a Java IDE (IBM WebSphere Application Developer and XML Spy).
    Now the problem is that Im not able to generate the Web Service client using the exported WSDL file, the WSDL seems not to be valid...From the generated errors in the IDE, I can see that the problem has to do somewhere/somehow with the WSDL Binding element, which input parameters do not match the input parameters of the port type.
    This is a small part of the WSDL file as generated by XI:
         <wsdl:message name="BAPI_AR_ACC_GETOPENITEMS.Input">
              <wsdl:part name="parameters" element="s0:BAPI_AR_ACC_GETOPENITEMS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
         </wsdl:message>
         <wsdl:message name="BAPI_AR_ACC_GETOPENITEMS.Output">
              <wsdl:part name="parameters" element="s0:BAPI_AR_ACC_GETOPENITEMS.Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
         </wsdl:message>
         <wsdl:portType name="BAPI_AR_ACC_GETOPENITEMS.PortType">
              <wsdl:operation name="BAPI_AR_ACC_GETOPENITEMS">
                   <wsdl:input message="s0:BAPI_AR_ACC_GETOPENITEMS.Input"/>
                   <wsdl:output message="s0:BAPI_AR_ACC_GETOPENITEMS.Output"/>
              </wsdl:operation>
         </wsdl:portType>
         <wsdl:binding name="BAPI_AR_ACC_GETOPENITEMS.SAPBinding" type="s0:BAPI_AR_ACC_GETOPENITEMS.PortType" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
              <s0:binding style="rfc"/>
    Has anyone faced a situation like this before? Any clues where to look? I appreciate any feedback, thanks!
    Rob.
    Message was edited by: rob viana

    Hi Rob!
    I'm facing the same problem - how did you solve your issue then? I'm getting following error during generation on .NET side:
    ============================================================================================
    Error: There was an error processing 'http://server/wsdl/MIAMI_ACCDOCPost.wsdl'.
      - The document at the url http://server/wsdl/MIAMI_ACCDOCPost.wsdl
    was not recognized as a known document type.
    The error message from each known type may help you fix the problem:
    - Report from 'DISCO Document' is 'Discovery document at the URL http://server/wsdl/MIAMI_ACCDOCPost.wsdl could not be found.'.
      - The document format is not recognized (the content type is 'content/unknown').
    - Report from 'WSDL Document' is 'There is an error in XML document (2, 70138).'.
      - Value cannot be null.
    Parameter name: name
    - Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'.
    ============================================================================================
    kr Martin

  • Problem in mapping-BAPI to file.

    Hi all,
    I am working on an bapi to file scenerio.My requirement is 2 files need to created in the target ,
    First file has the payload and its name(filename) needs to hav message id.
    Second file is a catalog file which only holds the name of the first file(Howmany ever file are reaching target,this file wil hav names of all those files.).
    I have used multi mapping wherein for the first structure i hav done dynamic configuration to generate filename and its wrking fine.
    For the second stucture (has only 1 field for passing filename)i wrote following UDF and mapped it
    String constant;
    java.util.Map map;
    map = container.getTransformationParameters();
    constant = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
    String fileName = constant + ".txt";
    return constant;
    but now  output of the second file is empty ie the filenames of the first file is not present in it.
    Please help as its very urget.

    heyy...thanks for that, but that was a typing mistake..problem is elsewhere, i had tested by mapping that field to a constant, even then no value was present in output.
    My structure looks like below.
    Messages
       Message1
          mt_abcd
    .        field1
             field2
             field3
       Message2
          mt_abcd2
             filename
    Message1 and message2 are 2 separate files in output.
    Message1's output is correctly generated.But for message2 no output atall.

  • BAPI to File Scenario

    Hi Everybody,
    Greetings!!!
    I am new for XI, pls help me to sort out the queries given below:
    1. Can u all help me out for step by step procedure to be followed for BAPI to File Scenario. (Guide me all configuration step to be performed in R/3 & XI)
    2. Also, pls tell me how to configure BAPI in ALE (I am using BAPI_GOODMVT_CREATE)
    3. Also, guide me in Value mapping in XI. (Eg: if the value is A then it should call BAPI_GOODMVT_CREATE, if the value is D then it should call BAPI_GOODMVT_DELETE and if it is U then BAPI_GOODMVT_CHANGE) - Give me code if it is necessary in case of JAVA mapping.
    I will appreciate you for quick response and solve my probs.
    Regards/Guru

    Hi Guru,
    <i>Can u all help me out for step by step procedure to be followed for BAPI to File Scenario. (Guide me all configuration step to be performed in R/3 & XI)</i>
    1) Go to transaction sm59.
    2) Give some name.
    3) Connection type TCP/IP.
    4) Activation Type Registered Server Program.
    5) Give some programid. You have to use this program id in RFC sender communication channel.
    6) In gateway host give the host name of R/3.Give gateway service.
    Before testing this connection create a RFC sender communication channel in XI.There specify the parameters like R/3 hostname,program id created above, authorization credentials for R/3 etc.Then activate the communication channel.Then test your TCP/IP connection in R/3. You have to test connection only after you create RFC CC in XI because it will go and check for the program id in XI.
    You will need to schedule a JOB in your R3 system that will call the RFC during every time perdiod.
    <i>Also, guide me in Value mapping in XI. (Eg: if the value is A then it should call BAPI_GOODMVT_CREATE, if the value is D then it should call BAPI_GOODMVT_DELETE and if it is U then BAPI_GOODMVT_CHANGE) - Give me code if it is necessary in case of JAVA mapping.</i>
    Your requirement can be easily met using the Extended Reciever determination that we have...
    Here actually based on condition from the message in the payload u can assign your receivers..
    Below is the steps to do the same...
    Under Receiver Determination --> Configured Receivers --> Specify the 2 receivers and beside the same you have an option called condition, there you specify the condition on which it has to go to the first system and then the condition on which it has to go to the second system.
    When you click on the codition it will open another window (Condition Editor window) under which you have a Left Operand which when you click will open up another window(Expression Editor window), there for your need you check on the XPath radio button and then click on the field whose value you wanna check from the structure that it displays, when you click on the field it fills in the XPath Expression, then click ok.
    After that it takes you back to the previous window(Condition Editor window) with the Left Operand having the XPath Expression, so all you will have to do is to fill the Right Operand which is nothing but the value you want that field to contain.(For Example if a field "A" that you have selected which comes in the XPath Expression in ur Left Operand,has a value "1" in your Right Operand)
    There you also have an option to put in an "and" or an "or" condition if required(For Example if you wanna check if "A" and "B" is satisfied or it you wanna check if "A" or "B" is satisfied, this can also be done)
    I also suggest u to go through these blogs..
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    If you have any doubts or clarifications on the same, please do ask and i will tell you how to proceed.
    Regards,
    Abhy Thomas

  • Reg: BAPI to File senario

    hi experts,
                 I am working  BAPI to File senario .
                I have 2 BAPIs one BAPI (character list)is internally call the other BAPI(components list).How    can i call that BAPI internally give me  ur valuable suggiestion.
    Thanks & Regards,
    Satya.T
    Edited by: satya pavan on Jun 8, 2009 1:05 PM

    whats the issue ? , if your both RFC are standard then create third Z and call those two in one it will make your task easy.

  • Lsmw - using bapi's (file structure)

    HI,
      I am trying to use LSMW to upload the purchase order using the bapi.
    I am using the Business object - BUS2012
                          Method             - CREATEFROMDATA
                          Message type   - PORDCR
                          Basic type        - PORDCR05
    In source structure - Posource_head is given and in the lower level
    POsource_item is given. 
    In the maintain source fields,
    For POsource_head,  following fields are given,
    IDENT                          C(001)    Identifier
    LIFNR                          C(010)    Vendor
    EKORG                          C(004)    Purch. Org
    EKGRP                          C(003)    Purchasing group
    for Posource_item , following fields are given,
    IDENT                          C(001)    Identifier
    EMATN                          C(018)    MPn material
    NETPR                          C(011)    Net price
    MATKL                          C(009)    Material group
    WERKS                          C(004)    Plant
    DDATE                          C(010)    Delivery date
    Mapping also done.
    In the excel sheet or notepad, how the fields should be ordered.?
    I just need to know the file format which should be specified in the specify file.
    can anyone give the fields and length that i should create in the excel file or notepad?
    Points will be awarded.
    Regardss,
    Vinoth.

    Hi,
    Field should be ordered as per the source structure of your own.
    In header you can have unique data (strictly) and one more file of item whch will be having correpsonding data for header records.
    Length is as per the Data Element.
    Reward if useful!

  • 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

  • BAPI to FILE scenario - PRASHA

    Dear Expertise,
    Our requirement is sending a request(which contains a primary key like "UserName") to RFC in R/3 system. In R/3 system
    depending upon the primary key i.e., "UserName" it must fetch the data and send the data to XI system which should infact
    save it to a file.(R/3 system has the data in its table)
    For that we are using "https:///people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit" blog as ref...
    But we are unable to get the data from R/3 system to XI as file. We are getting the same file data which we are sending.
    Could some one send the scenario's exported file to us ASAP...
    or you can send the concerned docs or links to my personal email ID : [email protected]
    Plz help us..

    Dear Moorthy,
    Thanks for ur quick response... appreciated your work..
    The Scenario which you got is absolutely correct and fulfills our requirement.
    We have followed the same thing as you mentioned in the blog,
    The question raises from this statement 
    1) Is the BAPI response structure is filled from R/3 or are you getting this response to XI ? Check this in SXMB_MONI ..
    We are unable to get the Payload in the Response message. (in SXMB_MONI).
    Can some one send us the scenario’s exported file , so that we can double check with our scenario ….
    Advance thanks….

  • Creation of catalogue file.BAPI to FILE scenario.

    hi,
    I am currently working on a RFC to file scenario.
    The requirment says a catalogue file needs to be created at target.Please tell me what a catalogue file is?how is it created?

    Hi,
       Please check the following links regarding catlogue files,
       nothing but PDF,JPEG,Tiff files.
       http://peccatte.karefil.com/software/catalogue/catalogueeng.htm
    http://www.sagehill.net/docbookxsl/WriteCatalog.html
    regards
    mahesh.

  • Two file senders to one bapi

    hi all.
    sorry i just want to conformthat how many SA,RA,ID,RD do i need in my 2 file to bapi scenario.
    here there r two senders they r sending the files to one bapi.
    those files have same fields.
    so i created one DT,MT,MI,MM,IM.
    and i need to conform how many SA,RA,ID,RD do i need in my config.
    here iam not using any bpm.
    waiting for the great anser.
    cheers.
    seeta ram.

    Hi
    SA - 2 (for each sender)
    RA -1
    ID- 1
    RD-1
    regards
    krishna

  • File - BAPI -  File Synchronous scenario

    Hi all,
    I am working on a 'flat file--> BAPI --> flat file' scenario. This is a synchronous scenario in which data from input flat file will be sent to BAPI on R/3 side and from the response of BAPI a flat file will be created.
    Is it possible to implement this scenario without using BPM ?
    Thanks.

    Hi Minal,
         For this, you hv to use BPM
    The BPM procee will look like this
    1. Receive step (Receive the data from file)
    2. Sync send to R/3 and get a response
    3. Async send (response) to File
    Check the following link
    <a href="/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit:///people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Regards,
    Akshay
    Message was edited by:
            Akshay Salunke

  • File to RFC (create Project Def in R# using data from XML file)

    I configured the scenario as follows:
    Step 1.
    Created data type and message type suitable for file data.
    Createtd async outbound message interface
    Defined message mapping between Messge type defined and BAPI
    Defined Interface mapping between Message interface & BAPI
    Definf file sender communicational & RFC receiver communicational
    and completed the rest of configuration id and activated all.
    File is being read successfully but Project creation is not happening.
    error "no sender or receiver interface definition " shown in SXMB_MONI.
    Plesase through light on this problem.
    Regards,
    Venkat

    Hi Seshagiri,
    it is not cleare to me where to look for Service Simulation active or not.
    In SICF "/default_host/sap/bc/bsp/sap/net200_otr_d1 " against it is showing that Service Reference(active)
    again I tested.
    error is still comming.
    Error different at different times. However the most frequent error is as follows:
    When payload is not given
    "Interface Mapping ... (109 lines)  "
    Any further suggestion please?
    Regards,
    Venkat

  • Error with file adapter

    HI ALL,
           Our Secnario is Bapi to File.Hear in the Target side we have two target folders.For that I am internally place my file in the PI and pick up the file from PI and posted to end directories.For that Hear i am using 2 flows form BAPI to FILE.But problem is when i am monitoring the Receiver comm channel at target PI system its shows some error like    Unable to clone File Adapter receiver channel for parallel processing and files are not posted in the target system
    please provide the better solution for this issue
    Thanks & Regards,
    Satya

    Hi,
    I am internally place my file in the PI and pick up the file from PI and posted to end directories
        Elaborate that process.
    How to split the target directories. In this scenario is BPM? or Any rule implemented in Receiver determination.
    Regards
    Vijaykumar

  • Multiple BAPI calls in RFC Adapter

    Hi, Dear Friends!
    I have asynchronous scenario File to RFC(BAPI).
    File contains raws. For each raw I need to execute BAPI.
    With the help of each raw I need to construct one document in R/3 database with the help of BAPI.
    But now my scenario provide only one document (only one BAPI is executed).
    I read file to xml structure. This structure contains elements. The elements represent raws of file. But BAPI is executed only for the first element.
    How to explain to XI that I want it impement BAPI <b>N times</b> - as number of raws in file (or elements in xml structure).
    So how to implement multiple BAPI calls. Have you any idea?
    Thank you in advance.
    Natalia Maslova.

    Hi Natalia
    have a look on these links
    http://help.sap.com/saphelp_nw04/helpdata/en/43/b46c4253c111d395fa00a0c94260a5/frameset.htm
    Best Design : for a SOAP -XI - BAPI ( Multiple )
    Re: RFC adapter...How it handles multiple calls...
    Re: Multiple BAPIs and COMMIT in BPM
    Re: Is it possible to compose XML in BPM from responses of multiple BAPI calls?
    Multiple BAPI calls in RFC Adapter
    may be helpful
    Thanks !!!

  • WLDL files exported from XI 2.0 not valid for Web Service Clients

    Hi there,
    Im struggling for almost a week with a <b>BAPI WSDL file</b> exported from the XI repository. My scenario is very simple; A BAPI in R/3 exposed as web service through XI using the SOAP adapter.
    The intention was to generate a Web Service Client based on this WSDL file, unfortunately I get all kind of errors when trying to generate the client. (using tools like, SOAPScope, XML Spy and WebSphere Developer Studio none of this tools can validate the generated WSDL file obtained from XI)
    Can someone <b>Please explain</b> me how/what exaclty do I have to do in order to expose my BAPI as Web Service in XI 2.0? Or Please tell me if this is just impossible in this version of XI.
    Thanks a lot!
    Rob.

    Hi Rob,
    It seems that when exporting to a WSDL file from the Repository, <service> and <binding> are missing from the structure.
    A way to work this out is to either add them maually, or to create the WSDL from the Directory, using the Create End Point as Webservice in the Tools menu.
    When you do that, consider a couple of things:
    1. The message interface, by which you create the wsdl should be inbound. The message interface in the scenario should be outbound.
    2. In the binding section, the produced url is of the intergration server, and you need to change it to that defined in the SOAP adapter configuration.
    Hope this helps.
    Avihai

Maybe you are looking for

  • View for table DDL

    Hello, Please can i know the view name in which the table DDL's are stored? Regards,

  • IPOD recognized by windows but not updater...can someone help me?

    Hi all, Any help would be greatly appreciated on this one. My IPOD's old hard drive (10G) went kaput and I bought a new one (the new HD is 15G). I installed the new one and now windows is recognizing the IPOD as an external hard drive but not as an I

  • ?????Snapshots. Audio creation. X-Fi. DONT WO

    ??Hey all. How do I delete the 'snapshots' i've made in the audio creation mode's console. I have seen similar posts here but they were from at least a year ago. No answers? Also. I've noticed that if you change the master sampling rate in this same

  • GL account requires assignment to CO object

    Dear All, While preparing excise Invoice the accounting document is not getting released. On going to T-code VFX3 and tyring to releasing the document message comes as "Account 00000 requires assignment to CO object". Kindly guide on this issue . Tha

  • Who can tell me the merit of human work

    hey, I make a approve sub system.in it the approval List is not regular , at this time i should use a human work or a POJO? very thank;