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

Similar Messages

  • Parallel synchronous calls from BPM

    Hi,
    how many parallel synchronous calls can XI perform at once?
    Reason why I ask, for me it looks like parallel calls are handled sequentially in XI.
    My scenario: I have a ccBPM that should ask three different synchronous WebServices to collect data. In the BPM I used the Branch element where one synch call is in every branch.
    Unfortunately at runtime the monitoring says that the WebServices are asked consecutive and not parallel.
    Even if I start a performance test an run 10 BPMs at the same time, all WebServices are asked consecutive.
    So is there a unknown hidden parameter to force parallel sync calls or is XI not able to perform such calls?
    Regards,
    Robert
    (tested on 7.0 and 7.1)

    Hi,
    Maximum Number of receivers you couls send at a time are 999. So i think u can make 999 webservice parallel calls at a time.
    Using BPM:
    First have a receive step and then the receiver determination  and the out put of this step would be a multi line element(containing all the receivers identified during the runtime).And then create a block step in par for each mode and in the properties give the multielement name created from the receiver determination step and then a send step in the block in synchronous mode.
    In ID confgure all the receivers.
    Thanks,
    Vijaya.
    Edited by: Vijaya Lakshmi Palla on Jun 2, 2008 6:29 AM

  • 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

  • JDBC - JavaProxy - JDBC (Synchronous) Interface without BPM  ?

    Hi,
    I was reading the following Blog
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file-rfc-file%28without+bpm%29&
    I want to know that, is it possible to develop an interface like below without using BPM :
    JDBC - JavaProxy - JDBC
    Can we use the same approach as mentioned in above Wiki post for this scenario also.
    Regards
    Kulwinder

    Hello Everyone,
    JDBC - JavaProxy - JDBC Sync scenario works using modules similar to File or Jms adapter.
    Thanks.

  • Make synchronous calls using JCo

    Hi everyone,
    I have done an integration project using JCo talking to the SAP system. The task would be creating a document (BAPI_DOCUMENT_CREATE2), and then checking in the content (BAPI_DOCUMENT_CHANGE2). I found sometimes the document created in step1 did not exist or was locked, then step2 failed.
    I checked the JCo Javadoc, and found that JCo.client.execute(function) would make synchronous call to the SAP system. I supposed that it would make the second call only after the first call finishes.
    Am I right about the assumption?
    Could someone share some ideas about this as well as the transactional mode (asynchronously) call where JCo.client(function, tid) is used?
    Thanks in advance.
    Xueqing Han

    Hi hanan20,
    Welcome to the Microsoft Mobile Community.
    Let's isolate the issue. Are you unable to make any calls regardless of the signal strength and your location? Were you able to receive calls, send or receive text messages? Are you using a regular Micro-SIM or a modified SIM? Have you tried the workarounds given on the link below?
    • I cannot make a call
    Note: The link is intended for the Philippines. If you're outside this country, you can visit your local support for future reference. See: Local support.
    We look forward to your reply.

  • JDBC To File-Using BPM.

    Hi all,
    I have a scenario in which i need to poll data from two tables in same DB and then merge it and put a single file in File server.
    I have implemented it using BPM with constant correletion.The scenario was working fine.
    Since the JDBC adapter is polling data based on dates(client req) some days data wont be there for a particular date and file may not get generated.If both files are not getting generated then it is fine. But sometimes only one file will be generated and fork steps hangs indefenitely.So my entire design fails here.
    Could someone thelp me in a better solution.
    Thanks & Regards,
    Lekshmi.

    Hi ,
    I have included a deadline and exception branch in my scenario and it seems to be working fine.Need to do some more testing in this regard.
    But i have one doubt regarding this issue.In the transformation step i have used multi message mapping where i have mentioned the occurrence of both input messages as 1. I was expecting this scenario to throw an error at transformation step (since only one message was given as input )once i have made the changes but surprisingly it didnt happen.Could you pls tell me why this didnt happen..
    Rgds,
    Lekshmi.

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

  • Problem accessing value of response message of synchronous call in BPM

    Hello,
    I've a problem with a synchronous sending step (in BPM) and a following container operation.
    In the message monitoring I can see the right response of the sending step. But the value of the container is empty.
    If I navigate from the container of the sending step to the message, I can also see the right message.
    But I can't access any elements in the message, they will be ignored.
    Here is the response message:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <ns0:Envelope xmlns:ns0="http://xmlns.bp.com/UEHReply" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    - <ns0:Header>
      <ns0:Event businessDocRef="" component="VEST" domain="MyPoCVest" id="" objectPayloadRef="" timestamp="" />
      </ns0:Header>
    - <ns0:Body>
    - <ns0:ObjectPayload id="" version="">
    - <ns0:uehReply version="2.0">
    - <ns0:component type="BUSINESS">
      <ns0:name>VEST</ns0:name>
      <ns0:application>Vest</ns0:application>
      </ns0:component>
    - <ns0:exception id="0" type="">
      <ns0:triggerMsg format="" />
      </ns0:exception>
      <ns0:detail />
      <ns0:resolutionOption>WAIT</ns0:resolutionOption>
      <ns0:nextChoice>NONE</ns0:nextChoice>
      </ns0:uehReply>
      </ns0:ObjectPayload>
      </ns0:Body>
      </ns0:Envelope>
    And the XPath statement, to get the value:
    /p2:Envelope/p2:Body/p2:ObjectPayload/p2:uehReply/p2:resolutionOption
    Someone an idea?
    Cheers
    Daniel

    Hi ,
    I am facing similar problem , in case you have a resolution about the FAX number , then please let me know .
    Thanks,
    Abhishek
    ([email protected])

  • Asynchronous RFC calling using BPM

    Hi to all,
    I have this scenario:
    FILE -> XI -> RFC -> XI
    I want to use the BPM to do this, thus I have built this BPM:
    START -> RECEIVE -> BLOCK1(SEND) -> BLOCK1(RECEIVE) -> STOP
    My problem is that I want to use an asynchronous scenario and, thus, when XI sends message to RFC, BPM seems to become inactive and the BPM is not able to receive the RFC Response. How can I solve this problem? How can I mantain BPM active to receive the RFC Response?
    Thanks to all!

    Hey,
    I suppose you are trying to do a similar senario
    The scenario must be executed asynchronously, but there needs to be an automatic confirmation that the business data was successfully processed (this would be the equivalent of an applicationacknowledgement). Cross-component BPM (ccBPM) will be used to process the confirmation message.
    How To… Use BAPI wrappers in asynchronous scenarios with ccBPM
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59ef6011-0d01-0010-bfb0-b51381e00509
    <b>Cheers,
    *RAJ*
    *REWARD POINTS IF FOUND USEFULL*</b>

  • 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

  • Multimapping(File to RFC) using BPM...issue!!!

    Hi
    Am working on following scenario:
    #Two request files merged to map to RFC request ( 2:1mapping )
    RFC response is split into two response messages( 1:2 ).
    I have done the whole thing in BPM that looks somewhat like this :
    Fork(Rec1 , Rec2)-> Transformation1(2:1 map) -> Send(Synchronous BAPI call) -> transformation(1:2 map) -> send(Response 1) -> send(Response 2)
    1st part i.e File Merge(2:1) works fine and the request is formed as desired. Next step when synchronous call is made to the RFC the response recieved is where i am facing issues. I dont get the expected response and eventually the following steps fail.
    When tested the same RFC(BAPI_SALESORDER_SIMULATE ) in tx SE37 with same data it works fine.
    But when same data is sent from XI it returns a error message in place of the response.
    Error Message states "Please enter SoldToParty or ShipToParty Number" .
    Irony is sold-to-party is sent in the request message and can be seen in payload in monitoring.
    Any kinda help is appreciated !!!

    > 1. Make sure that bapi commits...there will be a check box option in RFC receiver CC side for this.
    >2. Make sure that Sold to party/bill to party field is of 10 char before passing it to SAP.
    @ Santosh :
    I checked the tab in CC but still the same issue...Do we need to add something to the Name/Value section below that?
    And yeah I am sending 10 digits only..
    BTW do we need something additional when we call a BAPI from XI apart from the data we normally use in  tx SE37.
    Can my Configuration be a problem?
    For this synchronous call in BPM I have created :
    a) 2 interface determinations...One from BPM to ECC and another from ECC to BPM. But both are without any operation mapping as the message types are same & both are synchronous...
    b) 1 receiver determination i.e : from BPM to ECC.
    c) 1 receiver agreement.

  • Synchronous call to webservice for retrieving values

    Hi
    I am making webservice synchronous call from bpm,I want to retrieve data doing lookup in webservice,
    Can uplease tell me how we will achieve this.SOAP Lookup we can use?
    Thanks
    Best Regards,
    Harleen Kaur Chadha

    Hi,
    check this links
    Webservice Calls From a User Defined Function.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
    regards
    srinivas

  • Synchronous RFC exception BPM

    Anybody has successfully getting the RFC.exception in a synchronous call via BPM? What i mean, is to get the RFC.exception then use it inside BPM.
    I have already searched the forum, and i think nobody have done it before. Any clue guys??? Thank you very much in advanced....

    Sorry, i still dont get it. Here i will illustrate my problem.
    I got an abstract sync message interface (lets call it: MIAS_RFC) with structure like this:
    1. Output Msg: From RFC
    2. Response Msg: From RFC.response
    3. Fault Message: From RFC.exception
    I use MIAS_RFC in a SEND node in my BPM inside a block with exception handler branch for my RFC exception handling.
    My purpose is to map the RFC.exception to other message interface abstract async inside the exception handler.
    How can i do this? You said earlier that i should create another sync abstract message interface (MIAS) then use it in a mapping...Am i correct? Could you please describe to me more detail (sorry about this ) Thank you so much....

  • IDoc to soap synchronous scenario with BPM

    Hi,
    I am working on IDoc to soap synchronous scenario using BPM. Here i am facing lot of soap exceptions in my production system. I handled the exceptions. The data getting excuted for the first time, the same data(just changed the description)is giving exceptions for the second time. Please let me know why the exceptions are getting, and different type of exceptions and solutions for the same.(Blog also is fine)
    Thanks & Regards,
    Pragathi.

    The data getting excuted for the first time, the same data(just changed the description)is giving exceptions for the second
    time.
    Ideally you should not get an exception for the same data....can you tell is the description and where are you getting the exception...is it a part of the SOAP message or some object?
    An exception might have occured because the description would be something unacceptable by the target application.
    and different type of exceptions and solutions for the same
    there would be many blogs....your thread would be spammed...better make a search on SDN with exception text that you are getting.
    Regards,
    Abhishek.

