To use the value of container in Progam exit
I am using program exit in my workflow. While using this class, I am able to use the value of container which is flowing in my workflow but How can I use a container which is of type some business object. Say I am using a container DRAW type business object DRAW. I want to use the values flowing in the container DRAW. Please guide.
Try the below code:
Data: data1 type SWC_OBJECT,
lt_container type table of swcont.
call method container->get
name = 'DRAW' u201CB.O. used in workflow
VALUE = data1.
CALL FUNCTION 'SWO_INVOKE'
ACCESS = 'G'
OBJECT = data1-handle
VERB = 'DocumentStatus'
CONTAINER = lt_container
lt_container will then have the attribute with the data.