Triggering of workflow by start transaction

hi all,
how can i trigger my workflow by start transaction method??
advance thanks
       regards
       SANA

<u><b>Transactions for Workflow Start</b></u> :
Use
The workflow system can generate a form transaction for workflows that have a structure as an import parameter. Data can be entered in the fields of the structure with the form transaction and the workflow is then started.
You can edit this transaction at a later date using the ABAP Workbench, for example to change the names of input fields or adapt the layout.
If you select a workflow in manual workflow start for which a form transaction is defined, this form transaction is executed. The workflow system responds in the same way if a start transaction had been created for the workflow in an earlier release. For more information, see Starting Workflows Manually.
Features
The workflow system generates a form transaction for a workflow with a structure as an import parameter to start this workflow. The input fields are derived from the fields of the import structure of the workflow container.
The workflow system generates the name of the transaction automatically from the ID of the workflow. The workflow system also generates the name of the function group automatically if you do not specify anything on the Function group tab page.
Activities
You generate a form transaction in the basic data of the workflow in the Workflow Builder. To do this, select  on the Start forms tab page in the version-dependent basic data. You can also process existing start forms from here. For more information, see Version-Dependent Basic Data of a Workflow.
If a start transaction was created for the workflow in an earlier release, you can also edit this in the version dependent basic data on the Start form tab page.
You can use the Screen Painter functions to revise the transaction generated. For more information, see  Screen Painter.
If you want to change the user interface status of the transaction generated, you must define a separate user interface status. You can use the user interface status DYNPRO as a model.
If useful.......reward points...
Regards,
Bhaskar

