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

Similar Messages

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

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

  • File to Multiple RFC's to File scenario ....

    Hello Friends,
    We are implementing a scenario : File-RFC-File without BPM, but our output data is available with 3 BAPI's, If we are going to implement 3 File-RFC-File scenario's so we would be getting 3 output files. How can this be combined in a single file.... As we need to generate a single file.
    Pl. can anyone help me with this ......?
    Regards,
    Jayashri.

    Easiest way would be the use of BPM. Without BPM, you can create and append same file but that could not ensure the correctness of data, so not a good solution.
    Other way could be using one scenario with two RFC lookups.
    Regards,
    Prateek

  • RFC to File scenario.. Messages not available in sxmb_moni

    Hi Experts,
    I have created simple RFC to File scenario in my sandbox system.  First time I am doing this type of scenario.
    When I execute the program which is created to call the RFC Function Module nothing is coming into sxmb_moni in sap system as well as in PI system.  I don't know why messages is not coming to sxmb_moni.
    Please suggest me how to resolve this issue.
    Thanks & Regards,
    Satish Kumar P.

    Hi Satish,
    first monitor  Sender RFC channel in communciation channel monitroing ,after executing program in ECC if BAPI triggered then definely you will see log in RFC sender channel.
    if nothing was found then prob in ECC side like Pogram triggered BAPI.
    Regards,
    Raj

  • Unable to do IDoc to File Scenario ; Please help me....

    Hi Experts!!!,
                     I am trying to convert an IDoc to an .Txt or .Xml file, But I am un able to do it. Whenever I m trying to configure the Idoc adapter , it's not allowing me to select as "sender" (default it will be on the recvr side). Please help me in this regard. 
    Do I need to use RFC adapet, or BAPI instead of IDoc or any other way..to complete IDoc to File scenario...
    THANKS IN ADVANCE!!!
    Sunil K Shetty.

    HI,
    No need to use Sender Idoc adapter , default , IDoc adapter resides on Integration Engine. No sender communication channel and sender agreement also
    see the below links
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File
    IDOc testing - /people/suraj.sr/blog/2005/12/29/generate-test-case-for-an-idoc-scenario
    Idoc settings https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/73527b2c-0501-0010-5398-c4ac372c9692
    Regards
    Chilla

  • BPM error (Rfc to file scenario)

    Dear Experts,
    I'm doing a RFC-FILE scenario with BPM. I have followed the blog RFC Scenario using BPM --Starter Kit by Arpit Seth.
    The file is getting picked up. But in SXMB_MONI i get the following error:
    <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="BPE_ADAPTER">SYSTEM_FAILURE_INTERNAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>An internal error has occurred</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    In SXMB_MONI_BPE, there are no workflows for the integration process.
    What could be wrong?
    Please help.
    Thanks,
    Merrilly

    Hi,
    Thsi is the error i'm getting now in the synchronous send step:
    <!--  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_FileRequest_to_RFCRequest_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</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_FileRequest_to_RFCRequest_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    Is it because that the BAPI is not processing anything?
    Thanks,
    Merrilly

  • 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

  • CRM-XI-File Scenario

    Hi all,
    I am working on CRM-XI Scenario.
    I have no idea about this CRM.
    but i have to pick data from CRM to XI.
    >>so i request, ...........please give me some guidance....& Blogs....
    for this.
    >>>I want to use here RFC/Idos...........
    please help....
    Regards,
    Umesh Laxkar

    Hi Umesh,
      Adding to above information....also find the below blogs.
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    /people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
    https://www.sdn.sap.com/irj/sdn/advancedsearch?querystring=rfc%20adapter%20step%20by%
    20step&SearchPluginName=sdn_weblog&SelectedCustomProps=resourcetype(value=sdn_weblog)RFC Web Blogs
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    BAPI - Search -
    https://www.sdn.sap.com/irj/sdn/advancedsearch?querystring=bapi%20adapter%20step%20by%20step&searchpluginname=sdn_weblog&selectedcustomprops=resourcetype(value=sdn_weblog)
    Thanks and Regards,
    Chandu

  • Idoc-xi-file scenario.  how to display file in html format

    I am not sure whether this is a valid question.........but want to confirm as it was asked by somebody
    In idoc-xi-file scenario.......  how to display file in html format ??
    Thanks in advance
    Kumar

    Hi Vijayakumar,
    Thanks for your reply !! You mean to say I got to use XSLT mapping and also .htm and .html extension together to produce the html file ?? or it is sufficient to use any one of them to produce the html file ??
    Regards
    Kumar

  • IDOC-XI-FILE Scenario: Error in ABAP Mapping

    Dear All,
    I am working on IDOC-XI-Flat FIle scenario in which I am using ABAP Mapping as per document "How To Convert an IDoc-XML
    structure to a flat file and vice versa in XI 3.0".
    I created one customized Idoc for this. The Idoc is reacing XI but its flat file is not getting created. Its giving me following error:
    <SAP:Stack>Error in mapping program Z_ABAP_MAPPING_PACKING_LIST (type SAP-ABAP, kernel error ID UNCAUGHT_EXCEPTION) An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause Dereferencing of the NULL reference.</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    I have also gone thru threads posted for the same topic earlier but still I am not been to resolve this error.
    Please help me out in resolving this error.
    Regards,
    N.Jain

    HI,
       Log saying that, u have problem in the mapping program.
      i.e Z_ABAP_MAPPING_PACKING_LIST
       the problem is due declaration of data.
       i hope that, you have some methods.
       those are declared under intialization section in mapping program.
      please use start of selection before the method.
    other wise, it will come under intilization section.
    warm regards
    mahesh.

  • How to use a existing Business Service in IDoc-File Scenario

    Hi Experts,
    I am new to XI.
    I am working on a IDoc to File scenario where in i am importing the CREMAS.CREMAS03 IDoc from the R/3 System.
    When i try to create a Business Service in Configuration Scenario Object in Integartion Directory, i get a message saying "SAP system ID ER1 and client 800 already exist in service | CLNT800ER1".
    Can i reuse this Business Servie in my Configuration Object?
    If yes, can you please guide me How to go about it?
    Thanks for the effort.
    Cheers
    Gaurav Raghav

    U may directly use it.
    Just select the business service wherever required. It is not necessary that the Business Service is present in ur configuration scenario. But if u still want it, u may add it using "Add to Scenario" option from other configuration scenario or from Objects tab
    Regards,
    Prateek

  • Issue in IDOC-File Scenario

    Hallo Everybody,
    In one of the requirements,for the interface design which involves IDOC-FILE scenario we have a req as:-
    Multiple IDOCs would be sent from SAP R/3 to SAP XI. Each IDOC can have 0-4 segments and for each segment a file needs to created.
    The files needs to be FTPed to a location, only if all the IDOCs have been processed successfully.
    Requirement:
    1) Even if a single IDOC fails,the files should not be FTPed. --> How do we handle this in XI.
    2) We need to send a notification from XI, in case any IDOC processing fails.
    3) How do we check in XI, if all the IDOCs have been processed successfully.
    Please suggest me with some good stategies to resolve this issue.
    Appreciations and Rewards in line.
    Regards,
    Younus

    Hi
    Are you planning to use BPM as it suits your requirement.
    To collect the idocs in small bunches refer
    Collecting IDocs without using BPM
    1) Even if a single IDOC fails,the files should not be FTPed. --> How do we handle this in XI.
    BPM will allow you to wait for the time all IDOC are processed
    2) We need to send a notification from XI, in case any IDOC processing fails.
    BPM exception handling will allow this functionality even to the exact field you want to send  notification
    3) How do we check in XI, if all the IDOCs have been processed successfully.
    Set Acknowledgment for IDOC's
    refer
    Posting multiple IDocs with Acknowledgement
    Thanks
    Gaurav

  • In idoc to file scenario, if XI system is down where do idocs pile up?

    In idoc to file scenario, if XI system is down where do idocs pile up (get stuck)
    what tcode can I use to reprocess it?

    Sender System ,Check  BD87 .. you will see alll the IDOCs in Yellow state ..
    You can reprocess all the IDOCs in go from there .. if only they are in yellow state ...
    regards
    PS

  • Regarding receiver determination problem in IDOC-XI-XML file scenario

    Dear All ,
    In IDOC-XI-xml file scenario , I have configured SLD , IR . But in ID , after file adapter , reciever agreement configuration when I am doing receiver determination configuration I am not able to insert mapping program in configuration overview of receiver determination as I am not getting "New Specific" option in mapping .
    Can anybody suggest what could be the reason behind this .
    Thanks in Advance
    Prabhat

    Hi PRabhat,
    In RCVR determination, you need to select the party & service (as appropriate) save the obeject
    then refresh the configuration overview of recr det.
    then you can see the partner/service
    then you can open it & add the necessary objects.
    Regards
    Vishnu