Maybe you are looking for

  • Upgrading Multiple Phones on a Family Plan

    I have been reading through posts on these forums and have yet to find a concrete answer to my situation. My wife and I have the nationwide family talk 700 plan and she is the primary number. When I login to our account online, it says that we only h

  • Can't access files!!!

    While moving files over to my external hard drive I accidently turned off the hard drive. the files have moved over but I can't get to them. The computer has now changed the name of the external hard drive by adding a '1' after the original name. Ple

  • If I buy a new MacBook Pro w/ Retina Display is OSX Mavericks Preinstalled? Or we should pay separately for the OSX Mavericks.

    I was planning to buy a Macbook Pro w/ Retina Display. I was kinda confused if the MacBook Pro has OSX Mavericks pre-installed or we should buy it separately? Pls. Reply ASAP... We will buy it this Christmas Season 2013... Thanks!

  • How can I restore my game?

    Not sure where to go for support and looking for HELP. Purchased gems and then went to purchase a hero when app crashed. Went to my slot and it showed 0/95 stars (88 LOST). Still had the 6000 gems but all stars were lost and no 'start here' to even e

  • Windows Server Time Service

    My DC which is my time server keeps falling out of sync. anywhere from 5-20 min. anyone seen this before are have any ideas? Twitter: @dguilloryjr LinkedIn: http://www.linkedin.com/in/dannyjr Facebook: http://www.facebook.com/#!/dguilloryjr