I have a scenario in workflow where
Blocked invoice comes to workflow and i need to release it.
for this in workflow i an getting "IncomingInvoice " which is of type BO BUS2081.
I have created a method in ZBUS2081 for releasing this invoice. The binding is as follows.
From workflow i am passing the "IncomingInvoice" object to &_WI_OBJECT_ID& which is of type BUS2081.
This is working fine when i execute the workflow.
In the BO method the code is as follows.
data: gt_bapireturn type table of BAPIRET2 with HEADER LINE.
data: IncomingInvoice type ref to OBJECT.
CALL FUNCTION 'BAPI_INCOMINGINVOICE_RELEASE'
invoicedocnumber = object-key-INVOICEDOCNUMBER
fiscalyear = object-key-FiscalYear
DISCOUNT_SHIFT = ' '
return = gt_bapireturn
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
When i execute this method, it is releasing the document successfullt.
But when i execute the workflow, it showing the step completed, but the document is not released.
Please tell me if i am missing anything in the binding.
I think that data is passing fromworkflow to task but problem is when passing from task to method .