Maybe you are looking for

  • Audio through RCA and HDMI not in sync

    Hi, Is this a common problem? Recently got a tv with hdmi so the appletv is now connected with hdmi to the tv. But it is also still connected to my stereo though the rca connection (for music or movies with soundtracks that I really want to enjoy). P

  • IMovie skips while recording from iSight

    I record videos weekly and this recently started happening. After I finish capturing footage from the iSight and play it back I notice that it cuts and skips through the footage. So even though I was recording for 5 minutes only 4 minutes will be the

  • I've reinstalled Windows, how do i get my clickwheel games back onto itunes

    Hi I've got two clickwheel games on my nano - the problem is that I had to reinstall windows, and now my games on my nano - which i paid an extortionate £4.99 each for - aren't showing in itunes. How do I get them back without having to pay again? If

  • B Installing 9 brings up DOS SETUP command window then fails

    Installing 9 starts and then a DOS SETUP command box appears, asking to insert Disk 1 DOS Install floppy in drive a: It then fails to do the 9 install, no matter what I do. It simply fails ! I tried installing in SAFE MODE, but still does the same th

  • Datagrid Item color

    Greetings... I'm looking to dynamically change the color of a datagrid line item based on a data condition in my data provider behind the datagrid. If I have a record that has an 'ErrCode' > 0, I want that only item to have a background color of red.