Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically open specific workflow Approval Task in SBWP

suwandi_cahyadi
Contributor
0 Kudos

Hello,

As in the title, is there a way to open specific workflow approval task in SBWP? I plan to have another ALV report program and with a hotspot when clicked, open the specific workflow approval task inbox in SBWP.

Thank you.

4 REPLIES 4

Sandra_Rossi
Active Contributor
0 Kudos

It seems that your question is asking whether SBWP can do something that is its current goal (click a task and that triggers ABAP code, like displaying an ALV for instance).

So, I guess I don't understand your question.

suwandi_cahyadi
Contributor
0 Kudos

Hi,

Yes, only not triggered from SBWP but from a custom program instead..

NTeunckens
Active Contributor

I also do not quite understand why you would have / want to do this, yet you can find some info in the SAP-Blog regarding "WF FunctionModules, Transactions, Hints" : link

Sandra_Rossi
Active Contributor
0 Kudos

If the question is to have a custom screen and clicking somewhere should simulate "open SBWP" + "click a given decision step workitem" so that to display the possible decisions, and then let the user make the decision, then NO, not exactly.

Here are some ideas to do it differently:

  • You may restrict the list of workitems displayed via the BAdI WF_BWP_SELECT_FILTER.
  • You may create a custom screen which displays the list of possible choices of a given workitem, and you call SAP_WAPI_DECISION_COMPLETE.
  • You may create your own custom inbox (class CL_WF_INBOX_01; see source code behind transaction codes SWLD_INPLACE*)
  • Etc.