Tranformation

Hello
My Requirement is that I have a source table with columns A1, A2, A3, A4 with values 0 or 1, and the target table has column A. If any rows of source table has columns A1, A2, A3 or A4 with 1, then target table's column A should get populated with 1, 2, 3, and 4 respectively.
E.g. if A1 =1, then target table column A =1
If A2 =1, then target table column A =2
If A3 =1, then target table column A =3
If A4 =1, then target table column A =4
How would I implement such a logic in a mapping?
I am using OWB 10G on 9.2.6 database.
Thanks

Hi,
You can use the Expression operator to perform this operation, and implement the mapping logic using the CASE expression.
Regards,
Deepak Natarajan

Similar Messages

  • Need help in creating XSD for a WSDL file to tranform given XML

    Hi,
    Please let me knoe if this is the right forum to post the query below:
    We are trying to transform a XML output from a webservice using a XSD file. But we are facing problem as the XML output has some namespace issue and schema due to which transformation is not working fine. I am pasting the files below:
    WSDL file used is
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/Projectix20/SOAPAccess" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://tempuri.org/Projectix20/SOAPAccess" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/Projectix20/SOAPAccess">
    <s:element name="ExecuteSQLToXML">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="SQL" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="GUID" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="ExecuteSQLToXMLResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="ExecuteSQLToXMLResult">
    <s:complexType mixed="true">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="NewDataSet">
    <s:complexType>
    <s:choice>
    <s:element minOccurs="0" maxOccurs="unbounded" name="Table1">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="10" name="FName" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:choice>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetDataTablePage">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="SQL" type="s:string" />
    <s:element minOccurs="1" maxOccurs="1" name="PageNumber" type="s:int" />
    <s:element minOccurs="1" maxOccurs="1" name="RecordsPerPage" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="GUID" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetDataTablePageResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetDataTablePageResult">
    <s:complexType mixed="true">
    <s:sequence>
    <s:any />
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetRecordCount">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="SQL" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="GUID" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetRecordCountResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="GetRecordCountResult" type="s:int" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="UploadCanAtt">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="CanID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="Filename" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="bytesData" type="s:base64Binary" />
    <s:element minOccurs="0" maxOccurs="1" name="GUID" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="UploadCanAttResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="UploadCanAttResult" type="s:int" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="DownloadCanAtt">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="CanAttID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="GUID" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="DownloadCanAttResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="DownloadCanAttResult" type="s:base64Binary" />
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:schema>
    </wsdl:types>
    <wsdl:message name="ExecuteSQLToXMLSoapIn">
    <wsdl:part name="parameters" element="tns:ExecuteSQLToXML" />
    </wsdl:message>
    <wsdl:message name="ExecuteSQLToXMLSoapOut">
    <wsdl:part name="parameters" element="tns:ExecuteSQLToXMLResponse" />
    </wsdl:message>
    <wsdl:message name="GetDataTablePageSoapIn">
    <wsdl:part name="parameters" element="tns:GetDataTablePage" />
    </wsdl:message>
    <wsdl:message name="GetDataTablePageSoapOut">
    <wsdl:part name="parameters" element="tns:GetDataTablePageResponse" />
    </wsdl:message>
    <wsdl:message name="GetRecordCountSoapIn">
    <wsdl:part name="parameters" element="tns:GetRecordCount" />
    </wsdl:message>
    <wsdl:message name="GetRecordCountSoapOut">
    <wsdl:part name="parameters" element="tns:GetRecordCountResponse" />
    </wsdl:message>
    <wsdl:message name="UploadCanAttSoapIn">
    <wsdl:part name="parameters" element="tns:UploadCanAtt" />
    </wsdl:message>
    <wsdl:message name="UploadCanAttSoapOut">
    <wsdl:part name="parameters" element="tns:UploadCanAttResponse" />
    </wsdl:message>
    <wsdl:message name="DownloadCanAttSoapIn">
    <wsdl:part name="parameters" element="tns:DownloadCanAtt" />
    </wsdl:message>
    <wsdl:message name="DownloadCanAttSoapOut">
    <wsdl:part name="parameters" element="tns:DownloadCanAttResponse" />
    </wsdl:message>
    <wsdl:portType name="SOAPAccessSoap">
    <wsdl:operation name="ExecuteSQLToXML">
    <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Executes a SQL statement and returns a generic XML document with results from SQL statement.</documentation>
    <wsdl:input message="tns:ExecuteSQLToXMLSoapIn" />
    <wsdl:output message="tns:ExecuteSQLToXMLSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="GetDataTablePage">
    <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Executes a SQL statement and returns a generic XML document with results from SQL statement.</documentation>
    <wsdl:input message="tns:GetDataTablePageSoapIn" />
    <wsdl:output message="tns:GetDataTablePageSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="GetRecordCount">
    <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Executes a SQL statement and returns a generic XML document with results from SQL statement.</documentation>
    <wsdl:input message="tns:GetRecordCountSoapIn" />
    <wsdl:output message="tns:GetRecordCountSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="UploadCanAtt">
    <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Uploads a text or binary attachment file for a Candidate record.</documentation>
    <wsdl:input message="tns:UploadCanAttSoapIn" />
    <wsdl:output message="tns:UploadCanAttSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="DownloadCanAtt">
    <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Uploads a text or binary attachment file for a Candidate record.</documentation>
    <wsdl:input message="tns:DownloadCanAttSoapIn" />
    <wsdl:output message="tns:DownloadCanAttSoapOut" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="SOAPAccessSoap" type="tns:SOAPAccessSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    <wsdl:operation name="ExecuteSQLToXML">
    <soap:operation soapAction="http://tempuri.org/Projectix20/SOAPAccess/ExecuteSQLToXML" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetDataTablePage">
    <soap:operation soapAction="http://tempuri.org/Projectix20/SOAPAccess/GetDataTablePage" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetRecordCount">
    <soap:operation soapAction="http://tempuri.org/Projectix20/SOAPAccess/GetRecordCount" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="UploadCanAtt">
    <soap:operation soapAction="http://tempuri.org/Projectix20/SOAPAccess/UploadCanAtt" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="DownloadCanAtt">
    <soap:operation soapAction="http://tempuri.org/Projectix20/SOAPAccess/DownloadCanAtt" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="SOAPAccess">
    <wsdl:port name="SOAPAccessSoap" binding="tns:SOAPAccessSoap">
    <soap:address location="http://sales.projectix.com:81/customer/SOAPAccess.asmx" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    XSD file used for transformation is:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >
    <xs:element name="ExecuteSQLToXMLResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="ExecuteSQLToXMLResult"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="parameters">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="ExecuteSQLToXMLResponse"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="ExecuteSQLToXMLResult">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="NewDataSet"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="FNAME" type="xs:string"/>
    <xs:element name="Table1">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="FNAME"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="NewDataSet">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="Table1"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    XML Output from webservice call that we are trying to tranform using above XSD is:
    <parameters >
    <ExecuteSQLToXMLResponse xmlns = "http://tempuri.org/Projectix20/SOAPAccess" >
    <ExecuteSQLToXMLResult >
    <NewDataSet xmlns = "" >
    <xs:schema xmlns:xs = "http://www.w3.org/2001/XMLSchema" xmlns:msdata = "urn:schemas-microsoft-com:xml-msdata" >
    <xs:element name = "NewDataSet" msdata:IsDataSet = "true" >
    <xs:complexType >
    <xs:choice maxOccurs = "unbounded" >
    <xs:element name = "Table1" >
    <xs:complexType >
    <xs:sequence >
    <xs:element name = "FNAME" type = "xs:string" minOccurs = "0" ></xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    <Table1 >
    <FNAME >
    JOHN
    </FNAME>
    </Table1>
    <Table1 >
    <FNAME >
    John
    </FNAME>
    </Table1>
    <Table1 >
    <FNAME >
    John
    </FNAME>
    </Table1>
    <Table1 >
    <FNAME >
    JOHN
    </FNAME>
    </Table1>
    <Table1 >
    <FNAME >
    John
    </FNAME>
    </Table1>
    </NewDataSet>
    </ExecuteSQLToXMLResult>
    </ExecuteSQLToXMLResponse>
    </parameters>
    I am not sure what we are missing in XSD file that the XML output is not getting transformed correctly...although we tried transforming the XML output by removing some information in XML output above and it was getting trasformed properly..
    We remove
    1. xmlns = "http://tempuri.org/Projectix20/SOAPAccess" from <ExecuteSQLToXMLResponse xmlns = "http://tempuri.org/Projectix20/SOAPAccess" >
    2. xmlns = "" from <NewDataSet xmlns = "" >
    3 remove <parameters > and </parameters > tags from output and the XML Output is getting tranformed correctly.
    Please let us know if we can transform the XML Output without requiring these removals.
    Thanks,
    Pawan

    Could you clarify some things? You are saying you are trying to transform the xml output of a webservice with an xsd, but an xsd is a schema that describes the allowed format of a xml file. If you want to transform xml from one format to an other (from one xsd to an other) you have to use a xsl file. You can make and test this with JDeveloper. Are you calling the webservice from esb or bpel?
    Kind Regards,
    Andre

  • How to do a FFT tranformation for every file in a folder of another folder?

    Dear all,
    I have a folder A, there are seven folders in folder A, I call these seven folders B. and there are 100 files in every folder B. These files are all the data information of current.
    ok, now I need to transfer every current file into a FFT tranformation, and save the transferred files corresponding to the original file.
    Does anyone have some idea? Thank you for any help!
    Jing

    Hi Mike
    In this way, How can I save the transferred files as the same way as the original files and folders?
    after FFT transformation, I hope to get 100 files in every "transferred B" and seven "transferred B" folders in one "transferred A" folder.
    Jing 

  • Problem in schema tranformation

    Hi,
    I am trying to tranform one object to another object by using transform activity.
    When i test the .xsl file by giving the input data in the jdeveloper transformation is successful.
    But when i deploy this object and test through bpel console, tranformed element is empty..
    Please guide me in resolving this problem.
    Please lookinto these BPEL project files.
    Transformation_1.xsl
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="WSDL">
    <schema location="TransformProcess.wsdl"/>
    <rootElement name="IFX" namespace="http://xmlns.oracle.com/TransformProcess"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="XSD">
    <schema location="BPMTestRule.xsd"/>
    <rootElement name="customerObj" namespace="http://xmlns.misys.com/jrules"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 10.1.2.0.2(build 060111.0746) AT [FRI DEC 08 14:31:15 IST 2006]. -->
    ?>
    <xsl:stylesheet version="1.0" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:ns3="urn:swift:xsd:$pain.004.001.01" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:ns2="urn:swift:xsd:$pain.001.001.01" xmlns:ns0="http://xmlns.misys.com/jrules" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:client="http://xmlns.oracle.com/TransformProcess" xmlns:ns4="urn:swift:xsd:$pain.002.001.01" xmlns:ns1="http://www.misys.com/ws/2006/05/myifx/core" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" xmlns:ns5="http://www.ifxforum.org/RemitDetailInfo/2004/07" exclude-result-prefixes="xsl plnk ns3 xsd ns2 ns0 client ns4 ns1 ns5 bpws ldap xp20 ora orcl">
    <xsl:template match="/">
    <ns0:customerObj>
    <loanAmount>
    <xsl:value-of select="/ns1:IFX/ns1:BankSvcRq/ns1:DebitAddRq/ns1:DebitInfo/ns1:CompositeCurAmt/ns1:CurAmt/ns1:Amt"/>
    </loanAmount>
    </ns0:customerObj>
    </xsl:template>
    </xsl:stylesheet>
    TransformProcess.wsdl
    <definitions
    name="TransformProcess"
    targetNamespace="http://xmlns.oracle.com/TransformProcess"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ns1="http://www.misys.com/ws/2006/05/myifx/core"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:ns2="http://xmlns.misys.com/jrules"
    xmlns:client="http://xmlns.oracle.com/TransformProcess"
    >
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/TransformProcess"
    xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.misys.com/ws/2006/05/myifx/core">
    <import namespace="http://www.misys.com/ws/2006/05/myifx/core" schemaLocation="myifx_draft.xsd"/>
    <element name="IFX" type="ns1:IFX_Type"/>
    <element name="IFXDataElement">
    <complexType>
    <sequence>
    <element ref="ns1:IFX" minOccurs="0" maxOccurs="1"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:import namespace="http://xmlns.misys.com/jrules" schemaLocation="BPMTestRule.xsd"/>
    </xsd:schema>
    </types>
    <message name="TransformProcessResponseMessage">
    <part name="payload" element="client:IFX"/>
    </message>
    <message name="CustMesaage">
    <part name="payload" element="ns2:customerObj"/>
    </message>
    <message name="TransformProcessRequestMessage">
    <part name="payload" element="client:IFX"/>
    </message>
    <portType name="TransformProcess">
    <operation name="initiate">
    <input message="client:TransformProcessRequestMessage"/>
    </operation>
    </portType>
    <portType name="TransformProcessCallback">
    <operation name="onResult">
    <input message="client:TransformProcessResponseMessage"/>
    </operation>
    </portType>
    <plnk:partnerLinkType name="TransformProcess">
    <plnk:role name="TransformProcessProvider">
    <plnk:portType name="client:TransformProcess"/>
    </plnk:role>
    <plnk:role name="TransformProcessRequester">
    <plnk:portType name="client:TransformProcessCallback"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    TransformProcess.bpel
    <!--
    // Oracle JDeveloper BPEL Designer
    // Created: Fri Dec 08 10:17:44 IST 2006
    // Author: Rekha
    // Purpose: Asynchronous BPEL Process
    -->
    <process name="TransformProcess" targetNamespace="http://xmlns.oracle.com/TransformProcess" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ns1="http://www.misys.com/ws/2006/05/myifx/core" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xmlns.misys.com/jrules" xmlns:client="http://xmlns.oracle.com/TransformProcess" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"><!-- ================================================================= --><!-- PARTNERLINKS --><!-- List of services participating in this BPEL process --><!-- ================================================================= -->
    <partnerLinks><!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="client:TransformProcess" myRole="TransformProcessProvider" partnerRole="TransformProcessRequester"/>
    </partnerLinks><!-- ================================================================= --><!-- VARIABLES --><!-- List of messages and XML documents used within this BPEL process --><!-- ================================================================= -->
    <variables><!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:TransformProcessRequestMessage"/><!-- Reference to the message that will be sent back to the
    requester during callback
    -->
    <variable name="outputVariable" messageType="client:TransformProcessResponseMessage"/>
    <variable name="ruleVar" messageType="client:CustMesaage"/>
    <variable name="ruleVar1" messageType="client:CustMesaage"/>
    </variables><!-- ================================================================= --><!-- ORCHESTRATION LOGIC --><!-- Set of activities coordinating the flow of messages across the --><!-- services integrated within this business process --><!-- ================================================================= -->
    <sequence name="main"><!-- Receive input from requestor.
    Note: This maps to operation defined in TransformProcess.wsdl
    -->
    <receive name="receiveInput" partnerLink="client" portType="client:TransformProcess" operation="initiate" variable="inputVariable" createInstance="yes"/><!-- Asynchronous callback to the requester.
    Note: the callback location and correlation id is transparently handled
    using WS-addressing.
    -->
    <assign name="Transform_1">
    <copy>
    <from expression="ora:processXSLT('Transformation_1.xsl',bpws:getVariableData('inputVariable','payload'))"/>
    <to variable="ruleVar" part="payload"/>
    </copy>
    <bpelx:annotation>
    <bpelx:pattern>transformation
    </bpelx:pattern>
    </bpelx:annotation>
    </assign>
    <invoke name="callbackClient" partnerLink="client" portType="client:TransformProcessCallback" operation="onResult" inputVariable="outputVariable"/>
    </sequence>
    </process>

    Hi,
    thanks for the reply. I have modified my files.
    I have a root element in the source object IFXDataElement which is mapped to customerObj.
    But when i run the process, IFXDataElement is not having namespace . thts the reason transformation failing.
    I tried testing the xsl mapping in the jdeveloper. It fails when i remove the namespace for the root element.
    but when I copy the inputVariable to the ifxReq variable, its creating the target root IFXDataElement as the root element without namespace.
    Please let me know how to overcome this problem.
    Modified files are here:
    <!--
    // Oracle JDeveloper BPEL Designer
    // Created: Fri Dec 08 10:17:44 IST 2006
    // Author: Rekha
    // Purpose: Asynchronous BPEL Process
    -->
    <process name="TransformProcess" targetNamespace="http://xmlns.oracle.com/TransformProcess" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ns1="http://www.misys.com/ws/2006/05/myifx/core" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xmlns.misys.com/jrules" xmlns:client="http://xmlns.oracle.com/TransformProcess" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"><!-- ================================================================= --><!-- PARTNERLINKS --><!-- List of services participating in this BPEL process --><!-- ================================================================= -->
    <partnerLinks><!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="client:TransformProcess" myRole="TransformProcessProvider" partnerRole="TransformProcessRequester"/>
    </partnerLinks><!-- ================================================================= --><!-- VARIABLES --><!-- List of messages and XML documents used within this BPEL process --><!-- ================================================================= -->
    <variables><!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:TransformProcessRequestMessage"/><!-- Reference to the message that will be sent back to the
    requester during callback
    -->
    <variable name="outputVariable" messageType="client:TransformProcessResponseMessage"/>
    <variable name="ruleVar" messageType="client:CustMesaage"/>
    <variable name="ruleVar1" messageType="client:IFXEnvelopeMessage"/>
    <variable name="ifxReq" messageType="client:IFXDataElementMessage"/>
    <variable name="ifxEnvelopeVar" messageType="client:IFXEnvelopeMessage"/>
    <variable name="ifxElem" messageType="client:RuleMessage"/>
    <variable name="testVar" messageType="client:IFXEnvMessage"/>
    </variables><!-- ================================================================= --><!-- ORCHESTRATION LOGIC --><!-- Set of activities coordinating the flow of messages across the --><!-- services integrated within this business process --><!-- ================================================================= -->
    <sequence name="main"><!-- Receive input from requestor.
    Note: This maps to operation defined in TransformProcess.wsdl
    -->
    <receive name="receiveInput" partnerLink="client" portType="client:TransformProcess" operation="initiate" variable="inputVariable" createInstance="yes"/><!-- Asynchronous callback to the requester.
    Note: the callback location and correlation id is transparently handled
    using WS-addressing.
    -->
    <assign name="Transform_1">
    <copy>
    <from expression="ora:processXSLT('Transformation_1.xsl',bpws:getVariableData('inputVariable','payload'))"/>
    <to variable="ruleVar" part="payload"/>
    </copy>
    <bpelx:annotation>
    <bpelx:pattern>transformation
    </bpelx:pattern>
    </bpelx:annotation>
    </assign>
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload"/>
    <to variable="ifxReq" part="payload"/>
    </copy>
    </assign>
    <assign name="Transform_2">
    <copy>
    <from expression="ora:processXSLT('Transformation_2.xsl',bpws:getVariableData('ifxReq','payload'))"/>
    <to variable="ruleVar" part="payload"/>
    </copy>
    <bpelx:annotation>
    <bpelx:pattern>transformation
    </bpelx:pattern>
    </bpelx:annotation>
    </assign>
    <invoke name="callbackClient" partnerLink="client" portType="client:TransformProcessCallback" operation="onResult" inputVariable="outputVariable"/>
    </sequence>
    </process>
    <definitions
    name="TransformProcess"
    targetNamespace="http://xmlns.oracle.com/TransformProcess"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ns1="http://www.misys.com/ws/2006/05/myifx/core"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:ns2="http://xmlns.misys.com/jrules"
    xmlns:client="http://xmlns.oracle.com/TransformProcess"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    >
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/TransformProcess"
    xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.misys.com/ws/2006/05/myifx/core"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
    <import namespace="http://www.misys.com/ws/2006/05/myifx/core" schemaLocation="myifx_draft.xsd" />
    <element name="IFX" type="ns1:IFX_Type"/>
    <!-- <element name="IFXDataElement" type="ns1:IFXDataElement_Type"/> -->
    <element name="IFXDataElement" type="ns1:IFXDataElement_Type"/>
    <!-- <complexType>
    <sequence>
    <element ref="ns1:IFX" minOccurs="0" maxOccurs="1"/>
    </sequence>
    </complexType>
    </element> -->
    <element name="IFXEnvelope" >
    <complexType>
    <sequence>
    <element ref="client:IFX_new"/>
    </sequence>
    </complexType>
    </element>
    <element name="IFX_new">
    <complexType>
    <sequence>
    <element ref="ns1:IFX" minOccurs="0" maxOccurs="1"/>
    </sequence>
    </complexType>
    </element>
    <element name="ifxelem" nillable="true" type="xsd:anyType">
    <!-- <complexType>
    <sequence> <element name="ifxdata" nillable="true" type="xsd:anyType" />
    </sequence>
    </complexType> -->
    </element>
    </schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:import namespace="http://xmlns.misys.com/jrules" schemaLocation="BPMTestRule.xsd"/>
    </xsd:schema>
    </types>
    <message name="TransformProcessResponseMessage">
    <part name="payload" element="ns1:IFX"/>
    </message>
    <message name="CustMesaage">
    <part name="payload" element="ns2:customerObj"/>
    </message>
    <message name="TransformProcessRequestMessage">
    <part name="payload" element="ns1:IFX"/>
    </message>
    <message name="RuleMessage">
    <part name="payload" element="ns1:IFX"/>
    </message>
    <message name="IFXDataElementMessage">
    <part name="payload" element="ns1:IFXDataElement"/>
    </message>
    <message name="IFXEnvelopeMessage">
    <part name="payload" element="client:IFXEnvelope"/>
    </message>
    <message name="IFXEnvMessage">
    <part name="payload" element="client:ifxelem"/>
    </message>
    <portType name="TransformProcess">
    <operation name="initiate">
    <input message="client:TransformProcessRequestMessage"/>
    </operation>
    </portType>
    <portType name="TransformProcessCallback">
    <operation name="onResult">
    <input message="client:TransformProcessResponseMessage"/>
    </operation>
    </portType>
    <plnk:partnerLinkType name="TransformProcess">
    <plnk:role name="TransformProcessProvider">
    <plnk:portType name="client:TransformProcess"/>
    </plnk:role>
    <plnk:role name="TransformProcessRequester">
    <plnk:portType name="client:TransformProcessCallback"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="WSDL">
    <schema location="TransformProcess.wsdl"/>
    <rootElement name="IFXDataElement" namespace="http://www.misys.com/ws/2006/05/myifx/core"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="XSD">
    <schema location="BPMTestRule.xsd"/>
    <rootElement name="customerObj" namespace="http://xmlns.misys.com/jrules"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 10.1.2.0.2(build 060111.0746) AT [MON DEC 18 14:41:58 IST 2006]. -->
    ?>
    <xsl:stylesheet version="1.0"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:ns3="urn:swift:xsd:$pain.004.001.01"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:ns2="urn:swift:xsd:$pain.001.001.01"
    xmlns:ns0="http://xmlns.misys.com/jrules"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:client="http://xmlns.oracle.com/TransformProcess"
    xmlns:ns4="urn:swift:xsd:$pain.002.001.01"
    xmlns:ns1="http://www.misys.com/ws/2006/05/myifx/core"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ns5="http://www.ifxforum.org/RemitDetailInfo/2004/07"
    exclude-result-prefixes="xsl plnk ns3 xsd ns2 ns0 client ns4 ns1 ns5 bpws ldap xp20 ora orcl">
    <xsl:template match="/">
    <ns0:customerObj>
    <ns0:customerObject>
    <loanAmount>
    <xsl:value-of select="/ns1:IFXDataElement/ns1:IFX/ns1:BankSvcRq/ns1:DebitAddRq/ns1:DebitInfo/ns1:CompositeCurAmt/ns1:CurAmt/ns1:Amt"/>
    </loanAmount>
    </ns0:customerObject>
    </ns0:customerObj>
    </xsl:template>
    </xsl:stylesheet>
    ____________________________

  • Error in Tranform Activity While Writing From File to DB Table

    Hi All,
    I m trying to read the contents of a csv file and writing it to the db table.
    When I am trying to map the file content to the db table using tranform activity, I am getting error as "failed to save XSL Map. Make sure XSL Map is valid".
    Any ideas on how to over come this issue.
    thnx in advance
    Edited by: md.irfan.khan on Sep 7, 2009 4:00 AM

    followed the steps mentioned below. but still I'm getting the same error:
    my transform.xsl file is as follows:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <ns0:SampledataCollection xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/dbWriteService">
    <ns0:Sampledata>
    <ns0:firstnm>1</ns0:firstnm>
    <ns0:gender>2</ns0:gender>
    <ns0:age>3</ns0:age>
    <ns0:lastnm>4</ns0:lastnm>
    </ns0:Sampledata>
    <ns0:Sampledata>
    <ns0:firstnm>5</ns0:firstnm>
    <ns0:gender>6</ns0:gender>
    <ns0:age>7</ns0:age>
    <ns0:lastnm>8</ns0:lastnm>
    </ns0:Sampledata>
    <ns0:Sampledata>
    <ns0:firstnm>9</ns0:firstnm>
    <ns0:gender>10</ns0:gender>
    <ns0:age>11</ns0:age>
    <ns0:lastnm>12</ns0:lastnm>
    </ns0:Sampledata>
    </ns0:SampledataCollection>
    Logs from Audit Trails Activity:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <audit-trail>
    - <event sid="0" cat="2" type="2" n="0" date="2009-09-08T10:14:48.080+03:00">
    - <message>
    - <![CDATA[ New instance of BPEL process "file2DbProcess" initiated (# "40001").
      ]]>
    </message>
    </event>
    - <event sid="BpPrc0.1" cat="1" type="2" label="process" n="1" date="2009-09-08T10:14:48.095+03:00" psid="0">
    - <message>
    - <![CDATA[ _cr_
      ]]>
    </message>
    </event>
    - <event sid="BpTry0.2" cat="1" type="2" n="2" date="2009-09-08T10:14:48.127+03:00" psid="BpPrc0.1">
    - <message>
    - <![CDATA[ _cr_
      ]]>
    </message>
    </event>
    - <event sid="BpSeq0.3" cat="1" type="2" label="sequence" n="3" date="2009-09-08T10:14:48.127+03:00" psid="BpTry0.2">
    - <message>
    - <![CDATA[ _cr_
      ]]>
    </message>
    </event>
    - <event sid="BpSeq0.3" cat="2" type="2" wikey="40001-BpRcv0-BpSeq0.3-1" n="4" date="2009-09-08T10:14:48.158+03:00">
    - <message>
    - <![CDATA[ Received "inputVariable" call from partner "client"
      ]]>
    </message>
    <details id="0" />
    - <detailsTemplate>
    - <![CDATA[ <inputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  name="payload"><toReplace id="0"/></part></inputVariable>
      ]]>
    </detailsTemplate>
    </event>
    - <event to="Invoke_fileService_SyncFileReadOperation_InputVariable_1" sid="BpSeq0.3" cat="2" type="1" wikey="40001-BpAss0-BpSeq0.3-2" n="5" date="2009-09-08T10:14:48.189+03:00">
    - <message>
    - <![CDATA[ Updated variable "Invoke_fileService_SyncFileReadOperation_InputVariable_1"
      ]]>
    </message>
    - <details>
    - <![CDATA[
    <Invoke_fileService_SyncFileReadOperation_InputVariable_1><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Empty"><empty xmlns="http://xmlns.oracle.com/pcbpel/adapter/file/fileReadService/">
                <ns1:input xmlns:ns1="http://xmlns.oracle.com/file2DbProcess">gdfghf</ns1:input>
            </empty>
    </part></Invoke_fileService_SyncFileReadOperation_InputVariable_1>
      ]]>
    </details>
    </event>
    - <event sid="BpSeq0.3" cat="2" type="4" wikey="40001-BpInv0-BpSeq0.3-3" partnerWSDL="fileReadService.wsdl" n="6" date="2009-09-08T10:14:48.439+03:00">
    - <message>
    - <![CDATA[ Faulted while invoking operation "SyncFileReadOperation" on provider "fileReadService".
      ]]>
    </message>
    - <details>
    - <![CDATA[
    <messages><input><Invoke_fileService_SyncFileReadOperation_InputVariable_1><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Empty"><empty xmlns="http://xmlns.oracle.com/pcbpel/adapter/file/fileReadService/">
                <ns1:input xmlns:ns1="http://xmlns.oracle.com/file2DbProcess">gdfghf</ns1:input>
            </empty>
    </part></Invoke_fileService_SyncFileReadOperation_InputVariable_1></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>null</code>
    </part><part name="summary"><summary>file:/C:/OracleBpel/10.1.3.1/OraBPEL_1/bpel/domains/default/tmp/.bpel_file2DbProcess_v2009_09_08__36696_083f54f05823204c42612c5188057cd4.tmp/fileReadService.wsdl [ SyncFileReadOperation_ptt::SyncFileReadOperation(Empty,SampledataCollection) ] - WSIF JCA Execute of operation 'SyncFileReadOperation' failed due to: Error while translating.
    Error occured while translating content from file C:\JDeveloperStudio10131\jdev\mywork\inputs\fileRead\csvFileInput.csv [Caused by: Start of root element expected.]
    ; nested exception is:
         ORABPEL-11008
    Error while translating.
    Error occured while translating content from file C:\JDeveloperStudio10131\jdev\mywork\inputs\fileRead\csvFileInput.csv [Caused by: Start of root element expected.]
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    </summary>
    </part><part name="detail"><detail>null</detail>
    </part></bindingFault></fault></messages>
    ]]>
    </details>
    </event>
    - <event sid="BpSeq0.3" cat="2" type="4" wikey="40001-BpInv0-BpSeq0.3-3" n="7" date="2009-09-08T10:14:48.439+03:00">
    - <message>
    - <![CDATA[ "{http://schemas.oracle.com/bpel/extension}bindingFault" has been thrown.
    ]]>
    </message>
    - <details>
    - <![CDATA[
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>null</code>
    </part><part name="summary"><summary>file:/C:/OracleBpel/10.1.3.1/OraBPEL_1/bpel/domains/default/tmp/.bpel_file2DbProcess_v2009_09_08__36696_083f54f05823204c42612c5188057cd4.tmp/fileReadService.wsdl [ SyncFileReadOperation_ptt::SyncFileReadOperation(Empty,SampledataCollection) ] - WSIF JCA Execute of operation 'SyncFileReadOperation' failed due to: Error while translating.
    Error occured while translating content from file C:\JDeveloperStudio10131\jdev\mywork\inputs\fileRead\csvFileInput.csv [Caused by: Start of root element expected.]
    ; nested exception is:
         ORABPEL-11008
    Error while translating.
    Error occured while translating content from file C:\JDeveloperStudio10131\jdev\mywork\inputs\fileRead\csvFileInput.csv [Caused by: Start of root element expected.]
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    </summary>
    </part><part name="detail"><detail>null</detail>
    </part></bindingFault>
    ]]>
    </details>
    </event>
    - <event sid="BpPrc0.1" cat="2" type="4" n="8" date="2009-09-08T10:14:48.439+03:00">
    - <message>
    - <![CDATA[ "BPELFault" has not been caught by a catch block.
      ]]>
    </message>
    </event>
    - <event sid="BpPrc0.1" cat="1" type="2" n="9" date="2009-09-08T10:14:48.455+03:00">
    - <message>
    - <![CDATA[ _cl_
      ]]>
    </message>
    </event>
    - <event sid="BpSeq0.3" cat="1" type="2" n="10" date="2009-09-08T10:14:48.455+03:00">
    - <message>
    - <![CDATA[ _cl_
      ]]>
    </message>
    </event>
    - <event sid="BpPrc0.1" cat="2" type="2" n="11" date="2009-09-08T10:14:48.470+03:00">
    - <message>
    - <![CDATA[ BPEL process instance "40001" cancelled
      ]]>
    </message>
    </event>
    </audit-trail>

  • Webservice returning string (but I need XML for XSLT Tranformation)

    Hello everybody,
    I have configured an ip with a webservice. So far so good - everything works fine.
    Now I want to transform the output of the webservice with xslt. The webservice returns the data as a String in form of XML.
    e.g.
        <!XML>
    <!String>
    <!String> </b>
    </Bill> <!XML>
    But XSLT don't find e.g the node , because it is a String. I think the right way is first to transform the String into XML. I tried this step with Java with the method
    public void execute(InputStream inputStream, OutputStream outputStream)
            throws StreamTransformationException {
    but it doesn't work. I am not sure, if this is the right way.I have searched for a code sample, but I didn't find anything.
    What do you think?
    Do you have a code sample?
    This would be great!
    Best regards,
    Jürgen

    Hello Bhavesh,
    thx very much for your help.
    Here is my Java Mapping:
    public class ModusLebenTransformation implements StreamTransformation
    public static byte[] readStream(InputStream in, boolean close)
        throws IOException
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        int c = in.read();
        while (c > -1)
            out.write(c);
            c = in.read();
        out.flush();
        byte[] result = out.toByteArray();
        out.close();
        if (close)
            in.close();
        return result;
    public void setParameter(Map map) {
    public void execute(InputStream inputStream, OutputStream outputStream)
            throws StreamTransformationException {
       try {
    TransformerFactory tFactory = TransformerFactory.newInstance();
                Transformer transformer = tFactory.newTransformer();
       StreamResult result = new StreamResult(outputStream);
    String input = new String(readStream(inputStream,true));
    transformer.transform(new StreamSource(input), result);      
      } catch (Exception e) {
                 throw new StreamTransformationException("Mapping failed", e);
    But I don't know if this code is enough to convert the String( from the webservice) into XML.
    And then I would like to use XSLT for transformation in a new mapping step.
    Do you think this is possible?
    Do you have a code sample, that will tranform the String (from the webservice) into XML?
    This would be very helpful!
    regards,
    Jürgen

  • Tranforming a Preference in Expression builder expression

    Hi there.
    I have a BPEL processo Preferecence populated with something like: concat('this is a test: ', bpws:getVariableData('inputVariable','payload','/client:TesteDescriptoresProcessRequest/client:input'))
    And when I do the ora:getPreference('TestPreference') I get a string with the expression that I whant to run/execute and assign to a variable.
    <result>
    concat('this is a test: ', bpws:getVariableData('inputVariable','payload','/client:TesteDescriptoresProcessRequest/client:input'))
    </result>
    But I want the result to be:
    *<result>*
    this is a test: 123
    *</result>*
    Someone knows how to tranform a string set in Prefereces to expression where i can use BPEL Expressions to assing values of variables ???
    I already tryed to do ora:ParseEscapedXML(ora:getPreference('TestPreference')) but isn't working.
    Thank you in advance.

    I'm still having that problem.
    Someone can help me ?

  • Expression Tranformation in ODI

    Hi,
    I am trying to develop an existing informatica mapping in ODI.
    my informatica ETL mapping design is like this:
    Source Qualifier ----------->1st Exp Tranformation ---------------->2nd exp trnsf --------> lookup ------> insert/update
    in the above design how can i implement 1st exp and 2nd exp transformations in ODI.
    Thanks

    Hi,
    Thanks for the reply.
    Yes,i used expression editor in one of my mappings.
    in my question you can see 2 expression tranfrmations.
    when i open target table expression editor i can apply the 1st exp transformations then how about 2nd exp tranformation which uses calculations from 1st.
    Thanks

  • Converting Tx Routines and Update Routines in to Tranformation in 2004's

    Hi,
    I have to get all the data from the existing BW 3.5 system in to the BI 7.0 system.
    While the conversion process if I choose to create the transformation instead and installing the update rules and tranfer rules and migrating those to the tranformations.
    Here I have three similiar questions:
    i. So, if I copy the transfer routines in to the Transformation, then do I have to change any ABAP Code?  Is there any syntax changes that have to be take care off.
    ii. If I copy the Update routines in to the Transformation, then do I have to change any ABAP Code?  Is there any syntax changes that have to be take care off.
    iii. If I copy the Start routines in to the Transformation, then do I have to change any ABAP Code?  Is there any syntax changes that have to be take care off.
    I appreciate your help.  Thanks!

    1) TRAN_STRUCTURE to SOURCE_FIELDS
    2) COMM_STRUCTURE to SOURCE_FIELDS
    3) DATA_PACKAGE to SOURCE_PACKAGE
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/bd9b5be97c112ce10000000a11466f/content.htm

  • XSLT Tranformation - XSL in a separate file?

    I'm using XSLT Tranformation service to transform an incoming XML document to a different format.  I've tested this successfully using a literal value for my XSL, but I'd like to store the XSL in a separate file rather than storing it as a literal string in the process properties.  However, I don't see any way to reference an XSL file in the process properties.  The only options are XPath expression, variable (string), literal value, and template.
    Alternatively, maybe there is a way to read the contents of an XSL file into a string variable which can then be used in the XSLT Tranformation?

    Hi Samuli!
    SECXML_DSIGNATURE doesn´t exist in my system  
    I ´m working with .txt files . I sign it with SSF_KRN_SIGN_BY_AS but I need to recover only the sign in a separated file.

  • Any helpers please on JAVA XSLT Tranformation

    I have an XML file and a XSLT file How using a Java class can I tranform the document to XHTML (i.e html in XML format)

    Follow this link:
    http://xml.apache.org/xalan-j/samples.html
    Good luck.

  • Tranformation is inactive

    Hi,
    one of our staging system we are getting issue with Tranformation activation issue.
    The tranformation between DSO to Cube.
    When we active the Tranformation its going short dump, the system updgrated to 701 to 702 from that time we are face issue only one of the tranformation remaining working fine.please help us is very urgent.
    below are the dump details
    Category               ABAP Programming Error
    Runtime Errors         ASSERTION_FAILED
    ABAP Program           CL_RSTRAN_GEN_STEPGRP=========CP
    Application Component  BW-WHM-DST
    Date and Time          09.02.2012 04:34:52
    Thanks,
    vikk

    Hi Vikkay,
    The following thread may be relevant to you issue ::
    http://forums.sdn.sap.com/thread.jspa?threadID=409992
    http://forums.sdn.sap.com/thread.jspa?threadID=1862413
    http://forums.sdn.sap.com/thread.jspa?threadID=925603
    Regards,
    Arpit

  • Error validating tranformation file

    Hello all, I am trying to load a Data Package in BPC.
    Created a flat file and tranformation file.
    When validate the tranformation file I am getting the following error:
    Validate has successfully completed
    ValidateRecords = YES
    Task name CONVERT:
    No 1 Round:
    Command CATEGORY does not start with *
    Error: Validate with data file failed
    I don't have a logic activated. I don't understand the error, whare I set the command Category?? this is a domension name instead a command.
    Any Idea what am I doing wrong??
    Thanks
    Sergio

    Thanks Pravin.
    This is extrange I have tried all the combination for Header and Skip options but allways got the error.
    I changed the transformation file as follow :
    *OPTIONS
    FORMAT = DELIMITED
    HEADER = YES
    DELIMITER = ;
    AMOUNTDECIMALPOINT = .
    SKIP = 0
    SKIPIF =
    VALIDATERECORDS=YES
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT=
    ROUNDAMOUNT=
    *MAPPING
    Category =*COL(1)
    Entity =*COL(2)
    P_ACCT =*COL(3)
    P_Activity =*COL(4)
    P_DataSrc =*COL(5)
    RptCurrency =*COL(6)
    Time =*COL(7)
    Amount =*COL(8)
    *CONVERSION
    now the error is different:
    Validate has successfully completed
    ValidateRecords = YES
    Task name CONVERT:
    No 1 Round:
    An exception with the type CX_SY_STRUCT_COMP_NAME occurred, but was neither handled locally, nor declared in a RAISING clause
    Component Name '2008.OCT' of the Component 15 Contains an Invalid Character
    Error: Validate with data file failed
    any idea??
    Thanks
    Sergio

  • Writing a routine in the tranformations

    Hi Gurus,
      There is a DSOA which is getting data from DSO1(100 infoobjeccts are coming from this DSO) and DSO2 (only 5 infoobjeccts are coming from this DSO).
    I have created tranformations from DSO1 to DSOA. and I want to write Routine (instead of creating Tranformations) for getting data from DSO2(As there are only 5 objects and DSO2 is having more than 150 fields). (in transformations I am using Select statement to get for getting values and the condition).
    Please consider this as urgent.
    Will this work? Please correct me where I am wrong.
    Thanks a lot.

    Hi Nandakumar,
    There is no relationship betwen DSO1 AND DSO2.
    We are getting data from DSO1 and DSO2 to DSOA.
    The common fields and proper mapping is existing for DSO1 with DSOA (with tranformations)
    Now when we want only 4 or 5 fields from DSO2 to DSOA.
    So I copied the same DSO1 as DSOA and included the balance 4 fields in DSOA to get those balanced fields.
    Now we are getting all the fields from DSO1 to DSOA(through transformations). but for these 4 fieilds we want to write a routine to get the data instead of creating transformation between DSO2 to DSOA as you said to write start routine..
    Can you please correct me ..is this possible>
    Thank you very much

  • URGENT: Complex Tranformation Scenario.

    Gurus, I have the following transformation sceanrio:
    Need to know few approaches how it could be done.
    I have a source XML schema which holds GL Account information. More specifically, it holds a row in GL_Code_Combinations table. It has a list of segment columns as follows:
    <xs:element name="segment1" minOccurs="0" nillable="true">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="25"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="segment2" minOccurs="0" nillable="true">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="25"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    and so on...
    I have a target XML schema which is used to hold the same information, however, the XML schema strucuture on this side is very generic. It uses an array of GLElement elements.
    E.g.
    <xsd:complexType name="GLAccountType">
    <xsd:sequence>
    <xsd:element ref="GLElement" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    Now each GLElement is used to hold one segment.
    Now I want to transform my source document to target. But no clue.
    The difficulty here is,
    1) Simple for-each is not feasible here. Because on source end, i do not have array of elements, but a list of different elements. So can't iterate over them using an index.
    2) The number of segments used varies depending on the ChartOfAccounts used. So, in some documents let's say only 1 to 5 segments are used and in some other let's say 1 to 7. Now in this cases, segments 2 and 3 may be null since they are allowed to have null values. So "first null encounter" can not be a test to determine the number of elements used.
    I can work out details myself. Need to know few approaches.
    Thanks in advance for any help you can provide.
    Best regards-
    Ashish.

    Well, for that additional requirement, I guess you could use local-name or name function available in the Node-set functions list under component palette in Tranformation design window.
    There are workarounds in my case:
    Prepare your query in such a way that the resultant schema will try to emulate your target schema structure. However, it is not a garceful way of achieving what i want.
    -Ashish.

  • Tranforming 0 to False and 1 to true

    Gurus,
    I am using sql query template and getting data  as 0/1 for one column from table.
    I want to show 0 as FALSE and 1 as TRUE in the iGrid.
    I didn't ever use the tranform tab . Do i have to write any xslt for my query??
    Or
    do i have to just change the query to get that simple transformation?
    Any ideas??
    Please help.
    Thanks
    Vansi

    Your best bet is to look at the help documentation for 11.5, there are several predefined xsl examples detailed there, and the wwwroot/Illuminator/Stylesheets directory has several examples for a point of reference.
    The InlineTransform tab is where you would apply this xsl file to your raw query data and it would need to take the Rowsets/Rowset/Row and produce the new desired Rowsets/Rowset/Row results.  This functionality pre-dates BLS, and it will probably be easier for you to use the action blocks to do your transformations.
    Regards,
    Jeremy

Maybe you are looking for

  • GIF create/edit

    I am new to both Adobe and Mac OS, and I'm trying to find a simple editor for making GIF's. Is there a file or application I should have on my system to do this, I'm not interest in getting illustrator at this point. I also have the new word with off

  • Problem with short id

    hello everyone, Does someone know how we can use in km6 sp13 the short id atrebuite for opening documents Thanks Asher Benbenisty

  • Can't connect dell bh200 headset to MacBook Air

    Well... The title of the message says it all... I have followed all the steps indicated in the various support pages, it won't work... Thank you for your help.

  • Lose alredy created session bean

    Hi all! I have a problem with useBean and session. I use a OrderCartBean and this object contain an ArrayList of OrdeBeans. I can add an OrderBean to OrderCartBean ArrayList. But next time I try to add an OrderBean to same OrderCartBean's ArrayList i

  • No Updates to iSync in Mac OS X 10.5.7

    Apple have just released Mac OS X 10.5.7 but there are no updates to iSync included. It remains at v3.0.2 (574.0) Virtually all the Bluetooth system software components have been significantly updated from v2.1.3f8 to 2.1.6f8, which could bring impro