Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Get reservation number in class assigned to workflow task

Hi experts,

I have created a class and assigned it to a task in a workflow.  I have an attribute type reference to IF_WAPI_WORKITEM_CONTEXT in the class.  I would like to get the stock reservation number that has been created in the class.  Which method should i use?

Thanks,

Vitish.

replied

Hi Vitish,

I don't think that I have fully understood your requirement, you are using a task linked to a method from a class.

Your class has an attribute like the interface IF_WAPI_WORKITEM_CONTEXT.

ANd you want to get a stock reservation number that has been created in the class.

Well then I think that your class need to provide the reservation number to the task that will provide it to the workflow.

Meaning if the reservation number is known within your class then you should use a return parameter

Why do you talk about IF_WAPI_WORKITEM_CONTEXT which is an interface made to use a container from a workitem ?

You are within your class use the method from your class.

Cheers

Stephane

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question