Skip to Content
author's profile photo Former Member
Former Member

Link between Appropritation Request and its Workflow log.

Hello All,

I am very new to the workflow related work.

We have configured a workflow for the approval of Appropriation request. For printing of Appropriation request we have developed a smart form where we need to show the status of the respective workflow item.

Now the question is how do i link the particular task id or workflow id to the particular Appropriation request.

I searched a lot, but may be i was making mistake somewhere in finding the same.

Kindly let me know the link between the same.

Thank you,

Vinod.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2008 at 06:38 AM

    Hi,

    If you know the Appropriation requst no, then,

    you can use FM: SAP_WAPI_WORKITEMS_TO_OBJECT

    By passing object type and objkey , you will get the work item details. You can select the flag top_level_items , to get only template level data in internal table worklist.

    Hope that helps.

    Regds,

    Akshay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2008 at 08:02 AM

    Hi,

    If you want find the corresponding workflow log for a given appropriation request programmatically, yes you can use SAP_WAPI_WORKITEMS_TO_OBJECT. Object Type for Appropriation Request is BUS2104. Use this as Object Type and give your appropriation request number as Object Key.

    If you want to have a look at the workflow for a given Appropriation Request, you can go to IMA3N and give your appropriation request number and go to Service for Objects -> Workflow ->

    Hope this helps you !!

    Regards

    Krishna Mohan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2008 at 08:43 AM

    First you need to check what Business Object is getting called from Generic Object Service(Toolbox) button and accordingly you need to create an instance for that Business Object in your Workflow Template.

    Use Macro

    SWC_CREATE_Object to code your method accordingly.

    Thanks

    Arghadip

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.