Skip to Content
Author's profile photo Nabheet Madan

Call Custom Transaction from Custom BO embedded in Work item Objects

We created a custom BO and the corresponding custom workflow for the same. Everything was working fine. The work item was having Business object embedded as an attachment. The requirement was to call the custom Tcode when user clicks on it. I have seen it in case of standard BO it was happening but in my case it was not.  So from here starts the investigation for why it was not happening in our case.

I noted in SWO1 whenever we create a custom BO without any reference or super type there are always two methods created by default one is EXISTENCECHECK and other is Display but they are in red. Idea came and i put a break point in display.

Bingo when I double clicked the object it was going to the debugger and stopping. So first step is over got to know how it was happening.

Next step was to write my own code there. But to my surprise it did not allow me. Google it and found that methods can be redefined also. If go in Edit there is an option to redefine it according to our own needs. I tried the same and it worked. Now i was able to write my own code and can perform operations.

So thought of sharing it with you guys, Let me know in case we have any other better options for the same.

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo zulfiqar beg
      zulfiqar beg

      Thanks Nabheet,

      I also have the same requirement, could u plz be more clear and tell the procedure.

      Zulfi

      Author's profile photo Nabheet Madan
      Nabheet Madan
      Blog Post Author
      In case you ahve custom BO just redifne above mentioned method and do a call transaction. Plus in task binding of the dialog task pass the BO
      Author's profile photo zulfiqar beg
      zulfiqar beg

      Thanks.

      Author's profile photo Former Member
      Former Member

      it is helpful, thanks.