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

Help needed for XML transformation using tool- STRANS

Former Member
0 Likes
426

Trying to use simple transformation to convert data from SAP to below XML format.

please help me with examples..

Desired output

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ePASSRequest SYSTEM "D:\ePASS3.dtd">
<ePASSRequest requestID="RFP-PR003456_1329892182870"
  submitterOrganization="Goa" submitterPassword="Test" submitterUser="manish">
  <RFxRequest>
    <createRFx>
      <RFx OrganizationCode="SesaGoa" RFxCode="RFP-PR003456"
        RFxName="RFP-PR003456" RFxTemplateCode="Sesa_RFP_Template" RFxType="RFP">
        <Attachment AttachmentEntityType="rfx"
          AttachmentFolderName="RFP"
          AttachmentLocation="RFx_attachment_Header_LOC.pdf" AttachmentName="RFx_attachment_Header"/>
        <Requisition RequisitionCode="lot1"
          RequisitionDescription="lot 1 desc" RequisitionName="lot1">
          <LineItem LineItemCategoryCode="root category"
            LineItemCode="item1" LineItemDescription="desc"
            LineItemMinimumDesiredQuantity="10.0" LineItemName="item1"
            LineItemType="single" LineItemUnitOfMeasure="Box"/>
        </Requisition>
      </RFx>
    </createRFx>
  </RFxRequest>
</ePASSRequest>

1 REPLY 1
Read only

hendrik_brandes
Contributor
0 Likes
336

Hi,

if you want to transform something to something else, you should declare, what is your source.

I would prefer to use plain XSL-Transformations, because you have a lot more options to transform your source and you can even better determine, how your output should looks like.

Kind regards,

Hendrik