Send control to a specific activity

Is there a way to send control to a specific Activity instead of the next or back to the same activity or to a previous activity when a user presses a button "Back to Activity" on his UI
For e.g.
switch (result) {
case "BackToActivity":
action = BACK;
break;
default:
action = ABORT;
break;
Instead of action = BACK can we write action = "Update Status Activity"?
Edited by: user8766631 on Sep 16, 2009 3:25 PM

I agree with Nils.
You could accomplish something similar to this using the Grab activity. The Grab that has a "from all / to all" property set can send an instance from anywhere to anywhere in the process. I'd caution you to go lightly using this and only put a Grab in a supervisor's role. Moving work items can be risky and dangerous (haven't used that phrase in a while) in a production system if the end user doesn't know what they are doing. Don't give all end users the Grab capability or you will have chaos instead of a process.
You could let the end users keep the instance in the same activity (instead of always having the instance move to the next activity) a couple different ways. You can have the presentation have a "Save" button with the "save" action. This will save the user's changes, but keep the instance in the same activity. You can set the action predefined variable to "REPEAT" in a screenflow to keep the instance in the same activity.
Just my opinion, but try to push back on the requirement to send the instance to the previous activity unless there is a need to collaborate. If this is a collaboration design pattern, then use a conditional transition to go back.
Hope this helps,
Dan

Similar Messages

  • Error when sending control recipe to external destination

    Hi,
    When Iam trying to send control recipe to external destination through CO53, Iam getting the status of the control recipe as 'Sent'. But when I check the tRFC log, I get the status, "connection closed (no data) ".
    By selecting the line in the log and executing the LUW I get the message, target system/gate way not active.
    In the external system I get the message " Illigal activity"
    I checked the RFC connection in SM59 and connection is ok.
    The RFC is working from SE37 and the control recipe can be processed without any issues through SE37. The problem is when I try to send from CO53.
    Request your expert advice to solve at the earliest.
    Thanks in advance
    Prathib

    Hi Prathib, Have you got the solution to this problem

  • Abap cod e required  for  send an email with specific template

    hi guru's
    i want to send an email with specific template ,which contain some email links in the body of the email,and some of the font will be in different colour
    i want load the template it in to abap program as it is.is this possible. please let me know.
    where can i maintain the template,

    hello
    check this may help u
    TABLES: ekko.
    PARAMETERS: p_email TYPE somlreci1-receiver
    DEFAULT 'xyzlive.com'.
    TYPES: BEGIN OF t_ekpo,
    ebeln TYPE ekpo-ebeln,
    ebelp TYPE ekpo-ebelp,
    aedat TYPE ekpo-aedat,
    matnr TYPE ekpo-matnr,
    END OF t_ekpo.
    DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
    wa_ekpo TYPE t_ekpo.
    TYPES: BEGIN OF t_charekpo,
    ebeln(10) TYPE c,
    ebelp(5) TYPE c,
    aedat(8) TYPE c,
    matnr(18) TYPE c,
    END OF t_charekpo.
    DATA: wa_charekpo TYPE t_charekpo.
    DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
    WITH HEADER LINE.
    DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
    WITH HEADER LINE.
    DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
    t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    w_cnt TYPE i,
    w_sent_all(1) TYPE c,
    w_doc_data LIKE sodocchgi1,
    gd_error TYPE sy-subrc,
    gd_reciever TYPE sy-subrc.
    *START_OF_SELECTION
    START-OF-SELECTION.
    *Retrieve sample data from table ekpo
    PERFORM data_retrieval.
    *Populate table with detaisl to be entered into .xls file
    PERFORM build_xls_data_table.
    *END-OF-SELECTION
    END-OF-SELECTION.
    *Populate message body text
    perform populate_email_message_body.
    *Send file by email as .xls speadsheet
    PERFORM send_file_as_email_attachment
    tables it_message
    it_attach
    using p_email
    'Example .xls documnet attachment'
    'XLS'
    'filename'
    changing gd_error
    gd_reciever.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
    PERFORM initiate_mail_execute_program.
    *& Form DATA_RETRIEVAL
    *Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
    SELECT ebeln ebelp aedat matnr
    UP TO 10 ROWS
    FROM ekpo
    INTO TABLE it_ekpo.
    ENDFORM. " DATA_RETRIEVAL
    *& Form BUILD_XLS_DATA_TABLE
    Build data table for .xls document
    FORM build_xls_data_table.
    CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
    con_tab TYPE x VALUE '09'. "OK for non Unicode
    *If you have Unicode check active in program attributes thnen you will
    *need to declare constants as follows
    *class cl_abap_char_utilities definition load.
    *constants:
    con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
    con_cret type c value cl_abap_char_utilities=>CR_LF.
    CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
    INTO it_attach SEPARATED BY con_tab.
    CONCATENATE con_cret it_attach INTO it_attach.
    APPEND it_attach.
    LOOP AT it_ekpo INTO wa_charekpo.
    CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
    wa_charekpo-aedat wa_charekpo-matnr
    INTO it_attach SEPARATED BY con_tab.
    CONCATENATE con_cret it_attach INTO it_attach.
    APPEND it_attach.
    ENDLOOP.
    ENDFORM. " BUILD_XLS_DATA_TABLE
    *& Form SEND_FILE_AS_EMAIL_ATTACHMENT
    Send email
    FORM send_file_as_email_attachment tables pit_message
    pit_attach
    using p_email
    p_mtitle
    p_format
    p_filename
    p_attdescription
    p_sender_address
    p_sender_addres_type
    changing p_error
    p_reciever.
    DATA: ld_error TYPE sy-subrc,
    ld_reciever TYPE sy-subrc,
    ld_mtitle LIKE sodocchgi1-obj_descr,
    ld_email LIKE somlreci1-receiver,
    ld_format TYPE so_obj_tp ,
    ld_attdescription TYPE so_obj_nam ,
    ld_attfilename TYPE so_obj_des ,
    ld_sender_address LIKE soextreci1-receiver,
    ld_sender_address_type LIKE soextreci1-adr_typ,
    ld_receiver LIKE sy-subrc.
    ld_email = p_email.
    ld_mtitle = p_mtitle.
    ld_format = p_format.
    ld_attdescription = p_attdescription.
    ld_attfilename = p_filename.
    ld_sender_address = p_sender_address.
    ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
    w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
    w_doc_data-obj_langu = sy-langu.
    w_doc_data-obj_name = 'SAPRPT'.
    w_doc_data-obj_descr = ld_mtitle .
    w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
    CLEAR w_doc_data.
    READ TABLE it_attach INDEX w_cnt.
    w_doc_data-doc_size =
    ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
    w_doc_data-obj_langu = sy-langu.
    w_doc_data-obj_name = 'SAPRPT'.
    w_doc_data-obj_descr = ld_mtitle.
    w_doc_data-sensitivty = 'F'.
    CLEAR t_attachment.
    REFRESH t_attachment.
    t_attachment] = pit_attach[.
    Describe the body of the message
    CLEAR t_packing_list.
    REFRESH t_packing_list.
    t_packing_list-transf_bin = space.
    t_packing_list-head_start = 1.
    t_packing_list-head_num = 0.
    t_packing_list-body_start = 1.
    DESCRIBE TABLE it_message LINES t_packing_list-body_num.
    t_packing_list-doc_type = 'RAW'.
    APPEND t_packing_list.
    Create attachment notification
    t_packing_list-transf_bin = 'X'.
    t_packing_list-head_start = 1.
    t_packing_list-head_num = 1.
    t_packing_list-body_start = 1.
    DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
    t_packing_list-doc_type = ld_format.
    t_packing_list-obj_descr = ld_attdescription.
    t_packing_list-obj_name = ld_attfilename.
    t_packing_list-doc_size = t_packing_list-body_num * 255.
    APPEND t_packing_list.
    Add the recipients email address
    CLEAR t_receivers.
    REFRESH t_receivers.
    t_receivers-receiver = ld_email.
    t_receivers-rec_type = 'U'.
    t_receivers-com_type = 'INT'.
    t_receivers-notif_del = 'X'.
    t_receivers-notif_ndel = 'X'.
    APPEND t_receivers.
    CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
    EXPORTING
    document_data = w_doc_data
    put_in_outbox = 'X'
    sender_address = ld_sender_address
    sender_address_type = ld_sender_address_type
    commit_work = 'X'
    IMPORTING
    sent_to_all = w_sent_all
    TABLES
    packing_list = t_packing_list
    contents_bin = t_attachment
    contents_txt = it_message
    receivers = t_receivers
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    Populate zerror return code
    ld_error = sy-subrc.
    Populate zreceiver return code
    LOOP AT t_receivers.
    ld_receiver = t_receivers-retrn_code.
    ENDLOOP.
    ENDFORM.
    *& Form INITIATE_MAIL_EXECUTE_PROGRAM
    Instructs mail send program for SAPCONNECT to send email.
    FORM initiate_mail_execute_program.
    WAIT UP TO 2 SECONDS.
    SUBMIT rsconn01 WITH mode = 'INT'
    WITH output = 'X'
    AND RETURN.
    ENDFORM. " INITIATE_MAIL_EXECUTE_PROGRAM
    *& Form POPULATE_EMAIL_MESSAGE_BODY
    Populate message body text
    form populate_email_message_body.
    REFRESH it_message.
    it_message = 'Please find attached a list test ekpo records'.
    APPEND it_message.
    endform. " POPULATE_EMAIL_MESSAGE_BODY
    Thank u,
    santhosh

  • Sending sms to a specific port using j2se

    Hi,
    I want to send sms to a specific port from j2se platform not from j2me.Is there any way to send it through a modem or through a third party service provider like SMSJunction or Clickatell?If anyone have the code of doing this,plzz help me.
    Arnab.

    I don�t know but i use the JAVA ME JSR 120
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import javax.wireless.messaging.*;
    public class SmsConnecter // implements MessageListener
         String port = "5001";
         public SmsConnecter()
    public boolean sendSMS(byte data[]) {
         try {
              String destAddress = "sms://4681234567:5001";
              MessageConnection smsConnection =
                   (MessageConnection)Connector.open(destAddress);
              //Create binary message
              BinaryMessage binaryMSG = (BinaryMessage)smsConnection.newMessage(
                   MessageConnection.BINARY_MESSAGE);
              //Setting destination add
              binaryMSG.setAddress(destAddress);
              //Add payload data
              binaryMSG.setPayloadData(data);
              //Now send the message
              smsConnection.send(binaryMSG);
              smsConnection.close();
              return true;
         } catch(Exception e) {
              //System.out.println("e="+e);
             return false;   
    }Ad about port...
    Port number Description
    2805 WAP WTA secure connection-less session service
    2923 WAP WTA secure session service
    2948 WAP Push connectionless session service (client side)
    2949 WAP Push secure connectionless session service (client side)
    5502 Service Card reader
    5503 Internet access configuration reader
    5508 Dynamic Menu Control Protocol
    5511 Message Access Protocol
    5512 Simple Email Notification
    9200 WAP connectionless session service
    9201 WAP session service
    9202 WAP secure connectionless session service
    9203 WAP secure session service
    9207 WAP vCal Secure
    49996 SyncML OTA configuration
    49999 WAP OTA configuration
    //Mickenull

  • Bpc 7.5 - not sending data on a specific application

    Hi I use SAP BPC 7.5 SP7 patch 1 with Microsoft Sql Server 2008.
    I moved my AppSet from a server 32bit to a server 64bit.
    On 32bit server everything works fine.
    On 64bit server (64bit configurations written in BPC installation guide applied + no error in Server Manager > DIagnostic): I can't send data on a specific application I have.
    On 64bit server: I precessed all dimensions and all applications and then I even optimize. Nothing change.
    I have to applications: A and B.
    On Application A I can send data correctly.
    On application B in my Input schedules when I send data: everything seems to work fine but afer data refresh on my sheet the value disappear and nothing is written into FactWB table. No error displayed.
    Those input scheules are the same I have and working on 32 bit server.
    No errors into Windows event viewer so... what can I check or do more? How can I fix it?
    Edited by: Francesco Andolfi on Feb 10, 2012 7:56 PM

    Hi Francesco,
    have you tried modify application on B?
    have tried if you can send data through a new simple input schedule?
    Kind regards
    Roberto
    Edited by: Roberto Vidotti on Feb 10, 2012 8:35 PM

  • Need to send notification to a specific person based on condition

    Please help.
    I need to send notification to a specific person based on condition. When a specific hold is placed on an invoice, send a notification to the Buyer who is referenced on the Purchase Order that is associated with that invoice. It will be an FYI notification.
    I'm looking at APINVHDN AP Hold Maiin Process. I thought possibly adding a notification into the "No" condition after the GET_APPROVER function since there would not be an approver on the invoice since it's on hold.
    Any ideas would be very much appreciated.

    Try the LiveCycle Designer forum.

  • How to check the tran code for specific activity.

    Hello friends ,
    could you please let me know how to check the tran code for specific activity . AS in table , i can check , what transaction does what ? But now i need to check the transaction for specific activity .
    E.g , For Administrator workbench , there is transcation like RSA1 .
    thanks in advance
    Regards

    Hi,
    try the TSTC table with SE16.
    Hope it helps,
    MG

  • Indirect costs allocated to specific activity type

    I am trying to take costs from an indorect cost centre, and based on cost element groups, post it into a specific (production) cost centre activity type.
    (I know the best way to do this is with KSCB, but the users entered thewrong master data in KP26, so it is either finding another solution, or recreate all the cost centres, with everything that that implies....)
    Currently I am assessing using separate secondaries for each activity type. But because they are secondaries, I cannot get them included into specific activities via KP06 at the direct production cost centre. Alternatively I am trying to get the spliiting to link the secondary to a specific activity type, but I am not getting that working.
    Any ideas would be greatly appreciated.
    Distributions rather than assessment?

    Now that I have actually assigned the splitting structure to the cost centre, it works a lot better....

  • BAM Data Control - Group query with Active Data Service

    Trying to get a group query from a BAM data control to work with Active Data Service in an ADF application (JDeveloper 11.1.1.4.0).
    With a flat query, as the data changes, I can see DataChangeEvents fired, resulting in a data push to the client -
    <BAMDataChangeEventFilter> <log>
    #### DataChangeEvent #### on [DataControl name=CEP_Person_DOB_Flat, binding=data.view_mainPageDef.FlatDOB1.view_pageDefs_FlatDOBViewPageDef_WEB_INF_FlatDOB_xml_FlatDOB.QueryIterator]
    Filter/Collection Id : 1966
    Collection Level : 0
    Event Id : 5
    ==== DataChangeEntry (#1)
    ChangeType : INSERT_AFTER
    KeyPath : [2157, 0]
    InsertKeyPath : [null, 0]
    AttributeNames : [id, _PersonKey, _County, _Surname, _AGE, _DOB, _Country, _FirstName]
    AttributeValues : [2157, 10008/129, Vagzukarbsm, Gnnfzxxyqfgpsijcr, 110, Thu Dec 26 00:00:00 GMT 1901, Ekcqvrkoksr, Vwhm]
    When I try a group query on the same data, currently just trying to group by _DOB for every 10 years to count the number of people, I get no data change events fired, so don't get any data pushed to the client, though the data has been changed if I refresh the page.
    Any ideas ?

    can you include bam and jdev versions and also include exception from logs?

  • Unable to create a specific Active Directory mobile Account

    Dear Community,
    I do have a problem with one workstation when I want to login with a specific Active Directory mobile user account. The login window will shake and refuse login due to invalid credentials... but this is not true, on other workstations the same account works without any problem. And also the Active Directory settings are verified and correct and other mobile account also work.
    So I tried to create the mobile account manually via Terminal :
    sudo /System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobilea ccount -n username
    sudo createhomedir -c -u username
    But this command results in an error that the account already exists, trying to delete, again an error null, etc... so no way.
    So I tried to start up in Single-User-Mode and get into dscl to finally delete this mysterious account daemon... but again I'm resulting in an error:
    dscl . -delete /Users/{username}
    <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)
    Anyone any idea how to get this base cleaned so I can make this specific operator work on this specific Mac ? Help greatly appreciated. Thanks
    Cheers

    Could it be DNS cache?
    http://old.nabble.com/%3Cdscl_cmd%3E-DS-Error%3A--14009-%28eDSUnknownNodeName%29 -td30706666.html
    The LSAP DB?
    http://old.nabble.com/Bad-Users!-td19172901.html
    Or even this?
    https://discussions.apple.com/thread/1448801?start=0&tstart=0

  • Send mail at a specific time?

    Is there any way with mail that I can write and email and then have the program send it at a specific time or date?
    Thanks.

    Anyone?

  • Phone won't let me send texts to one specific number.

    Hello,
    I recently discovered a problem with my Motorola Droid Mini phone, where it will not let me send texts to one specific number, but it will let me send texts to other numbers. I have tried rebooting my phone, deleting the number from my contacts and entering it manually, and have tried re-entering it into my contacts. None of this has worked so far, so any other suggestions would be very helpful.
    Thanks in advance!

        sportsfox we'll get this figured out! Have you ever been able to text this number? Has this individual recently made any device changes? Are you able to receive messages from this number?
    AshleyS_VZW
    Follow us on Twitter @VZWSupport

  • Why all of a sudden will my iPad not send emails to one specific address at work but still works to everyone else? just keeps saying "failure to send"

    Why all of a sudden will my iPad not send emails to one specific address at work but still work to everyone else at work?

    Contact the person by telecon. Their email address may have changed.
     Cheers, Tom

  • C#: Sending email from a specific account when multiple accounts exist in Outlook?

    Somehow I accidentally deleted this message trying to edit it... sorry.
    Microsoft.Office.Interop.Outlook.Application outApp = null;
    outApp = Marshal.GetActiveObject("Outlook.Application") as Microsoft.Office.Interop.Outlook.Application;
    MailItem mailItem = (MailItem)outApp.CreateItem(OlItemType.olMailItem);
    mailItem.Subject = "Director Script Confirmation Request";
    mailItem.To = person;
    mailItem.Body = message;
    //mailItem.Display(false);
    mailItem.Send();
    How do I send email from a specific account when multiple accounts exist in Outlook?
    Below is the code that I have. I think I'm supposed to use the AddressEntry or AddressEntries to designate where emails are sent from. However, at the moment, I haven't found an example.
    SV

    Hello SV,
    The MailItem class provides the
    SendUsingAccount property which allows to set an Account object
    that represents the account under which the MailItem is
    to be sent. Here is what MSDN states:
    The SendUsingAccount property can be used to specify the account
    that should be used to send the MailItem when the Send method
    is called.
    Sub SendUsingAccount()
    Dim oAccount As Outlook.account
    For Each oAccount In Application.Session.Accounts
    If oAccount.AccountType = olPop3 Then
    Dim oMail As Outlook.MailItem
    Set oMail = Application.CreateItem(olMailItem)
    oMail.Subject = "Sent using POP3 Account"
    oMail.Recipients.Add ("[email protected]")
    oMail.Recipients.ResolveAll
    oMail.SendUsingAccount = oAccount
    oMail.Send
    End If
    Next
    End Sub

  • IMessage Problem: cannot send iMessage to a specific contact!

    So here is the problem:
    It's about 24 hours I cannot send iMessage to a specific contact only! Both of us have access to the internet and both of us can send iMessages to other contacts.
    We have tried rebooting the phone, and turning iMessage on and off.
    If it matters, we both live in Sweden and use different MNOs but still we are both on Wifi and cannot send and receive iMessages.
    Could anyone give me and idea of what to do?!
    Oh..and Apple...your iMessage is reaaaaaaally bougus.. do something about this pile of crap.

    I had this problem with my sister living in Austria and I am in the States and at first I wondered if it was some international problem.
    Are you sure you both have your apple ID's programmed into your contacts? For some reason it wasn't registering my sister's phone number as an iPhone but when I added her apple ID e-mail, it sends fine. I just have to iMessage her to THAT particular e-mail. That's the only way I was able to sort this same problem. iMessaging her to that e-mail works just fine.
    I've iMessaged people in the states before just using their phone number only and not having their apple ID e-mail but with messaging to my sister in Austria, I have to use her e-mail. Wondering if anyone else has this issue with international iMessaging? I've iMessaged someone in Australia before with just their phone number and it worked fine so maybe it's completely random? I don't know. But definitely check and see if you have their apple ID in there in their contact information and try to iMessage them on that. See if it works! It did for me.

Maybe you are looking for