FM to catch the WF container data?
I need a FM to catch the WF container data. but the input to the FM should be WF templete No. and the status of WF like "STARED/ COMPLETED"
If you know the object type and key you are working with then you could use SAP_WAPI_WORKITEMS_TO_OBJECT to retrieve the relevant workflows based upon the workflow template(s) you specify in the TASK_FILTER table. You could then filter the workflows retrieved by status.
FM SAP_WAPI_READ_CONTAINER could then be used to retrieve the container data.