Query in workflow

HI all,
I am calling a workflow by a function module. I created the wf container variables in the fm sww_start_simple. I created same variables in the swdd also but how do I connect them. Can any one say how to test the workflow which is triggered by the fm.
Ravi

If you quit using SWW_START_SIMPLE, and use SAP_WAPI_START_WORKFLOW instead, you don't have to use the macros (swc_set_element and so on) to fill the container.
SAP_WAPI_START_WORKFLOW takes the container in the new format which is just a list of name and value of the elements, so you can use standard
APPEND l_containerline TO lt_container.

Similar Messages

  • Query on Workflow/SRM

    Hi All,
    I have a query on workflow/SRM.
    Recently our client upgrade from 4.6c to ECC 6.0 and we are facing with the below problem after the upgrade.
    Users create Purchase Orders through shopping carts in SRM system; requisitioner will receive a notification mail on creation of PO in the backend system. When the shopping cart is converted as PO (after releasing from sourcing), a workflow is getting triggered in backend ( ECC 6.0) which sends the PO notification mail to the requisitioner. In that notification mail, the Cart No and Cart Description is missing for the PO. This issue occurs only after the upgrade. We have analysed, it is because of the delay to update the PO number on the shopping cart, which happens with the help of batch job “CLEAN_REQ_REQ_UP” which is running for every 5 minutes in SRM system.  To confirm this we had included Wait Statement in the workflow function module which will delay the work flow by 5 minutes and the workflow is running fine now. But I want to know whether the above change will affect the performance of the production system, since this make the workflow wait for every PO. Also as an alternative we are thinking of manual triggering of workflow using batch jobs instead of automatic.
    Please advice which is better in terms of system performance and maintenance.
    Regards,
    Rag

    I'll suggest to add a background step to verify if the PO has been created instead of waiting. BCOZ if the PO has been created and it is in last few seconds of next scheduled run of the this report, it has to still wait for atleast 5 minutes.
    Regards, IA

  • Query Regarding Workflow........plz help its urgent.

    hi friends
    Here is my query in Workflow
    I would like to know when a work item gets triggered.?
    I know that its a run time object,but i want to know is there any such condition which must satisfy before any work item gets triggered,or is there any process that helps to triggered a work item.
    Thanks in Advance
    mrutyun^

    hai
      for a workitem should be triggred, we dont want any thing.
    if workflow is triggred using event then, the following steps which is designed below is executed.

  • Query  Of workflow Related to SE38

    I  have one Query ,
    If User   Excecuted   any report through SE38  ,   mail automatically goes to ABAP user , so that he can view whcih report is excuted by which User ,
    Is it  Possible  , If   Yes  how can  I   do this  using Workflow .?
    ASAP

    Hi,
    There is already some of tables which keeps record of the t-codes executed by the user
    by giving the login id you can fetch all the data, currently I don't remamber the table name but there is table, this will solve your problem.
    Regards
    Bikas

  • Need A Query on Workflow.

    Hi Team,
    I want to Get what are the Worflow has ran in A week time meance in 7 days.
    I want to build a query .Could any body has any idea how to get what are the workflow ran in this 7 days.
    Its Urgent Please respond
    Thanks
    In Advance.

    Please answer the questions above.
    Also, see if (Diagram of Relationship between Core Workflow Tables [ID 444446.1]) helps.
    Thanks,
    Hussein

  • CAML query in Workflow inside sharepoint hosted app

    Hi,
    I am building a sharepoint hosted app for sharepoint online.The app includes a list workflow.One of the activity in the workflow is to query another list within the app web, to get count of items where a condition is met.Can anyone please guide me how this
    can be achieved?
    Thanks!

    Hello Steve,
    Thanks for the Reply
    Following code helped me in creating the Subsite successfully in host web
    Var hostWebUrl;
    Var appWebUrl;
    Var context;
    Var newSubsite;
    function () {
    try
    hostWebUrl = GetQueryString("SPHostUrl");
    appWebUrl = GetQueryString ("SPAppWebUrl");
    var layoutsRoot = hostWebUrl +
    '/_layouts/15/';
    $.getScript(layoutsRoot + "SP.Runtime.js",
    function () {
    $.getScript(layoutsRoot + "SP.js", CreateSubsite);});
    catch(ex)
    alert("message" + ex.message);
    function GetQueryString (name) {
    name = name.replace(/[\[]/,
    "\\\[").replace(/[\]]/,
    var regex =
    new RegExp("[\\?&]"
    + name + "=([^&#]*)"),
    results = regex.exec(location.search);
    return results ==
    null ?
    "" : decodeURIComponent(results[1].replace(/\+/g,
    // Function to create subsite
    function CreateSubsite () {
    context = new SP.ClientContext(appWebUrl);
    var hostContext =
    new SP.AppContextSite(context, hostWebUrl);
    var webCreateInfo =
    new SP.WebCreationInformation();
    //set values
    webCreateInfo.set_description("New Subsite Created");
    webCreateInfo.set_language(1033);
    webCreateInfo.set_title("NewSubSite");
    webCreateInfo.set_url("SubsiteURL");
    webCreateInfo.set_useSamePermissionsAsParentSite(true);
    webCreateInfo.set_webTemplate("STS#0");
     this.web = hostContext.get_web();
    newSubsite = this.web.get_webs().add(webCreateInfo);
    context.load(newSubsite);
    context.executeQueryAsync(
    Function.createDelegate(this,successHandler),Function.createDelegate(this,errorHandler));
    function successHandler() {
    alert("subsite created successfully");
    function errorHandler(sender, args) {
    alert("Could not complete cross-domain call: " + args.get_message());
    Vishnu

  • Query for Workflow backgorund process

    Dear All
    we are facing problem with Workflow backgorund process. each time i had to meet with the DBA and ask whether it is working or not. can i check the same thing from the back end with the query. can any one share the query for the same.
    Regards

    Pl also see MOS Doc 564394.1 (How to Troubleshoot when the Workflow Services Go Down)
    HTH
    Srini

  • Query on Workflow

    Hi Guru's,
    We are using Hyperion Planning 11.1.1.2 version and our requirement is users need work flow functionality whenever we transfer one employee expenses from one
    department to other department? I'm thinking this can be achieved in the follow way but I need your suggestion whether we can achieve it like this or not?
    1. Create a Menu
    2. Menu Item 1 :Transfering Employee expenses from one department to other using Business Rules
    3. Menu Item 2 : Create a workflow and assign to Menu.
    Please let me know your comments on this.
    I

    No, you do not need to have Oracle E-Business Suite to run Oracle Workflow. There is a "standalone" version of Workflow that you can run without the E-Business Suite. If you have Oracle9i database Release 2 (9.2), then you can install Oracle Workflow 2.6.2 from your database installation CDs, because Workflow is bundled with the database. You will need to explicitly choose to install both the server and the client components of Workflow, as they are under the Custom installation types. You won't see Workflow files on your machines until you install it.
    For more details, please see the Oracle Workflow Server Installation Notes
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/workflow.920/a96643/toc.htm
    and the Oracle Workflow Client Installation Notes
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/workflow.920/a96644/toc.htm
    and the Oracle Workflow Guide
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/workflow.920/a95265/toc.htm
    We've a great confusion.I am totally new to Workflow and I would like to know whether in order to use Workflow is it compulsory to install Oracle e-business suite .As all of the workflow documents mention about <oraclehome>/wf/res folder
    And there's no <Oracle home>/wf/res directory present in our machine as well as there is no wfsdubld.sql present niether in our application server nor in Oracle database server.Please clear to me.How to use this product.Right now we've got Oracle 9i database Release 2 on machine A and Oracle application server Release 1 on machine B.Thanks in advance

  • Query in Workflow - Rule

    Hello Expert,
    I want to know how to figure out the entire process done by the rule. as in what are the tables , fields are included/attached with a particular rule.
    e.g. Rule : 00900010.
    Now, in this rule, how to determine the entire process? How does this end up returning a org unit/position?? What are the tables it goes through? How does it function??
    Please Explain..
    Thanks!!
    Regards,
    Sam

    Hi Sam,
    Well, what happens is you pass the parameter purchasing group and the role gets an instance of the business object T024 (Purchasing Group).  One of the attributes of this object is agents - that is people linked to the purchasing group using something like transaction PPOMA.  The code called by this attribute is:
    * Put the object under consideration into the container for  attribute
    *  evaluation.                                                     
    swc_set_element ac_container 'ORG_OBJECT_ID' self.                        
    swc_container_to_persistent ac_container.                               
    * Get the agents corresponding to this
    * object.                                                          
      call function 'RH_SAP_ORG_OBJEC_ACTORS_GET'                                  
           tables
              ac_container     = ac_container                                           
                actor_tab        = rh_agents                                         
          exceptions
              no_active_plvar  = 1
              objtyp_not_valid = 2                                                      
             no_actor_found   = 3
                  others           = 4.                                                                         
    * Put the result into the container.                                        
      object-agents[] = rh_agents[].                                          
      swc_set_table container 'Agents' object-agents.  
    What this means is that the org object is the purchasing group, and the function uses the organisation hierachy and relationships to return those poeple with an assigned relationship to the purchasing organisation.
    This is passed back to the rule and thus to the workflow as an internal table of the structure swh_actor.
    So in this case there is no function module or responsibility, the rule is just getting ALL agents with a relationship to the purchasing group.
    Regards
    Gareth
    Message was edited by:
            Gareth Ellem

  • Workflows and select query

    hi all....
    i want to write a select query in workflow to fetch value from a table which i will be saving in workflow container... i cannot create a business object.... what else can i do... i dont hav exp with classes too.... advise some easy way out.....
    <Thread moved from ABAP General>
    Edited by: Mike Pokraka on Aug 27, 2008 12:47 PM

    Hello Sharma,
    Write a program in which you can give your select query and call the FM, SWU_START_WORKFLOW
    e.g.:
    CALL FUNCTION 'SWU_START_WORKFLOW'
      EXPORTING
        task                  = task
    *   LANGUAGE              = SY-LANGU
        user                  = user
    *   SENDER_ID             = SENDER_ID
    * IMPORTING
    *   RETURN_CODE           = RETURN_CODE
    *   WORKITEM_ID           = WORKITEM_ID
      TABLES
    *   CONTAINER             = CONTAINER
    *   MESSAGE_LINES         = MESSAGE_LINES
        attachment_list       = attachment_list
    Here, in the CONTAINER, pass the workflow container values.
    Give the respective task number and user as sy-uname.
    Regards
    Indu

  • How to use PLSQL CLOB IN WORKFLOW

    Dear all,
    I have follwoing query with workflow.
    I have developed FYI WF.
    1) In my WF mail, I am getting click here to respond.
    I want to hide this.
    Pl. let me know how to do that?
    2) I have developed a workflow with Document type.
    I am calling a PL/SQL CLOB procedure to pass my values( 4 columns from a table)
    I need to pass approximately 70 to 100 rows to clob.
    when I pass 14 rows, I am not getting any error.
    where as if I pass morethen 15 rows, I am getting follwoing error
    "ORA-06502: PL/SQL: numeric or value error ORA-06512: at "APPS.WF_NOTIFICATION", line 5046 ORA-06512: at line 5 "
    Pl. let me know, do I need to setup any thing in workflow from my side

    Hi,
    I'm not sure whether it is because of the length of variable.
    However, did you use concatenation (||) to store the value in the varchar variable before putting it into the CLOB variable?
    If so, perhaps you forget to reset the varchar variable inside the loop, thus making it longer and longer each loop.
    You should empty the varchar variable by
    loop
      l_string := '';
      -- your code, perhaps concat the variable
      l_string := l_string || 'blah blah';
    end loop;For the FYI Notification, perhaps you should check the Notfication in the Workflow Builder, whether it has an Attribute with Respond type on the Notification.
    If you didn't put anything (only the message body) in the Notification, the message will suppose to be a FYI one.
    Regards,
    Buntoro

  • Query on SRM Shopping Cart ,plz help its very very urgent

    Hi Friends,
    I have a query on workflow.
    Users creates PO through SRM shopping cart and immedeately they receive a mail in there mail box.Below is the process flow of sending the mail to the user inbox from srm shopping cart.
    SRM Shopping Cart>Business Object>Workflow-->Mail
    Here my problem is.
    The bususinees object generally holds the data for cart number and cart description, but when i am checking the workflow it does not contain any cart number or cart description,so that the mail that is going to user inbox also does not contain any cart number and cart description value.
    Recenly our client upgrade from 4.6c to Ecc 6.0 and this problem is happening after the upgradation.
    Please suggest if anyone face this kind of problem or anyone having any idea on this.
    Pls give me some suggestion.
    Thanks a lot
    Mrutyun^

    Hi,
    Your condition is puzzling... the workflow in SRM for SC is triggered after the SC is saved.
    The PO is a follow-on document after the SC is approved. As such it has no relationship to the backend upgrade since the workflow engine is in the SRM server. Your worflow is triggered from the SC or PO?
    Regards.

  • Workflow for PR

    I tried to do  worflow but it is not working . I am getting the following error message :
    Error processing following event linkage:
    BUS2012 RELEASESTEPCREATED WS20000075
    Following error occurred:
    SWF_RUN 594
    Message text:
    Import container contains errors (are any obligatory elements missing?)
    Event container appended as attachment.
    Event linkage with errors deactivated.
    What do I do now.Please help .

    Hi
    To get the quick solution you can post your query in workflow section (SAP Netweaver-->workflow)
    Refer below forums which may help you:
    BUS2012 - event linkage deactivated after 1st run- Import container error??
    Re: Error in event linkage
    Event Linkage Error
    Thanks
    Susmita

  • How to merge/compare two workflows.

    Hi there!
    Is there a way to merge or compare two Oracle Workflows - to find potential differences?
    If you use a regular text compare, it's pretty hard to get an overview over what's been done..
    Kind Regards, Henrik

    Post your query in Workflow forum to expect response. Follow URL
    Workflow

  • Cannot find workflow WS14000109 in Define Conditions for Starting Workflows

    Hi All,
    I have a query regarding workflow in SRM 50. I am not able to find the WS14000109 workflow  in the SPRO setting ->Define Conditions for Starting Workflows.
    There is thread ->
    Activating workflow  with a similar issue, but it has not solved my problem.
    Regards
    Sam

    Hi,
      In the SPRO setting ->Define Conditions for Starting Workflows,in the selection criteria "BUSINESS OBJECT",select the BOR "BUS2121" (Shopping cart) and then see whether you can see the WF in the list.
    BR,
    Disha.
    Pls reward points for useful answers.

Maybe you are looking for

  • Regarding Navigation in obiee 11g

    Hi All, i have recently migrated from obiee 10g to 11g. after migration the naviagation is not working. i have implemented navigation in 10 g in which on clicking one report it naviagate to another report also drilling down. but in 11g it is not happ

  • Advanced Network Question - SSH tunneling through time capsule

    Hi! I have a small question. I just got a time capsule the other day and things are working great with it. At home, internet speeds are what they should be and everything is fine. I replaced it with a linksys, which I consistently got 6.5/1 up. After

  • New iTunes 7

    When I edit the names of artists on the new iTunes, sometimes it doesn't change the name when it shows the album artwork with the name underneath (when it sorts by album) or when it shows as if you were flipping through cds. How can I get it to show

  • Dynamic internal table- column to row conversion

    Hello all, Inside a program i generate a dynamic internal table and This table has one single column. But I need to convert the rows as columns. Eg: dynamic internal table ITAB has content Forbes Times Reuters Warner stern I would like to have a ITAB

  • Macbook Pro running extremely slow with version OS X 10.10.2

    Since updating to Yosemite, version OS X 10.10.2 on my 2010 MacbookPro, it has been running extremely slow in all applications.  Everything from booting up and shutting down to getting mail open, printing or using Safari takes a long time!  Lots of b