How to  get Workitem ID of workflow

Hi all,
i need to get the Workitem ID of workflow in my extended BOR method for some manipulation. how to achieve this. Please help, its urgent.
Regards ,
Gaurav.

Hello,
Perhaps this can help:
http://help.sap.com/saphelp_nw04/helpdata/en/ad/ebe5cc1d75aa43a2871717d76f475d/content.htm
If you want to know the table name, turn on tracing (ST05) when accessing the MIME types.
regards
Rick Bakker
Hanabi Technology

Similar Messages

  • How to get workitem ID parameter in BSP application in UWL?

    Hello All,
    okay, it's been a long day and i stuck with this seemingly simple problem - how to get a workitem id in my BSP application when calling from UWL.
    Points are guaranteed to all who post an answer.
    i got MVC BSP iview is configured to be called for my task in SWFVISU, all re-registered and seem fine. Correct BSP is being called when i execute the workitem from UWL, but wi_id is not passed there.
    What am i missing?
    Thanks!

    Hi Serge
    How you solved it .I have same issue  please let me know.
    Thanks

  • How to get request object in workflow?

    can anyone help me out how to use <ref>:display.state</ref> in workflow to get the state of the rquest object?

    Hi Sunil,
    Every field which we are creating in additional data ( charateristics) are saved in table. Kindly check and confirm the table name but i think it's MARCO , just search and check I am not sure about the table name.
    But the answer for your question is every data is saved in table. and from this table you can pick the values same like DRAW table for document type etc.Take help of workflow or abap person ,he can immediately give you table names.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • How to get Workitem ID

    Hi,
    I want to know the instance of Runnign workflow means whether it is running or completed or In Process. so that i am using FM SWP_WF_INSTANCE_HEADER_READ.
    For the above FM WorkItem ID is required, but i am not able to find FM or table(I hav eObject Key and Object type) to get WI ID.
    Could anyone let me help to resolve this issue..
    Harkesh Dang

    Insert this code within your method before the FM call:
    swc_get_element container 'WorkItemID' zzw_id
    ( data: zzw_id like swwwihead-wi_id)
    You should be able to debug the container for the exact name of the workitem id.
    Regards,
    Peter Hang

  • How to get workitem id in ABAP-Webdynpro application

    Hai All,
    When a user clicks on a work item in universal worklist, a ABAP-Webdynpro screen is called. I want to pass the workitem number to this ABAP-Webdynpro application. 
    Please let me know how to pass this.
    Thanks & Regards,
    H.K.Hayath Basha.

    Hai Kari,
    Thanks for the link, i am looking into it.
    Hai Naresh,
    Where should I give this link,
    http://abc.com:8001/sap/bc/webdynpro/sap/ztest? param1= Val
    What I have done is,
    In SWFVISU transaction I maintained the following entry,
    Task = TS99000208
    Visualization Type = WD_ABAP
    Visualization Parameter  Visualization Parameter value
    APPLICATION            =  ZWD_OFFICIAL_012
    NAMESPACE            =  SAP
    and registered this task in in universal worklist.
    Where the specify the code you mentioned. 
    Thanks & Regards,
    H.K.Hayath Basha.

  • How to get the status of workflow

    Hi all,
    Please help me with a query to get the status of a worflow. For Eg: The close order line wf has fired for a particular order line in Oracle Apps (item type = OEOL). I just want to find the status of this using a query. Any hints will be very helpful.
    thank you.

    Look in the ORABPEL database schema. There you will see a lot of tables related to workflow.
    Marc

  • How to get the workitem

    hi ,
    im using the task to trigger work item to a person and scheduled a deadline. but suddenly my connection to the server has lost.
    again i have opened my inbox i could not be able to have the workitem in my inbox.
    but the deadline is already triggered to another person regarding this work item.
    in this case how to get the workitem in my inbox?
    how these kind of scenarios are being handled ?
    Raghu

    You can check which are the workflow you have started from
    SBWP->OUTBOX ->Started Workflows. There you will get the workflow and check this from the Workflow log by hitting the Wflow Log button.
    Thanks
    Arghadip

  • How to get Purchase Order Number in a workflow

    Hi all,
    I am a new guy in workflow.
    I created one simple workflow - If purchase order is changed, then an email should be triggered.
    It is working fine.
    I want to add in the subject as well as in email text, the purchase order no which is changed.
    I tried to find this thing in existing threads.But m not able to find it.
    Please do the needful.
    Regards,
    Sunny

    Hi Sunny,
    You can pass the data to External User also..!!
    Sending Mail to Outlook : U need the Following things done for this:-
    1> Use the Mail Step in the WF and Choose the Receipient as the E-Mail Address and Give the E-Mail Address there.
    2> Check the Configurations that need to be done in Transaction SCOT. SMTP Server Settings are done to get the Desired Results
    To get Workitems in Outlook..!!.https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario
    Problem in transferring the workitems into OUTLOOK
    /people/saujanya.gn/blog/2006/12/19/how-to-get-work-items-your-outlook-inbox
    Workflow Items in Outlook
    In the Mail Step Type - check the Binding of the WF Container with the Task Container.
    You have the ICON for Variable "Insert Expression" near the Subject line. Double Click that and you can find there your WF Container for the BO Used..Click on that and select the attribute that corresponds to the PO-Number. Copy paste the same in the Mesg Body also from there..
    Let me know if you still have any issues.
    Regards,
    Kanika

  • How to get JSON item in web service workflow?

    Im tried to get json item in workflow,But was unable to obtain "RtnCode",how to do it?
    This my JSON,
    "MerchantID": "1032017",
    "RtnCode": "2",
    "RtnMsg": "Get Succeeded",
    My workflow :
    Get RtnCodefrom
    Variable: DealItems
    Error code:
    RequestorId: f85b0795-6682-fde7-0000-000000000000.
    Details: An unhandled exception occurred during the execution of the workflow instance.
    Exception details: System.InvalidOperationException: Looking up a value using a key is not supported on an instance of 'Microsoft.Activities.Dynamic.DynamicPrimitive'. at Microsoft.Activities.Dynamic.DynamicItem.TryGetValue(String key, DynamicItem&
    value) at Microsoft.Activities.Dynamic.DynamicValueBuilder.PathSegmentFactory.ObjectPathSegment.Get(DynamicItem obj) at Microsoft.Activities.GetDynamicValueProperty`1.Execute(CodeActivityContext context) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance
    instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation) Exception from activity
    GetDynamicValueProperty<String> Start Sequence Flowchart Sequence Pay.WorkflowXaml_07f732da_c82a_4234_abd5_34c32c637413

    Hi Felaray,
    I have a similar issue and what I tried to do is to install JSON.NET in my project and used the "Assign" activity (under "Primitives" category on the toolbox) to assign the string to an object:
    Newtonsoft
    .Json.JsonConvert.DeserializeObject(resultFromCustomActivity)
    but unfortunately did not work. I am getting this exception:
    Visual Studio 2013 Workflow: Failed to translate expression because of the following error: Translating the method or one of its overloads to an activity is not supported
    If you cannot really change the source header, you might need to create a code custom activity and pass in your string and use JSON.NET, parse it and return what you want.
    Another "easier" option might involve doing some nasty parsing (using the Assign Activity) by finding the index of your "RntCode:" and getting the next set of characters before the comma. Since the .NET classes to utilize are limited
    it would be worth trying to use a RegEx
    resultFromCustomActivity
    .Substring(0,
    10)

  • How to get the current date in a workflow

    Hey,
    Can anyone tell me how to get the current date while in a workflow?
    Thanks in advance.

    Here is how we did it, hope it helps
    <defvar name='locCalendar'>
    <new class='java.util.GregorianCalendar'/>
    </defvar>
    <defvar name='dateFormat'>
    <new class='java.text.SimpleDateFormat'>
              <s>MM/dd/yyyy</s>
         </new>
    </defvar>
    <defvar name='formatedDate'>
         <invoke name='getTime'>
    <ref>locCalendar</ref>
    </invoke>
    </defvar>
    <invoke name='format'>
    <ref>dateFormat</ref>
    <ref>formatedDate</ref>
    </invoke>

  • How to Get the Current Workitem id at runtime

    Hi All,
    I have a scenario, where request pending with a user who has already resigned the organization. The requirement is that we need to provide a report
    of the request and with whom it is pending with along with the workitem id with a forward push button.
    So that if the user identifies that a request is pending with someone he can click the record and press for the forward button and a pop-up to be showed where he can enter the userid to whom he needs to forward it.
    In this scenario can anyone tell me how to get the current workitem id at run time and to save it to a custom table.
    I tried with method before workitem execution, but here i am not getting the current workitem id.
    Can you please suggest a good solution for this.
    Thanks and Regards,
    Balaji

    Karri,
    I think i can explain you with an example.
    Here is my Scenario.
    A user has raised a Gate pass and it went to all approval's and got approved and the material is also sent out from the plant. Lets take the date as 1.1.2013 (A Warehouse person have done the checking and sent out of the plant).
    On 1.3.2013 some of the material has been returned and a material inward request has been raised and now the warehouse person has to do a inward checking and to sent it back for the initiator for the approval, but the warehouse person has resigned the organization on 1.2.2013, now the workitem is pending with the warehouse person who has already resigned.
    My scenario is once the material inward request is created and before the workitem is delivered to the warehouse person i need to get the workitem id and to store the workitem some where.
    So that in future if any warehouse dept head wants to forward the workitem which are lying in the person inbox who has already resigned he can do it via a report using this workitem id.
    So, can anyone help how to get the dialog workitem id before the workitem creation or execution. I tried with "method before workitem execution" but my break point is not triggering at this point.
    Thanks and Regards,
    Balaji

  • How to get Owner's name in workflow and disable it?

    hai
    When i open any workflow process, by default the first page gives itemkey, user key, Process name and Process Owner attributes. But we can change the owner's name here. This allows the user to launch the process on behalf of another user. How to disable it so that the user can not change this?
    ( default it will the user who started the process). Also I want to get the owner's name in any fuction in between the process. How to get it? Pls help me.

    The Launch Process screen is only available for Workflow Administrators (set on the Global Preferences screen) and is typically used for testing workflows.
    hai
    When i open any workflow process, by default the first page gives itemkey, user key, Process name and Process Owner attributes. But we can change the owner's name here. This allows the user to launch the process on behalf of another user. How to disable it so that the user can not change this?
    ( default it will the user who started the process). Also I want to get the owner's name in any fuction in between the process. How to get it? Pls help me.

  • How to get a substring in a Workflow Activity?

    I'm concatenating some values into a Summary field in a workflow activity as follows:
    IIF(Eq([//Target/Code1],True),"1,","")+IIF(Eq([//Target/Code2],True),"2,","")+IIF(Eq([//Target/Code3],True),"3,","")
    So if Code1 and Code2 are true I get a Summary Value of 1,2,
    Now I want to trim the trailing comma.
    So I did this
    Left([//Target/Summary],Add(Length([//Target/Summary]),-1))
    This part doesn't work.  It says Left is improperly formatted or missing a parameter.
    If I put a numeric value like 1 or 2 as the second value it works.
     Any suggestions on how to get trim a character off the end of a string in a FIM Workflow activity?

    Length isn't a function supported by the FIM Function evaluator Workflow activity. (Which is frustrating).
    Here is my sloppy approach using the built-in tool (lots of nesting so if you need to do this for more than 3 conditions this grows out of control):
    IIF(Eq([//Target/Code1],True),IIF(Eq([//Target/Code2],True),IIF(Eq([//Target/Code3],True),"1,2,3","1,2") ,IIF(Eq([//Target/Code3],True),"1,3","1") )
    ,IIF(Eq([//Target/Code2],True),IIF(Eq([//Target/Code3],True),"2,3","2") ,IIF(Eq([//Target/Code3],True),"3","") ))
    OR you can use one of these custom workflows that allows you to run your own code:
    http://fimwf.codeplex.com/
    or
    https://fimactivitylibrary.codeplex.com/wikipage?title=Code%20Run%20samples&referringTitle=Documentation
    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

  • Sharepoint Workflow : how to get document full path + file name into variable?

    Hi,
    Anybody knows how to get document full path + file name into a variable in Sharepoint 2010 workflow?
    Example http://sp1:80/InvoiceQueue/Shared Documents/123.pdf
    I am using List Workflow which links to a document library.

    Hi SAMSUNG,
    According to your description, my understanding is that you want to get the full path of a document in a list workflow.
    You can set the variable to the Enconded Absolute URL of the document. The screenshot is my testing. In my testing (in the red area), when the title of a document was equal to the tile of the current item, set a variable to the Enconded Absolute URL of the
    document. I used ‘Log to history list’ to check the value of the variable in Workflow History .
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to get the ItemKey for a Workflow triggered by an event in Oracle Apps

    Hello,
    I have added a custom sub process to the seeded "OM Order Header" workflow. The process sends a notification. There are a few attributes in the body of the message tied to this notification, to which I am trying to assign values to using the syntax:
    SetItemAttrText (itemtype, itemkey, attrname, attrvalue).
    I have the internal names for the item type and attribute name, but don't know how to get the value for the item key. I understand the item key is supposed to be unique for each item type and is automatically generated by the workflow engine when the work flow fires. Is there a built-in function or some means to get this value?
    Regards,
    Smita

    Have you tried to query WF_ITEMS? -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=WF_ITEMS&c_owner=APPLSYS&c_type=TABLE
    bde_wf_item.sql - Runtime Data of a Single Workflow Item [ID 187071.1]
    Thanks,
    Hussein

Maybe you are looking for