Passing Multi line values to Parallel Dynamic Block.

Hi All,
In process structure as follows.
Process:
Sequential Block:
->Action1:
DDPTSStatus(0..n)
ReqSequence(0..n)
ListofStakeHoldersforApproval(0..n)
Action2:
DDPTSStatus(0..n)
ReqSequence(0..n)
ListofStakeHoldersforApproval(0..n)
PDB Block:
->Sequential Block:
-->Action3:
Multiline Input
--->DDPTSStatus(0..n)
--->ReqSequence(0..n)
--->ListofStakeHoldersforApproval(0..n)
Multiline OutPut
--->DDPTSStatus(0..n)
--->ReqSequence(0..n)
--->ListofStakeHoldersforApproval(0..n)
Sequential Block:
->Action4:
DDPTSStatus(0..n)
ReqSequence(0..n)
ListofStakeHoldersforApproval(0..n)
I have done parameter grouping for PDB Multiline input (nodes) with Output of Action2 nodes at process level.
While i am trying to initiate action for Multiple users it is getting tasks in all users who are initiated but if one person performs the task action remaining users wont get the task and it will show No activity Present.
I think when i am Passing the values from Action2 output to PDB Action Input the problem is.
I am pasting the code which i wrote complete method of Action2 CO setting values for Multiline Input please correct me if i am wrong
IGPStructure output = executionContext.getOutputStructure();
for(int i=0;i<2;i++)
{ IGPStructure struct_ddptsStatus_out =
output.addStructure("DDPTSStatus");
// Set the values of the output parameters
/////////////development comments/////////////////
struct_ddptsStatus_out.setAttributeValue(
"Status",
wdContext
.nodeVn_DDPTSStatus()
.getCurrentElement()
.getAttributeValue(
"va_status")); }
executionContext.setResultState("Success");
executionContext.processingComplete();
Please tell me whether this code is correct.
Regards,
Rajesh

Solved on my OWN.....
Edited by: RAJESH NIMMAKAYALA on Jul 28, 2009 10:44 AM

