Query in ParForEach block in ccbpm

Hi,
I've a query in ParForEach block in ccbpm.
Please confirm how many maximum parallel instances can be created in a ParForEach Block in ccbpm.

Hi Manas,
As u would know ParForEach i sused if u have parallel processing branches,
The max u can have is 999.
Check this link
http://help.sap.com/saphelp_nw04/helpdata/en/ce/bb2c421f3fda2ce10000000a1550b0/frameset.htm
Hope it helps!!!!!!!!!!!
Reward points if u found it useful

Similar Messages

  • How to query two data blocks simultaneously?

    Dear all,
    Need your inputs on the following problem statement...
    Existing Functionality:
    We have two data blocks A (Parent) and B (Child) in a relationship. Both data blocks refer to different tables.
    Data block A is the query data block and for a single record in block A we can have multiple records in block B. Multiple records in block B are shown one at a time after executing a query, this is implemented by using a list item C (belongs to a third block).
    For example
    Let us say block B can have 5 different types of entries for each record in block A. In this case the list item C will have 5 values corresponding to these entries. Once the query is executed, block B will show the default entry for the queried record in block A. To see other entries for the record user can select the required value in list item C and corresponding entry in block B will be fetched.
    Requirement:
    Our requirement now is to enable querying upon both data blocks A and B simultaneously. To implement this I replaced data blocks A and B with a single data block X which is based on the join of the two tables referred by the Data blocks A and B earlier. As the fields should allow insert, update, delete operations we did not use a view here.
    Issue:
    Now the problem is, each record in block A for which block B had multiple entries earlier is now getting listed multiple times because of the join.
    I have tried but could not find any solution for this. I would appreciate if any of you can suggest how we can query both blocks simultaneously without affecting the existing functionality.
    Thanks,
    Amit

    I don't understand your requirement in detail. I try to repeat what i understood so far.
    You have a master-block A based on a table A and a detail-block B based on a table B. So far so good. You can now query based on conditions just the datablock A, because B is a detail and therefore can only be queryied in context of block A.
    Your reuirement is to query on both blocks A and B and find block in B also without giving conditions for the relevant block A.
    Is it that ?
    What i don't understand, what is block C used for?
    An idea for the querying of block B's data: Create Non-database-items items in block A for the search-criteria you need on block B and make them Queryable.
    In the PRE-QUERY-trigger on block A build a WHERE-condition if that search-criteria is entered, something like
    IF :BLOCK_A.SEARCH_CRITERIA_FOR_BLOCK_B IS NOT NULL THEN
      SET_BLOCK_PROPERTY('BLOCK_A', ONETIME_WHERE, 'WHERE PKVALUE IN (SELECT FKVALUE_TO_A FROM TABLE_B WHERE FIELDVALUE=' ||:BLOCK_A.SEARCH_CRITERIA_FOR_BLOCK_B)');
    END IF;This would query also records to A for which you want to have the B-records. So you could keep block-structure up to master-detail.

  • Sync JDBC call from ParForEach block in BPM (XI 3.0)

    Has anyone tried the following scenario:
    My BPM flow starts with a single message that I split using a message map into a list of messages to be sent synchronously to an Oracle stored procedure via the JDBC adapter.  After the mapping step, the flow goes into a ParForEach block that executes the sync Send step to the JDBC adapter, and then has a Container Action that collects the responses.
    My problem is that BPM seems to not like executing a synchronous send from inside a block.  The first execution of the send step will produce an error in the BPM flow.  The adapter framework, however, shows that the JDBC call executed normally and that the response message was sent back to the integration server.  There is no error indicated in SXMB_MONI, which inidicates to me that the response message was delivered successfully business server (the BPM flow).
    If anyone could shed any light or share any experience, it would be greatly appreciated.
    Chris

    Hi Chris,
    I am facing same situation how you configured BLOCK step for Sync response.Please let me know the flow how you configured.
    Srinivas.

  • Query in data block

    hi,
    whether it's possible to write query in data block other than trigger.(i.e,.. data block created by the Wizard and executing a simple query over the data block based on a table)
    regards
    Yesukannan

    if i am right about u question , you can change your datablock sorce prooperty to QUERY and in soruce wirte ur query
    Block Property
    Database source- Query
    source table name:- write u query

  • Not allowing to query for all blocks.

    hi,
        i have a new question.
    I'm not able to query in all the fields of all blocks.
    I'm able to query only in all fields of master-block. But not able to query in fields of other blocks.
    I have set 'query all records' in the property palette to 'Yes'.
    What should i do do allow  it query & execute in all fields of all blocks?
    Thank you.

    Pl do not post duplicates - Not allowing to query for all blocks.

  • Diff between ForEach & ParForEach blocks in BPM

    Hi,
    Can anyone let me know the difference between ForEach & ParForEach blocks? I am aware of the fact that ForEach gets executed sequentially and ParForEach gets executed parallelly from SAP help. But what I require is "Does usage of ParForEach improve the performance, since it executes parallelly, when compared with ForEach which executes sequentially. If not, how does ForEach behave compared with ParForEach?
    Thanks
    Sreeks

    Hi,
    The main difference between the two is the scenarios where they are used,
    parforeach : is mainly used in places where you have to fork for seperate requests, and have to collect individual responses into a single message.
    foreach : is maily used in places where sequencial processing is important or the order of the message has to be preserved by executing.
    As for which is better you could probably judge interms of cost(memory) vs performance. Parforeach forks a seperate flow for each path(thread on java stack + work flow on abap stack), and if your message is huge, you will be having n*message+BPM initialization cost, where n is the number of paths.
    the very nature of Foreach enables recycling of memory and there by for each execution it uses only message+BPM initialization cost.
    Bottom line, use parforeach where you need to use fork-collect pattern.
    Naveen

  • Return amount of records after query multi-record block

    Hello,
    I would like to have a restriction in my multi-record form that counts the amount of returning records (after execute_query). If the amount is >= 1000 then I have to raise an error.
    How can I implement this?
    Best regards,
    Ronny.

    It most cases forms doesn't return all rows to the user in a batch unless the block property Query-all is set to yes. But if you have sum items based on that block, you have to set it to Yes. If you can turn this flag off and change the Query Array Size (block property) to 0 or something small (like 20), you dont have to worry about how many rows the query is going to return.
    In you case, sounds like you want the user to put more constraints if rows returning > 1000 and you probably dont want the user to ever look those rows. You can do a
    select count(*) from your_table
    where --your critera
    and rownum < 1001
    before execute the query. But this select might take
    a while if you table is very big in oracle 9i.
    The easiest thing is to turn off the Query-All switch, let the forms handle the query and let the user decide whether to refine the query.

  • Query a database block based on a non-database block

    hi everybody
    can anybody help me as how to query a database block based on a non-database block, without a master-detail relationship?
    i have a block : date_input which contains a non-database item: start_date
    another database block (event_block)containing details of an event
    i have to input a date in the start_date and query the event_block
    in wich trigger should i insert the code?
    thanks

    If you are trying to query your database block (event_block) using the value from start_date in your non-database block, then you can set the Where clause in the database block using:
    SET_BLOCK_PROPERTY ('event_block', DEFAULT_WHERE, 'your where clause that includes start_date');
    Place this statement in a trigger that is executed prior to the block being queried.

  • Query a detail block

    Dear members,
    I use Forms 6i c/s, with a 8.1.7 database.
    I have two blocks, with a master-detail relation between them.
    When I try to search for records in the detail block (Enter-Query / Execute-Query), I get only one record: the one that was synchronized from the master block.
    I'd like to find a way to get all the records when querying the detail block, while keeping the master-detail relation.
    Any idea ?
    Is it just the "Copy value from item" on the detail block side that narrows the records to just one ?
    Or can I modify something in the triggers/procedures created by the relation ?
    Thanks for your help.

    I understood your idea of a separate search block, but >one thing remains unclear: where do I populate the >results ?You still query the original M-D blocks to get results by setting the master/detail block's default-where property and execute_query on the block respectively.
    You need to concate the user inputs into a string for default-where as user may input ename and sal two fields to find out how many departments and dependents info.
    The separate dialog even allows user to input detail block's ename, sal and master block's loc fields to get the specific department, which default M-D cannot do this.
    In addition, default search button does not allow you set one master or detail block default-where and execute-query, then go to detail or master block to set default-where and execute-query.
    You do a simple testing on tables of dept and emp, then you will sense this.
    Good luck.

  • MDX query in Init Block

    hi,
    Need a help regarding the Initialization block which connects to a Essbase and fetches the results using a MDX query.
    I need to get the Max of the month cube column and put in a variable.
    The cube time hierarchy contains the column at the 5th physical level with values as 2008 August, 2008 December, 2009 January and 1994 March etc.
    Now I want to get the Max of the value i.e. 2009 January.
    I saw another Init block with the query. This query gave result as 1994 March.
    select
    {} on columns,
    {ClosingPeriod([DEPMTI01].Generations(5))} on rows
    from [XXX.YYY]
    Now when I modified the query to below and run it throws an syntax error.
    select
    {} on columns,
    {Max([DEPMTI01].Generations(5))} on rows
    from [XXX.YYY]
    Please help me out with the correct way on writing the MDX so as I can fetch my desired result of 2009 January.
    Regards,
    Bhavik

    Hi Manas,
    As u would know ParForEach i sused if u have parallel processing branches,
    The max u can have is 999.
    Check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/ce/bb2c421f3fda2ce10000000a1550b0/frameset.htm
    Hope it helps!!!!!!!!!!!
    Reward points if u found it useful

  • How to query the master block based on one of the values in detail block

    Hi,
    In version 6i forms, I have a field in data block which is not set as a database item. I am using that field to store a value from detail block. If I want to query the form using that field (which represents one of the values from detail block), how do I do that? Any pointers?
    TIA,

    Do you want to query a master, which contains a specific detail? If so, here's an example how you could do it with a PRE-QUERY-trigger:
    DECLARE
      vcQuery VARCHAR2(4000);
    BEGIN
      IF :MASTERBLOCK.THE_DETAIL_SEARCH_ITEM IS NOT NULL THEN
        -- Build up an exists Sub-Query
        vcQuery:=' MASTERBLOCKID IN (SELECT FK_TO_MASTERBLOCK FROM DETAILTABLE WHERE DETAIL_COLUMN=''' || :MASTERBLOCK.THE_DETAIL_SEARCH_ITEM|| ''')';
      END IF;
      SET_BLOCK_PROPERTY('MASTERBLOCK', DEFAULT_WHERE, vcQuery);
    END;

  • BPM. parForEach block. deadline. multiline element

    Hi all,
    I have BPM where block parForEach exist. In that block there is another block with send message step(application confirmation demand) and deadline with throw exception step. In parent block (parForEach) I catch this exception and add this element to multiline element.
    After parent block(parForEach) I check if multiline element is empty or not and if not I map this element in singleline element and try to send.
    The problem is that BPM crashes on transformation from multiline element to singleline element. Workflow log shows CX_SY_REF_IS_INITIAL error. I see this error when multiline element is empty but I especially insert switch step that check if multiline element is empty or not and it shows that element isn't empty.
    I already check mapping and also try change multiline element that doesn't helps.
    Please help.
    Maxim.

    Hi Mario,
    thanks for reply!
    When multi element(I specially drop down append step) is empty its go to the "otherwise" branch. So I think the branch is working.
    Maxim.

  • Execute query in control block?

    I have a non database block which is the control block. In this block i have a button for query/ enter query. My other blocks are all based on a database table. So when i run the form and press the exec query button, on the control block, i want to be able to select something from an lov, or a drop down or even a text item which are located on any of the other blocks. and then hit the exec query button again to query the specific information.
    But its not working. i can't seem to get the exec query button to work in the control block and i tried placing it on one of the blocks but i can only select from that block to query on and not any of the other blocks.
    how can i get the exec query button to work on any of the other blocks depending on what i want to query up?

    You will have to build a default where clause in the pre query trigger of the base table block(s)
    example shown below.
    declare
    wh_clause varchar2(1500);
    begin
    if :qry_blk.item1 is not null then
         wh_clause := 'block.item1 like '''||:qry_blk.item1||'%'||'''';
    end if;
    set_block_property('block', DEFAULT_WHERE, wh_clause);
    end;
    then in your button, you will say
    go_block('block');
    execute_query;          
    I have a non database block which is the control block. In this block i have a button for query/ enter query. My other blocks are all based on a database table. So when i run the form and press the exec query button, on the control block, i want to be able to select something from an lov, or a drop down or even a text item which are located on any of the other blocks. and then hit the exec query button again to query the specific information.
    But its not working. i can't seem to get the exec query button to work in the control block and i tried placing it on one of the blocks but i can only select from that block to query on and not any of the other blocks.
    how can i get the exec query button to work on any of the other blocks depending on what i want to query up?

  • URGENT : GETTING AN ERROR WHEN I AM QUERYING A BUILDING BLOCK

    I logged into Oracle Forms Runtime. When I Queried a particular building block, I am getting an error:
    "FRM-40735: POST-QUERY trigger raised unhandled exception ORA-04068"
    What could be the reason for getting this error ?
    Thanks,
    JK

    Hi,
    I am able to solve this problem
    Regards
    Satrajit

  • Querying a detail block

    I have a tabbed canvas. one has some baisc employee info. the other has some detail. even tho the two tabs derive from the same table, i have a master-detail relationship. but i'm no able to do queries in the detail tab. eg: if the phone numebr field if i enter query '203%' and execute, i only see the display on this block but the master block is not populated.
    any help would be appreciated.
    lalit

    Hi Lalit
    If the Both the blocks are based on same table then manually create relationship
    b/w them , like go_block(detail) and Execute_query with the where clause .
    If default relation ship is created
    using wizard then check out for the coding .
    Otherwise there should not be any problem .
    With Regards
    Harish
    null

Maybe you are looking for

  • How do I add songs to my shared music list?

    I am running a dual hard disk nas which has a built in "iTunes Server" function. I have enabled this and when I launch iTunes I can see "Nas Music Box" under my "shared" area but it is blank. Can anyone tell me how I add my music to the music box? At

  • Changing the user name

    Hello My Skype account is being used both on mobile and computer, but never Auto sign in. Recently I have noticed that even if I am logged off, my account appear on -line from other Skype accounts. What can I do? I changed my password twice last mont

  • Link that calls DB function in report

    I have a standard report. I would like to add 2 links to the end of each row with the action by the user. For example: Order No Name Action 123 John Doe Approve | Decline 456 Jane Dow Approve | Decline Where Approve and Decline are links that call DB

  • Yoga 2 Pro: Sound, Browser and Wifi Fixes

    These are the fixes I have came across the last couple months. Hope these are helpful. Sound, when plugging in headphones or HDMI connecton the sound will go out sometimes. FIX: Press  Mute, then mute again(turning the sound back on). Works fine afte

  • Sun DSv6.0 Installation Issue

    Hi All, I am tring to install Directory Server (Enterprise Edition) V6.0 and facing below error. When I run DSCCSetup status I get an error message stating: Failed to run CACAOADM.bat status no suitable java dynamic management kit runtime libraries f