Reg Usage of ODS Table in Transformation

Hai All,
            I am new to SAP NetWeaver BI. Can i use the ODS Table in the transformation rules ?
Is this the right approach  or not ? My requirement is i have  to poulate some infomration into new ODS depending on the data which is available in othere ods table.
Regards
Prashanth

Hi Prashant,
Please refer to the sources below to understand Transformations...
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/e60138fede083de10000009b38f8cf/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/e60138fede083de10000009b38f8cf/frameset.htm</a>
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/e60138fede083de10000009b38f8cf/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/e60138fede083de10000009b38f8cf/frameset.htm</a>
Also refer to this white paper in SDN on Transformations
<a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321ee19">https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321ee19</a>
To ensure good performance, use the Start or End Routine to execute such lookups on DSO tables.
Regards,
Shrikant

Similar Messages

  • Code to transfer xml file to abap internal table using transformation

    Hi friends
    Given the following xml file .the requirementis to  display and transfer the xml file to internal table usin transformation and gui_upload.If any onehaving simple code on this please send .
    Can any one sugest the steps to be followed to write source code using simple transformation.
    <?xml version="1.0" encoding="utf-8" ?>
    - <Negara>
    - <item>
    - <COUNTRY>
      <MANDT>600</MANDT>
      <ZCODE>500</ZCODE>
      <ZDESC>Pening Lalat</ZDESC>
      <ZSAPCD>T1</ZSAPCD>
      </COUNTRY>
      </item>
    - <item>
    - <COUNTRY>
      <MANDT>600</MANDT>
      <ZCODE>600</ZCODE>
      <ZDESC>Pening Lalat2</ZDESC>
      <ZSAPCD>T2</ZSAPCD>
      </COUNTRY>
      </item>
      </Negara>
    Thaking You

    hi..
    1. itab --- > xml
    xml ---> itab.
    2. This program will do both.
    (just copy paste in new program)
    3.
    REPORT abc.
    DATA
    DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
    DATA : BEGIN OF itab OCCURS 0,
    a(100) TYPE c,
    END OF itab.
    DATA: xml_out TYPE string .
    DATA : BEGIN OF upl OCCURS 0,
    f(255) TYPE c,
    END OF upl.
    DATA: xmlupl TYPE string .
    FIRST PHASE
    FIRST PHASE
    FIRST PHASE
    Fetch Data
    SELECT * FROM t001 INTO TABLE t001.
    XML
    CALL TRANSFORMATION ('ID')
    SOURCE tab = t001[]
    RESULT XML xml_out.
    Convert to TABLE
    CALL FUNCTION 'HR_EFI_CONVERT_STRING_TO_TABLE'
    EXPORTING
    i_string = xml_out
    i_tabline_length = 100
    TABLES
    et_table = itab.
    Download
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    filetype = 'BIN'
    filename = 'd:\xx.xml'
    TABLES
    data_tab = itab.
    SECOND PHASE
    SECOND PHASE
    SECOND PHASE
    REFRESH t001.
    CLEAR t001.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = 'D:\XX.XML'
    filetype = 'BIN'
    TABLES
    data_tab = upl.
    LOOP AT upl.
    CONCATENATE xmlupl upl-f INTO xmlupl.
    ENDLOOP.
    XML
    CALL TRANSFORMATION ('ID')
    SOURCE XML xmlupl
    RESULT tab = t001[].
    <b>Reward points if useful</b>
    Regards
    Ashu

  • Query regarding the data type for fetcing records from multiple ODS tables

    hey guys;
    i have a query regarding the data type for fetcing records from multiple ODS tables.
    if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
    can any one help with some suggestion.

    Hi Mudit,
    One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
    AS is used to rename the column name when data is being selected from your DB.
    So, the query  Select ename as empname from emptable will return the data with column name as empname.
    Regards,
    Bhavesh

  • Update without table comparsion transformation

    Hi Team,
    Is there any way to update the target table without table comparsion transformation. TC is taking so much of time for upsert operation or any other optimization technique to improve the performance of the TC and Map opeation.
    Thanks

    Detect deleted rows -  option is to capture the deleted rows from the target table after TC
    Input keys contains duplicates - the input key of source table will have duplicates
    Where did you see Detect all rows,Detect row with larger key values?
    Arun

  • Group by ODS table

    Hi experts,
    Some doubts, please advice.
    I am trying to send aggregate value of one column in ODS table into an internal table. I am using the following code.
    select carrid connid AVG( seatsocc ) as seatsocc
    from /BIC/ODSTable
    into corresponding fields of table itab
    where fldate = sy-datum group by carrid connid
    But either because there is no header line in ODS table, or because I did use right column names in the internal table itab, I got "0" in all rows. Could anyone please tell me which is the reason of my error?
    I tried to skip "corresponding fields of table itab ", and using internal table, however, i got an syntax error.
    I saw some ABAP book using working area. Is it the only solution? I am not familiar with working area and someone told me I should be very careful of working area. what's the deal with working area? Can I append working area to an internal table?
    Any suggestion will be really appreciated.
    Jenny

    Hi,
    If your Internal table itab has someother fields other than these 3 fields that you are updating then you need to specify ‘into corresponding fields of itab’. Whereas if your itab contains only these three fields then ‘into table itab’ will work.
    Work Area is a data object that should be compatible with the line type of the Internal table. It is an interface to the entries in the Internal table.
    When you write data to internal table, the data is first written to the work Area and then transferred to appropriate entries in the table.
    When you read data from an internal table to work Area, the record is over written to the work Area and it is used in the program.
    You can also access an internal table using field symbols. In this case you do not need to copy the data into a work area. You can assign a line of an internal table to a field symbol. Ideally, the field symbol will have the same type as the line type of the internal table. Once you have assigned the entry to the field symbol, working with the field symbol has exactly the same effect as accessing the corresponding line directly.
    Regards,
    Prema

  • Using table comparison transform can you point to multiple tables as target

    Using table comparison transform can you point to multiple tables as target tables?
    Thank you very much for the helpful info.

    If you want to feed the output to multiple tables, you can do so, but you have to be cautious enough on which table to be used as a comparison table in this case. The comparison table provided inside Table Comparison will be compared against the input data set for generating opcodes (Insert / Update / Delete) to input rows.

  • I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY WUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ??

    I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY QUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM .I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ?? HOW IT IS ??

    Hi Kishore,
    First identify deleted records by selecting "Detect deleted rows from comparison table" feature in Table Comparison
    Then Use Map Operation with Input row type as "delete" and output row type as "delete" to delete records from target table.

  • Read data from ODS table using value mapping

    hi all;
    can anyone help on how to read data from ODS table using value mapping

    Mudit,
    Take a look at this blog,
    <a href="/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler">DB Lookup in Mapping</a>
    Regards,
    Bhavesh

  • Table template transformation

    I'm trying to add a few columns to all tables with table template transformation script. In Sue Harper's demo the columns were not added to the template table, but to all other tables. However when I do the same thing the columns are added also to the template table. It also adds the same columns to all tables every time I run the transformation script. Is it supposed to add the columns only to those tables that don't already have them?

    Hello,
    I created a custom tranformation with the code supplied for adding columns from the template table. I ran into a Script evaluation error:
    sun.org.mozilla.javascript.internal.EvaluatorException:
    Java class
    "[Loracle.dbtools.crest.model.design.relational.Column;" has no public instance field or method named "getObjectID". (<unknown Source>#13)
    Do I need to configure any environment variables on my computer, or install anything so that this script will find what it needs?
    Thanks,
    Beatriz.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Reg:usage of table in popup window

    hi all
    i am using pop up window for opening very functionality of a button .but when i am using table ui element with type as input fields inside a pop up .when i click on button( details) this pop up is opening  with table ui element but in this table as i want to enter experience details of an employee in this table at run time is my scenario.here the problem is this table though it is in the  edit mode first row  , it not allowing to enter the values in it.(cardinality i have changed to 1:n).
    2)how to make all the rows of a table into input fields even though i have taken them as a input fields it showing in display mode .
    can any one share ur  knowledge on this
    regards
    Deepika

    Hi,
    Are you using normal table UI element or ALV.
    If you are using the normal table, check the READ_ONLY property should be unchecked for TABLE property.
    Also check at the INPUT edtior level.
    Regards,
    Lekha.

  • Create a xml file from an internal table: CALL TRANSFORMATION

    Hello gurus,
    I want to create a xml file using data from scustom table. I will create an internal table and will select some records to it.
    I searched the forum and i discovered the call transformation, but when i execute the example program at the CALL TRANSFORMATION shows a dump screen.
    How we create a xml file from internal table??
    Please help me. I will mark the useful answers.

    I'm using if_ixml class to create xml documents
    TYPES: BEGIN OF xml_line,
             data(256) TYPE x,
           END OF xml_line.
    DATA: o_ixml          TYPE REF TO if_ixml,
          o_document      TYPE REF TO if_ixml_document,
          o_element       TYPE REF TO if_ixml_element,
          o_streamfactory TYPE REF TO if_ixml_stream_factory,
          o_ostream       TYPE REF TO if_ixml_ostream,
          o_renderer      TYPE REF TO if_ixml_renderer.
    DATA: t_xml_table     TYPE TABLE OF xml_line,
          v_xml_size      TYPE i.
    o_ixml = cl_ixml=>create( ).
    o_document = o_ixml->create_document( ).
    * The o_document have a set of methods to add elements, attributes, etc.
    o_element  = o_document->create_simple_element(
                      name = 'RootNode'
                      value = 'some text'
                      parent = o_document ).
    o_streamfactory = o_ixml->create_stream_factory( ).
    o_ostream = o_streamfactory->create_ostream_itable( table = t_xml_table ).
    o_renderer = o_ixml->create_renderer( ostream  = o_ostream document = o_document ).
    o_renderer->render( ).
    v_xml_size = o_ostream->get_num_written_raw( ).
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
        bin_filesize = v_xml_size
        filename     = 'C:a.xml'
        filetype     = 'BIN'
      CHANGING
        data_tab     = t_xml_table.

  • Table Template Transformation Header/Footer Columns

    Hello @all,
    i'm new on this forum. i'm now starting to use Oracle SQL Data Modeler 3.1.0-700
    i found the transformation "Table template". I'm thinking about to use this transformation for modeling my Header and Footer columns. How can i create the Columns for my header on the first position of my table? Is there another possibility to create a header or footer?
    i hope you can understand my question.
    thank you for help,
    Max

    You can use
    table.moveToIndex(column,index);to move column you created to desired position - following will move the column to the beginning of list of columns:
    table.moveToIndex(column,0);Philip

  • Lookup by SQL select in ODS tables and source package

    Hi all
    I load FI data in ODS and need some extra info from older ODS records.
    In my Update rule for target InfoObject I created 2 SQL selects on Active Data and New data tables of ODS. Selects worked fine while testing them as separate program, but I got no data while data load.
    I guess, the data I need was in the same data package during data load. So I assume, besides Active/New data selects, I need to check data on SOURCE_PACKAGE. Is it possible on update rule level of InfoObject? Could you please, provide me some ABAP example?
    thanx in advance, points will be awarded.

    SELECT in field routine:
    ==========================================================
          DATA src_doc_no(10) TYPE c.
          DATA src_item_num(3) TYPE c.
          DATA src_year(5) TYPE c.
          DATA src_doc_typ(2) TYPE c.
      if ( COMM_STRUCTURE-AC_DOC_TYP = 'DD' or COMM_STRUCTURE-AC_DOC_TYP =
      'LD' ) and STRLEN( COMM_STRUCTURE-REF_KEY3 ) = 17.
         CONCATENATE COMM_STRUCTURE-REF_KEY3+0(4) '%' INTO src_year.
         src_item_num = COMM_STRUCTURE-REF_KEY3+15(3).
         src_doc_no = COMM_STRUCTURE-REF_KEY3+4(10).
    select from NEW data of ODS:
         SELECT AC_DOC_TYP into src_doc_typ
         FROM /BI0/AFIAR_O0340
         WHERE COMP_CODE = COMM_STRUCTURE-COMP_CODE
           AND DEBITOR = COMM_STRUCTURE-DEBITOR
           AND FISCVARNT = COMM_STRUCTURE-FISCVARNT
           AND AC_DOC_NO = src_doc_no
           AND ITEM_NUM = src_item_num
           AND FISCPER like src_year.
         endselect.
         if src_doc_typ = ''.
    select from ACTIVE data of ODS:
           SELECT AC_DOC_TYP into src_doc_typ
           FROM /BI0/AFIAR_O0300
           WHERE COMP_CODE = COMM_STRUCTURE-COMP_CODE
             AND DEBITOR = COMM_STRUCTURE-DEBITOR
             AND FISCVARNT = COMM_STRUCTURE-FISCVARNT
             AND AC_DOC_NO = src_doc_no
             AND ITEM_NUM = src_item_num
             AND FISCPER like src_year.
           endselect.
         endif.
         RESULT = src_doc_typ.
      endif.
    ============================================

  • Usage decision related tables

    Hi,
    I do a usage decision for a inspection lot of 10 qty in QA32. I enter UD code A( accept) and quantity as 4 and save.stock gets posted. Again in QA32 I  enter UD code as A1 ( conditional accept) for the same inspection lot and post remaining qty 6 .
    In what table can I get qty as 4 and 6 for a given inspection lot. Kindly help.
    Regards.

    Hi,
    In that functional module, I can get details of the last UD code which I have entered during Usage decisions.Previous UD codes are not there.Same is happening in table QAMB also.
    Pls guide.
    Regards.

  • Tables for Transformation's

    Hi friends,
    I'm using BI 7.0  and some DataSource's are mapped like DatsSource <>Infosource and some are DataSource<>Datataget in Transformations, now I want to know what are tables which are having all mapping details in BI 7.0
    Need Tables for :
    DatsSource <-->Infosource  (Transformations)
    DataSource<-->Datataget    (Transformations)
    Thanks
    Ganga.
    Edited by: Ganga on Jul 9, 2009 7:13 AM

    Hi Ganga ,
    Try out below mentioned tables. Hope they will solve your purpose.
    RSISOSMAP            Mapping Between InfoSources and DataSources (=OLTP Sources)
    RSOSFIELDMAP      Mapping Between DataSource Fields and InfoObjects
    RSKS                      Communications Structure (View) for Attributes for an InfoSource with Direct Update
    RSKSFIELD             Texts on InfoSources with Flexible Update
    RSISFIELD               InfoObjects of an InfoSource with Flexible Update
    Regards,
    Rohit Garg

Maybe you are looking for

  • This is the error message i get when trying to install itunes for the first time

    I have never had problems with installing itunes before but on this computer the message says could not access network location itunes\. Have tried everything and need some help No error codes just this message

  • Urgent: BI reports

    hi experts, can anyone tell me what is the support activities with respect to query? its urgent. jeevs

  • Help! My PC can't/won't connect with my Playbook.

    Since I bought my new Samsung with Windows 7 I have not been able to link up my PC with the Playbook.  When I first connect it, the system says it has mapped the Playbook as drive Z.  When I go to find it, drive Z does not exist.  The Blackberry Desk

  • Grant to a specific user and deny for all other users

    I have 100 users. Out of 100 users, i have windows & sql authentication users. I have a view "SQL_CONFIG_V" and want to give access to "corp\abc" (windows authentication user) and "poc" (sql authentication user) and all system user id's(by default) l

  • Unique held Document Numbers in Tcodes like F-02 etc.,

    Hi Friends, While holding a doument through F-02 (say) .... it will ask for an external documnet number.... ( this number is any random number the user can give ) ... My requirement is: Iam helding a document 'A' - and the held documnet number is say