Skip to Content
0
Former Member
May 29, 2008 at 02:23 PM

Workflow container element empty

390 Views

Hi all,

I have the following problem:

- my workflow container has an element named 'AbsenceRequest'

- in the element 'AbsenceRequest' I have a subelement named Comments which is a table

- I created a business object type 'ZESS_AREQ' in SWO1 which has an attribute named 'Comments' and a method named 'Create'

- In a report I create an object of this object type using swc_create_object and I set subelement 'Comments' to a value 'test' using swc_set_table

- Then I call method 'Create' of the created object

- In that method I retrieve the value from the container using swc_get_table and I receive value 'test'

Then I have the following piece of code:

swc_free_object lf_object.                              
 MOVE lw_areq-pernr TO object-key-personnelnumber.       
 MOVE lw_areq-id TO object-key-id.                       
 swc_create_object lf_object 'ZESS_AREQ' object-key.     
 IF sy-subrc EQ 0.                                       
   swc_raise_event lf_object 'Created' container.        
   COMMIT WORK AND WAIT.                                 
 ENDIF.

Which should start the corresponding WF (which it does), but in my WF container the subelement Comments is empty...

Any idea what goes wrong?

Many thanks in advance!

Julien