Similar Messages

  • Triggering workflow through Z transaction

    Hello All,
    My requirement is to trigger the JE workflow with Z tcode and after the document is approved & posted I have to put check that if the workflow has started with that z tcode then I have to create billing document, clearing document etc.
    My Questions is: Can we trigger the workflow with Z tcode and after the approval and posting - can we find out that with which z transaction the workflow has been triggered?
    Kindly suggest.
    Regards,
    Sangeeta

    I want to know- how do I find that after the document posting whether
    the workflow has started with ZGUPPARK or not.
    1. Create a container element in the workflow as a flag ( REP_FLAG ) populate this as 'X'from the report.
    2. Assuming that you are trying to trigger the workfloe by using the FM 8SAP_WAPI_START_WORKFLOW* in this fm if you look at the table parameters you have SIMPLE_CONTAINER of type SWR_CONT by this you can populate the field which is created in the WF.
    try like this
    DATA:
              lt_cont       type table of  SWR_CONT,
             ls_cont       type               SWR_CONT.
    ls_cont-element  = 'REP_FLAG'.
    ls_cont-value    =  'X'.
    APPEND ls_Cont t to lt_cont.
    now pass this lt_cont to the FM tables parmater this will fxi your issue and you can identify it.

  • Triggering of WorkFlow in Transaction CBIH12(EH&S)

    Good day All.
    We have created a customer object(transaction SWO1) for the Risk Assessment(transaction CBIH12) in EH&S. We have been looking for ways of triggering the WorkFlow for the Risk Assessment. The available user exits didn’t help.
    Is there anyone out there who has done these or advice us how to do it. 
    Regards
    Makoro Manyathela

    Thanks for the speedy response. We've tried that, but the "Change Document Object" for Risk Assessment in not included in the possible list.
    The following change document object for this transaction is CBIH_ERH for the Risk Assessment and CBIH_AC for the Safety Measure. This information can be seen in the change document CDHDR.
    Regards
    Makoro Manyathela

  • Completion of one workflow is triggering another workflow

    Hi Experts,
    I am facing a wierd issue. I have created a workflow to approve/reject a contract. In the start condition I have maitained a container attribute to check is the agent is not WF-BATCH AND activity type = 00001under conditions  there is only one event that is triggerred in all scenarios.
    Also to remove the workitem for the approvers inbox when the contract is settled/reversed directly from the transaction i have used an event step and a process control step within a loop.
    Everything is working fine in development system, but im facing a weird issue in QA.
    Once the workitem is approved the workflow is completed, but it is starting another workflow for the same contract number and when i check the containers that i hv used under conditions, those do not match.
    i.e the agent is WF-BATCH and activity type = 00000 . Then how come the workflow is started again ?
    Can any1 help.
    BR,
    Aaarvi.

    Hi Swami,
    Thank you for the quick response.
    I just found that, in my development system in event linkages a check fucntion module SWB_2_CHECK_FB_START_COND_EVAL is used, whereas the same is not used in QA.
    Can this be causing the issue by any chance?
    Aarvi.

  • Workflow not starting and RFC status is 'User Switch Is Not Possible'

    Hi All,
    I am using ABAP classes to raise an event that triggers the workflow.
    When I am executing the workflow from SWUS or raising event from SWUE or SE24, the workflow is starting fine.
    But when I am raising the event from a Webdynpro application, the same event is raised, but the workflow is not getting triggerred.
    I could see a record in SWEL, but the workitem is not created.
    In SWEL, it is showing the RFC status as 'User Switch Is Not Possible'.
    When I go to SM58, I am able to re-execute the failed transaction and this time the workflow is getting triggered.
    The same workflow is working fine in D env. but not in T env.
    The event linkages are all same and I also used the COMMIT WORK statement after raising the event.
    Another problem is the RFC status is sometimes set to SYSFAIL and sometimes as 'System overloaded, repeat immediately by batch' other than 'User Switch Is Not Possible'.
    Please help.
    Thanks,
    Cay.

    Hi,
    call function module AUTHORITY_CHECK_RFC explicitly before a remote call to be able to treat a possible exception. If the authorization exists, the function module does not return an explicit result but, like all successfully executed function modules, sets sy-subrc to 0. If sy-subrc is not equal to zero then it could be the problem with the user authorization.
    I also think it could alos possible because of your Host name check whether any changes are done to host name.
    Regards
    Pavan

  • Start forms and start transaction?

    Hi friends,
    I am new to workflow, and can anybody just explain me the concept of start transaction and start forms in the basic data of the workflow definition?
    Thank u,
    PoOrAnI

    hi  Poorani Davidraj    .
    start form mean , whenever form( eg : absence form ) as has been accessed workflow will be triggered .
    forms can be created on u r own .
    steps for creating forms.
    1) define a wf container element withe a structure for which u want to create  eg: ekko.
    2) goto basic data > start forms complete the form wizard .
    3) when ever the form will be accessed   , wf will be triggered .

  • Start transaction,  form transaction

    we can execute  the workflow manually and automatically
    if we executing manually,
    we can execute it directly or by start transaction or by  form transaction,
    i cant understand the start transaction and  form transaction
    can u help me
    thanks in advance.

    Hi,
        to start a WF you can use the function SAP_WAPI_CREATE_EVENT and SAP_WAPI_START_WORKFLOW. The Transaction available are SWUE (working with event) and SWUS.
    In SWUE you raise an event for the Obj of your WF and set the binding to event container. (it works only if your wf has a triggering event)
    In SWUS you must define the WF container and then start it manually.
    The function works with the same logic of the transaction.
    Regards,
        Gianluca

  • Starting transaction in SAPGUI via JCo

    Hello,
    I'm trying to start SAPGUI for Windows using parameter
    setSapGui(1), but the GUI Window does not show. When I'm using setAbapDebug(true)than the GUI window starts in debug mode.
    What can be wrong? Does anyone have any ideas?
    I'm trying to start transaction se11 using BAPI RFC_CALL_TRANSACTION.
    Code looks like this:
    // Obtain parameter list for function
          JCO.ParameterList input = function.getImportParameterList();
           // Obtain table for function
           JCO.Table BDCtable = function.getTableParameterList().getTable("BDCTABLE");     
          //BDCtable.setRow(0);
          BDCtable.appendRows(4);
          BDCtable.setValue("SAPMSRD0", "PROGRAM");
          BDCtable.setValue("0102", "DYNPRO");
          BDCtable.setValue("X", "DYNBEGIN");
          BDCtable.nextRow();
          BDCtable.setValue("BDC_CURSOR", "FNAM");
          BDCtable.setValue("RSRD1-TBMA_VAL", "FVAL");
          BDCtable.nextRow();
          BDCtable.setValue("BDC_OKCODE", "FNAM");
          BDCtable.setValue("=SHOW", "FVAL");
          BDCtable.nextRow();
          BDCtable.setValue("RSRD1-TBMA", "FNAM");
          BDCtable.setValue("X", "FVAL");
          BDCtable.nextRow();
          BDCtable.setValue("RSRD1-TBMA_VAL", "FNAM");
          BDCtable.setValue("BUKRS", "FVAL");
          BDCtable.nextRow();
          BDCtable.setValue("SAPMSRD0", "PROGRAM");
          BDCtable.setValue("0102", "DYNPRO");
          BDCtable.setValue("X", "DYNBEGIN");
          // Pass function parameters
          input.setValue(transactionName, "TRANCODE");
          //input.setValue(daneKlienta, "DANE_KLIENTA");
          conn.execute(function, conn.createTID());
    Regards Artur
    Message was edited by: Artur Welke

    Hi Artur,
    This answer is in relation to BSP but i think concept is same, it will give you an idea. This answer is taken from
    Brain's <a href="/people/brian.mckellar/blog/2003/10/23/bsp-trouble-shooting-frequently-asked-short-questions weblog.
    <i>Typical question: "We have developed a BSP application and we're trying to call some function. It doesn't work. However, if we execute the BSP application in debug mode, everything works fine. Why?"
    When you log onto a WebAS system the Dynpro engine is started that contains all the logic to handle interaction with the SAPGUI. For example, things such as rendering controls and doing file upload/download are all available.
    When you run an HTTP request into Web AS, a very special "dark" (or background) Dynpro is started. A minimal Dynpro is required to get ABAP up and running. But now there is no SAPGUI available, so no SAPGUI-based service will work. Also little things such as popup windows do not work.
    So why does the code work in the debugger? Because, once the debugger is triggered,it realizes that a normal Dynpro is required for the debugger and not the "dark" one. So the full-blown Dynpro engine is started, making all SAPGUI services available.
    You can consider finding the code that causes the error and bracket it with IF-statements in this function, so that no SAPGUI interaction is required in the context of a HTTP call.</i>
    Also visit this <a href="https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FthreadID%3D35880%26tstart%3D60">thread</a>, this will certainly help you.
    Regards,
    Narinder Hartala

  • Multiple Start Transactions

    This may be a long shot, but I'm aware that you can set your start transaction in the first screen (Extras >> Set start transaction) so that when you log on you are automatically in the required screen instead of the SAP Easy Access screen.
    But if there are 2 transactions you always use, is it possible to get SAP to load up one transaction and open up a new session in another transaction as soon as you log on?
    Any feedback would be greatly appreciated.

    Hi Kellis
    We cant have multiple sessions to be triggered during login. I would suggest you to set one of the transation as the 'Start transaction' and add the other one to your Favourites (right click on favouties icon, choose Insert transaction).
    Once you login to the start transaction, press Ctrl+ and a new session will be created. Double clcik on the other tcode in favourites.
    Sorry, couldnt think of any other options with less keystrokes and clicks
    Best Regards
    Sathees Gopalan

  • BTE 1030 - we use for AP documents, create an event that triggers a workflow

    Hello all,
    We use SAP's program RFBIBL00 to post AP documents.  We coded a function module that is called when BTE 1030 is reached.  Our FM creates an event that triggers a workflow.
    We are now doing some testing with an external vendor who is creating AP documents by doing an RFC  using function module BAPI_ACC_DOCUMENT_POST.
    It seems that this BTE, 1030, is not being triggered when the IDOC created by this function module posts the AP document.
    Has anybody else seen this issue and found a way to deal with it?
    Thanks
    Bruce

    AFAIK BAPI_ACC_DOCUMENT_POST and FI posting should trigger BTE 00001030 but BAPI_INCOMINGINVOICE_CREATE and AC interfacewould trigger BTE 00001050. (or is BAPI_ACC_DOCUMENT_POST also using AC interface, I will let you check it)
    Nevertheless call your FM triggered thru BTE 1030 also in a FM triggered thru BTE 1050. Also in the call check for update task
    function z_fi_00001050.
    call function 'TH_IN_UPDATE_TASK'
         importing
           in_update_task = in_update_task.
       if in_update_task eq 0 and i_xvbup eq 'X'.
         call function 'Z_FI_00001030' in update task
           exporting
             i_xvbup = ' '
           tables
             t_bkpf  = t_bkpf
             t_bseg  = t_bseg..
       else.
         call function 'Z_FI_00001030'
           exporting
             i_xvbup = ' '
           tables
             t_bkpf = t_bkpf
             t_bseg = t_bseg...
       endif.
    Regards,
    Raymond

  • SharePoint Online workflow not starting

    Hi All,
    I am an administrator for a company and I have been asked to create a workflow for them.
    I created 2 workflows using SharePoint designer 2013. The 2010 workflow works as expected.
    I created the 2013 workflow because I can use loops. However the 2013 workflow doesn't automatically start when an item is created. but works if I start it manually. I have checked and made sure that the check box is ticked for the workflow to start automatically.
    The workflows go like this.
    Step: Query Type
     If Current Item:Query_Type equals Phone
      Set Status to Opportunity
     Else
     If Current Item:Query_Type equals Email
      Email Current Item:Sales_Rep2
      Pause for 0 days, 0 hours, 15 minutes
      If Current Item:Follow_Up equals No
       Email Current Item:Sales_Rep2
    Step: Rental or Not
     If Current Item:Rental equals Yes
      Email Current Item:Sales_Rep2
      Pause for 0 days, 1 hours, 0 minutes
      If Current Item:Quote_Sent equals No
       Email Current Item:Sales_Rep2
      Else
      If Current Item:Rental equals No
       Email Current Item:Sales_Rep2
       Pause until Current Item:Date to Send Quote
       Email Current Item:Sales_Rep2
    And the 2013 one goes like this
    Stage:Follow Up
     Loop: Email to manager
      The contents of this loop will run repeatedly while: Current Item:Follow_Up equals No
       Pause for 0 days, 1 hours, 0 minutes
       If Current Item:Follow_Up equals No
        Email Current Item:Manager
     If Current Item:Follow_Up equals Yes
      Set Status to Opportunity
    Transition to stage
     Go to Rental or Not
    Stage:Rental or Not
     Loop: Escalation
      The contents of this loop will run repeatedly while: Current Item:Quote_Sent equals No
       Pause for 2 days, 0 hours, 0 minutes
       If Current Item:Quote_Sent equals No
        Email Current Item:Manager
     Loop: Escalation
      The contents of this loop will run repeatedly while: Current Item:Quote_Sent equals No
       Pause for 7 days, 0 hours, 0 minutes
       If Current Item:Quote_Sent equals No
       and Current Item:Date to Send Quote is greater than Current Item:Date to Send Quote
        Email Current Item:Manager
    Transition to stage
     Go to End of Workflow
    If this makes sense? If not can anybody give me advice on how to get this working the way it is expected to work?

    Hi,
    From your description, After you modified the workflow and added "App Step" to it and "Pause" actions apart from few other modifications, you got the issue that
    SharePoint 2013 Workflow not starting when a new item is crated.
    Whether you got the issue Before you modified the workflow.
    I have done a test in my SharePoint 2013 and it works fine.
    I suggest you update SharePoint to the latest CU.
    Here is an blog similar with your issue, you can use as a reference:
    http://blogs.msdn.com/b/sridhara/archive/2014/08/19/fix-sharepoint-2013-workflow-recursion-prevention-part-1.aspx
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Problem starting transaction for MDB

              Hello All,
              I have a MDB configured as Container managed transaction.
              Sometimes I rollback a message sent to a Queue.
              The problem is that sometimes the WEBLOGIC log show the follow error and do not
              start a JMS service.
              Anyone had this problem before?
              Thanks.
              <Mar 3, 2004 4:51:13 PM GMT-03:00> <Error> <JTA> <BEA-110424> <An unexpected exception
              was caught during begin: java.lang.NullPointerException
              at java.security.SecureRandom.setSeed(SecureRandom.java:369)
              at weblogic.transaction.internal.XidImpl.seedRandomGenerator(XidImpl.java:378)
              at weblogic.transaction.internal.XidImpl.create(XidImpl.java:266)
              at weblogic.transaction.internal.TransactionManagerImpl.getNewXID(TransactionManagerImpl.java:1719)
              at weblogic.transaction.internal.TransactionManagerImpl.internalBegin(TransactionManagerImpl.java:249)
              at weblogic.transaction.internal.ServerTransactionManagerImpl.internalBegin(ServerTransactionManagerImpl.java:303)
              at weblogic.transaction.internal.ServerTransactionManagerImpl.begin(ServerTransactionManagerImpl.java:259)
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:253)
              at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              <Mar 3, 2004 4:51:13 PM GMT-03:00> <Error> <JMS> <BEA-040368> <The following exception
              has occurred:
              java.lang.RuntimeException: [EJB:010166]Error occurred while starting transaction:
              javax.transaction.SystemException: java.lang.NullPointerException.
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:277)
              at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              

    Thanks for ur help!
              WLS 8.1
              <JDBCTxDataSource EnableTwoPhaseCommit="true"
              JNDIName="JDBCDataSource" Name="JDBCDataSource"
              PoolName="JDBCConnectionPool" Targets="myserver"/>
              WLS 7.0
              <JDBCDataSource JNDIName="JDBCDataSource" Name="JDBCDataSource" PoolName="JDBCConnectionPool"/>
              Because JDBCDataSource is the default datasource when you create a new datasource in WLS7.0, JDBCTXDataSource is the default datasource in WLS8.1.
              After I changed the config.xml, it's ok!
              > Can u please post the DB Connection Pool & DataSource
              > part of config.xml from both (7 & 8.1) your
              > environments ?
              >
              >
              > Cheers!
              > Dips

  • Document Library - Workflow not starting on copied Word Document

    HELLO EVERYBODY!
    Right, got a weird issue on a Document Library, where if the Document Library already contains a Word Document with a Title of 'Document 1' and i download the document, make a change and re-upload it. The document uploads as a new separate file but it retains
    the same 'Document 1' title.
    My problem is that for some reason SharePoint isn't seeing this newly uploaded document and therefore it is not running the workflow on it?
    This really confuses me, as it will work with new documents, but it will not work if you download a Word document, change it and re-upload the document as a new version, the workflow will not start.
    Any ideas are welcome.
    Thanks,
    Tucker

    Hi Tucker,
    According to your description, my understanding is that the workflow which was set to start when an item is created cannot start when uploading a copy of a document existing in the library.
    I tested the same scenario per your post, and the workflow can start automatically.
    As the workflow can start automatically when uploading a new document, it is not the issue with the workflow.
    I recommend to verify the things below:
    Did you upload the copy with a new name as a separate file or as a new version to the existing document to the library?
    Test with a new library and a new document to narrow the issue scope.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Attempt to start transaction on SQL server

    I have managed to successfully configure Oracle 8.1.7 on NT to retrieve data from a MS
    SQL Server (version 6.5)
    However, one of the databases we are accessing is set up as read only; Oracle is
    attempting a start transaction, as it recognises that the SQL server can take
    part in distributed transaction. I am doing something like
    insert into mytable (a, b, c) select a, b, c from remote_table@sql_server
    Because the SQL Server is in read-only mode, the 'start transaction' fails,
    and the insert statement fails as a whole (I've examined the trace file, and the
    error I'm getting is reproducable on the SQL server if I type it in)
    I've tried looking at the data dictionary, and sure enough it is set up for
    2 phase commit as per the documentation.
    My question is, can I tell Oracle to not attempt the 'start transaction' on the
    remote system? I've tried various DBMS_HS calls but to no avail (from the
    documentation I believe the agent overrides the data dictionary entries anyway)
    Thanks,
    Colin McPherson

    Colin,
    This looks like bug 1622021. This bug has been fixed in v9.0.1 of the gateway.

  • Triggering outbound idoc from the transaction VL01N

    Hi,
    I have requirement where in which i need to create outbound idoc of sales and delivery data as soon as VL01n transaction is saved,Pls let me know how we can achived this , the Idoc needs to be triggered immediatly after saving VL01n transaction.
    Thanks
    Ravi

    >
    Sujatha Reddy wrote:
    > Hi Ravi,
    >
    > Goto t-code NACE, select Shipping and press push button 'Output Types', now you will get the output type for delivery and you can configure you own output meduim in this screen.
    > select the meduim & assign the require parameters.
    >
    > and goto VL01N and create a delivery and now you can goto extrats-> delivery out put-> header, here you can assign the output type that has been confugured perviously.
    >
    > -hope this helps
    You could of instead told them to search the forum like I did. Instead you chose to give him the answer, even though it is not the full answer. After they have done what you ask, what result would you expect form the output record on the delivery. I will tell you, it will not process, why, because you have not mentioned anything about partner profiles and the output control.
    But I hope you get the points for you reponse and you sleep well.

Maybe you are looking for