cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Dialog Step from WD ABAP.

Former Member
0 Kudos

Hi Friends,

I want to display User Decision steps / Dialog Step (where user can approve/reject )from my WD application . I was trying with the FM "SWL_WI_EXECUTE" and "SWL_WI_DISPATCH" but both are giving Null Pointer Dump. I debug and found that there is some problem which it generating HTML file .Has anybody any idea .

Thanks In Advance.

Satya

Accepted Solutions (0)

Answers (1)

Answers (1)

blent_evli
Explorer
0 Kudos

Dear Colleague,

In User Decision steps is not posible to use "SWL_WI_EXECUTE" or "SWL_WI_DISPATCH". With this can you complet any task's.

Tyr this BAPI 'SAP_WAPI_DECISION_COMPLETE'

Regards.

Bülent

Former Member
0 Kudos

Hi Bülent,

Thanks for the solution but still i am getting short dump with Null Refernce . FYI.. i want this funtionality in Wendynpro ABAP application . And this BAPI 'SAP_WAPI_DECISION_COMPLETE' is generating some HTML file and which is not supporting in WD ABAP. Is there any other BAPI ?

Thanks,

Satya

uday_gubbala2
Active Contributor
0 Kudos

Hi Satya,

I am using the same FM SAP_WAPI_DECISION_COMPLETE for approving/rejecting from within my WDA application. I dont see as to why this should not be working for you.

CALL FUNCTION 'SAP_WAPI_DECISION_COMPLETE'
    EXPORTING
      workitem_id          = im_workitem_id
      language             = sy-langu
      decision_key         = im_decision_key
   IMPORTING
      return_code          = ex_return_code.

Here the decision key is a value which my workflow consultant had provided me. (In my case its like 0001 for approval, 0002 for rejection & 0003 for sending back the form to the initiator.)

Regards,

Uday

Former Member
0 Kudos

Hi Uday,

Did you create a separate view for this or the HTML page is coming successfully for approve / reject . What i found that my application is giving dump when the FM trying to generate HTML page. Please advice.

Thanks in Advance.

Satya

uday_gubbala2
Active Contributor
0 Kudos

Hi Satya,

I didnt create any seperate view for this. I have an Adobe form embedded within my Web Dynpro component & at the top of this form I have the set of buttons wherein the manager can carry out the approval actions. (These buttons are outside the form i.e, above the InteractiveForm UI element & very much within the same view itself.)

Regards,

Uday

Former Member
0 Kudos

Hi Uday,

Thanks for the information but i want the same HTML page which is coming in the Dicision Step of Workflow (Or you can see by executing FM SWL_WI_DISPATCH).

Thanks,

Satya

Former Member
0 Kudos

Closing Thread.