Extraction from R/3 generated Table

Hi,
I have a situation that i have to extract from a table in ECC R/3 and that table name changes and changes mainly during transports as it is a SAP generated table containing the Fund and Fund Center.
but i need to extract the data  but not able to use it as the table name changes.
Anyone please can throw some light  on this how to use the extractor in this situation and how to work around with this table ????
Thanks,
GG

It is generated when it goes to the target system, right?
This table name would be stored somewhere, trace the R/3 programs associated with the table to figure out how it finds the table name.
Have an FM based extractor which will follow the same logic to dynamically select from the table (by finding the table name in the same way as SAP programs do).

Similar Messages

  • Data Extraction from SAP R/3 Table View in BW

    Dear All,
    I am trying to create a BW query from SAP R/3 Table View.
    Till now i have created a table view
    Extracted Data source in R/3 Useing Tcode : RSA3
    In BW Side
    1. I have replicated the data source in Source system
    2. Created  info object
        and info object catalog
        and assigned it
    Now i am little confused over what to do next
    wheather to create ODS object in info cube,
    Please guide me with rest of steps to follow.
    Regards,
    Gaurav

    Hi,
    After replicating DS in BW, you have to maintain ODS or Cube for maintaining data in BW.
    After loading data into Data Targets you can create Reports based on those Data Targets.
    For better reporting performance you can create Cube rather ODS.
    Info Source(After Creating info Objects, you have to create a Transfer Structure to map the Fields.)
    Then create a Data Target ODS/Cube.
    Update rules
    Info Package
    Hope it helps you .
    Let us know if you still have any issues.
    Reg
    Pra

  • Extraction from sap r/3 tables to flatfile

    hello Guru's
    i am new to this feild. we have a requirement that we need to extract data from hr feilds of different hr tables in sap to flat file. we have a flatfile structure. we don't have some of feilds in sap R/3 compared to flatfile. we need to fill those feilds also with logic.
    plz show me rigth direction with example code so that i can slove the problem.
    thanks
    rad

    Hi, 
    Check this sample program.
    REPORT  zdownempdata                                         .
    INFOTYPES: 0000, 0001, 0007, 0008, 0121, 0615.
    NODES: pernr.
    TABLES: t001p.
    TYPES: BEGIN OF t_employee,
           INCLUDE STRUCTURE hrms_biw_io_occupancy.
      begda     TYPE begda,
      endda     TYPE endda,
      pernr     TYPE pernr_d,
      rfpnr     TYPE rfpnr,
      bukrs     TYPE bukrs,
      werks     TYPE persa,
      btrtl     TYPE btrtl,
      persg     TYPE persg,
      persk     TYPE persk,
      orgeh     TYPE orgeh,
      stell     TYPE stell,
      plans     TYPE plans,
      kokrs     TYPE mast_coar,
      kostl     TYPE mast_cctr,
      abkrs     TYPE abkrs,
      molga     TYPE molga,
      trfar     TYPE trfar,
      trfgb     TYPE trfgb,
      trfkz     TYPE trfkz,
      trfgr     TYPE trfgr,
      trfst     TYPE trfst,
      bsgrd     TYPE bsgrd,
      ansal     TYPE ansal_15,
      ancur     TYPE ancur,
      empct     TYPE empct,
      stat2     TYPE stat2,
      ncsdate     TYPE hiredate,
      sltyp     TYPE p_sltyp,
      slreg     TYPE p_slreg,
      slgrp     TYPE p_slgrp,
      sllev     TYPE p_sllvl,
      ansvh     TYPE ansvh,
      vdsk1     TYPE vdsk1,
      sname     TYPE smnam,
    END OF t_employee.
    DATA: it_employee TYPE STANDARD TABLE OF t_employee INITIAL SIZE 0,
          wa_employee TYPE t_employee.
    TYPES: BEGIN OF t_emptexts,
           INCLUDE STRUCTURE hrms_bw_txt_employee.
      DATEFROM     TYPE RSDATEFROM,
      DATETO     TYPE RSDATETO,
      PERNR     TYPE PERSNO,
      TXTMD     TYPE EMNAM,
    END OF t_emptexts.
    DATA: it_emptexts TYPE STANDARD TABLE OF t_emptexts INITIAL SIZE 0,
          wa_emptexts TYPE t_emptexts.
    TYPES: BEGIN OF t_contract,
           INCLUDE STRUCTURE pa0615.
      pernr TYPE p0615-pernr,
      begda TYPE p0615-begda,
      endda TYPE p0615-endda,
      aedtm TYPE p0615-aedtm,
      ctype TYPE p0615-ctype,
      cbeg  TYPE p0615-cbeg,
      cend  TYPE p0615-cend,
    END OF t_contract.
    DATA: it_contract TYPE STANDARD TABLE OF t_contract INITIAL SIZE 0,
          wa_contract TYPE t_contract.
    DATA: it_tabemp TYPE filetable,
          gd_subrcemp TYPE i,
          it_tabempt TYPE filetable,
          gd_subrcempt TYPE i,
          it_tabcont TYPE filetable,
          gd_subrccont TYPE i.
    DATA: gd_downfile TYPE string.
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.
    PARAMETERS: p_emp   LIKE rlgrap-filename,
                p_empt  LIKE rlgrap-filename,
                p_cont LIKE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK block1.
    *at selection-screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_emp.
      REFRESH: it_tabemp.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title      = 'Select File'
          default_filename  = '*.xls'
          initial_directory = 'C:\'
          multiselection    = ' '  "No multiple selection
        CHANGING
          file_table        = it_tabemp
          rc                = gd_subrcemp.
      LOOP AT it_tabemp INTO p_emp.
      ENDLOOP.
    *at selection-screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_empt.
      REFRESH: it_tabemp.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title      = 'Select File'
          default_filename  = '*.xls'
          initial_directory = 'C:\'
          multiselection    = ' '  "No multiple selection
        CHANGING
          file_table        = it_tabempt
          rc                = gd_subrcempt.
      LOOP AT it_tabempt INTO p_empt.
      ENDLOOP.
    *at selection-screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_cont.
      REFRESH: it_tabcont.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title      = 'Select File'
          default_filename  = '*.xls'
          initial_directory = 'C:\'
          multiselection    = ' '  "No multiple selection
        CHANGING
          file_table        = it_tabcont
          rc                = gd_subrccont.
      LOOP AT it_tabcont INTO p_cont.
      ENDLOOP.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    GET pernr.
    Selecting the latest infotype record
      rp_provide_from_last p0000 space pn-begda pn-endda.
      rp_provide_from_last p0001 space pn-begda pn-endda.
      rp_provide_from_last p0007 space pn-begda pn-endda.
      rp_provide_from_last p0008 space pn-begda pn-endda.
      rp_provide_from_last p0121 space pn-begda pn-endda.
      rp_provide_from_last p0615 space pn-begda pn-endda.
      MOVE-CORRESPONDING p0001 TO wa_employee.
      wa_employee-rfpnr = p0121-rfp01. "?????
      MOVE-CORRESPONDING p0007 TO wa_employee.
      MOVE-CORRESPONDING p0008 TO wa_employee.
      MOVE-CORRESPONDING p0000 TO wa_employee.
      SELECT SINGLE molga
        FROM t001p
        INTO wa_employee-molga
       WHERE werks EQ p0001-werks AND
             btrtl EQ p0001-btrtl.
      SELECT SINGLE trfkz
        FROM t503
        INTO wa_employee-trfkz
       WHERE persg EQ p0001-persg AND
             persk EQ p0001-persk.
      CALL FUNCTION 'HR_ENTRY_DATE'
        EXPORTING
          persnr                     = pernr-pernr
      RCLAS                      =
      BEGDA                      = '18000101'
      ENDDA                      = '99991231'
      VARKY                      =
       IMPORTING
          entrydate                  = wa_employee-ncsdate
    TABLES
      ENTRY_DATES                =
    EXCEPTIONS
       ENTRY_DATE_NOT_FOUND       = 1
       PERNR_NOT_ASSIGNED         = 2
       OTHERS                     = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    append employee data
      APPEND wa_employee TO it_employee.
      CLEAR: wa_employee.
      wa_emptexts-datefrom = p0001-begda.
      wa_emptexts-dateto   = p0001-endda.
      wa_emptexts-pernr    = p0001-pernr.
      wa_emptexts-txtmd    = p0001-ename.
    append employee texts data
      APPEND wa_emptexts TO it_emptexts.
      CLEAR: wa_emptexts.
      MOVE-CORRESPONDING p0615 TO wa_contract.
    append employee contract data
      APPEND wa_contract TO it_contract.
      CLEAR: wa_contract.
    *END-OF-SELECTION.
    END-OF-SELECTION.
    download employee data
      IF NOT p_emp IS INITIAL.
        gd_downfile = p_emp.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename              = gd_downfile
            filetype              = 'ASC'
            write_field_separator = 'X'
          TABLES
            data_tab              = it_employee.
        IF sy-subrc EQ 0.
          WRITE:/ 'Employee file downloaded to',
                  gd_downfile.
        ELSE.
          WRITE:/ 'There was an error downloading Employee file to',
                  gd_downfile.
        ENDIF.
      ENDIF.
    download employee texts data
      IF NOT p_empt IS INITIAL.
        gd_downfile = p_empt.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename              = gd_downfile
            filetype              = 'ASC'
            write_field_separator = 'X'
          TABLES
            data_tab              = it_emptexts.
        IF sy-subrc EQ 0.
          WRITE:/ 'Employee text file downloaded to',
                  gd_downfile.
        ELSE.
          WRITE:/ 'There was an error downloading Employee text file to',
                  gd_downfile.
        ENDIF.
      ENDIF.
    download contract data
      IF NOT p_cont IS INITIAL.
        gd_downfile = p_cont.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename              = gd_downfile
            filetype              = 'ASC'
            write_field_separator = 'X'
          TABLES
            data_tab              = it_contract.
        IF sy-subrc EQ 0.
          WRITE:/ 'Employee contract file downloaded to',
                  gd_downfile.
        ELSE.
          WRITE:/ 'There was an error downloading Employee contract file to',
                  gd_downfile.
        ENDIF.
      ENDIF.
    - Selvapandian Arunachalam

  • Can OGG extract from a View to Table

    Dear guru,
    We have an view to get data from many table. And now we need to get synchronize data from that view to other table.
    So, can OGG extract data from a view ? I try use VIEW schema.Viewname in extract file but not success.
    Many thanks guy
    Ch

    chuongnh wrote:
    Dear guru,
    We have an view to get data from many table. And now we need to get synchronize data from that view to other table.
    So, can OGG extract data from a view ? I try use VIEW schema.Viewname in extract file but not success.
    Many thanks guy
    ChNo, a view is just a stored query. Goldengate Extract will capture the changes happening to data on tables.

  • JDBC-XI-FILE scenario. How to extract data from more than one table in JDBC

    Hi,
    I was asked a question like in JDBC-XI-FILE scenario........ How to extract data from more than one tables (i.e from JDBC system) ?? What is the logic to do the same ??
    I am not sure whether this is a valid question..........but any help in this regards is highly appreciated.
    Regards
    Kumar

    HI,
    Yes it can be possible ,please see the following links
    JDBC  Receiver with Oracle Stored Procedures
    configuring jdbc adapter with multiple tables
    RFC -> XI -> JDBC Scenario Updating Multiple Tables
    /people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
    JDBC Adapter multiple Selects
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=jdbc%20with%20multiple%20tables&cat=sdn_all
    Regards
    Chilla..

  • Extract from multiple tables

    Hi,
    I need to extract data from my leagcy source system which is on oracle.
    I need to extract 50 records from each of my table in the my schema to a flat file with the same name as of table.
    I have around 500 tables in my schema. So is there any way to do this.
    Thanks,
    Yeswanth

    possibly you also want to consider referential integrity otherwise when you import to your new solution, it's unlikely any of the data will match up.
    if you do want to consider this, then it will be very difficult for someone who doesn't know your data structure to write the queries for you.
    consider using a data migration tool of some sort perhaps?

  • Performance Tunning- data extraction from FMGLFLEXA table

    Hi,
      Need to fetch data from FMGLFLEXA table based on below condtion.
           WHERE rfund IN s_rfund
               AND rgrant_nbr IN s_rgnbr
               AND rbusa IN s_rbusa
               AND budat LE v_hbudat.
    Please tell me how can i optimize this extaraction b'coz in production system there are lacks of records.
    Regards,
    Shweta.

    create a index on these fields due to which data extraction from table will be fast.

  • Generating tables from database

    Hello,
    What Im trying to do is generate table information from my
    database. What Im doing right now is retrieving the information
    this way, which is combersome because alot of pages would be
    different because they dont all have the same number of columns.
    this is how the code looks now:
    <cfloop
    query="addtobom">#toppage#</a></td></cfloop>
    <td><div
    align="center">#column1#</a></div></td>
    <td><div
    align="center">#column2#</a></div></td>
    <td><div
    align="center">#column3#</a></div></td>
    <td><div
    align="center">#column4#</a></div></td>
    <td><div
    align="center">#column5#</a></div></td>
    <td><div
    align="center">#column6#</a></div></td>
    <td><div
    align="center">#column7#</a></div></td>
    </tr>
    </cfoutput>
    If there an easy line of code I can put in here that queries
    the database for columns that have info and avoiding null columns.
    Thanks for any help

    Normally the table of data you display matches the query.
    Your code will not run the way you have it. This should run
    but I am not
    sure what you are doing here.
    <cfoutput query="addtobom" maxrows="1"
    startrow="1">#toppage# </cfoutput>
    <table>
    <cfoutput query="addtobom">
    <tr>
    <td align="center">#column1#</td>
    <td align="center">#column2#</td>
    <td align="center">#column3#</td>
    <td align="center">#column4#</td>
    <td align="center">#column5#</td>
    <td align="center">#column6#</td>
    <td align="center">#column7#</td>
    </tr>
    </cfoutput>
    </table>
    You can check rows for null but I do not think you can check
    columns /
    fields.
    It depends on the database but
    WHERE (NOT (Cat IS NULL))
    "dennisquery" <[email protected]> wrote in
    message
    news:ekbcf5$7nm$[email protected]..
    > Hello,
    >
    > What Im trying to do is generate table information from
    my database. What
    > Im
    > doing right now is retrieving the information this way,
    which is
    > combersome
    > because alot of pages would be different because they
    dont all have the
    > same
    > number of columns.
    >
    > this is how the code looks now:
    >
    > <cfloop
    query="addtobom">#toppage#</a></td></cfloop>
    >
    > <td><div
    align="center">#column1#</a></div></td>
    > <td><div
    align="center">#column2#</a></div></td>
    > <td><div
    align="center">#column3#</a></div></td>
    > <td><div
    align="center">#column4#</a></div></td>
    > <td><div
    align="center">#column5#</a></div></td>
    > <td><div
    align="center">#column6#</a></div></td>
    > <td><div
    align="center">#column7#</a></div></td>
    > </tr>
    > </cfoutput>
    >
    > If there an easy line of code I can put in here that
    queries the database
    > for
    > columns that have info and avoiding null columns.
    >
    >
    > Thanks for any help
    >

  • How  to find tables in Lo that  were extracted from R/3 to BW?

    Hi Experts,
    pls tell me How  to find tables in Lo that  were extracted from R/3 to BW?
    Thanks in advance.
    Regards,
    Hari Reddy

    Hi
    Check the following thread,if the earlier link doesnt work..
    How to locate which R/3 table-field is mapped to BW
    cheers

  • Data Extraction from AR Aging Tables to Acess

    Hi
    I used to work on developing the reports.But I am a new to the Data Extraction from AR Aging Tables into Acess and the data is upload from Acess to SAP.
    Can anybody help me to relove this issue.I really appreciate to you.After mapping then the data is loaded to SAP.

    Hi
    I used to work on developing the reports.But I am a new to the Data Extraction from AR Aging Tables into Acess and the data is upload from Acess to SAP.
    Can anybody help me to relove this issue.I really appreciate to you.After mapping then the data is loaded to SAP.

  • Hierarchy extraction from R/3 Table to BW

    Hi Gurus/All,
    I need extract the Organizations  Hierarchy  Structure data from R/3 "Z table".Please any one can  give me  the detailed steps to extract the Hierarchy data from R/3 "z table" in to Bw.It is Masterdata extraction and the hierarchy has 5 levels.
    Please send me the links or detailed steps to extract in to Bw hierarchy from R/3 "Ztable".Also I would like to know the settings/Must do's on R/3 side.It is urgent
    regards
    Prasad

    Hi Shailaja,
    http://www.bwexpertonline.com/archive/Volume_03_(2005)/Issue_08_(September)/V3I8A2.cfm?session=
    I have tried to open above mentioned link, but itz not gettting there.
    Can you send me the article to my email: [email protected]
    Thanks to you,
    Rafi

  • Generate XML file from an Oracle Database Table

    Hello All,
    I want to generate a xml file from an Oracle Database table which contains a blob column.
    Can somebody give pointers on this please.
    Thanks in advance
    Sulakshana

    Use the DBMS_XMLGEN package.

  • Generating tables from Toplink

    Using Mapping Workbench 9.0.4.5
    I'm trying to generate table specifications from an existing class model. Sometimes the table generates with an error.
    Other times, Toplink comes back with an OK and a lousy table definition: only a couple of attributes defined. The class is large, but that attributes are almost all simple types.
    What should I be looking for?
    Thanks

    Robert,
    That is very odd. I have not heard of this sort of failure condition before. Ideally when a failure happens I would prefer to see a support request opened to help identify the specifics of the scenario so the issue can be resolved or the usage configuration that lead to the issue be identified and resolved.
    If you are unable to open a support request please send me the workbench project or a reproduction that we can use to identify the issue and propose solutions. My email address is available by selecting my name on side and viewing my forum profile.
    Cheers,
    Doug

  • How to insert a picture into a table extracting from another table in a for

    i have a form in which i have a image item though which i am saving a picture of datatype of long row or blob.This is working properly.
    But when i am saving this picture from screen into another table having same field name and same datatype,
    its not working.
    Can anybody find out it's solution
    om prakash sahoo
    ocac,bbsr

    find it under the java tutorial... should download n run it locally. its a good tutorial with all the stuff u need to know...

  • Extracting from table based on conditions from two internal tables

    Hi,
         i to have select few records from  a table based on conditions from two different internal tables. How can I achieve this.?
    ex:
          select objid from HRVPAD25 into table t_pad25
                                                    where PLVAR = 01
                                                                OTYPE = E
                                                                OBJID = itab1-sobid
                                                                sobid = itab2-pernr.
    How can this be written? can i use "for all entries..." addition with 2 tables?

    Hi Maansi_SAP,
    you can use exactly one internal table in the FOR ALL ENTRIES clause. Consider this alternative:
    data:
      itab_sobid_hash like itab1 with unique key sobid,
      ls_pad25  like line of  t_pad25.
    sort itab1.
    delete adjacend duplicates from itab1 comparing sobid.
    itab_sobid_hash = itab1.
    select objid
      into ls_pad25
      from HRVPAD25
      for all entries in itab2
      where PLVAR = '01'
        and OTYPE = E
        and sobid = itab2-pernr..
    read table itab_sobid_hash with table key sobid = ls_pad25-objid.
    check sy-subrc = 0.
    append ls_pad25 to t_pad25.
    endselect.
    You may decide if itab1 or itab2 is better used as hashed table. Make a performance test.
    The critics will tell you that SELECT ... ENDSELECT is not performant. That was very true, back in last milleniums's 90ies
    Regards,
    Clemens

Maybe you are looking for