Transformation in sap bw 7.0

i am learning sap bw. i would like to know full details on the topic  transformation in sab bw 7.0
Please search the forum before posting a thread.
Edited by: Pravender on Jul 8, 2010 10:57 AM

Hi,
Just move the select satement in the Start routine under Class implementation
and while populating the data in the field routine make a read on the internal table with the keyfield fetching.
Just populate the data into a worka area for the keyfield combination and then move the corresponding fiedls to the the RESULT
in the field routine
Start routine changes:
CLASS lcl_transform IMPLEMENTATION.
Method
SELECT statement here
ENDMETHOD
Field routine changes.
READ TABLE <your internal table> INTo <work area>
WITH KEY <your conditions based on key field>
RESULT = <work area>-<your field>

Similar Messages

  • Create XML transformation in SAP R/3 4.7

    Hi Experts,
    Kindly let me know the transaction for creating xml transformation in sap r/3 4.7, if there is any.
    Though i could not find anything through tstc or se93.
    Is there any other way of creating xml transformation in r/3 4.7. There is a tcode STRANS in ecc6.0 but not in 4.7.
    Also, please help me resolving this issue of converting abap data to xml file: -
    is the following xml structure possible with transformation or by any other method.
    <Process_Order>
         <item>
                   <PO Number> PO123334 </PO Number>
                   <Header_mat> Mat123 </Header_mat>
                   <BOM>
                          <PDLabels>
                                  <PDLabel>
                                         <PCode>P123456</PCode>
                                         <Batch>123ABC</Batch>
                                         <Quantity>6000</Quantity>
                                         <PDDCode>1234567890</PDDCode>
                                 </PDLabel>
                                 <PDLabel>
                                        <PCode>P234567</PCode>       
                                        <Batch>567DEF</Batch>
                                        <Quantity>6000</Quantity>
                                        <PDDCode></PDDCode>
                                 </PDLabel>
                        </PDLabels>
                       <PDCartons>
                                <PDCarton>
                                       <PCode>P556677</PCode>
                                       <Batch>589GFT</Batch>
                                       <Quantity>1200</Quantity>
                                       <PDDCode></PDDCode>
                                </PDCarton>
                      </PDCartons>
                 </BOM>
        </item>
         <item>
                   <PO Number> PO123334 </PO Number>
                   <Header_mat> Mat123 </Header_mat>
                   <BOM>
                          <PDLabels>
                                  <PDLabel>
                                         <PCode>P123456</PCode>
                                         <Batch>123ABC</Batch>
                                         <Quantity>6000</Quantity>
                                         <PDDCode>1234567890</PDDCode>
                                 </PDLabel>
                                 <PDLabel>
                                        <PCode>P234567</PCode>       
                                        <Batch>567DEF</Batch>
                                        <Quantity>6000</Quantity>
                                        <PDDCode></PDDCode>
                                 </PDLabel>
                        </PDLabels>
                       <PDCartons>
                                <PDCarton>
                                       <PCode>P556677</PCode>
                                       <Batch>589GFT</Batch>
                                       <Quantity>1200</Quantity>
                                       <PDDCode></PDDCode>
                                </PDCarton>
                      </PDCartons>
                 </BOM>
        </item>
    </Process_Order>
    What i mean to ask is, is the hierarchy to this structural level is attainable using either transfomation or any other alternative.
    Thanks a lot in advance !
    Shreya

    oops the message structure has gone bad ........
    What i meant was : --
    <Process_Order>
      <item>
                   <PO Number> PO123334 </PO Number>
                   <Header_mat> Mat123 </Header_mat>
                   <BOM>
                          <PDLabels>
                                  <PDLabel>
                                         <PCode>P123456</PCode>
                                         <Batch>123ABC</Batch>
                                         <Quantity>6000</Quantity>
                                         <PDDCode>1234567890</PDDCode>
                                 </PDLabel>
                                 <PDLabel>
                                        <PCode>P234567</PCode>       
                                        <Batch>567DEF</Batch>
                                        <Quantity>6000</Quantity>
                                        <PDDCode></PDDCode>
                                 </PDLabel>
                        </PDLabels>
                       <PDCartons>
                                <PDCarton>
                                       <PCode>P556677</PCode>
                                       <Batch>589GFT</Batch>
                                       <Quantity>1200</Quantity>
                                       <PDDCode></PDDCode>
                                </PDCarton>
                      </PDCartons>
                 </BOM>
        </item>
    </Process_Order>

  • Is it possible to chose hierarchy-node in Transformation in SAP BW

    Hi there.
    Is it possible to chose hierarchy-node in Transformation in SAP BW.
    To calculate keyfigures and/or characteristics.
    We are in 7.0.
    Best Regards
    Ingrid

    Hi,
    It can  be possible if you go with routine...
    While updating the data from source to target (here you can lookup the Hierarchy table with transaction data(source) then Based on the hierarchy Node Id you can stamp the hierarchy value in the transaction ).
    I don't have system to give sample code but it can be achievable with ABAP help....
    Regards,
    Satya

  • Short Dump while creating transformation in SAP Trial 7.01

    Hi All,
    I'm getting this dump when I try to create transformation(BI 7) in Trial Version 7.01 software which I downloaded from SDN. Below is the dump error.
    "Make sure that the OCXs ICDataFlow.ocx and wdbdadpt.ocx auf are
    installed on your computer. You can find notes on installing and
    checking the BW Frontend by searching for SAP Notes with the
    following key words:
    Version, sapservX, Setup, Patch, Installation, Frontend, BW,
    sapbexc.xla, checktool, wdtaocx, wdtaocx.ocx
    If the front end is installed correctly but the error still occurs,
    contact SAP."
    I tried some notes but they didn't help. Few other threads said to install the latest patches. I have oss user id but market place allows downloads of latest patches only through Solution Manager. How do I install Sol Man in trial software. This is what Download Basket says:
    "All corrective software packages, for SAP NetWeaver 7.0 and SAP Business Suite 2005 and beyond that are delivered after April 2nd, 2007 will ONLY be available via SAP Solution Manager's Maintenance Optimizer. Find more details  here . "
    Any other solution if anyone knows then please share. Points will be assigned.
    Regards,
    Sujit.

    Hi,
    The problem was with the sap gui version. I installed the trial version on my office computer and my office computer had the latest gui. The sap gui that comes with the trial version has this problem. Check if they have a new trial version now. Hope this helps you.
    Regards,
    Sujit.

  • Transformation on SAP InfoObject

    Hi Experts,
    I have made a transformation on 0calmonth.
    As I want to create a dtp for this transformation I get the message that the Source 0CALMONTH (TYPE IOBJA) is not activ.
    (The infoobject is active; if I try to activate again, system says that it is already active).
    The same happens if I try to put dtps on other sap-delivered info-objects.
    I have found some notes that state that problems with infoobjects in d-version would be corrected with support package 8, but we are currently on support package 18.
    Does anybody know how can upload data from delivered info-objects (without creating my own one)?
    Thanks,
    Markus

    Hi Marcus
    Are you sure that you want a DTP on 0calmonth.
    As per my understanding, we can have attributes only for masterdata and we cannot use 0calmonth as dataprovider.
    To create a DTP , the target cannot be an infobject.
    Please correct me if I am wrong....
    Cheers
    Chanda

  • Xslt transformation using SAP BC 47

    Hi,
    I'm trying to do a transformation using the sap transformation package in the SAP BC ( rel 47 )
    I'm transforming an IDOC into a cXML order for example...
    The transformed xml contains some rather odd characters...
    Even a very simple xslt has these odd characters...
    directly after the DOCTYPE
    I'm using MapForce to create the xslt..
    Has anyone else experienced these issues?
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE cXML SYSTEM "....."[
      ]>
    <cXML payloadID="2005081645000002780916170000000000004039" timestamp="2005-08-16T09:16:17+0.00">
      <Header>
        <From>

    Hi,
    according to:
    >
    Michal_Krawczyk_PIXI wrote:
    > as per:
    > http://help.sap.com/saphelp_470/helpdata/EN/84/2e4d3ce624b800e10000000a114084/frameset.htm
    > "The href attribute no longer applies in this case."
    it appears the include element only works with the repository.... I tried
    <xsl:include sap:name="<Name_of_the_Transformation_in_Repository>"/>
    and it works.
    However this would mean, all includes i have to make have to be imported to the repository. If that's really the case, it'll be a huge problem, because the xsl-files i want to include are outside of my reference
    Regards, Lukas

  • Data Integrator "where" in query transform vs SAP table column date

    I have the following problem:
    I am using a query transform to grab data from a SAP table and have a "where" that looks like this that works:
    ZMM_STOMOS_HIST.ZPOST_DATE = to_date(to_char(sysdate(), 'YYYYMMDD'), 'YYYYMMDD')
    BUT it runs for a very long time and I have just realised that when I look at the sql statement via display optimized sql that the "where" statement does not show - which makes sense because it seems to return the entire table rows to DI before it starts to filter them on the "where".
    this is even though the pure SAP date is stored as YYYYMMDD type date and in DI we say take it to our BO table as type date u2013 the sql server database made it datetime. And when I validate the sql transform I get this warning.
    [Query:Query_1]
    BODI-1110411: Conversion warning <Warning: Expression <to_date(to_char(sysdate(), 'YYYYMMDD'), 'YYYYMMDD')> of type <DATETIME> will be converted to type <DATE>.> for expression <ZMM_STOMOS_HIST.ZPOST_DATE = to_date(to_char( sysdate( ),'YYYYMMDD'),'YYYYMMDD')
    >.
    I can get other "where" conditions to show in the optimized sql on the same table - no problem.
    e.g.
    SELECT ZSERIAL , ZUMOVETYP , ZUORIGIN , ZUDESTN , ZUTRDATT , ZUTRTIMM , ZUVENDER , ZUBOXSA1 , ZUBOXSA2
    FROM ZMM_STOMOS_HIST
    WHERE ZUMOVETYP = 'RBX'
    How do I get this particular where clause to appear in the optimized sql statement ? I suspect it has something to do with the formatting and have tried many formats but no go.

    Thank you so much .... I had to use a variable / paramter of type varchar(8) and the value as YYYYMMDD
    e.g. my script
    $today = to_char(sysdate(),'YYYYMMDD');
    print('date is : [$today]');
    This has resulted in a huge resource and most of all time saving.
    I still dont understand why DI cant just figure this out in a normal where like it does with other datatypes but right now it works so I am happy.

  • Transformation in SAP BI 7.0 routine

    Hi together,
    if got the following problem I don't understand.
    I've got a transformation between 2 DSO's.
    Some characteristics in the target-ods are filled with routines.
    The code for one of the characteristics:
    Global Part of the routine:
    $$ begin of 2nd part global - insert your code only below this line  *
    data:
          lt_konto_kontotyp type table of zifs_ktn_ktntyp,
          ls_konto_kontotyp type zifs_ktn_ktntyp,
    select * from zifs_ktn_ktntyp into table lt_konto_kontotyp.
    $$ end of 2nd part global - insert your code only before this line   *
    Now I expected to use the filled table lt_konto_kontotyp in the routine implementation
    with the code:
    class lcl_transform implementation.
      method compute_zifcm013.
      IMPORTING
        request     type rsrequest
        datapackid  type rsdatapid
       EXPORTING
         RESULT type tys_TG_1-/BIC/ZIFCM013
        data:
          monitor_rec    type rsmonitor.
    $$ begin of routine - insert your code only below this line        -
    ... "insert your code here
    *--  fill table "MONITOR" with values of structure "MONITOR_REC"
    *-   to make monitor entries
    ... "to cancel the update process
       raise exception type CX_RSROUT_ABORT.
    ... "to skip a record
       raise exception type CX_RSROUT_SKIP_RECORD.
    ... "to clear target fields
       raise exception type CX_RSROUT_SKIP_VAL.
    read table lt_konto_kontotyp into  ls_konto_kontotyp
    with key kontotyp = '03'.
         result = ls_konto_kontotyp-konto.
    $$ end of routine - insert your code only before this line         -
      endmethod.            
    My problem is lt_konto_kontotyp isn't filled with data, the select in the global
    part is not achieved?
    Is there an error in reasoning?
    King regards
    Lars

    Hi,
    Just move the select satement in the Start routine under Class implementation
    and while populating the data in the field routine make a read on the internal table with the keyfield fetching.
    Just populate the data into a worka area for the keyfield combination and then move the corresponding fiedls to the the RESULT
    in the field routine
    Start routine changes:
    CLASS lcl_transform IMPLEMENTATION.
    Method
    SELECT statement here
    ENDMETHOD
    Field routine changes.
    READ TABLE <your internal table> INTo <work area>
    WITH KEY <your conditions based on key field>
    RESULT = <work area>-<your field>

  • Delete Generated programs in transformations in SAP BI

    Hi Experts,
    I am facing an issue while deleting an old include program which was no more used in the transformation.
    While deleting the include program its still showing that its used in the generated program.
    But the transformation was deleted long back.
    Now could some one help me in deleting the generated program and the include.
    Thanks in advance.

    Hi,
    You need to deactivate the Function group and Function Module and delete the include program.
    Regards,
    Suman

  • Restore deleted transformation in sap bw

    a transformation from extractor to billing DSO has been accidentally deleted.
    the deleted one is captured in a Transport request which is not yet released.
    is there a way by which it can be restored...
    i mean rollback the deleted operation and restore the transformation again.

    Hi,
    If this transformation has been transported to other systems earlier, then one way of doing this is to ask your basis team to import back the transport request which got it moved to other system. I have done this in past and this can solve your problem provided it had been transported earlier.
    Thanks,
    Arminder Singh

  • How best to transform a SAP end user to a consultant ???

    After working as a SAP SD consultant,I realized a need for training SAP aspirants.But,focused only on a few SAP end users locally in Hyd, as the jargon
    and concepts were best suited for end users who work on live data ! Today with 10+ yrs SAP recruiting experience,  I wish to address this national demand (in India firstly) by locating near the end users community / location ( North India).
    I am open to  valuable suggestions / inputs related to training content ex: ASAP methodology ?
    Regards.
    DESH

    Hi Desh,
    There are lot of documents available in SAP Service Marketplace if you have S user id.  If you have already done a certification or working for implementation partner then you get this S user id to login into SAP Service Marketplace.
    SAP ASAP methodology comes with SAP Solution Manager, so you can check through SAP Solution Manager this ASAP methodology.
    In India, All CMMI level companies have their own delivery methodologies as per my knowledge, so 90% of the time they won't adopt SAP ASAP methodology... Either they go with Client methodology or sell their own implementation or support methodologies or different framework.
    At the outset, it is not mandatory to have this but if you have knowlege in delivery methodology framework like Waterfall, Scrum, Agile that would be added advantage.
    Regards
    GGOPII

  • Error in ABAP XSLT transformation

    Hi,
    Im trying to upload some data from XML to abap. But Im getting an error while transforming xml data to internal table.
    Here are the details.
    XML:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
      <!--  Edited by XMLSpy® -->
    <?xml-stylesheet type="text/xsl" href="ABAP1.xsl"?>
    <conceptRevDecisionXml>
    <projectInfo>
    <projectId>P000755</projectId>
    <stage>CON</stage>
    <country>Ethiopia</country>
    <region>AFRICA</region>
    <teamleader>Priya Agarwal</teamleader>
    <teamleaderfirstname>Priya</teamleaderfirstname>
    <teamleaderlastname>Agarwal</teamleaderlastname>
    <actionType>X</actionType>
    </projectInfo>
    </conceptRevDecisionXml>
    XSLT: Transformation
    <xsl:transform version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:sapxsl="http://www.sap.com/sapxsl"
    >
    <xsl:strip-space elements="*"></xsl:strip-space>
    <xsl:template match="/">
        <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
          <asx:values>
            <PROJID>
              <xsl:apply-templates select="//conceptRevDecisionXml"></xsl:apply-templates>
            </PROJID>
          </asx:values>
        </asx:abap>
    </xsl:template>
    <xsl:template match="conceptRevDecisionXml">
          <xsl:for-each select="projectInfo">
           <xsl:value-of select="projectId"></xsl:value-of>
           <xsl:value-of select="stage"></xsl:value-of>
           <xsl:value-of select="country "></xsl:value-of>
           <xsl:value-of select="region"></xsl:value-of>
           <xsl:value-of select="teamleader"></xsl:value-of>
           <xsl:value-of select="teamleaderfirstname"></xsl:value-of>
           <xsl:value-of select="teamleaderlastname"></xsl:value-of>
            <xsl:value-of select="actionType"></xsl:value-of>
            </xsl:for-each>
        </xsl:template>
    </xsl:transform>
    Once I run the program...Im getting an error saying...ABAP XML Formatting error in XML node..
    Im new to ABAP-XML parsing..Pls help me where Im going wrong..
    Thanks in advance.
    Regards,
    Priya

    Hi Priya,
    you can try with the below,
    1) Create a local ITAB with the structure of the XML,
    TYPES: BEGIN OF t_data,
            projectid           TYPE char30,
            stage               TYPE char30,
            country             TYPE char30,
            region              TYPE char30,
            teamleader          TYPE char30,
            teamleaderfirstname TYPE char30,
            teamleaderlastname  TYPE char30,
            actiontype          TYPE char30,
           END OF t_data.
    2) Create an XSLT prog in "STRANS" with the below code,
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
    <xsl:strip-space elements="*"/>
    <xsl:template match="/">
    <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    <asx:values>
    <L_DATA>
    <xsl:apply-templates select="//projectInfo"/>
    </L_DATA>
    </asx:values>
    </asx:abap>
    </xsl:template>
    <xsl:template match="projectInfo">
    <conceptRevDecisionXml>
    <PROJECTID>
    <xsl:value-of select="projectId"/>
    </PROJECTID>
    <STAGE>
    <xsl:value-of select="stage"/>
    </STAGE>
    <COUNTRY>
    <xsl:value-of select="country"/>
    </COUNTRY>
    <REGION>
    <xsl:value-of select="region"/>
    </REGION>
    <TEAMLEADER>
    <xsl:value-of select="teamleader"/>
    </TEAMLEADER>
    <TEAMLEADERFIRSTNAME>
    <xsl:value-of select="teamleaderfirstname"/>
    </TEAMLEADERFIRSTNAME>
    <TEAMLEADERLASTNAME>
    <xsl:value-of select="teamleaderlastname"/>
    </TEAMLEADERLASTNAME>
    <ACTIONTYPE>
    <xsl:value-of select="actionType"/>
    </ACTIONTYPE>
    </conceptRevDecisionXml>
    </xsl:template>
    </xsl:transform>
    3) Call the transformation as shown below,
    CALL TRANSFORMATION zxslt_project ---> "Name of the XSLT prog created above
    SOURCE XML l_xml_str                           ---> Source XML string
    RESULT l_data = l_data.                          ---> ITAB as in step 1 above
    Regards,
    Chen

  • How to define Interfaces in SAP PI

    HI Experts,
    I am kind of very new to SAP PI  topic and hear  we doing an  new SAP implementation project where the existing infrastructure is transformed to SAP.
    So , in this process we have analyze the different existing  interfaces like which one should pass through PI and which doesn't.
    hear my  question is how exactly we define the PI interfaces and differentiate them with regular user interfaces and database interfaces.
    Thanks,
    Kiran

    Hi,
    >>>hear my question is how exactly we define the PI interfaces and differentiate them with regular user interfaces and database interfaces
    you use PI interfaces for connecting one application to another
    but please read the basic info on PI first (available on SDN) before asking basic questions
    Thank you,
    Regards,
    Michal Krawczyk

  • How to escape special characters in Simple Transformation

    Hi Experts,
    I have got a problem to get a well formed xml document from the below simple transformation. The content of maktx contains
    special characters like & <, which are not allowed in a well formed XML-Document. But the result of the Simple Transformation
    contains this charcters even after the transformation as you can the in the result below. Has anyone a hint how to escape the
    characters included in the maktx.
    The transformation for maktx, should be something like
    Before: Material & < TEST
    After: Material &amp &lt TEST
    Report wihich calls the simple transformation
    types:
    BEGIN OF t_mat,
       matnr type matnr,
       maktx type maktx,
    end of t_mat.
    Data:
      mat type t_mat,
      xml_stream type xstring.
    START-OF-SELECTION.
    mat-matnr = '4711'.
    mat-maktx = 'Material & < Test'.
    CALL TRANSFORMATION ztest_st2
            SOURCE mat = mat
            RESULT XML xml_stream.
    CALL FUNCTION 'DISPLAY_XML_STRING'
      EXPORTING xml_string = xml_stream.
    Simple Transformation
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
      <tt:root name="MAT"/>
      <tt:template>
        <Leistungsschild>
            <CHARACT> MATNR </CHARACT>
            <CHARACT_DESCR> Materialnummer </CHARACT_DESCR>
            <VALUE tt:value-ref="MAT.MATNR"/>
            <CHARACT> MAKTX </CHARACT>
            <CHARACT_DESCR> Materialkurztext </CHARACT_DESCR>
            <VALUE tt:value-ref="MAT.MAKTX" />
        </Leistungsschild>
      </tt:template>
    </tt:transform>
    RESULT
    <?xml version="1.0" encoding="utf-8" ?>
    <Leistungsschild>
      <CHARACT>MATNR</CHARACT>
      <CHARACT_DESCR>Materialnummer</CHARACT_DESCR>
      <VALUE>4711</VALUE>
      <CHARACT>MAKTX</CHARACT>
      <CHARACT_DESCR>Materialkurztext</CHARACT_DESCR>
      <VALUE>Material & < Test</VALUE>   </Leistungsschild>

    Hi Sandra,
    First of all thaks for your quick answer to my problem.
    I see what you mean and get the same result, if I am using data-type string instead of xstring. But the recommendation in the XML-Books of SAP is to use XSTRING to save memory and circumflex problems between Codepages, when writing the XML-Stream to a filesystem.
    As you can see in the code abvoe I am using a SAP-FM to display the XML-Stream and this FM works only with XSTRING´s,
    that is one reason why I don´t understand that it displays it in the wrong way.
    Even the Debugger shows me for the XSTRING the wrong result. Does all that mean that the escaping will not be applyed if you are working with XSTING´s??

  • XML file to Internal table through XSLT - Call Transformation

    Hi Friends,
    I am trying to work a scenario where i have a simple XML file and i need to convert the data in to an internal table. When i execute the XSLT seperately, it works fine. I get the output, but when it is invoked through a ABAP program, i am getting the error "The called method START_XSLT_DEBUGGER of the calss CL_WB_XSLT_DEBUGGER returned the exception CX_XSLT_FORMAT_ERROR"
    I feel my XSLT program is not correct, but i am unable to find out what the issue is. Any help is really apreciated. I have gone through the SDN forum replies. But could not figure out what is wrong with my program
    Below given are the details.
    My XML File:
    <?xml version="1.0" encoding="utf-8"?>
    <List>
      <ITEM>
        <ITEMQUALF>ITEM1</ITEMQUALF>
        <MATERIAL>MAT1</MATERIAL>
      </ITEM>
      <ITEM>
        <ITEMQUALF>ITEM2</ITEMQUALF>
        <MATERIAL>MAT2</MATERIAL>
      </ITEM>
      <ITEM>
        <ITEMQUALF>ITEM3</ITEMQUALF>
        <MATERIAL>MAT3</MATERIAL>
      </ITEM>
    </List>
    My XSLT program:
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" xmlns:asx="http://www.sap.com/abapxml" exclude-result-prefixes="asx" version="1.0">
      <xsl:strip-space elements="*"/>
      <xsl:output encoding="utf-8" indent="yes" omit-xml-declaration="yes"/>
      <!--xsl:template match="/"-->
      <xsl:template match="List">
        <asx:abap version="1.0">
          <asx:values>
            <T_ACTUAL>
              <xsl:for-each select="*">
                <ITEMQUALF>
                  <xsl:value-of select="ITEMQUALF" />
                </ITEMQUALF>
                <MATERIAL>
                  <xsl:value-of select="MATERIAL" />
                </MATERIAL>
              </xsl:for-each>
            </T_ACTUAL>
          </asx:values>
        </asx:abap>
      </xsl:template>
    </xsl:transform>
    In my ABAP program:
    REPORT  z_xslt_abap_2.
    TYPES:
      BEGIN OF ty_actual,
        itemqualf   TYPE char50,
        material    TYPE char50,
      END OF ty_actual,
      line_t(4096)  TYPE x,
      table_t       TYPE STANDARD TABLE OF line_t,
      ty_t_actual   TYPE STANDARD TABLE OF ty_actual.
    DATA:
      t_actual    TYPE ty_t_actual,
      t_srctab    TYPE table_t,
      v_filename  TYPE string.
    DATA: gs_rif_ex     TYPE REF TO cx_root,
          gs_var_text   TYPE string.
    v_filename = 'D:\XML\xslt_test.xml'.
    * Function call
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename = v_filename
        filetype = 'BIN'
      TABLES
        data_tab = t_srctab
      EXCEPTIONS
        OTHERS   = 1.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    * Call Transformation
    TRY.
        CALL TRANSFORMATION (`ZXSLT_RAM`)
                SOURCE XML t_srctab
                RESULT     t_actual = t_actual.
      CATCH cx_root INTO gs_rif_ex.
        gs_var_text = gs_rif_ex->get_text( ).
        MESSAGE gs_var_text TYPE 'E'.
    ENDTRY .
    IF t_actual IS NOT INITIAL.
      WRITE: 'Success'.
    ENDIF.
    When i run the XSLT program seperately, this is the output that i get:
    <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
      <asx:values>
        <T_ACTUAL>
          <ITEMQUALF>ITEM1</ITEMQUALF>
          <MATERIAL>MAT1</MATERIAL>
          <ITEMQUALF>ITEM2</ITEMQUALF>
          <MATERIAL>MAT2</MATERIAL>
          <ITEMQUALF>ITEM3</ITEMQUALF>
          <MATERIAL>MAT3</MATERIAL>
        </T_ACTUAL>
      </asx:values>
    </asx:abap>
    I have been stuck with this for more than two days. If anyone can help me out with this, it would be really great. Please let me know, where i am going wrong.
    Thanks in advance.
    Best Regards,
    Ram.

    Hi,
    You can try this sample program, hopefully will help you.
    <a href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/readdatafromXMLfileviaXSLT+program&">Read Data From XML</a>.
    Regards,

Maybe you are looking for