File to JDBc to File using BPM

Hi All,
I want to create a scenario for JDBC to File. But i want to trigget this scenario and not to schedule it. So i have one option to put a file in any ftp folder and the this file will trigger my JDBC->file scenario hence my scenario becomes like File(Trigger)->JDBC->File.
I have added Receive and Send Steps in my scenario and it is ok for JDBC->File scenario. But to add this triggering mechanism i think i need to add on more receiver step which will receive file. I tried to add one more receive step at start but it is asking for Correlation... Here i am confused as i don't know why to use correlation in my scenario.....? Can anybody please suggest me how to use correlations in my case?
I just want to receive a flat file which will trigger JDBC->File Scenario.
Thanks,
Rohan.

It is just a simple select query.... will i need to make it sync then also....?
Yes if u use BPM.
It is possible to trigger the interface without BPM directly polling the database using JDBC sender as i earlier said.
With BPM, even for the select query, do message mapping. Do not assign any field from file to JDBC structure. Just assign the constants. This way select query ll be called. Map the output of select query to the receiver file structure.
Ur scenario BPM config would be similar to
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
Regards,
Prateek

Similar Messages

  • File - to - JDBC- to - File  Scenario using Stored Procedure

    Hi,
      I want to do File - to - JDBC - to - File  scenario, because I'm getting data in a file format and that data i want to load in a database. Database level i have a stored procedure. if any exceptions. my stored procedure will give the Response. so, now i want to store that resposne in a file..
    for this. what are the steps we have to use. is this scenario will comes in Synch ronous or Asynchronous  ? and  I have searched the web blogs also. al the blogs are related to Http or Soap  with JDBC . so, please give me some input  help about this...
    how many data types we have to create... any body having step step procedure for this...
    regards
    Jain

    Hi,
    You will need a BPM in your design as Sender File adapter does not support Synchronous messaging. Refer my answer in this thread (page 2) and have your design accordingly....instead of RFC you will have a file adapter as the ultimate receiver.
    Re: BPM FILE--> JDBC--> RFC
    Just take care of below things:
    1) JDBC message format is as per the guidelines
    [Message format for sending req to JDBC|http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm]
    2) check for the format of your source and target file format (if it is a Flat-file with a xml structure that XI can parse then no need of FCC but if it is a CSV file then you will need FCC)
    Regards,
    Abhishek
    Edited by: abhishek salvi on Apr 14, 2009 7:32 PM

  • File to JDBC to File Scenario

    Dear Bhavesh,
    I am doing a File to JDBC to File Scenario from your reference blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3928. [original link is broken] [original link is broken] [original link is broken] [original link is broken] This scenario is same as File to RFC to File scenario I believe. The only change I found is in Message Interface.
    The Message Interface used here are:
    1.     OB File Request
    2.     OB Abs File Request
    3.     IB File Response
    4.     IB Abs File Response
    5.     Abs Syn File Request File Response
    6.     Abs Syn JDBC Request JDBC Response.
    I am able to get the response from JDBC but while mapping to file I am getting mapping error. In fact I have followed ur Blog as it is.
    The IP steps are:
    Receive Step , Syn Send (Abs Syn File Request File Response) Step , Send Step.
    Could you please help me out, if you have time .
    Thanks in advance.
    Shaik

    Hi ,
    Sorry for pointing you the thread.
    I have created the IR as it is in File RFC File Scenario, but I have created Abs Syn Message Interface for JDBC request and Response.
    I have two Abs sync Message Interface and two mapping programs, namely
    Source Interface:
    Abs Sync Message Interface
       File Request
       File Response
    Target Interface:
    Abs Sync Message Interface
      JDBC Request
      JDBC Response
    Mapping Interface:
    File Request to JDBC Request
    JDBC Response to File Response.

  • Many files to one file Processing in XI without using BPM

    Hi XI Experts,
    Greetings!!
    I have one requirement in which I have to send three files from ERP system to some Third Party system via XI without using BPM.
    I seached many threads..but not got the solutions.
    Please help me.
    many thanks.

    Hi Arya,
    > the sturcture of the Target file will be diffrent.
    I assume you have only one target structure but three different input structures. So create one interface for each 3 different sender files and in the output use the same file receiver communication channel in append mode. So when ever your interface is run it will keep appending to the same file comm channel. There is no blog or document for this integration.
    If I were you I will go with BPM which is best solution for this scenario. With BPM you have the standard help and design in your SAP BASIS component only:
    http://help.sap.com/saphelp_nw04/helpdata/en/0e/56373f7853494fe10000000a114084/content.htm
    Regards,
    ---Satish

  • How to process two files at the same time using BPM

    Hi experts,
    I have a Integration Process it takes two files one Header xml and one Lines xml. These files shoudl be processed at the same time because them will be mappend in a Idoc.
    The realy trouble is that these inbound xmls never are executed at the same time. Then a IP is executed for each inbound xml.
    This is the IP:
    http://picasaweb.google.com/hose86/SapXi#5377539387476591346
    This is related documentation:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/cb/15163ff8519a06e10000000a114084/frameset.htm
    I try to do all what I know, but It don't work fine :S
    Thanks in advance and Regards,
    Jose Antonio.

    Hi Jose,
    Don't specify any end condition for  fork step and check the start process check box in both the receive step.
    Also put all steps inside the block.. so that the control step in deadline branch can throw exception and after that the BPM ends. As per the design now, if a deadline exception is raised (it will b handled) but after that the transformation step and send step is executed. There the BPM fails.
    Regards
    Suraj
    Edited by: S.R.Suraj on Sep 4, 2009 5:39 AM

  • Problem in file to rfc scenario without using BPM concept

    hi ,
      I have configured the file to rfc scenatio and in that i have created a synchronous message interface .i have even aaded modules to my sender adapter .
    I have one sender aggrement , 2 receiver aggrement , 1 interface determination , and 1 receiver determination .
    the problem that i am facing is that i am able to perform the operations on r3 side succesfully but i am not getting the response back in xi .
    can any one pls help me in getting out of this problem .
    with regards
    Bhawarlal Choudhary

    Hi Amit ,
       My scenario is for creating the notification ( in plant maintenance) . every time i transmit a file a new notification nos is generated and even i am able to see it in SAP . in RWB when i check my communication channel i am not getting any response . The synchronous process seems to be working fine according to me do i need to even create a FRC communiation channel for sender as i have not done that .
    with regards
    Bhawarlal Choudhary

  • JDBC Synchronous call  using BPM

    Guys,
    Scenario is like this.
    1. Initiator is file adopter
    2. JDBC select (Synchronous call) select data from 1 DB table
    3. Copy response into some FTP system as a file.
    File Initiator is working fine Synchronous call is giving the error.
    I have created the Message Interfaces
      1. Synchronous abstract (JDBC_select)
      2. Asynchronous abstract (JDBC_Select)
    I have done the 2 mappings like
    1. File Initiator as source and JDBC_Select as target,
       (I am passing all constants values to JDBC_select like action='SELECT' table='tablename' and keys as well)
       JDBC_Select structure i have created as
           <Root>
             <selectStatement1>
             <action>
             <tablename>
             <access>
             <c1>
             <c2>
             <key>
             <c1>
    2. JDBC_response as source to Target_FILE as target.
       Response structure is like this
        <root>
        <row>
        <c1> </c1>
        <c2>...</c2>
        </row>
        </root>
    I have created the BPM by using
      --> transformation and send steps.
    Can any body send me the Blogs for this scenario .
    Thanks
    M

    Moorthy,
    <u>Message Types</u>
    1) File_Input
    2) JDBC_Req
    3) JDBC_ Response
    4) Target_File
    <u>Message Interfaces</u>
    1) Async_Outbound,
         - File_Input
    2) Async_Inbound
         - Target_File
    3) Async_Absract
         - File_Input
    4) Sync_Abstract
         - Target_File (Output Message)
         - JDBC_Response (Input Message)
    5) Sync_Inbound
         - JDBC_Request (Input Message)
         - JDBC_Response (Output Message)
    <u>Message Mapping</u>
    1)Mapping1
      - File_Input as a Source
      - JDBC_Reqest as Target(Here I am passing all constants values like action, tablename , accessfields and keyfields)
    2)Mapping2
      - JDBC_Response
      - Target_file (Target file structure as same JDBC_Response structure)
    <u>Interface Mapping</u>
    Interface Mapping 1
       - Sync_Abstract (source Interface)
       - Sync_Inbound  (Target Interface)
    Here is my doubt I am not getting Mapping program in the dropdown (F4 help), it is problem with my source and target?.
    What are the source and target for second interface mapping.
    Thank you for helping me alot on this..
    M

  • MessageExpiredException error in JDBC - RFC scenario using BPM.

    <b>Scenario:</b> JDBC( Asynch)- RFC( Synch)- JDBC (Asyc)
          We are using XI to read oracle table records to insert the records in R/3 and after the insert in R/3 we return a sap code to update in oracle db.
    When we try to process 10 or less rows from db, the process is successfully running, but when we try processing more records we are getting the following error. We tried increase the timeout setting in RFC adapter as per the SAP note and forum. 
    <u>Detailed error: </u>
    <b>com.sap.aii.af.ra.ms.api.MessageExpiredException: Message 443jdjsd-e432-2ec8-e100-000046eb2e5f(INBOUND) expired.</b>
    If I use correlation in asynchronous RFC instead of synchronous RFC, will this solve the problem or is there any better solution for this ?
    Any useful steps to change the synchronous RFC to asynchronous RFC in BPM would be great.
    Thanks
    Steve

    Hi,
    <i>1. Any suggestions to meet this requirement in XI ?</i>
    >>>One option is using ABAP Proxy . Instead of calling Sync. RFC, call synchronous Proxy. So your client proxy, should receive all 200-300 rows at a time, and inside the proxy, and call the RFC. Once all the reocrds are processed, send the response back to BPM
    You can try out this.
    I think, probably you may require to do looping for each Row.i.e For each row the call the RFC.. As of now try to go with Proxy.
    Also try to findout, why the RFC is taking that much of time.. So check for the provision of  tuning in the RFC side..
    Hope this helps,
    regards,
    Moorthy
    Message was edited by: Krishna Moorthy P

  • JDBC to IDOC using BPM

    Hi Experts,
    I am doing the scenario JDBC to IDOC
    Note: i need a solution without stored procedures
    My requirement is , in sender JDBC side
    1) We need to select data from 3 tables from the DB ( I think we can do this by JOIN query specified in the channel)
    2) after selecting data we need to update all 3 tables
    (I think we can't do this, as we have only one update option in the sender JDBC channel). So i want to go for BPM.
    Can we do like this...??
    2 mappings:   
    --> sender JDBC o/p structure (MT-1)   to  IDOC structure(MT-2)                                         (MM-1)---->  (IM-1)
    --> sender JDBC o/p structure (MT-1)  to  JDBC update structure (for 3 tables) (MT-3)                 (MM-2) ----> (IM-2)
    BPM:
    MT-1                    (IM-1)                                                     (IM-2)
    Receive           Trnsformation             AsyncSend to R/3             Transformation             Async Send to JDBC(Receiver)
      Step                    Step1                                                   Step2
    MT = Message Type;   MI = Message Interface;    IM = Interface mapping;    MM = Message mapping
    Edited by: murali krishna on Mar 9, 2010 8:24 AM

    u do not require a BPM..
    the method that u specified is right..
    mappings:
    --> sender JDBC o/p structure (MT-1)   to  IDOC structure(MT-2)                                         (MM-1)---->  (IM-1)
    --> sender JDBC o/p structure (MT-1)  to  JDBC update structure (for 3 tables) (MT-3)                 (MM-2) ----> (IM-2)
    just in the 2nd mapping that updates the tables the receiver service is same as the sender ..
    also specify both the mappings in the interface determination...first the update mapping and then the Idoc one and click the maintain order at runtime so that Idoc is trigeered only after update mapping is done..

  • Idoc to jdbc mesage spliting using bpm

    hi all
    I have scenario in which i have to send message from one idoc to 3 oracle table.
    but i have one condition for table 3.
    that if the primary key of table empty than message should not pass and should not give error message in sxmb_moni.

    check this section from help
    http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
    Also there will be some help regarding Switch on SDN...just make a search.....
    /people/prasadbabu.nemalikanti3/blog/2006/03/10/bpmsingle-sender-and-multiple-receivers-based-on-synchronous-exchangeswitch-part-1
    Regards

  • Issue in File to RFC to File Scenario with BPM using Block Step

    Hi Everybody,
                           I am doing File to RFC to File Scenario for multiple records using BPM using Block Step. The File Message is getting posted and after that, the message is getting stuck up in the qRFC Monitor (Inbound Queue).
                        After seeing the message in Inbound Queue, I am trying to execute and release the message. But when i execute the LUW, it says " Function module doesnt exist or EXCEPTION raised" in Inbound queue.
    Could somebody suggest me the outcome of this? What does this mean and how to
    release the stuck up message in Queue.
    Thanks and Regards,
    N.Jayanth Kumar

    Hi Rajesh,
                           After going through the blog, i saw the trace messages. It says      
    " The   exception occurred (program: CL_SWF_XI_INBOUND=============CP, include CL_SWF_XI_INBOUND=============CM00F, line: 19)"
    Regards,
    N.Jayanth Kumar

  • File to JDBC -  JDBC database not getting updated using UPDATE_INSERT

    Hi ,
        I have a done a file to JDBC Scenario.File is successfully picked up by sender file channel and recieved by reciever JDBC channel.There is no error in receiver communication channel.I used UPDATE_INSERT action in mapping which has to update the database with all records it recieve.But,i found there is no update in Database table.I donot have access to database,so i made a sender jdbc channel querying all data in it to see what new value is populated.
    I made a dummy sender jdbc channel to check what are the values updates on the run of above interface.But , i found no update occur.Please help me out of this problem.
    Thanks
    Deepak Jaiswal

    The reason I ask , because you will see whether the message got successfully delivered to the target system.
    I want  to see information like below
    2010-04-14 14:31:35 Success Message successfully received by messaging system. Profile: XI URL: http://server:port/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
    2010-04-14 14:31:35 Success Using connection JDBC_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
    2010-04-14 14:31:35 Success Message successfully put into the queue.
    2010-04-14 14:31:35 Success The message was successfully retrieved from the receive queue.
    2010-04-14 14:31:35 Success The message status set to DLNG.
    2010-04-14 14:31:35 Success Delivering to channel: Communuication channel
    2010-04-14 14:31:35 Success MP: Entering module processor
    2010-04-14 14:31:35 Success MP: Processing local module localejbs/CallSapAdapter
    2010-04-14 14:31:35 Success Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
    2010-04-14 14:31:35 Success JDBC adapter receiver channel CC: processing started; party  , service DB_BS
    2010-04-14 14:31:35 Success Database request processed successfully
    2010-04-14 14:31:35 Success MP: Leaving module processor
    2010-04-14 14:31:35 Success The message was successfully delivered to the application using connection JDBC_http://sap.com/xi/XI/System.
    2010-04-14 14:31:35 Success The message status set to DLVD.
    raj.

  • File to RFC Multiline using BPM

    Hi Experts,
    I am working on File To RFC Multiple Records using BPM. I am getting the below error. When i am activating Integration Process. I got the error as Element should not return Multiline Value. So i have changed the Message Mapping Occurance in Signature Tab to O to Unbounded. I am getting the below error in SXMB_MONI. Please check and guide me how to proceed further.
    Regards,
    GIRIDHAR
    <?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>XIAdapter</SAP:Category>  
    <SAP:Code area="BPE_ADAPTER">UNKNOWN_MESSAGE</SAP:Code>  
    <SAP:P1 />  
    <SAP:P2 />  
    <SAP:P3 />  
    <SAP:P4 />  
    <SAP:AdditionalText />  
    <SAP:Stack>No object type found for the message. Check that the corresponding process is activated</SAP:Stack>  
    <SAP:Retry>M</SAP:Retry>  
    </SAP:Error>

    Hi Giridhar,
    Check below thread:
    BPE_ADAPTER UNKNOWN_MESSAGE
    Regards,
    Krupa

  • Picking source file A first if source file A and source file B both appear

    I have a situation where two source file with two different data format. Hence I will need to create two different mapping
    and then different parameters at file sender adapter FCC.
    However there is such a condition where source file A will need to process first before picking and process source file B.
    if both appear at folder at the same time else  source B will be process if no source file A.
    Beside using the scheduler at availiablity times at Runtime workbench, if there any other options ?
    Regards
    Fred
    I

    There are two different send file adapters involved due to different data format between source file A and B.
    Beside using BPM is there any other method.
    If doing at adapter module or operating command, how to do it ?

  • How to proceed with File to SOAP to File

    Hi,
         I am going to do File to XI to SOAP to File scenario.....
    I want to send the response as is the request.... For this i think so mapping is not required, as request and response are same.
    Could you please guide me.....
    1) How many datatypes to create
    2) How many Message types to create
    3) How many Message interfaces to create, how many abstract interfaces required
    4) Is mapping required
    5) What are the step involved in creating BPM
    and regarding Integration Directory
    1) how many bussiness services requred
    2) how many communication channels required
    3) how many receiver determinations,interface determinations, receiver agreement s and sender agreements required....
    Regards,
    Pushparaju.B

    Hey
    its like a simple File to File scenario,u just need to generate webservice in ID and have to consume it somewhere(u can check it using ALTOVA XMl SPY),as its not possible to do a synchronous scenario wid file adapters,u have to use BPM ,refer ro this blog for BPM
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    i did the same scenaro yesterday,mine waz just asynchronous(without BPM).
    lemme know if u need any more help.
    you can have a look at the followin scenario as well
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    thanx
    ahmad
    Pl:Reward with points for helpful answers
    Message was edited by:
            Ahmad

Maybe you are looking for

  • Can't play .mov file!!

    hello, i'm having some trouble playing .mov-files.. I can watch trailers on apple.com but when I have a mov-file on the pc, it opens with a flashy green screen and pressing play will only give my a static (mostly green) and no noise.. this goes also

  • Using 2G shuffle with speakers while simultaneously charging

    I currently listen to my 40GB iPod photo at work through logitech mm50 speakers for 8-10 hours a day. I bought a 2G shuffle to use at work instead, because I've already dropped the big iPod from 30 feet up (I'm a carpenter...was working on a church b

  • Debugging the Functional Module in Background.

    I am calling a Custom Functional module in Background mode using the syntax CALL FUNCTION ZFM in background task. Can anyone tell how to debug the code using this.. Thanks , Yatish

  • Connect cam to mac book with out 1394

    How could I connect Dv cam to Macbook with out port 1394 in this computer? With out port 1394 and PCMCIA! That's very bad. perevise model of macbook has all this kind of hi speed port. Why This model has not at least 1 port? What is your suggest for

  • Audio effects issue

    How do you edit a timeline using the Audio effects, I try and drag the audio effect over and put it on the timeline just like video effects and it does not work?