cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow & Web Dynpro integration - best practice?

Former Member
0 Kudos

Hi,

I am working on ECC6 and EP7 and looking at building some workflow approval scenarios for Travel Management. I need to move away from the SAP supplied approval scenarios to meet our business requirements.

What I'm looking for is a 'best practice' for integrating a Web Dynpro application (for ABAP) which will be the basis of our approval workitem. I have seen a number of presentations which talk about integrating the user decision task (BOR object DECISION) into a web dynpro application. I have also seen an approach where the FM WDY_EXECUTE_IN_PLACE is used to call a Web Dynpro application from within a BOR object method.

I guess I'm wondering if there is an approach that provides a cleaner integration then either of the above approaches as they both appear (well to me anyway!) to have limitations. Is there a way for example of implementing an ABAP class method as the basis of the approval task that cleanly integrates with the Web Dynpro application?

Any suggestions would be greatly appreciated.

Thanks in advance

Michael Arter

Accepted Solutions (1)

Accepted Solutions (1)

surjith_kumar
Active Contributor
0 Kudos

Hi,

Check this [Thread|;.

Regards,

Surjith

Former Member
0 Kudos

Hi Surjith,

Thank you for that - I think that is going to be very useful.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Are you going to use the Universal worklist in your portal? If yes, that will bring you more possibilitites. Then you don't have to code anything into your business object - instead in portal (UWL configuration) you can define what which WD application is launched when the user clicks the task in UWL.

If you are going to use business workplace and just launch WD applications from there, then you probably just need to use WDY_EXECUTE_IN_PLACE (or any other suitable way to launch WD application from ABAP).

>Is there a way for example of implementing an ABAP class method as the basis of the approval task that cleanly integrates with the Web Dynpro application?

Yes, but what is really the need for this? Did you know that you can replace the methods of your BO as methods of an ABAP class? Just implement the IF_WORKFLOW interface for your class, and you can use it in your workflow then just like the BO. If you want to "replace" the whole BO with your ABAP class, just take a look to Jocelyn Dart's blog series about the subject. But as I said, it is not really necessary to do this - especially if you already have lot of custom code in your custom business object - then it is probably a good idea to continue using it for your custom stuff.

Regards,

Karri