Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP & XML

rainer_hbenthal
Active Contributor
0 Likes
560

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?

1 REPLY 1
Read only

rainer_hbenthal
Active Contributor
0 Likes
434

answered by myself