Skip to Content

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

To use the value of container in Progam exit

Hi friends,

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.

Thanks,

Gaurav

Former Member
Former Member replied

Hi Gaurav

Try the below code:

Data: data1 type SWC_OBJECT,

lt_container type table of swcont.

call method container->get

Exporting

name = 'DRAW' u201CB.O. used in workflow

importing

VALUE = data1.

CALL FUNCTION 'SWO_INVOKE'

EXPORTING

ACCESS = 'G'

OBJECT = data1-handle

VERB = 'DocumentStatus'

TABLES

CONTAINER = lt_container

lt_container will then have the attribute with the data.

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