Skip to Content

Help with adding PO link to workitem.

Hi All,

I need help in adding the link for PO like below to the work item.

I was able to add it manually by passing BUS2012 to the '_Adhoc_Objects', but how to add it programmatically.

P.S. I'm using classes and not BO



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2014 at 02:33 PM


    What do you mean by programmaticaly ?

    One thing you can do is create one workflow containrr of type of BO BUS2012.

    then get this container instantiated by calling method GENERICINSTAINTIATE of BO SYSTEM in an activity via task. You can pass OBJTYPE as BUS2012 and OBJKEY as PO number.

    Finally bind instantiated workflow container to _adhoc_object container of workitem task.



    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Ibrahim,

      I went ahead with your approach to solve my issue.

      But while trying to bind workflow container of type "BUS2012" to "&OBJECTINSTANCE&" of workitem task I was getting a binding error: "An object compatible with '[BO.]' was expected as the source expression".

      So directly I did binding of "_adhoc_object" with "&OBJECTINSTANCE&" and it worked.

      Thanks & Regards,


  • Posted on Jul 23, 2014 at 10:30 PM

    Hello Shailendra,

    Of course this this can be done completely in classes and don't let anyone tell you otherwise. Your object needs to implement IF_WORKFLOW, and the BI_OBJECT~EXECUTE_DEFAULT_METHOD method will be called when the hyperlink is clicked.

    If you are not familiar with using classes in WF, you do need to Instantiate them correctly using the the two LPOR methods. I can recommend the WF book (3rd edition due any day now), or Jocelyn's excellent blogs found right here on SCN.



    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.