‎2008 Oct 21 11:12 AM
Hi,
i'm doing an abap to xml transformation:
CALL TRANSFORMATION id
SOURCE bukrs = wa_out
RESULT XML xml.
and the result is
<?xml version="1.0" encoding="utf-8"?>
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<BUKRS><COCO>Name of companycode</COCO></BUKRS>
</asx:values>
</asx:abap>
so far so good. I would like to have the tag <BUKRS> dynamic as i know only at runtiume its value, something like this:
<?xml version="1.0" encoding="utf-8"?>
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<DEXX><COCO>Name of companycode</COCO></DEXX>
</asx:values>
</asx:abap>
i tried this without success:
bukrs = 'DEXX'.
CALL TRANSFORMATION id
SOURCE (bukrs) = wa_out
RESULT XML xml.
the documentation mentions a possible table stab from type ABAP_TRANS_SRCBIND_TAB, but i dont know how to fill this table cause its value has a type ref to data. Can anybody help me?
‎2008 Nov 07 10:24 AM