Skip to Content
0
Former Member
Jan 05, 2008 at 09:11 AM

FORMABSENC BOR Object, SAP demo workflow, execution from external .Net appl

108 Views

FORMABSENC BOR Object(SWO1) has a corresponding SAP demo workflow, which is for SAPGUI, meaning it has dialog steps. I am trying to create a similar scenerio from .Net application, without visiting SAP Inbox. I can start workflow on CREATED event of the FORMABSENC object and then I call the VOID_APPROVE method in a task, because the other two approve throw a dialog, so can not be used outside of SAPGUI.

These are the 3 methods for Approve:(SWO1)

AbsenceForm.ApproveAsynchron

(Approve form with terminating event)

AbsenceForm.Approve

(Approve form)

AbsenceForm.Void_approve

(Approve form without dialog)

Problems:

1. Void_approve does not seem to update the Table SWXFORMABS Column PROCSTATE(I don't see code to do that in this method)

2. Void_approve has code to update the container element "result" but does not seem to do that

Pl advise. Should I use UserDecision Step to approve/reject?

If that throws a dialog, then I can not use it, so what should be the best way to create a similar process from external .Net application?