Accumulate output of Terminal process across Target Group

I have a process (Workflow?) that I execute on a Target Group of terminal Targets.  I want to gather all the outputs of the Execute Terminal Commands into one place for processing.
Concatenating it to an Output variable doesn't work.  Each Target has it's own, with only it's output.
Even writing to a file doesn't work.  Eventually, two processes try to write at the same time and one fails. 
Concatenating it to a Global Variable seems to work.  But it seems like there must be a better way.

Currently CPO does not support running(or in this case broadcasting) a single activity or child process to a target group.
Here's why and some background.
Assume we have 10 targets in a target group.
You start process A against those 10 targets, what CPO actually does is spawn 10 process instances each against *1* target from that group. It does not spawn just 1 process instance.
Now assume you call child process B or an activity inside of a process. Even though you can select a target group that is only good for the parent process (or top process) level. Once you make that a child process, it operates similar to an activity.
Here is why you cannot (currently) execute a child process or activity against a target group...
And this is a discussion that has been running for some time, but how do you determine to the parent process if that child process was successful or failed? Some would argue it must be 100/100 for success, any failure is failure. Some argued that as long as it's better than 50% that's success. Some even argued that it should be just 1/100 for success. And that shows the main issue in allow child processes and activities to execute on target groups, which to this point is not supported or developed into the product.
I understand your use-case and you can accomplish the same thing in the following manner:
1) Set your variables in your parent process
2) Use Find-Target to find all the targets in the group you want to execute against
3) Use a For-Each loop to for-each through all the targets and then place the child process inside of the for-each loop and on the child process have it use the target item in the for-each loop iteration
Now If you really want it to mimic a target group or broadcast, I would then go and select the child process(inside of the parent) to execute asynchronously.  (see below SS)
Normally if you leave this unchecked each process would wait for the previous one to complete before starting. With that checked the for-each loop will continue pass each one, not caring if one succeeded or failed. It will just start them all in succession.
I cannot remember if there is already an ENH for the target group @ activity level/child process use-case, but if not, feel free to open a TAC case and suggest it, or if there is already one, they can give you the ENH number. (as I said, I think there is one, as it's been a long running discussion topic)

Similar Messages

  • Enhance output of Target Group opened in segment builder

    Hello Experts,
    We are implementing SAP CRM Lean Marketing using CRM 7.0. Our business requirement is to do segmentation based on Company attributes and Relationship Category. The output of the target group should enlist the persons related to the Company based on the relationship category selected while doing the segmentation.
    Using standard InfoSet CORM_MKTTG_BP_ORG_CDE and while creating data source selecting BUT000_PER-PARTNER_GUID in the field business partner, we are able to get the list of persons matching the segmentation query (based on the relationship category e.g. Has Supplier, Has Contact Person, etc) . But the issue is , the output of the target group (shown as an ALV grid , when the target group is opened in segment builder) only enlists matching Persons, it does not enlist the related company ID /name in front of the Person ID in the output of the target group. And this Company BP ID is not available if I try to modify the output layout. So business is unable to understand the Person enlisted in TG belongs to which Company. Can we enhance this ALV grid output of the target group displayed in segment builder ? if yes , how can it be achieved ? If this is possible and we are able to add related company BP ID/ name in front of every person enlisted in the target group then our issue gets resolved. Or is there any alternative solution to resolve this issue ?
    Highly appreciate your early response in order to resolve this critical issue.
    Thanks and Regards
    Ambar
    Edited by: AMBAR ADHAV on Sep 10, 2011 11:52 AM
    Edited by: AMBAR ADHAV on Sep 10, 2011 2:21 PM

    Naresh,
    Thanks for the response.
    As per your suggestion I made additions to my z Infoset , and added all the fields you suggested.
    While creating the data source I selected following fields
    Business Partner: BUT000_PER-PARTNER_GUID (as my requirement is to return Persons and this field works with only GUID)
    Reference Object: BUT051-RELNR
    Reference Object Type:  BUT051-RELTYP
    Now when I create the target group with this data source unfortunately I am still not getting the the relationship number when I click in Show assigned Objects in the target group screen of web UI.
    Please suggest where I am going wrong
    Thanks
    Ambar

  • Enhance output of Target Group in segment builder

    Hello Experts,
    We are implementing SAP CRM Lean Marketing using CRM 7.0. Our business requirement is to do segmentation based on Company attributes and Relationship Category. The output of the target group should enlist the persons related to the Company based on the relationship category selected while doing the segmentation.
    Using standard InfoSet CORM_MKTTG_BP_ORG_CDE and while creating data source selecting BUT000_PER-PARTNER_GUID in the field business partner, we are able to get the list of persons matching the segmentation query (based on the relationship category e.g. Has Supplier, Has Contact Person, etc) . But the issue is , the output of the target group (shown as an ALV grid , when the target group is opened in segment builder) only enlists matching Persons, it does not enlist the related company ID /name in front of the Person ID in the output of the target group. And this Company BP ID is not available if I try to modify the output layout. So business is unable to understand the Person enlisted in TG belongs to which Company. Can we enhance this ALV grid output of the target group displayed in segment builder ? if yes , how can it be achieved ? If this is possible and we are able to add related company BP ID/ name in front of every person enlisted in the target group then our issue gets resolved. Or is there any alternative solution to resolve this issue ?
    Highly appreciate your early response in order to resolve this critical issue.
    Thanks and Regards
    Ambar
    Edited by: AMBAR ADHAV on Sep 10, 2011 11:53 AM
    Edited by: AMBAR ADHAV on Sep 10, 2011 2:22 PM

    Hello Experts,
    We tried implementing BADI CRM_MKTTG_SEG_MEM_EX in order to add Company ID/ Name , but the issue is the BADI gets Input as persons BP id, nothing else, due to this if a person is having relationships with multiple companies, the BADI is unable to identify which company to choose as Relationship Category is not available to the BADI. And further issue is if a Person is having same relationship category with 2 companies e.g. Supplier for company A and for Company B too , in this case too the BADI is unable identify correct Company to return to the target group output
    Is there someting in the Infoset that can resolve our issue ? How can I make available the fields in the infoset to the ALV output of the target group. Using SQ02 I am able to add fields to the field groups for selection in segmentation, but can anyone guide, how to make the field available in the output list ?
    Please provide your technical assistance
    Thanks
    Ambar

  • Target Group Member List Display and Output to Excel

    Hi all,
    I am using CRM 2007.  On the Web Client I want to output to excel a target group with 7000 accounts. I have 2 users. One User when the target group is selected can see all the details of all 7000  in the target group members list and when exported to excel all 7000 accounts are listed in the excel file.
    With the second user when the target group is selected only the details of 100 accounts are visible in the target group members list and when exported to excel only 100 of the accounts are output.
    The 2 users have the same roles and parameters and the personalize icon next to the excel export button also have the same settings.
    Does anyone know where the setting is that will allow the second user to output all 7000 on the list?
    Help would be greatly appreciated.
    Thanks,
    Jonathan

    Hi Jonathan,
    Open a Profile Set with user2.
    Push button "Graphical Modeler".
    When the modeler is loaded , Press button "Settings".
    On the upcoming popup, you can change the number of members that are loaded to the Target Group Member list in the WebUI in the field "Number of Members Displayed".
    Most probably, this field is empty for your second user, so the default of 100 is used.
    Note that a maximum of 9999 members can be loaded to the list in the UI. For bigger Target Groups, you must export the list to the application server using the "Export to File" button on the Target Group WebUI page.
    Hope that helps & Best Regards
    Klaus

  • Editing Target group Post process

    Hello,
    I would like to know if there is a possibility to edit a target group of Segment builder  for a certain action. Some business partners of a target group should not be contacted for example. But this should just be done done for a certain action or campaign, it's should be a permanent change.
    Kind Regards
    Joachim Bertram

    Thanks for your reply..
    You are correct! Let me try.. Actually am doing,
    HashMap<String, Serializable> parameters_recon =
    bulkOrchestration.getParameters();
    but actually i should do,
    HashMap<String, Serializable>[] bulkParameters = bulkOrchestration.getBulkParameters();
    I am trying now and get back to you...

  • Automated campaign: Element only processing target groups

    Hello,
    I am using campaign templates to create automated campaigns. I tested all possibilities (setting a profile set to the campaign element, then setting a profile, and then a target group) and the execution only works with target groups. The worst part is that when the campaign is created he copies the target group from the profile set configured in the model to another profile set without name! That way is impossible to reuse it.
    Please advice
    Regards

    Hello,
    Thanks for your replies and sorry for not being clear.
    I have a campaign template that is configured as follows for automated campaign execution:
    The last screenshot is from the campaign element template, where the system only let me create a segment or target group and not reuse a profile group or target group, like in campaigns created without template.
    I tried to add the profile set outside the campaign automation view, but when I create a campaign from the template, the system creates a copy from that profile set.
    So the questions is:
    Is there a way to reuse profile groups/target groups when using Campaign templates like in normal campaigns (using the profile groups/target groups from the template, not copying them)?
    Thanks

  • Custom Attributes in Target Group Email Campaign Not Refreshed

    We have a campaign sending emails to a target group of BPs.  To fill our custom attributes with values  we have implemented our code in badi CRM_IM_ADD_DATA_BADI method CRM_IM_BPSELE.  We tested our code using the Test Send feature from the email form and all worked fine.
    But when we ran the campaign in the background for a Target Group with multiple BPs it would not work correctly, our attribute values were incorrect. 
    We discovered while debugging the job, that the badi gets run once for each BP, but the attribute values from the previous BP do NOT get refreshed.  In fact there are 2 entire sets of attribute records in the CT_ATT_VALUES table parameter.  Each time through it multiplies by another set of our attributes.
    I have put code in the badi as a workaround that deletes the previously filled attributes for the previous BP, but I'd like to figure out what is causing this problem.
    Any help would be appreciated.
    thanks,
    Lee

    Hi Lee,
    Is this issue resolved for you now??
    I am facing the similar problem.
    Though the BADi is not used for these two mails (it is used in some other mail forms), it is actually called in 'CRM_ERMS_MAIL_COMPOSE' Function Module and the process is same as u said. There are 2 sets of values.
    I am using a Mail Alert functionality where in a 'Mail Alert ON' is sent to field engineers (FE) and then upon FE accepting the work we will send a 'Mail Alert OFF' to FEs.
    Problem is, we get one or two fields data incorrectly sometimes. I am not able to find out the root cause yet.
    Please let me know if you have had any resolution to this!
    Thanks in advance.
    Chaitanya

  • Automatic Profile Set / Target Group Creation in SAP CRM

    Hi,
    Need some help on the listed process.
    Is there any procedure to create Profile Ser/Target group automatically based on certain criteria? We want to reduce the manual work of Profile/Target group creation for the users.
    We are currently using SAP CRM 5.0 and looking at options of creating Target Groups automatically based on infoset. The criteria used to model is below mentioned.
    - New Customers  & Head Office (They are the customer specific Z-fields in BP Master Data)
    - Relationship Data: Has contact person Relationship. This is based on the assignment of Contact person to the BP (i.e. Day when the Relationship assignment done to the respective BP Master Data --> under Relationship tab page.
    We are not using Attribute Set (that we assign to Marketing Attribute tab page of BP Master), for your information.
    Appreciate, if you could let us know whethe this is possible by Standard feature/ any work around on this.
    Kindly do the needful.
    Thanks,
    Rahul

    Hello Rahul,
    it is possible to create a target group from an external list as far as i am aware. Maybe have a look at
    http://help.sap.com/saphelp_crm50/helpdata/en/57/d7de42777c2978e10000000a155106/frameset.htm
    Regards
    Mark

  • Issue in Target Group creation of contact persons

    Hi,
    I am working on CRM 5.0. Using the segment builder creating target group to be attached to the campaign.
    I have created one target group of organizations with Marketing attributes attached to these BPs.
    Using this organizations target group as Master Group I am creating one more target group of contact persons of these organizations (using Contact persons relationship). The issue here is, out of these contact persons I require only those contact persons having interest in classical music. I have maintained this attribute in the BP master data of these contact persons.
    While creating the target group of such contacts in segment builder I am using this attribute to filter the data but I am getting all the contacts without any filter applied. My requirement is to only get those contact persons (belonging to the master group of organizations) having interest in classical music. Can anyone suggest how to achieve this?
    With regards
    Ambar Adhav

    Folks,
    We have implemented Accounts & Contact Management (BP) in our CRM System. Here the Issue is the Business User Can able to create an Account Successfully from Portal but when he is trying to create Relationship - "Has Contact Person" the following error has got occured -
    500 SAP Internal Server Error
    Error msg - Inconsistancy between Dictionary Types COMT_BSP_BP_TEL_T AND BAPIADTEL (Type of Termination: RABAX_STATE)
    Could you pls help me out and How can i proceed to scan the issue?
    Srujan
    Edited by: Srujan Kumar on Jan 19, 2008 8:27 AM

  • Creation of Campaign Id and assign Target Group to it.

    Hi all,
    I am facing a problem in creating a Campaign Id. This is the first time i am working on CRM Marketing Campaign, and i dont know the process of creating a Campaign id for a Target Group created for BP's. Please do help me in providing me any program or link where i can find the sample programs for creation of campaign id, Campaign Element, Profile Set, Target Group, Assigning BP's to Target Group.. I am presently using the below mentioned function modules/BAPI's for creation of Profile Set, Target Group etc.,
    For Profile Set Creation:                                         BAPI_PROFILESET_CREATE
    For Target Group Creation:                                    BAPI_TARGETGROUP_CREATE
    For Assigning Target Group to Campaign:             MKTPL_TGGR_ASSIGN_CREATE
    for Campaign Element:                                            MKT_ELEMENT_CREATE
    Please provide me complete program to explain the above.
    Thanks in Advance,
    Nagesh Thanneeru.

    hi,
    Target group is a group of BP, like a BP list.  It's a kind of master data which can be used in business transaction.
    And profile set is a base of target group, just like Product Hierachy and Product category.  Each target group should belong to a profile set. So create the profile set, before you create target group.
    Campaign is a kind of Marketing element of CRM Marketing.  In campaign, it need the BP or BP group or Target Group as its campaign objectives. Just like Customer of Sales Order, Vendor of Purchase order.
    Campaign can be assigned several target groups or BP or BP groups in it.
    So if you want to create campaign and assign target group to it, the steps is:
    1.  create a profile set  by BAPI_PROFILESET_CREATE
    2. create target group by BAPI_TARGETGROUP_CREATE, in this calling, you will use the profile set created before.
    3. create campaign by MKT_ELEMENT_CREATE
    4. assign the target group to your campaign, by MKTPL_TGGR_ASSIGN_CREATEl, the target group comes from step 2, the campaign comes from step 3

  • Clustering model ..target group creation ...error

    Hello All
    After i created a Clustered model successfully i went ahead to create a CRM target group and as the last step in the process I selected the Training source of my Clustering Model ,right clicked it and clicked Monitor
    The result shows that the CRM target group creation was incorrect.The following screeen shows the error screen.
    http://www.geocities.com/aditya_ponnam/errorscreen.JPG
    Please advise.
    Thank you
    Aditya

    Hi naveen
    Thank you.How can I check the RFC setting for my CRM system?Has it got anything to do with this problem?I have just started learning SAP BW and CRM.Please suggest.As a matter of fact, this error occured in the BW system.The version of BW system is 3.1 Support Package 6.I could not figure out anything from the error description.Please look at this error screensot.
    http://www.geocities.com/aditya_ponnam/errorscreen.JPG
    Thank you
    Regards
    Aditya

  • Changing default Target Group when creating transports.

    Hi All,
    We have 4 different target groups for the transports created in development systems. I would like to make one transport group default which is mainly used by majority of consultants.
    How to make one transport group default during creation of transport.
    Regards,
    Krishna

    And to just make it more clear :
    and here is the SAP help on the subject:
    Transport Layer in ABAP Workbench
    The Change and Transport System supports the distribution of development work on large projects across multiple SAP Systems.
    The packages in each development system are grouped into one transport layer.
    The transport layer determines whether objects are assigned to a local or transportable change request.
    Use
    Each of your SAP development systems is assigned a transport layer as its standard transport layer. If you use Extended Transport Control, you can assign different standard transport layers to certain clients.
    You can define at the most one consolidation target for each SAP System and transport layer.
    When you create a package, it is assigned the standard transport layer of the SAP System.
    If you want to assign a different transport layer to a package, you require the administration authorization for the Change and Transport System.
    The objects in a package automatically have the transport attributes defined for the corresponding transport layer.
    If a consolidation route originating in their SAP System is defined, then the objects are assigned to a transportable request, and transported into the consolidation target when it is released.
    If a consolidation route is not defined, the objects are assigned to a local request, and are not transported.
    Customizing settings are not assigned to a package. They have the transport attributes of the standard transport layer of the system or client.
    It is best to assign a package a standard transport layer for which a consolidation route originating in the development system is defined.
    To display and maintain the transport layers and routes, use the Transport Management System (transaction STMS).
    Only the system adminstrator can make changes.
    Caution:
    The tables TSYST, DEVL, TWSYS, TASYS are no longer productive as of Release 4.0A and cannot be maintained.
    Best regards,
    Menelaos

  • Target group changing

    Hello All,
    I've created TG "My TG" and attached it to a campaign "My campaign". I released campaign and transffered a group to a channel(call list in my case)
    After that I want to add additional BP to "My TG" and attach this group to the same campaign.
    According to help.sap.com I should delete the target group from campaign , change it and attach it again.
    But when I tryed to delete TG from campaign I got error message "Segment already transfered to a channel".
    Some suggestion?
    Is there some another way to add additional BP's to existing  target group and attached it to the same campaign?
    Thank you very much

    And to just make it more clear :
    and here is the SAP help on the subject:
    Transport Layer in ABAP Workbench
    The Change and Transport System supports the distribution of development work on large projects across multiple SAP Systems.
    The packages in each development system are grouped into one transport layer.
    The transport layer determines whether objects are assigned to a local or transportable change request.
    Use
    Each of your SAP development systems is assigned a transport layer as its standard transport layer. If you use Extended Transport Control, you can assign different standard transport layers to certain clients.
    You can define at the most one consolidation target for each SAP System and transport layer.
    When you create a package, it is assigned the standard transport layer of the SAP System.
    If you want to assign a different transport layer to a package, you require the administration authorization for the Change and Transport System.
    The objects in a package automatically have the transport attributes defined for the corresponding transport layer.
    If a consolidation route originating in their SAP System is defined, then the objects are assigned to a transportable request, and transported into the consolidation target when it is released.
    If a consolidation route is not defined, the objects are assigned to a local request, and are not transported.
    Customizing settings are not assigned to a package. They have the transport attributes of the standard transport layer of the system or client.
    It is best to assign a package a standard transport layer for which a consolidation route originating in the development system is defined.
    To display and maintain the transport layers and routes, use the Transport Management System (transaction STMS).
    Only the system adminstrator can make changes.
    Caution:
    The tables TSYST, DEVL, TWSYS, TASYS are no longer productive as of Release 4.0A and cannot be maintained.
    Best regards,
    Menelaos

  • Creation target group in CRM from SAP BW by Bex.

    Hi,
    I  am using RSCRMBW_TG_GENERATE_BUPA ABAP report to generate target group in CRM from Bex Query . On exection target group is created  in CRM but no record (business partner ) is transferred across .  I have assigned role "SAP_BW_CAMPAIGN_MANAGEMENT" to my user ID  and i have SAP_ALL authorization in user ID.
    Thanks
    Romita

    Hi Nimia,
    Did you manage to resolve this, I am having the same problem. I am not getting any errors and the target group is created but there is no data in the target group.
    Thanks,
    Rue.

  • Issues exporting file from Target group

    Hi Experts,
    Can someone let me know the process for exporting file from Target group, I am working on CRM 7.0 .
    or give me the SNOTE to implement the same.
    Thanks
    Leela

    Hi,
    for small Target Groups (i.e. Target Groups that can be displayed completely on the UI, < 10k members) you can export them via the export to spreadsheet button on the header of the Target Group item page (right side). Note that only the members that are shown in the table on the UI are exported. For bigger Target Groups, you can only export them to the application server. To do this, you will have to press the "Export to File" button on the header of the Target Group page. this will schedule a job which exports your Target Group to the application server. You can download it from there using report CRM_MKTTG_FEXP_SHOW_FILE.
    Hope this helps
    --klaus

Maybe you are looking for

  • What's happening with LArch?

    What's the current status of LArch? The last update on the website says that since Arch dropped AUFS support, LArch doesn't work. Have there been any workarounds? With linux-aufs_friendly in AUR, is it possible to make LArch work? If yes, does that k

  • Why does saving an Illustrator file as PDF cause the image to be reduced on the PDF document?

    When I save a CS5 drawing as a PDF, the drawing is reduced in size on the resulting PDF page. This was not happening a few days ago, and I do not recall changing any settings. In fact, I have been unable to find any setting that affects this problem.

  • FB08 Print of reversal.

    Hi Gurus, If I have reversed an FI invoice with TC OB08, I cannot print it. I have tried to print with the same correspondence type as the invoice and also the correspondence type for credit memo, but get the error. No relevant item in document xxx;

  • Sub-interface numbering setup

    I can't find it officially stated in any Sun documentation, but I'm assuming that when a global zones boots, it checks /etc/zones/*.xml, using the XML file when starting up each zone to assign the appropriate resources? Is that correct? I'm just want

  • I can't get the profile manager to start in windows 7.

    I am running Firefox v5.0.1 in Windows 7 Ultimate with Service Pack 1 installed. I have followed the steps on Firefox help page to start the Profile Manager and cannot get it started. I have entered both "firefox.exe -ProfileManager" and ""C:\Program