Similar Messages

  • Problem in Parallel Dynamic Block

    Hi All
    I have a scenario in GP,
    An initiator will make request and he/she want to get approval from multiple approvers. So the request want to go multiple users at a time.
    Here I tried this with one Sequential block and a Parallel dynamic block.
    In Sequential block I created inputform callable object using webdynpro DC and in Parallel dynamic block also created approval form using webdynpro DC.
    Here i am facing a problem, while reaching the form to approval users, if any of the approver open it executed and submitted all other approver actions are also terminating or the inbox content is disapearing.
    I want to exit from the Parallel dynamic block only after finishing all of the approvers submition.
    Is any setting or modifications can be done to achieve this?
    If anybody knows about this problem please reply me.
    regards
    Sajith

    Hi Sajith
    I think you are attaching multiple users to the same action (having approval form Callable Object). This will send the action to multiple approvals, but the process will be terminated on approval from any one of the multiple approvers. Due to this the request goes off from other approver's inbox.
    I think for your scenario you can have a sequential block in which you pass the approver action to next approver only when the previous approver has approved it. You can do this by keeping a decision dialog process control, which gives you two actions approve and reject.
    This will send the initiators request to multiple approvers and for the last approver you can terminate the process.
    Parallel Dynamic Block is used for a scenario where you have to take a vote or survey, in this case you pass the survey document to multiple users (and multiple users are decided at runtime).
    Please go thru this link to understand the Parallel Dynamic Block properly.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/7e5b306b3b2679e10000000a1553f7/frameset.htm
    Regards,
    Anish

  • Multi line values in mail forms to send emails

    Hi All,
    Ours is CRM 2007 application, as part of new capability adding to the system, we need to send email to customer with few details once service tickets saved in the system. we decided to use mail forms to create the template and send email to the customer with details. as part of this we need to send multi line values as well in the mail form - email as shown below. example field here is for working hours of the customer office.
    Saturday - Sunday 10am - 4pm
    Saturday - Sunday 10am - 4pm
    (excluding public holidays)
    Can some body tell me how to send the multiline values using mail forms - emails to customers. right now we receive the last line. I dont see any help in mail form documetation as well on this.
    I appreciate any help in this if you already have some solution.
    Regards,
    Srinivas

    Hi,
    Are you using below any FM to send mail ?
    1. CRM_IM_EMAIL_CREATE_SEND_40 2. CRM_IM_EMAIL_CREATE_SEND_51
    if so, then inside this FM there will be call to BADI CRM_IM_ADD_DATA_BADI . This badi will get the data for custom/additional attribute values. Basically it will get one value ( last value ).
    What u might need to do is after this badi call u need to loop ur values and set it . For doing that u might need to make this FM tocustomer name space or look for implicit enhancements.
    We have done similarly for sending mail duringcampaign execution. That was done in different place.
    hope it might help you to analyse more.
    Regards
    Sandeep

  • GP task dissappers in parallel dynamic block

    hi,,
    I want to use gp workflow using webdynpro development component callabale objects.
    The flow is an initiator will initiate a task , it goes to 3 different users only after the three approvers have approved,  it should move to the third single approver.
    So i have used parallel dynamic block in the second step and the callable object is of webdynpro development component type .Now when an initiator initiates a task the three approves are getting the task.If any one approves also the task disappers form the other two users and moves to the next level.
    I want the task to be moved to the next level only after  if all the three users have approved.
    please help....
    Thanks in advance,
    shami.

    hi,
    thanks for ur response.
    From the initiator the process should go to three approvers simultaneously.
    And then only after the three approvers have approved it should go to the third level approver.
    how can this be achived..
    thanks in advance.
    shami.

  • Assigning roles to Parallel dynamic block-multiusers

    Hi David,
    I am using PDB in that one sequential block is used , which I am assigning to multiple users.I have assigned the role in Process- Default role tab.
    Parallel dynamic block
    Sequential block
    Action1----
    assigning multiuser
    Every thing is working fine except when PDB will execute it will go to all users UWL but one user will complete the process, other user's process will not be able to complete the process.that process will end there.
    Do you have any guideline for this?
    Yogesh

    Hi Yogesh,
    Select the sequential block(body block) under the PDB and open the Roles tab. There select the option "Filled From Conext Parameter" and in the drop-down that appears select the user id. You must have an input parameter defined for all the COs present under the PDB type string and which is mapped to a username/role/group at parameter grouping.
    Refer this document for step-by-step guide : <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fe43ced1-0c01-0010-10ae-bc49598b18f6">Using Parallel Dynamic Block and Dynamic User Assignment (GP)</a>
    Thanks,
    Dipankar

  • Regarding Parallel Dynamic Block

    Hi,
    I tried to use PDB (Parallel dynamic block). But it is behaving differently that, I assigned action to 3 users and then the task is appearing in all of the 3 users uwl.But while any of the one user started working on that then remaining users uwl task got disappeared or seems locked or terminated. I did not understand why it is happening like this. can you please help me to solve this issue.
    My process structure is mentioning below:
    Process
    Init Block (Sequential block)
    Input action
    Block (PDB)
    output block (parallel block)
    output action
    Is there any alternative way to do this if PDB will not solve this issue?
    Is it possible to create actions dynamically in a block. suppose this block is creates statically as a parallel block.?
    Mahesh please help me if you have any idea or information about this.
    thanks in advance,
    Sajith

    Hi Dipankar,
    Thanks for ur response.But that form is not going parallel to same users.and i have other problem.If that form go to multiple users.
      That form has to states Approved and rejected.Though any one of them rejected that process must be continuously.not to be terminated.
    If u have any idea /if u worked on same Scenario pl z send document.
    Thanks,
    Santhosh

  • Issue regarding Parallel dynamic block

    Dear All,
    I need some help regarding Parallel dynamic process issue.
    My Process structure as follows.
    Process
    ->Sequential Block
    --->Action1
    --->Parallel Dynamic Block
    >Sequential Sub Block
    >Action2
    I am able to trigger the tasks to multiple users.
    Action2 has to  perform by multiple users.
    Action2 contains Webdynpro Callable Object.
    Webdynpro CO view contains two buttons namely "Approve" and "Send Back".
    My requirement is
    1)If All users selects approve then Action2 has to complete and control moves to Action1
    2)If anyone selects Send Back then Action2 will be completed and control moves to Action1.This process will be continues still all the users Approve.
    I am struggling for this requirement so please  help me.

    Hi Rajesh,
    Question 1:
    I am trying to call the Action1 in the Sequential Sub Block from Action 2.At that time i am gettin the following error.
    Transition between blocks cannot be defined because there is a parallel block in the path.
    @nswer 1:
    Please include "Action2 " and "Action1(On Send Back from Action2)" in the subblock.
    If both the actions are in the same sequential block (sub-block) then you can set result state.
    Question 2:
    Please suggest me what to set result state of Action2 when it is completed and how to call Action3.
    Tell me Action3 comes under Sequential Block?
    @nswer 1:
    Action2 must have two result state
    1. Completed -- Assign it "Terminal"
    2. Send Back -- Assign it "Action1(On Send Back from Action2)"
    Action3 is outside Parallel Dynamic Block. The structure of your sequential block will look like this
    Process
    ->Sequential Block
    --->Action1
    --->Parallel Dynamic Block
    --->Action3
    Regards,
    Pratik

  • How to use parallel dynamic block in guided procedures!!

    hi
    My application is as following i have to initiate a process from a webdynpro for java application and after that i have to send the action to the multiple users..
    For that i created a parallel block inside that a sequential block and inside that an action .
    In my wdj coding i created a variable user and assigned this parameter for the role of that action.
    But the problem is it is not going to the multiple users.
    pls suggest me if there is some other solutions to do this.....
    Pls give me a solution it is urgently needed
    With regards
    Shanto Aloor
    Edited by: Armin Reichert on Jun 18, 2008 12:11 PM

    Hi,
      Refer this
    Regarding Parallel Dynamic Block

  • Urgent ......!!!!!how to use parallel dynamic block in guided procedures!!

    hi
    My application is as following i have to initiate a process from a webdynpro for java application and after that i have to send the action to the multiple users..
    For that i created a parallel block inside that a sequential block and inside that an action .
    In my wdj coding i created a variable user and assigned this parameter for the role of that action.
    But the problem is it is not going to the multiple users.
    pls suggest me if there is some other solutions to do this.....
    Pls give me a solution it is urgently needed
    With regards
    Shanto Aloor

    Hi,
      Refer this
    Regarding Parallel Dynamic Block

  • How to pass selection screen value to LDB dynamic field.

    Hello everybody,
    In my program, I am using standard LDB(PSJ) for getting data. And there is a requirement that I have to display some dynamic fields on my selection screen like plant , person responsible ( which are mandatory also ) etc. and inside the program I have to fill those dynamic fields for which the user has entered the value in selection screen.
    Could you please tell me how to pass some of selection screen values to ldb dynamic fields before GET statement.
    Thanks !!!
    Regards,
    Mitra

    >
    Pavan Bhamidipati wrote:
    > Hi,
    >
    >
    I have to fill those dynamic fields for which the user has entered the value in selection screen.
    >
    >
    > This means that the user is going to enter the values in the selection screen for the dynamic field values so
    >
    > SET PARAMETERID 'XYZ' FIELD p_field.
    >
    > where p_field is a parameter on the selection screen
    >
    > Regards
    > Pavan
    You can capture the values selected through the dynamic selections using some of the functions modules below, just search the forum for the below FM's, perhaps you can find some sample code
    FREE_SELECTIONS_EX_2_RANGE
    FREE_SELECTIONS_EX_2_WHERE
    FREE_SELECTIONS_RANGE_2_EX
    FREE_SELECTIONS_RANGE_2_WHERE
    FREE_SELECTIONS_WHERE_2_EX
    FREE_SELECTIONS_WHERE_2_RANGE

  • Passing a default value to the master block and do the auto query

    Hi
    My problem is i have a MD FORM to which i have to pass a default value and do an auto query so that when i run the form the form should open with this default value and do the query and get the details.
    I tried many things like trying to set the value of the column using p_session.set_value and then calling the same form using wwa_app_module_link by using the value in the condition but every time unless i press the query button i did not get the values.
    Now i don't know what to do.
    My portal version is 3.0.7.6.2
    Some body please help me
    thanks
    Sreedhar

    I don't think this works for 3 parameters, but I know it will work for 1. Maybe you can do something with it.
    1. Create a link to the destination component (YourProvider.YourLink)
    2. Use the code below to use that link to pass the value of a form field to the destination component. 'FieldName' is the field on the destination component you want to query, and '_FieldName_cond' is the condition. This creates the destination URL.
    3. wwa_app_module.set_target(l_url) will send you to the URL you generated.
    l_url := PORTAL.wwv_user_utilities.get_url('YourProvider.YourLink', 'FieldName', v_YourParameterValue, '_FieldName_cond', '=');
    portal.wwa_app_module.set_target(l_url);
    I'm not the best at this, but this works for me in most cases.

  • Oracle report problem-Passing a column value from a query block to another

    Hi I am facing a problem in oracle reports.
    I have 3 query blocks say Q1,Q2 and Q3.
    From Q1 I get a tblkey coulmn and for each value of tblkey I need to pass it on to Q2 which gives me a status and now finally Q3 will take tblkey and status to give me final output.
    Can somebody please tell me how I can do it?
    Thanks,
    Avin

    Depending on your report requirement, you may do a join of Q1, Q2, and Q3; or keep all Qs and for Q3 use subqueries ...
    Select ... from ... where tblkey, status in (
    select tblkey, status from ... where tblkey in (
    select tblkey from .... where .... ) )
    Good luck.
    DC

  • Parallel Conditional Block Example

    I am new to Guided Procedures. I am trying to create a process that has a parallel conditional block where the block would execute when an output parameter equals some value.  All the examples seem to have just simple sequential blocks.  Can anyone point me in the right direction/reference??  I am sure this is very simple for you GP wizards. 
    Thanks.

    One way for you to go about it is:
    - first you need create one main sequential block B1 that'll contain the parallel dynamic block B2
    - then you need your parallel dynamic block B2 that'll contain sequential blocks (B3 and B4) for each branching
    The first callable object of your parallel dynamic block will be a "decision value" callable object. Based on the result of the decision value, the block B3 or B$ will be choosen.
    Straightforward and easy to test. I mean normally

  • SQLCMD throwing error with multi-line queries

    I get the error "Unclosed quotation mark after the character string..." when I pass multi-line queries to SQLCMD via a SQL Agent Job.  For example, the following command fails:
    SQLCMD -E -S MyServerName -Q "PRINT 'Hello';
    PRINT 'World';" -b
    SQLCMD seems to be only processing the first line, ignoring that there is more to the query.  The actual error in this case is:
    Msg 105, Level 15, State 1, Server MyServerName, Line 1
    Unclosed quotation mark after the character string 'PRINT 'Hello';\n '.
    Msg 102, Level 15, State 1, Server MyServerName, Line 1
    Incorrect syntax near 'PRINT 'HELLO';\n'.
    Where "\n" is actually an unprintable character for the line terminator.
    What am I doing something wrong for passing multi-line statements to SQLCMD?

    Hi Brandon,
    You can use sqlcmd to run a Transact-SQL script file. A Transact-SQL script file is a text file that can contain a combination of Transact-SQL statements, sqlcmd commands, and scripting variables.
    To create a simple Transact-SQL script file by using Notepad and save the file as myScript.sql in the C drive.
    To run the script file
    1. Open a command prompt window.
    2. In the Command Prompt window, type: sqlcmd -S myServer\instanceName -i C:\myScript.sql
    3. Press ENTER.
    TechNet
    Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send
    your feedback here.
    Thanks,
    Maggie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

  • Multiple user in a parallel dynamic process step?

    Hi,
    anyone an idea how to address an process step in an parallel dynamic block simultaneously to multiple users?
    I already tried the ‘Assign Users to Process Role’-Callable Object. Unfortunately each added user to one step in the parallel dynamic block was added to the same step in each parallel thread.
    Any suggestions how to solve this problem in a other way?
    Thanks and best regards
    Robert

    WKAriyoshi wrote:
    Is there a way to execute the Prompt User for Input in parallel process while executing the read data part? Is there another way to request a password from the user?
    Executing these tasks (reading from instrument AND prompting user for inputs) in parallel loops can solve your problem instantly, if you can share the code, one can pin point what & where exactly changes are required or parallel loop can be included (along with any other changes which might be required).
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

Maybe you are looking for