Get Workflow protocol

Hello.
for our workflow regarding Purchase Order release strategy we need to know which
agent has processed the last release (=Workitem).
Now i found FM "SAP_WAPI_DIALOG_PROTOCOL". This FM shows up the needed
information in tab "Workflow objects" in dialog.
But anybody knows how to get this information from the database tables ? Or is there
any FM or class which will provide this information without dialog ?
Thanks a lot.
Sebastian

Hi Sebastian
You can use FM SAP_WAPI_WORKITEMS_TO_OBJECT to get the Work items associated with your PO.
Call the FM where OBJECT_POR-SIBFBORIID = PO Number, = 'BO' (if your workflow uses Business Object) or 'CL' (if the WF uses ABAP Classes and SIBFCATIDSIBFTYPEID = BO name / Class Name.
You will then get the list of all objects associated with your PO - all workitems in table WORKLIST.
Now you need to remove all items which are not dialog steps - delete WORKLIST where WI_TYPE <> 'W'
Now remove Non Completed Ones - delete  WORKLIST where WI_STAT <> COMPLETED
Now you have all completed dialog items - sort them by WI_ID DESCENDING -> Last work item on top
Read the first line to get WI_AAGENT - the actual agent who completed the step.
Regards,
Modak

Similar Messages

  • Disable technical view of workflow protocol

    Hi guys,
    is there any possability to disable technical view of workflow protocol. Authority object? User-Exit? BAdI?
    Or is there any solution to disable the protocol at all when the entry point is via GOS?
    Please help...
    Thanks in advance
    Christian
    Edited by: Christian Gebert on Mar 25, 2010 5:36 PM

    Hi Arghadip,
    i hope you understand that this answer isn't really satisfying me.
    I already talked to basis and authority team.
    Greetings,
    Christian

  • How to get workflow Item in custom FM ( method )

    Dear Expert,
    I am developing the workflow for PR release. We don't have the HR module so we are using Z-table for the release agent. I am using the BUS2105 for the workflow. I have created a new method to get the PR release agent and send mail to those agent asking for release and some other user to be notified.
    I deligated ZBUS2105 and implemented the method to that object. The workflow is working as per the requirement but I am not able to get the PR number in FM of the Method.
    FM name  :  ZMAIL
    Import       :  PRNUMBER         like EBAN-BANFN
                       RELEASECODE   like T16FC-FRGCO
    Tables      : USRS_EMAILIDS
                     USRS_TOBE_NOTIFIED
                     USRS_TOBE_APPROVED
    in the FM i am sending mail to the respective agent , I have to mention the PR number in the Body of the email but unfortunately the PR number is not coming in the Import paramete PRNUMBER  where as i am getting the release code in RELEASECODE .
    I would like to request you guide me how I can get the PRNUMBER  in my FM which I have assigned to the custom method of ZBUS2105.
    Best Regards
    Sony

    Hi,
    Check the binding and Data Type of the  PR no. that you are passing.
    For the PR workflow, take a below note.
    WS20000077 this std. Workflow for the PR Release this has multiple levels of approvals, Depends on the no. of approvals it will flow.
    The approver can picked using the User Exit M06B0001 (EXIT_SAPLEBNF_001), here you have to write a logic to pick the Approver.
    The approval workitem comes to SAP Inbox, once the approver click the workitem it will open the Transaction, there the user can approve.
    To see the status of the Workflow, Go to ME53N, in the top left a button, Service Object, click on that, a drop down appear in Workflow > Workflow Overview, you can see the status here.
    Regards,
    Surjith

  • How to get Workflow code/wtf file from Oracle Customization Form

    Hi All,
    I am new to this forum. Can some one please help me how to get this wft file from customized oracle PO form ?
    Thanks,

    Pl post details of OS, database and EBS versions.
    What is "this wft" file ? WFT files are txt files of workflow definitions that can be downloaded from the database (or uploaded to the database) using WFLOAD utility.
    HOW TO DOWNLOAD WORKFLOW FILE .wft          [Document 578248.1]
    How To Update and Move Workflow From One Instance to Another?          [Document 398460.1]
    HTH
    Srini

  • One user not getting Workflow Notifications Mail

    Hi
    We are using Oracle11i (11.5.10.2) on windows 2000 server.
    One of our user complaining that he is not getting any workflow notification mail to his maild id.
    How can we fix and troubleshoot this issue?
    Thanks
    OH

    Hi,
    Is the issue with this specific user?
    Can you find any errors in the Workflow log file?
    Please see if any of these documents is applicable.
    Note: 743567.1 - Email Notifications are not Sent, and Mailer Log File Shows Error "Replyto Must Be a Valid Email Address"
    Note: 423405.1 - Not Receiving Workflow Email Notifications
    Regards,
    Hussein

  • Get workflow status abap object way

    Hi all of you,
    I am facing a workflow problem.
    I am working on a class that implements the interface IF_SWF_IFS_WORKITEM_EXIT.
    That class will be trigger after a user decision step to update a database table with current workflow informations.
    <b>My problem is how to find the workflow status (but not the user decision one) by knowing that my class is executed in the user decision step.</b>
    I know that I have this information in the table SWIWIOBJCT but as I decided to achieve my task using abap object, I would like to know if somebody know a simple way using abap object.
    I am facing another problem: if the user decide to approve the document my workitem (for the user decision step and the global workflow) will now have the COMPLETED, but at the moment my class is executed they don't have the COMPLETED status yet.
    Do someone know if the information on the new status of the workflow is stored anywhere?
    I don't know if I have exposed clearly my problem, but I can give some points to any helper since the answer is helpful.
    Thanks in advance.
    Rene

    Sorry for my language. Information about workflow work item's (WI) status can find in SWWWIHEAD (transparent table) by simple select or using FM SWW_WI_WL_READ (on enter need give id of WI).
    For another problem: can you get information about WI status twice from your own class (on enter and on out)? If can - check of changes status and did your procedures...

  • Getting Workflow Notification Mailer SMTP Information Programatically

    hi all,
    I have get SMTP information that is been configured in oracle applications r12.
    I need to know , how we can get it programmatically. Is there any database view?
    e.g smpt.gmail.com
    We have provide email intimation facility from ADF page.
    Thanks
    Balaganesh

    Hi,
    Please see FND_SVC_COMPONENTS and FND_SVC_COMP_PARAM_VALS tables (more details about the tables can be found in eTRM website).
    Workflow notification mailer not sending mails
    Re: Workflow notification mailer not sending mails.
    Note: 415721.1 - Which tables stores the NEW test address 'set override address' ?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=415721.1
    Regards,
    Hussein

  • Couldn't get t38 protocol to work for fax

    Hello, i am using a 1751V router with ios
    version 12.2 connecting to a 3725 voice gateway that connects toa PBX. i couldn't send fax successfully from the 1751V router to an extension on the PBX connected to the 3725 router. each time a get the fax tone it cuts off after about 7secs. I am using SIP session protocol between the routers. i did debug and i got the following error message.
    4d03h: SIP:SDP parse abort reason :6
    please HELP !!!!!

    It looks like a bug in the IOS check the bugs - CSCds47190 & CSCds50200

  • Get workflow tasks from WorkflowInstance?

    Hi!
    How do I get the workflow tasks associated with a specific workflow instance? Or can I get the workflow tasks directly from the list item itself?
    WorkflowServicesManager workflowServiceManager = new WorkflowServicesManager(web);
    WorkflowInstanceService workflowInstanceService = workflowServiceManager.GetWorkflowInstanceService();
    WorkflowInstanceCollection workflowInstances = workflowInstanceService.EnumerateInstancesForListItem(item.ParentList.ID, item.ID);
    // TODO: Get tasks...
    Thanks,
    Kiram

    Hi,
    Late reply, but I ended up using the following SPQuery to retrieve the task items associated with the specific SharePoint 2013 workflow instance:
    SPQueryspTaskQuery =
    newSPQuery{
    Query = "<Where><Eq><FieldRef Name='WF4InstanceId' /><Value Type='Text'>"+
    workflowInstance + "</Value></Eq></Where>"};
    Regards,
    Kiram

  • How to get Workflow details from workflowinstance ID using PowerShell

    Greetings
    I would like to know if there is a quick PowerShell command that I can run that returns details (eg, name, title, etc) associated with a workflow instance ID presented in an error message.  I would like to be able to do this to assist with troubleshooting
    2010 and 2013 workflow operation.  This would be beneficial in a situation where error messages are filling the Workflo Operations log, and these messages only present a workflowinstance ID and nothing else.  If I could could quickly use PowerShell
    to get details associated with that workflowinstance, it would greatly simplify troubleshooting, as I could more rapidly identify what running instance and list the workflow is associated with.
    Steve
    General

    Hi Stephan,
    According to your description, my understanding is that you want to list the running workflow instances in SharePoint 2013 On-premise.
    You can use PowerShell commands with SPWorkflowState enumeration to classify the workflow instances.
    More information:
    http://www.codeproject.com/Articles/679628/Easiest-Way-of-Cancelling-All-S
    http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.workflow.spworkflowstate(v=office.15).aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to get workflow task list ID?

    I created simple workflow in Office 365 SharePoint 2013 using SharePoint Designer 2013.
    The action Assign a task to user (Task outcome to Variable: Outcome |Task ID to Variable: TaskID) was used.
    The variable TaskID had a value something look like
    902aa0e9-0d58-47c0-a3ba-da96ebd47651, but I need ID from a task list.
    How to get the task list ID in SharePoint Designer Workflow?
    I am very grateful in advance for any help.
    bnossov

    I created dictionary and create two variables:
    Name: Accept; Type: string; Value:
     application/json;odata=verbose;
    Name: Content-Type ; Type: string; Value: application/json;odata=verbose;
    Output variable: JSonRequestHeader.
    I called HTTP web service:
    https://xxxxxx/_api/web/Lists/getbytitle('WorkflowTaskList')/items?$select=ID
    I used Count Items in Variables: JsonRequestHeader(Output to Variable: count)
    The output variable count had value equals 2.
    When I printed service url in browser it gave me xml with all the items ID in the
    WorkflowTaskList.  There were eight .
    How can I take data from web service and put them in dictionary?
    I would be grateful for any help.
    bnossov

  • How to get workflow instance for a workitemid

    Hi all ,
    I have a requirement where i need to get the workflow instance from a perticular workitem id .
    I have searched the forum , i dint get anything .No standard FM is also there .
    Please guide me on the same .
    regards
    sarmistha

    Hi Sarmistha,
    If you workitem ID open the workitem in SWI1/SWIA tcode. Click on workflow log (shiftF8). then click on List with technical details icon (shiftF9). now click on your workflow description (first step under steps column). The workitem ID given in the details column is the workflow instance ID.
    If you have queries let me know.
    Regards,
    Raj

  • Getting Workflow Results - Task Results

    Hello,
    I am running a report through a workflow. I need the report results back into workflow.
    I can view these results in the Task result for the workflow.
    Please provide your inputs on how to get back the result in the WF.
    Thanks in Advance.
    Regards.

    Hi..
    Below is the TaskResult view of the workflow.-
    Get Object: TaskResult, #ID#252D6E4E81E79E5B:1D349E2:11DD8E3CA53:-7FE7
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE TaskResult PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <!-- MemberObjectGroups="#ID#Top" id="#ID#252D6E4E81E79E5B:1D349E2:11DD8E3CA53:-7FE7" name="TaskResult#ID#252D6E4E81E79E5B:1D349E2:11DD8E3CA53:-7FE8#0000000000" sequence="0" taskName="TASK252D6E4E81E79E5B:1D349E2:11DD8E3CA53:-7FE9" taskid="#ID#252D6E4E81E79E5B:1D349E2:11DD8E3CA53:-7FE8"-->
    <TaskResult id='#ID#252D6E4E81E79E5B:1D349E2:11DD8E3CA53:-7FE7' name='TaskResult#ID#252D6E4E81E79E5B:1D349E2:11DD8E3CA53:-7FE8#0000000000' creator='Configurator' createDate='1227710311226' lastModifier='Configurator' lastModDate='1227710311226' sequence='0'>
    <TaskInstanceRef>
    <ObjectRef type='TaskInstance' id='#ID#252D6E4E81E79E5B:1D349E2:11DD8E3CA53:-7FE8' name='TASK252D6E4E81E79E5B:1D349E2:11DD8E3CA53:-7FE9'/>
    </TaskInstanceRef>
    <WavesetResult>
    <ResultItem type='report' status='ok'>
    <Report>&#xA; <preamble>&#xA; <title><Message>&#xA; <Text>Resource Status Report</Text>&#xA;</Message>&#xA;</title>&#xA;<date><DateTime jan1970millis='1227710311210' style='11'></DateTime>&#xA;</date>&#xA; </preamble>&#xA;<section>&#xA;<table>&#xA;<columns>&#xA;<col><Message id='UI_REPTS_XML_RES_NAME_COL'>&#xA;</Message>&#xA;</col><col><Message id='UI_REPTS_XML_RES_TYPE_COL'>&#xA;</Message>&#xA;</col><col><Message id='UI_REPTS_XML_RES_STATUS_COL'>&#xA;</Message>&#xA;</col><col><Message id='UI_REPTS_XML_RES_ERROR_COL'>&#xA;</Message>&#xA;</col></columns>&#xA;<rows>&#xA;<row><col>change</col>&#xA;<col>Database Table</col>&#xA;<col><Message id='UI_REPTS_XML_RES_STATUS_OK'>&#xA;</Message>&#xA;</col><col></col>&#xA;</row><row><col>Dreams_SJC</col>&#xA;<col>Database Table</col>&#xA;<col><Message id='UI_REPTS_XML_RES_STATUS_OK'>&#xA;</Message>&#xA;</col><col></col>&#xA;</row><row><col>DreamsAuthSrc</col>&#xA;<col>Database Table</col>&#xA;<col><Message id='UI_REPTS_XML_RES_STATUS_OK'>&#xA;</Message>&#xA;</col><col></col>&#xA;</row><row><col>GEDWDEV</col>&#xA;<col>com.waveset.adapter.RAMessages:RESTYPE_ORACLE</col>&#xA;<col><Message id='UI_REPTS_XML_RES_STATUS_OK'>&#xA;</Message>&#xA;</col><col></col>&#xA;</row><row><col>test_activeSync</col>&#xA;<col>Database Table</col>&#xA;<col><Message id='UI_REPTS_XML_RES_STATUS_OK'>&#xA;</Message>&#xA;</col><col></col>&#xA;</row></rows>&#xA;</table>&#xA;</section>&#xA;</Report> </ResultItem>
    </WavesetResult>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
    </MemberObjectGroups>
    </TaskResult>
    How do i get the report value in the above task result back to WF.
    Please provide ur inputs.
    Regards.

  • Unable to get workflow id in ecma script

    I am using the following ecma script in a OR split
    function check() {
       log.info("##########IN CHECK FUNCTION###########");
       var path=workItem.getWorkflow().getId() + "/metaData"
       var node=workflowSession.getSession().getItem(path);
       if (node.hasProperty("multipleapprovers")){
                 if(node.getProperty("multipleapprovers").getString() == "NOMOREREVIEWERS"){
                     return true;
                 }else{
                     return false;
    but i am seeing the following error in logs, I assumed workItem reference was provided to ECMA scripts
    Caused by: org.mozilla.javascript.EcmaError: ReferenceError: "workItem" is not defined. (/etc/workflow/scripts/script2.ecma#5)
              at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
              at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
              at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3413)
              at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1612)
              at org.mozilla.javascript.gen.c14._c1(/etc/workflow/scripts/script2.ecma:5)
              at org.mozilla.javascript.gen.c14.call(/etc/workflow/scripts/script2.ecma)
              at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
              at org.mozilla.javascript.gen.c14._c0(/etc/workflow/scripts/script2.ecma:20)
              at org.mozilla.javascript.gen.c14.call(/etc/workflow/scripts/script2.ecma)
              at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
              at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
              at org.mozilla.javascript.gen.c14.call(/etc/workflow/scripts/script2.ecma)
              at org.mozilla.javascript.gen.c14.exec(/etc/workflow/scripts/script2.ecma)
              at org.mozilla.javascript.Context.evaluateReader(Context.java:1227)
              at org.apache.sling.scripting.javascript.internal.RhinoJavaScriptEngine.eval(RhinoJavaScript Engine.java:114)
              at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)
    Any suggestions/pointers are appreciated
    Environment
    CQ 5.5, windows

    Try
    var url = oList.get_defaultViewUrl()
    Geetanjali Arora | My blogs |

  • Getting workflow status is "IS PROGRESS"

    Hi guys...... I have created a workflow in sharepoint designer 2010 in which i have used "Pause for 0 days, 0 hours, 5 minutes" condition but my workflow is stuck "INPROGRESS" state and it is showing description "pausing
    for 5 mins".any answers guys????:)

    Hi Tarique,
    Since you are posting the thread related to SharePoint 2010 Designer workflow to SharePoint 2013 forum, are you using SharePoint 2010 workflow in SharePoint server 2013 envrionment or 2010 envrionment?
    Please access Central Administration > Application Management > Manage services on server, switch to your server and All view, restart Microsoft SharePoint Foundation Workflow Timer Service. Test if the issue still exists.
    If it still doesn't work, please access Central Administration > Monitoring > Review job definitions, check if the Workflow, Workflow Autocleanup, and Workflow Failover timer jobs are working well in your web application. Try to make
    Workflow timer job to be scheduled to run every 1 minutes to test the issue again.
    More information about similar issue:
    http://support.microsoft.com/kb/2674684
    http://blogs.msdn.com/b/sharepointdesigner/archive/2007/05/02/hotfix-for-delay-need-better-title.aspx
    Regards,
    Regards,
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for

  • Itunes apps dont work in mac !

    i hv OS X 10.8.2 mac, when i dwnload apps from itunes app store on my mac.. they dont work, why??? n if they are only for iphones n ipads then why that facility is given in mac?

  • Reg: Page Protection Check Box in Smartform

    Hi,   In the folder node of the smart form, i want to use the check box ' Page Protection'. But the check box is disabled. Can any one guide me how to enable the check box. Thanks in advance. Rgds, Nagendra Prasad.J

  • Link to Files on Network

    We're in the process of upgrading from 10g to 11g. We have almost all functionality from 10g running in 11g, but are stuck trying to get link objects working as they were in 10g. In 10g we used the dashboard object "Link or Image" to link to files th

  • Call function module in update task

    Hi I am using the follwoing logic in my prog CALL FUNCTION 'Z_Update _Task'    In update task   EXPORTING     t_vbak        =  t_vbak. But the program goes to dump at call function Please let me know if the syntax i am using is correct. Edited by: ki

  • Auto cooky login in aur

    I wonder why nobody has made this suggestion so far: Wouldn't it be great if login on aur.archlinux.org was done by cookies as in the forums? I use the package search now and then and Firefox always asks me for the master password which annoys me. Ho