How to trigger a standard workflow task in customizing program?

Hi experts,
Does any1 have any ideas about how to trigger a standard workflow task in customizing program? Is there any FMs can be used to do this?
Thx in advance. Points will be rewarded.
Vincent

will followiign Fms help -
'SWE_EVENT_CREATE'
SWR_START_WORKFLOW
SWU_START_WORKFLOW

Similar Messages

  • How to trigger FI Standard Workflows

    Hi,
    I have never worked on FI Standard Workflows . As far as I knpow there is a std WF available  WS00400012 with Object type BSEG. For Vendor Down Payment Request, Vendor Payment Request Against Invoice, Vendor Down Payment Posting,Vendor Payment Posting, Vendor Invoice FI, Vendor Invoice Logistics Posting, Vendor Credit Memo, Vendor Debit Memo, Cash Payments, Asset Posting what are the Standard Workflows available and how to trigger these workflows. I have checked with SWELS but WS00400012  is not getting triggered. Is there any SPRO config required for this, POlease help me out with the solution.
    THanks
    Edited by: Saujanya GN on Sep 16, 2008 8:23 AM

    Hello Munish,
    As Venugopal has mentioned, you have to find the relevant BTE for the process and use it to raise an event and in turn trigger the workflow.
    The following is the process to find a BTE and implementing it.
    (1)Goto transction FIBF .Execute it with Attribute type = 'A' and then menu Environment->Info System (P/S ).
    Choose the relevant BTE using the descriptions provided.
    (2)Select the BTE you want to implement.
    (3)Press button Sample function module
    (4)This brings you to SE37 - Copy the sample function module to a Z-function module (First create a new function group for the function module) . Note: The name of the Z-functionmodule is not important
    (5)Edit the code in the new function module
    (6)Go back to transaction FIBF - Menu Settings->Products -> Of a customer and create a new product whicj identifies the new product . Remember to mark the Active field.
    (7)Go back to FIBF menu Settings->P/S function modules->of a customer - Create an entry that links the BTE and Product with the new function module
    Hope this will help.
    Regards,
    Samson

  • How to call a standard BOR method in a program.

    Hi All,
    How to call a standard BOR method in a program. For example I have to call BOR method ISUSMORDER.Release in my program but don't know how to call.
    Also, plz tell me how to capture the Exceptions in case of BOR method.
    Plz help me out in this.
    Thanks,
    Mithilesh

    Would be easier (however not always possible), to determine the functionality of this method and call that in your program. I mean, normally this method calls a BAPI, or function module (or a transaction). Have a look at the coding inside of the method, and try and use this.

  • How to copy a standard workflow template

    Hi,
    I have a standard workflow template. I need to copy this template i.e the whole workflow template and need to do some modifications.
    how can I copy the standard workflow template to create a new template. Is there any option in SWDD tcode.
    Thanks
    Nandha kumar

    hi Nandha Kumar,
    1-> goto Transaction PFTC
    2->choose Workflow template in the first drop down box
    3->Enter the standard WF number in the second field
    4-> click button <b>'Copy task'(4th button on the application toolbar)</b>
    5->Give the Abbreviation and Name for the new custom WF
    6->Click 'Copy Task' button, or press Enter
    Hope this helps,
    Sajan Joseph.

  • No SAP Standard workflow Tasks in the system

    Hi All
    Currently in our SAP System ( ECC6.0) , there is no standard SAP tasks nor templates are available in any of the clients . How to bring  the standard tasks and templates in the system .  Is it that we have to import from Client 000? If so , how to do that ? 
    Appreciate your help in this . Please pass any document or material on this .
    Thanks in advance .

    How do you know you do not have Template and Task. Probably you have checked with Tcode PFTC.
    I think you do not have authorization. After you get no task is in PFTC do a SU53 and ask your security team to provide the authorization.
    Thanks
    Arghadip

  • How to delete ad hoc workflow tasks in UWL centrally?

    Hi,
    While we were testing UWL function of Enterprise Portal in Netweaver 7.0, number of users created ad hoc workflow tasks in UWL.  We have recently decided to use Universal Worklist for Inbox-based workflow only (WebFlowConnector) and not to use it for ad hoc workflow (AdHocWorkflowConnector).
    Instead of asking all users to go in to UWL and delete all their ad hoc workflow tasks, I (as a System Administrator) like to delete all ad hoc workflow tasks myself, centrally.  Is this possible?  Does anyone know how to delete all ad hoc workflow tasks centrally?
    Thank you.
    Joon,

    Hi Joon,
    I think it will be really difficult to achieve what you want as each task is related to a particular user.
    I am not sure @ a Sysadmin can accessing other users' tasks.
    You can try looking for some way by using UWL apis.
    I think you can get all your user's adhoc tasks in an ItemCollection object by using append method of Itemcollection Interface and then see that deleting this object may achieve give u desired reults.
    Also try having a look at the IUWLItemManager interface.
    You will find these interfaces in com.sap.netweaver.bc.uwl
    See [here|https://help.sap.com/javadocs/NW04S/current/uw/index.html]
    I hope it helps.
    Regards,
    Sumit

  • How to activate the standard workflow :ws10000051

    hello,experts
        here is my problem:
        I want to activate the standard workflow for document parking :ws10000051 .
         I have already activate the event type linkage in SWE2.
        And then ,  i maintian  obwa , obwj , obwb, obwc, obwd.obwe,obwf.
         In obwa,i choose posting release  , subworkflow is ws10000055. 
        In obwe, Swf amnt rel  is  ws10000052.  
        In obwf , the org object is the position cfo (myself), before i assign this ,i create a position in ppoce.
       But, when i use f-65 to park a document ,  i can't receive any workflow in sbwp. I also find "the status of Document Parking (Frame), Parallel  is error " in my outbox.
       Can anyone tell me the reason ?
       Thanks !

    hi ,hari,
        you are right . when i check swel ,i  found ws10000051  : evnet put in the queue .  more detail message said :The OPEN_DI of BTE 00002214 could not determine any function modules.  
    when i check the workflow log (view with technical details), the activity :' determine subworkflow for amount release of document etermine subworkflow for amount release of docu ' status error . the message said :error in workflow customizing for document parkig (transaction obwe).
    i don't understand this , because i have already maintian  obwe. i made a new entry,like this:
    wrkf :1000   (workflow name)
    apth: 1000   (workflow approval path)
    ammont to : 9999999
    crcy: eur
    wsf amnt rel :ws10000052
    so ,could you tell me more details about this problem ,
    thanks

  • How to trigger a second workflow from a workflow?

    Hi All,
              I want your guidance in deciding the process flow of a workflow to be developed.
              We have a scenario in our project where we have to develop a workflow for vendor creation/change
              done through a portal.Now we have designed to do through this 2 workflows.
              First workflow is triggered when the create/change is done in the portal and the entry is made in a
              z table.This is the trigger point of first workflow.
              First workflow will identify all approvals and store them in another z table with all the approval levels  needed and the approval groups stored in the z table itself.
              Second flow will trigger on the entry made in this z table.It will read all approvals and send the mails to tha approvers in the respective aproval groups.
    Now can you please verify this.Is it possible to trigger a second workflow from a workflow?
    If yes then can you please explain the methodology to do the same?
    Also if any other approach can be taken,please suggest the same.
    Thanks a lot,
    Saket.

    First Develop a Z Business OBject (let ZVENDOR) to update the Z table when ever a Vendor is created or Changed.
    Now For the first workflow do like this
    From the WD application when the user clicks on the SAVE button then call the Function module SAP_WAPI_START_WORKFLOW .
    Develop a method in the ZVENDOR to update the Z table.Make the method as background.
    Use the method that you have created in the above point in the first workflow but prior to this make sure that you have passed all the required information to the workflow.
    Once the table is updated.
    For Second Workflow
    Create a Change document object for the Ztable.
    And trigger the workflow when ever any entry is made or changed in the z table

  • How to invoke a standard task in customized program?

    Hi experts,
    I need to invoke a standard task in my program, does any1 know any FMs for invoking a task?
    Thx in advance, points will be rewarded.
    Vincent

    Hi:
    Probably your question is uncleared.
    Anyway please find the link by which you can get some help as
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/21770651ce11d189570000e829fbbd/content.htm
    Regards
    Shashi

  • How to create a workflow dealing with customizing program(Add-on program)

    Dear ALL,
    I am new to workflow and I was assigned to create a workflow related to an customizing program(Dynpro screen).
    I know we can refer to some std. template for workflow developing.
    However, I don't know how to create a brand new workflow to deal with the add-on program and table.
    My major difficulty is how to create a new object:
    --How to create the new event to track the operation of add-on program, for example, push 'submit' button.
    --How to create method to update the add-on table.
    I do hope someone could give me some guidance.
    Thank,
    Gary

    This is a Function Module that triggers an event ob Business Object tht you will create by making a subtype of Business Object. Use Transaction Code SWO1 to do so.
    FUNCTION zwf_process_trip.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_EMP_NUMBER) TYPE  PERNR_D
    *"     VALUE(I_EMP_TRIP) TYPE  REINR
      INCLUDE <cntn01> .
      DATA:i_emp_details TYPE STANDARD TABLE OF p0001,  "Employee Details
           wa_request    TYPE p0001,                    "Workarea for Employee details
           v_country_grp TYPE molga,                    "Country SubGrouping
           v_object_key  TYPE sweinstcou-objkey.        "Key for the buisness object ZWOBUSTRIP
      CONSTANTS: c_bo_trip     TYPE swo_objtyp VALUE 'ZWOBUSTRIP',
                 c_event_trip  TYPE swo_event  VALUE 'TripCreate',
                 c_infy_type_1 TYPE infty      VALUE '0001'.
    Event Container declaration
      swc_container i_event_cont.
      swc_create_container i_event_cont.
    Reading the INFO TYPE 0001 to obtain the
    Employee details
      CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
          pernr           = i_emp_number
          infty           = c_infy_type_1
          begda           = sy-datum
          endda           = sy-datum
        TABLES
          infty_tab       = i_emp_details
        EXCEPTIONS
          infty_not_found = 1
          OTHERS          = 2.
    SY-SUBRC check is not required as the error
    handelling will be done by WorkFlow rule
    resolution.
      CLEAR wa_request.
      READ TABLE i_emp_details INTO wa_request INDEX 1.
      IF sy-subrc = 0.
      Retrieving the Country SubGrouping for the employee
        SELECT SINGLE molga
          FROM t001p
          INTO v_country_grp
         WHERE werks = wa_request-werks
           AND btrtl = wa_request-persk.
      ENDIF.
    Sending the relevant data to event container
      swc_set_element i_event_cont 'EmpId'     i_emp_number.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'PersonnelArea'    wa_request-werks.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'CountryGrouping' v_country_grp.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'EmpSubGrp'       wa_request-persk.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'EmpTripId'       i_emp_trip.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
    Raising the event to trigger the workflow
      v_object_key = i_emp_number.
      CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype           = c_bo_trip
          objkey            = v_object_key
          event             = c_event_trip
        TABLES
          event_container   = i_event_cont
        EXCEPTIONS
          objtype_not_found = 1
          OTHERS            = 2.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      COMMIT WORK.
    ENDFUNCTION.
    SWEL Transaction Code is used to track event linkage.
    SWUS is used to test Workflow manually with single test.
    <b>Please reward points if useful</b>
    Thanks
    Arghadip

  • How to trigger an existing background job in ABAP program?which fm?

    Hi experts,
        how to trigger an existing background job( defined in SM36 ) in ABAP program?which fm?
        seems that FM 'JOB_OPEN' / 'JOB_SUBMIT' / 'JOB_CLOSE' can only create a new job.

    Hi,
        now my requirement is that sap has generated one job automatically, and then i will have a job name
    'XXX'. and then i want to schedule the job in abap program,. which function module could i use ?
    my expected fm is that the system will trigger the job after i give the job name and start condition.
    i have tried job_open, but it seems just to create a new job. any advice ?

  • How do I create a workflow to close open programs and then turn off?

    I want to create a workflow where any open programs will be closed and then my Mac will turn itself off. How do I do this?
    Cheers.

    I don't use Automator, but the following Applescript will do it:
    set excludedones to {"loginwindow", "Dock", "SystemUIServer", "MirrorAgent", "UniversalAccess", "iCalAlarmScheduler", "System Events"}
    tell application "Finder"
    set quitlist to the name of every application process whose file type is "APPL"
    end tell
    repeat with i from 1 to count of quitlist
    set aProcess to item i of quitlist
    if aProcess is not in excludedones then
    try
    tell application aProcess to quit
    end try
    end if
    end repeat
    tell application "Finder"
    shut down
    end tell
    Actually the last three lines by themselves would probably do it. Of course if any of the applications have open unsaved documents then you will get the usual dialog about do you want to save them.

  • How to trigger a WLPI workflow by sending XML event

    Hi,
    I try to trigger a workflow in WLPI 2.1 by sending an XML Event from another application.
    But I don't know where to send it and how (i.e. via JMS or not).
    Any idea how to do it or where I can find helpful documentation (standard BEA
    WLPI docs didn't help much on that topic)?
    Regards,
    Jörg

    Hi,
    Still, what is so specific about this ACE_DISPATCHER in CRM? Can you explain a bit more about you problem. I am quite sure that not that many people in this workflow forum is familiar with this concept.
    Is there some problem in triggering the batch job itself? I still cannot see any reason why you couldn't use the check function module? If you cannot use check function module, what makes you think that some other solution would work. Eventually you will use the same code - the place where you trigger the code might be different, but it will be the same code.
    Regards,
    Karri

  • How to trigger provisioning - after approval task failed but data corrected

    Hi,
    We have a situation where the approvals are provided for the requests but approval task failed(denied) due to misconfiguration. But really all the approvals are provided by the required personnel. So, we need to manually correct the data and trigger the provisioning. Could you please advise on how to manually/otherwise trigger the provisioning in this scenario
    Thanks,
    Sudhakar

    Thanks Kevin. We could locate these requests and update the records in DB. But wasn't sure if we can trigger the automatic provisioning from there. I was thinking there may be a way to restart the workflow/provisioning from the point where it failed. That would be a nice feature to have.

  • How to use loop in workflow task description

    loop doesnt work in pftc task description command line. please help

    Hi,
       Could you plse check this link 'http://mailman.mit.edu/pipermail/sap-wug/2005-February/016575.html'  to solve ur problem
    Regards,
    Rajeswari

Maybe you are looking for