Skip to Content
0
Former Member
Apr 05, 2004 at 12:01 PM

Dynamic parameters for CALL TRANSFORMATION ID

925 Views

How can I provide CALL TRANSFORMATION parameters dynamically as internal table when the appropriate elements are object references?

Example:

I want to transform several ABAP objects to XML. Calling CALL TRANSFORMATION for each object itself does work - using

CALL TRANSFORMATION ID

SOURCE OBJECT_REF = my_object

RESULT XML result.

But by using this method I get the XML wrapper information (<asx:abap version = "1.0" ....) for each object. To avoid the unnecessary redundacy of the wrapper information I try to use the CALL TRANSFORMATION statement only once and to provide the list of objects in an internal table which obviously has to be of type ABAP_TRANS_SRCBIND_TAB.

But using this type definition I can't assign my_object to the value field of the internal table because the type

of ABAP_TRANS_SRCBIND-value isn't convertable to an object reference?

Any ideas, how I can manage this?