BPM JDBC?

Someone can provide me some general guidelines on how to use JDBC from a BPM in order to retrieve some data and continue with the BPM process.

Hi Ruben,
Is your Scenario is JDBC->XI->Target system ?
I think, it is better if you tell entire scenario.
Anyway, you can have these steps in the BPM, to receive the message and send the message to target system
1) Receive Step
2) Send Step
In the Receive step, you need to receive the data from the JDBC adapter.
Regards,
Moorthy

Similar Messages

  • Rfc(Syn)- BPM- JDBC connection breaks for job in 2Hrs

    Hi All,
    I have a scenario Rfc(Syn)->BPM->JDBC.
    Problem i am facing is after 2Hr of execution of scenario. SAP & XI connectivity breaks down.
    But to process full data it requires 5-6Hr connectivity because store procedures taking time(for 500 records).
    Is there any solution for above problem?
    Can we use ABAp Proxy instead of Rfc(i.e. ABAP Proxy->BPM->JDBC), If possible How?
    Thanks & Regards

    hi,
    >>>>I have a scenario Rfc(Syn)->BPM->JDBC.
    sync??? you can/should only use sync
    if the response time is around 30 seconds
    so change the interface to async
    >>>>Can we use ABAp Proxy instead of Rfc(i.e. ABAP Proxy->BPM->JDBC), If possible How?
    yes but you still have to do it in an async way
    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>

  • BPM - JDBC adapter - How to trigger system errors thro' adapters?

    I have designed the BPM in following way :
    1. Receive step - Receive Asynchronous message
    2. Defined the Block - DB
    3. Send step 'A' to JDBC - inside the Block-'DB' - Acknowledgement-Transport, Exceptions System Error-'DB', Receiver from-Send context.
    4. Created an exception handler and Selected 'DB' as exception handler for the property of the exception handler branch.
    5. Inserted the Send step-'B' to Mail inside the exception handler branch by using the mail receiver adapter.
    We want send the message to update database by using JDBC adapter but if it fails to update database then we want send an e-mail to outlook.
    Due to some problem we are not able to receive confirmation for the update of database in the "SEND" step-'A' and it is not red flag error it means it is not system error in Tcode-SXMB_MONI. Does anyone can help me to get a system error triggered by the JDBC adapter which would basically throws up the red flag and tells XI that the message could not be delivered successfully to database and the message would route to "SEND" step-'B' to send an email to outlook?
    Thanks in advance!
    Mrudula

    Hi Sarvana,
    I have defined the all the mandatory fields in the BPM.
    Following is the error log if you could help me in resolving it.
    Thanks in advance!
    MESSAGE ID: com.sap.aii.ib.sbeans.oa.rb_all.RUNTIME_EXCEPTION_OCCURED
    com.sap.aii.utilxi.swing.framework.FrameworkException: Runtime error (RuntimeException). See details
         at com.sap.aii.ib.gui.editor.XiDocument.checkConsistency(XiDocument.java:780)
         at com.sap.aii.ibrep.gui.bpm.BusinessProcessDocument.checkConsistency(BusinessProcessDocument.java:479)
         at com.sap.aii.ib.gui.editor.XiDocument.checkObject(XiDocument.java:799)
         at com.sap.aii.ib.gui.editor.CheckObjectCommand.execute(CheckObjectCommand.java:38)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134)
         at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:69)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at com.sap.plaf.frog.FrogMenuItemUI$ClickAction.actionPerformed(FrogMenuItemUI.java:960)
         at javax.swing.SwingUtilities.notifyAction(Unknown Source)
         at javax.swing.JComponent.processKeyBinding(Unknown Source)
         at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
         at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
         at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
         at javax.swing.JMenuBar.processKeyBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
         at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
         at javax.swing.JComponent.processKeyBindings(Unknown Source)
         at javax.swing.JComponent.processKeyEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at com.sap.aii.utilxi.swing.toolkit.AccessibleKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

  • SOAP  Request - BPM (JDBCs + Mappings + File) - SOAP Response

    Hi there,
    my scenario:
    -soap request to xi
    -bpm that do some tasks first with the jdbc-adapter and then with the file-adpater
    -soap response (succ/fault) back to the client
    do i need a s/a bridge to activate the bpm. i can't find any guideline.
    thx
    snyder

    Hi,
    You can go thro the following blogs for Sync/Asyn bridge.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi
    /people/ravikumar.allampallam/blog/2005/02/17/bridging-the-sync-async-bridge-with-fork-xi
    Regards,
    P.Venkat

  • MesageSplit in Mapping without  BPM ( JDBC-XI-Webservice )

    I need to split Source message which has multiple records into multiple Target Messages.
    For Example I have to put 1000 records into each Target Message.
    Source:
    emp_recs
    emp_data occurs 0..unbounded
      emp_name 1
      emp_dept   1
    Target:
    target-emp occurs 0..unbounded
    emp_name 1
    emp_dept 1
    If Source message has 5000 records there should be 2 target messages with each message has 2500 records. if source has 10000 records then there will be 4 target messages.
    I donot want to use BPM. Have to do this in Graphical Mapping.
    I know there was a BLOG I saw couple of months ago and I'm not able to locate  It. Any help will be appreciated with Points.

    In Your case,
    Your source message is splitted into target message containing 5000 messages:
    you need following mapping
    every 5000 emp_data create new message:
    if (emp_data -> Index [5000, 1] -> Mod) = 0
    emp_data --> Message1
    You need to use UDF write Mode function.
    For each message you need 5000 emp_data
    if (emp_data -> Index [5000, -1] ) > 0
    emp_data --> emp_data
    For each emp_data , you will need pass subelements:
    if (emp_name -> RemoveContext -> Index [5000, -1] ) > 0
    emp_name  --> emp_name
    This is just idea, not tested.
    Liang
    Edited by: Liang Ji on Apr 10, 2008 11:34 PM

  • ** Throw Exception in BPM - Webservice to JDBC

    Hi friends,
    I am doing Webservice to JDBC scenario using BPM. I am doing insert data in backend system oracle table by passing inputs from WebService. After insert data in table, JBDC returns the response to web service thru response variable 'insert_count = 1' like this. When I try to insert the same record, that is, employee no as primary key in my table,  XI throws an error 'ORA-00001 - unique constraint' in Addtional . We have to pass this information to Web Service. How will we achive this ?
    Presently in our BPM design,
    1) Exception property of the block as 'Error'.
    2) Inside Block, in Sync Send Step (BPM -> JDBC) specified 'Exception/System Error'  as 'Error'.
    3) Inserted one Exception Handler Brach. In this Brach, inserted one control step. In this step, itself we put a Control Step, the action property of this step is 'Throw Exception'. Here , what we need to set for the 'Exception Property' ..?
    Kindly help me friends.

    Hi Mahesh,
    I refered those scenarios. But, our requirment is we want to take 'Additional Text' option from SXMB_MONI and map to WS source structure one element.
    <?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="1"><SAP:Category>XIServer</SAP:Category><SAP:Code area="INTERNAL">PL_TIMEOUT</SAP:Code><SAP:P1/><SAP:P2/><SAP:P3/><SAP:P4/><SAP:AdditionalText>TIME OUT REACHED</SAP:AdditionalText><SAP:ApplicationFaultMessage namespace=""/><SAP:Stack>Timeout condition of pipeline reached
    </SAP:Stack><SAP:Retry>N</SAP:Retry></SAP:Error>
    Could you kindly help me ?

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

  • BPM - Message has error on the outbound side

    I get this error 'Message has error on the outbound side" . I am using IDOC - BPM - JDBC. I checked SXI_CACHE and I see ret code 99 for this Integration Process. I tried to activate it. I see an error saying that ZCUST_NUMBER is not a component object of PAYLOAD. I have this context object defined on the Abstract Message Interface built to store the IDOC.
    Any ideas are helpful

    Michael,
    <i>The program outputs a returncode = 99 during the cache refresh of an integration process (ccBPM), with an error message that says that 'xxxx' is not a component of the 'PAYLOAD' data object.</i>
    If you are getting the above error, check OSS NOte 890760

  • JDBC-XI-IDoc scenario -- Urgent

    Hi All,
    I am doing a scenario JDBC-XI-IDoc.
    Now the Oracle table in the source system, has a control table as well.
    This control table has 2 fields MSGID and MSGTSTAMP. These 2 fields has to be updated for each record.
    Now please tell me, how this can be handled?
    The MSGID and MSGTSTAMP r created in XI, so we need to send it back to source system, but how?
    Its urgent, early reply will b appreciated.
    Thanks in advance.
    Neetesh

    Hi Neetesh,
    Yes , you can do it using BPM.
    <i>So, it should be something like- XI triggers IDoc to R/3 and almost at the same time, sends back the MSGID and MSGTSTAMP to JDBC.</i>
    >>> Then I think you can do without Synch communication.
    -Receive the Message in BPM(after mapping)
    -Fork step to send both messages at same time
    -Send to Idoc 
    -Send to JDBC
    But you need to have 2 receivers.
    1) BPM->Idoc
    2) BPM->JDBC
    It will do.
    SO u can do without Synch communication also.
    Pls acknowledge
    Regards,
    Moorthy

  • Sync Send in BPM...no trace in MONI, where can i find

    hi forum,
    I have a file>BPM->jdbc scenario,
    in the BPM i make a synchronous call to a BAPI(RFC) to a R/3,
    and the response form this call is sent to JDBC,
    now due to SXMB_MONI trace level set to 1, i cant see the details of this synchronous call, which has a Request mapping and Response Mapping,
    Since this Syncronous call is made through a Sync Send, in a BLOCK, which has a exception branch, which catches in case of any error in Request or Response Mapping in this Sync SEND,
    so i m unable to see if the error occured in Request or Response Mapping,
    I CANT INCREASE THE TRACE LEVEL in MONI DUE TO RESTRICTIONS***(its production)
    is there any table in R/3 or anywhere where i can see the mapping which failed....
    help

    Hi,
    You can do one thing. Use transaction SXI_CACHE. Select the integration process double click it. You can drill down It will juz show a graphical descrption of untill which step the BPM has executed.
    RWB: Check once with message monitoring.
    <b>Cheers,
    *RAJ*</b>

  • IDoc - JDBC, acknowledgment not possible

    Hi Guys.
    I've this scenario, It makes a branch, to a BPM and to a JDBC. The problem is, i got an error at the JDBC acknowledgment response (Acknowledgment not possible)
                            IDOC
    Branch
                   BPM                 JDBC
              No errors              Acknowledgment
            in acknowledgment        not possible
    This scenario was made by a external consultant, and i don't know where is the JDBC acknowledgment defined.
    Does anyone know, where can i modified this and disable the acknowledgment response for the JDBC?
    Thanks in advance.

    HI,
    Go to BPM and check the Send Step .. Is it has mode as acknowledgement etc ?
    Also check is Exception Branch has been defined ?
    to suppress the ack for Idoc -[page no 10 - entry in table IDXNOALE in XI system
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    Regards,
    Moorthy

  • JDBC to Synchronous ABAP Proxy

    Hello,
    I have one scenario where i am sending data from JDBC Adapter(Communication Channel 1) to ABAP Proxy(Sync)(Communication Channel 2) and as response ABAP Proxy send back data to JDBC Adapter(Communication Channel 3). So is it possible without BPM?
    And in above scenario in SXMB_MONI of R/3 and PI 7.1 it shows "Type = Asynchronous" and in R/3 it shows Payload in Response but when i check in PI 7.1 SXMB_MONI there is no message in Payload of 'Response' .
    Please suggest me the solution.
    Thanks in advance.
    RP

    YES , WE CAN ...
    We can use JDBC Adapter at your DB Side and At R/3 side we can have RFC or Proxies for Sync
    By default JDBC Adapter dont have the nature of requesting the Ack(Response from the receiver)
    So to make it Sync We have to use BPM
    JDBC Synchronous call  using BPM
    How to uses JDBC Adapter for the following scenario ?
    Steps to be followed for the same:
    SYNCHRONOUS SOAP TO JDBC - END TO END WALKTHROUGH
    ABAP proxies have many advantages for instance; they communicate with the XI server by means of native SOAP calls over HTTP (RFC does not, so you have to convert from SOAP to RFC calls and vice versa). ABAP proxies supports two different protocols; XI and Web Services. Most important is that they can be used for both synchronous and asynchronous communication (RFC/BAPI is basically only intended for Synchronous comm. which asks much more system resources from your XI system).
    step by step RFC to JDBC scenario
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/step%2bby%2bstep%2brfc%2bto%2bjdbc%2bscenario

  • Lower number of JDBC channels strategy

    Hello Experts,
    I have been asked to optimize this scenario:
    There are 15 databases from which master data and sales data is queried and uploaded to BW using asynchronous interfaces with daily scheduled JDBC sender adapters. The original developers decided to segment the queries for each type of master data into 11 separate queries according to certain parameters, mainly to facilitate mappings to enrich the data.  There is a restriction: We cannot use stored procedures in the database, so the solution must be implemented using SQL Queries only.
    As a result we have 15 databases x 10 master data objects x 11 subdivisions: 1650 different JDBC channels, plus some other channels for sales data. And there is one set of the repository objects necessary for each of those channels. So you can imagine the level of redundancy in the repository too.
    What would be the best strategy to reduce the number of JDBCchannels (and possibly repo objects)?
    Is there a way to implement some kind of dynamic or intelligent query?
    Thanks in advance for your kind responses!
    -Sam.

    Hi Sam,
    Since your landscape got 15 different database there will be minimum 15 JDBC communication channel as the parameters are different from each other.
    The perferfect design will be a
    JDBC (asyn- for triggering) > BPM> JDBC (syn - to get the required data from other DB)> Transformation (if required)> ABAP proxy ( syn to upload Master Data into SAP , here you can logically separate the backend transcations using different Blocks) ---> Send back the status to client(use JDBC asyn channel)
    Regards,
    Sunil.

  • File adapter with empty files!

    Hi guys,
    My scenario is: File -> XI (BPM) -> JDBC
    Under BPM I have a fork with two parallel receivers correlated and two sender file adapters for that. Those senders also have file conversion (.seq file to XML).
    My problem is: in case of files coming empty, is it possible that senders file adapter generates error during file conversion? And/or generates errors during correlations?
    If so, "I wouldn’t like", because after receive these two files I have a switch to check if the file(s) coming empty and a control step to terminate the process in case of true. But this only works if no errors have occurred on the earlier steps!
    At this moment I can’t test it, so I’m asking If anyone has faced an issue like this one?
    Thanks in advance,
    Ricardo.

    Hi,
    Which SP are you on?
    Before Sp19 on XI 3.0 and SP10 on Pi, Empty Files are ignored by XI. The file adapter picks the file and if it is a empty file ( a zero byets file ) the file does not create a message at all for the file.
    From Sp19, the file adapter has options that allow you to decide how to process the empty file. You can create an error message etc.
    Regards
    Bhavesh

  • IDoc Transport Acknowledge doesn't return to PI 7.0 automatically

    Hi all,
    I realized an Integration scenario in which PI 7.0 generates custom IDocs messages (like MBGMCR) and send them to a SAP system (4.6 C). In particular there are the scenario steps:
    1. BPM -> IDoc msg
    2. IDoc msg transport ACK -> BPM
    3. BPM -> JDBC updating
    When SAP receive IDocs must send back to PI the related Transport Acknoledgement in order to complete the Integration Scenario with JDBC updating.
    So I observe that, if I don't refresh IDoc messages on SXMB_MONI, the Transport ACK doesn't return back from SAP to PI and the BPM remains pending.
    Any ideas?
    Thanks in advance,
    GB

    Hi Gaurav,
    could you please tell me which are these parameters:
    - partner number (for the receiver)
    - partner type (for the receiver)
    - partner role  (for the receiver)
    In my scenario PI 7.0 sends IDocs to R/3 so the receiver (written in the point 3 of the link you sent me) should be R/3.
    It's right?
    I'm unable to find the Parner Role. In which transaction can I found it?
    Thanks,
    GB

Maybe you are looking for

  • ITunes copies files without the "copy files to Media folder" checked.

    I've never been a fan of iTunes. My dislike of its impositive ways is directly proportional to its version (10.1.1(4) currently), so I never allow it to do anything automatically for me. I really like it that way. In recent years, after a couple of e

  • Bridge CS3 - RAW does not have previews

    RAW files can be open in Photoshop CS3 but not in Bridge CS3. They appear only as CR2 files. I've replaced the camera raw plug in to use the latest which is version 4.6 but it does not fix the problem. I purged the cache in different ways. When start

  • SSL error message

    I keep getting error message: "an SSL error has occurred and a secure connection to the server cannot be made" when trying to sign in to icloud

  • XMLNode.selectNodes() threadsafe?

    Running a multi-threaded application that hits the XMLNode.selectNodes() right at the same time doing a node.selectNodes("*") throws null pointer exceptions. This does not happen in a single threaded mode. (See exception below). Also, the same progra

  • Adobe Acrobat Reader download for Mac OS 10/8/1?

    Can't figure out a version to download to work with my new OS.