Extraction from SAP, hidden fields problem

Hi Expeerts,
I have the following problem / question:
From an SAP Datasource (2lis_11_vaitm) we have some fileds, those are HIDED, and we need them. This is a central SAP, and a lot of BW systems connect to this SAP.
The problem is, that we need a field from that datasource (and other BWs do not need), that has 'HIDDEN' option. The SAP side is afraid of having problem, when they just uncheck that option. (TELF1; KONDA fields we need).
Does anyone know, what is the affects on other BW systems, when we unhide this fields? Of course we load with delta from this source.
If a field is hidden in SBIW-Maintain Datasources, am I right, that the delta does not collect those fields, or it is collected, just not sent to BW systems?
Any good idea, how can we get that fields in other way, because it seems, that the datasource cannot be modifyed, because of the other countries' BWs, connected to teh centra SAP.
I hope i were clear, but if not, please ask me.
Thanks for Your help.
Laszlo
Edited by: László Györkös on Jan 30, 2009 11:07 AM

Hi,
If a field is hidden in SBIW-Maintain Datasources, am I right, that the delta does not collect those fields, or it is collected, just not sent to BW systems?
--> As hidden fields are already available in extract strucute, unhiding will not create any problem. As far as i know hidden means it will transfer data from extract structure to further.
--> You can try pulling this particular data using generic datasource. OR
--> Enhance datasource by adding required fields and use. OR
--> Unhide files and use.
Note: Bit careful while transpporting datasource to production as time stamp changes.
Srini

Similar Messages

  • Extraction from SAP ECC to SAP BI

    What are the steps for Extraction from SAP ECC to SAP BI? Thanks.

    Hi,
    we have two types of extractions 1) Application specific 2)cross application
    under applicatin specific -->we have customer genenrated and business content extractions
    under customer generated means LIS, CO-PA, FI-SL(i.e no ready made data source in business content so we have to generate datasource)
    Business content means there is ready made business content datasource so we can use it
    LIS,LO --> when ever we go for extracting logistics informatin
    LO steps
    http://www.sap-img.com/business/lo-cockpit-step-by-step.htm
    LO Cockpit (Use transaction LBWE)
    /people/vikash.agrawal/blog/2006/12/18/one-stop-shop-for-all-your-lo-cockpit-needs
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/21406 [original link is broken] [original link is broken]
    /people/sap.user72/blog/2005/09/05/sap-bw-and-business-content-datasources-in-pursuit-of-the-origins
    To understand LO extraction go through these weblogs by Roberto
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    /people/sap.user72/blog/2005/04/19/logistic-cockpit-a-new-deal-overshadowed-by-the-old-fashioned-lis
    under cross Applicaion
    Generic extraction-->table, view, infoset query, function module
    Generic extractors are of 3 types:
    1. Based on table/view
    2. Based on Infoset Query
    3. Based on Function module
    GenericSteps
    Log on sap R/3.
    Step 1. create a table or view for generic extraction in se11.
    Step 2. Goto  t-code RSO2
    Step 3. Here u have to decide whether to extract transaction data or master data attributes or texts.
    Step 4. suppose if u have opted for transaction data,then give name in the column ex:ztd_m(data source name)
    Step 5. select create button,this will take u to another screen.
    Step 6. Here u have to decide from which application component u r extacting data.Ex: SD,MM,..
    Step 7. in this screen u have to fill short disciption,medium,long( these r mandatory).
    Step 8. then U have to Table name or view name which u have created in se11.
    Step 9. I f u want to maintain generic delta then u can select generic delta in top left hand side corner.
    Step 10. in next screen u have to give some field which is primary key.
    step 11. here u to specify whether time stamp or cal day or numeric pointer depending on u r requirement.
    step 12. then u have to specify  whether new status for changed records or additive delta.
            If u choose additive delta ,then u have to load data to infocube or ods object.
            If u choose new status for changed records, then u to load data  to ods object only.
    Step 13. then save it.
    Step 14. then logon to sap bw ,then replicate the data source then as usuall.
    COPA
    CO-PA--> for financial info
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/COPA/COPA.pdf
    You can browse forum for more detailed info..
    Regards,
    B

  • Generic Data Extraction From SAP R/3 to BI server using Function Module

    Hi,
    I want step by step procedure for Generic Extraction from SAP R/3 application to BI application
    using Functional module.
    If any body have any Document or any PPT then please reply and post it in forum, i will give point for them.
    Thanks & Regards
    Subhasis Pan

    please go thr this link
    [SAP BI Generic Extraction Using a Function Module|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/s-u/sap%20bi%20generic%20extraction%20using%20a%20function%20module.pdf]
    [Generic Data Extraction Using Function Module |Re: Generic Data Extraction Using Function Module;

  • Master data extraction from SAP ECC

         Hi All,
    I am a newbie here and teaching myself SAP BI. I have looked through the forums regarding master data extraction from SAP ECC in all forums but could not answers for my question. Please help me out.
    I want to extract customer attributes from SAP ECC. i have identified the standard data source 0customer_attr and replicated in SAP BI. I have created infopackage for full update. I validated the extractor checker(RSA3) and found 2 records for 0customer_attr.
    When I run the info package, the info package remains in yellow state until it times out. Please let me know in case i am missing anything, Please let me know if there is any other process for master data extraction similar to transaction data extraction.

    Hi All,
    i did the below and afte clicking execute in the Simple job, it takes me back to the Monitor Infopackage screen.
    From your info pack monitor --> menu environment-->job overview--> job in the source system--> prompts for source system(ECC) user id and password, enter them, you will get your job at SM37(ECC), select job and click on log details icon. there you can see details about your error. please share that error screen shot.
    Please find the screenshots.
    I did an Environment -->Check connection and found the below,

  • 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

  • Steps for Data extraction from SAP r/3

    Dear all,
    I am New to SAP Bw.
    I have done data extraction from Excel into SAP BW system.
    that is like
    Create info objects > info area> Catalog
                                                --> Character catalog
                                                --> Key catalog
    Create info source
    Upload data.
    create info cube
    I need similar steps for data extraction for SAP R/3
    1. when data is in Ztables ( using Views/Infosets/Function etc)
    2. When data is with Standard SAP using Business Content.
    Thanks and Regards,
    Gaurav Sood

    hi,
    chk the links
    Generic Extraction
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    CO-PA
    http://help.sap.com/saphelp_46c/helpdata/en/7a/4c37ef4a0111d1894c0000e829fbbd/content.htm
    CO-PC
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/fb07ab90-0201-0010-c489-d527d39cc0c6
    iNVENTORY
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Extractions in BI
    https://www.sdn.sap.com/irj/sdn/wiki
    LO Extraction:
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/04/19/logistic-cockpit-a-new-deal-overshadowed-by-the-old-fashioned-lis
    Remya

  • JCo getting truncated value from SAP when field data type is RAW

    We are trying to fetch data from a SAP-AII table by using JCo using the RFC RFC_READ_TABLE.
    We are getting incomplete data when the data type of the column is RAW in a particular table.A typical case is:
    Table Name: /AIN/DM_DEVCTR
    Field : CLIENT                Type: CLNT    Length:3      Value: 100                                                            (SAP Generated)
    Field:  DEVCTR_GUID    Type:RAW      Length:16    Value: 306F50F53805ED488DE9797AC86B5728     (SAP Generated)
    Filed:  DEVCTR_ID         Type:CHAR    Length:128   Value: KDEVICECONTROLLER                             (User input)
    For the fields CLIENT and DEVCTR_ID we get the entire value (including blank spaces) but for DEVCTR_GUID we get only 16 characters whereas SAP-AII stores a value that is 32 characters in length. How do we fetch the actual value instead of the truncated value?
    Sample code is attached.
              try {
                   mConnection = JCO.createClient("100", // SAP client
                             "User", // userid
                             "Password", // password
                             "EN", // language
                             "SAP", // host name
                             "00"); // system number
                   mConnection.connect();
                   if (mConnection == null) {
                        System.out.println("Connection to SAP Server failed.");
                   mRepository = new JCO.Repository("User", mConnection);
                   ftemplate = mRepository.getFunctionTemplate("RFC_READ_TABLE");
              } catch (Exception ex) {
                   ex.printStackTrace();
                   System.exit(1);
              JCO.Function function = ftemplate.getFunction();
              JCO.ParameterList importParamList = function.getImportParameterList();
              importParamList.setValue("/AIN/DM_DEVCTR", "QUERY_TABLE");
              importParamList.setValue(";", "DELIMITER");
              JCO.Table tableData = function.getTableParameterList().getTable("DATA");
              JCO.Table fields = function.getTableParameterList().getTable("FIELDS");
              mConnection.execute(function);
              if (tableData.getNumRows() > 0) {
                   do {
                        for (JCO.FieldIterator e = tableData.fields(); e
                                  .hasMoreElements();) {
                             JCO.Field field = e.nextField();
                             String str = field.getString();
                             String[] values = str.split(";");
                             for(int i = 0; i < values.length; i++){
                                  System.out.println(values<i>);
                   } while (tableData.nextRow());
              } else {
                   System.out.println("No results found");
              mConnection.disconnect();

    Hi Kaanu,
       You have to modify your java code.
    String val = new String( field.getByteArray());
    PS: Please reward points for helpful answer or problem resolved.

  • Data extraction from SAP r/3 to sql 2000, bpc server

    Hi All,
    I have posted a similar thread previously,sap r/3 to sql 2000/2005, and understood how to transfer data from SAP R/3 to SQL 2005, but I need to transfer data from SAP R/3 to SQL 2000 server, not SQL 2005 server.
    Any help will be greatly appreciated.
    Regards,
    Kranthi.

    If you want to extract SAP R/3 data to SQL 2000, here are some alternatives:
    1. It becomes very easy if by any chance, you are using SAP BW with SAP R/3. You can extract the data into BW using standard or custom extractors and then send it out with open hub. SQL2000 can pick the flat files from a specified location at regular intervals.
    2. You can use Business Object extractors. You can get more info at:
    http://www.france.businessobjects.com/pdf/products/dataintegration/rapid_marts_sap_infosheet.pdf
    3. If that is not an option, then you need to have a tool that allows being called via RFC. This agent will then execute the required command on behalf of your application and return the result. I do not know if there is a ready-to-use RFC-compliant agent for SQL Server. If you have a tool that does it for you, you might have to check your network connections (ping), permissions etc. and see if you can execute an rSQL from the remote machine on the SQL server.
    There is a general solution to connect to nearly any kind of modern server application from a remote site by using simple HTTP requests. Suitable HTTP server for most needs would be:
    1. Microsoft IIS
    2. Java Tomcat or IBM WebSphere
    3. SAP WebAS
    In most cases, the IIS would probably be the one as it is installed on the Windows 2000 server anyway.
    Define an Active Server Page (ASP.NET) and insert the necessary code in your favorite language to extract the data from the SQL server.
    Your ASP.NET page would pack the result in the HTTP response object to be returned. In order to call the page from SAP you call the function modules HTTP_POST (using a HTTP POST request) or HTTP_GET (for HTTP GET request) on the standard RFC destination SAPHTTPA. (Pointing to a SAP utility program saphttp that resides in the SAP binary directory of your SAP database server and can be called from the command line in order to test its functionality without RFC).
    Regards
    Pravin

  • Data extraction from SAP R/3 BAPI to BW

    hi,
    i am extracting data from sap r/3 bapi into sap bw. can u please send me the link and documents of how to extract the data from bapi to sap bw.
    Answers will be rewarded
    Thanks
    sd shahid

    Hi Shahid,
        I hope i understood your question properly, because ; to the best of my knowledge, Third-party extraction tools can be used to extract data from non-SAP source systems into SAP BW. These tools supply extracted data directly to a staging engine BAPI on the SAP BW platform. The staging engine then performs the mapping and update rules. Third party vendors of extraction products certified for SAP BW include:
    Informatica, Genio, Acta Works, Evolutionary Technology Inc., If you can get information from any of these third party vendors, then i hope your query will be cleared.

  • Printing A3 page format using ABAP List from SAP is a problem...

    Hi Experts,
    I am trying to print a standard output (ABAP List) A3 page size from SAP.
    I used SWIN, SAPWIN, I9HP4 device types, but none of them worked.
    I created page format type ZYEVMIYE 290MM – 420MM and the page format L120, W200. In order to make it usable with page size is A3. Unfortunately this did not work either.
    The behaviour of the problem is when I tried to print with the device types that mentioned above then printer indicator comes to an error. And nothing comes out from the printer.
    Just to be on the safe side I made a test from windows self test, it resulted success with A3 page size format. So from this point of the view I got a thought that somehow SAP (selected device types) is not able to send correct signal to Printer for page size A3, because on the printer information screen displays ‘load Tray2 for A4’ this is showing that SAP sends Printer a signal for page format A4.
    I need help on how to make SAP (selected device type) send a correct signal to Printer in order to printout A3 page size format.
    Quick reply will much be appreciated.

    Hi,
    At last i got a Solution to my Question.
    The Problem is that in my SAP-Code they have been translated the PDF into 255 string.But i am retreiving using 132 string.So, i resolved in this way.
    <b>For Each dr As DataRow In ds.Tables(0).Rows
    Dim dataline As String = dr(0)
    If dataline.Length < 255 Then
    dataline = dataline.PadRight(255, " ")
    End If
    sb.Append(dataline)
    Next.</b>
    May be this Thread is useful to Others.
    Regards,
    Rajender.

  • Extraction from SAP R/3

    Hi Experts,
    I am currently working on a POC for a client that requires that we show them how to extract from SAPR3 using their own Structure.
    I have  a list of Entities that I need to enter into the Hierarchies tables: Setnode and Setleaf, CSKS/CSKT for these Entities. The kind of guidance that I would need is once I'm logged on to R3, what screens would I need to know where  to enter this particular information?
    Any useful answer will be rewarded with suitable points.
    Thanks in advance!

    Hi Experts,
    I am currently working on a POC for a client that requires that we show them how to extract from SAPR3 using their own Structure.
    I have  a list of Entities that I need to enter into the Hierarchies tables: Setnode and Setleaf, CSKS/CSKT for these Entities. The kind of guidance that I would need is once I'm logged on to R3, what screens would I need to know where  to enter this particular information?
    Any useful answer will be rewarded with suitable points.
    Thanks in advance!

  • Creating Datasource and Extracting from SAP R/3 ECC 6.0

    Hello Gurus,
    I am very new in BI field, I am learning through notes provided in this Blog.
    Curretnly I need to know how we create Datasource at SAP R/3 ECC 6.0 (is there any difference b/t these?)
    and how we may extract data from R/3 ECC 6.0 Source System.
    Looking for your kind reply
    Thanks in Advance
    KK

    You can use any specific Extractors to Create  Data Source in R/3 side.
    Let me explain with Generic Extraction
    Goto SBIW--> you can see all the extractions here
    Generic extractors are of 3 types:
    1. Based on table/view
    2. Based on Info set Query
    3. Based on Function module
    If you would like to create a custom table, then goto SE11>Select Table>Click on Create (Now create you own table here & use this table while creating Transaction data)
    Goto RS02-->Select Transaction data.
    Click on  Create
    Choose an application component to which the data source is to be assigned
    Click on  Generic Delta
    Specify the Delta-Specific and the type for the field.
    Specify a safety interval
    Select Data type>Save> Now Data source was generated successfully
    After generating the data source , you will find Delta Flag checked.
    Please go through the following link for Generic Delta
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33]
    Once you've done with Data Source in R/3 side--> u need to Replicate it to BI
    Goto RSA1>source system>Select the Source system in which u've created Data source>R.C select Data Source Overview>Select the Application Component to which Data source is assigned>R.C Select Replicate dataSorce>here you can see your NEW Data source
    Hope it helps!

  • 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

  • Data extraction from sap r/3 to flatfile

    hello Guru's
    i am new to this feild. i got a requirement in such a way i have to extract data from feilds of different tables to flatfile.
    ( actual Scenario is we want to send data to sybase server through flatfile)
    plz send me some documents how to proceed with the specification
    usefull code in this regard is lot helpfull.
    thanks and regards
    aj

    Hello Raja,
    Here are some simple steps ...
    When you want to load data from a flat file, there is no process of datasource replication. The datasource has to be created manually on the BW system itself. When creating this datasource you start from the InfoSource and assign the source system for flat file load. This is usually something like PC_FILE or FLATFILE.
    Then you can start creating the datasource. You need to mention the field names in this datasource. Note that in your flat file, the sequence of fields must exactly match the sequence of fields in the datasource, else the data will be wrongly mapped.
    On the same screen and tab you can also do a preview of the data that will be loaded. Click the preview button and put in the path of the file. Mention other details like header row, and number of rows to be displayed and then you will be able to judge if the data is being loaded correctly or not.
    When loading the data, then file cannot be open else you will get an error message. Also to be able to schedule the flat file loads in process chains, the file cannot be on your PC. It has to be on the application server.
    This is some basic info. Please post back if you need details on any aspect.
    Hope this helps...
    Assigning points is the way to thanks in sdn.

  • Official documentation from SAP about field exits as obsolete

    Hi all,
    I want to know if there is any official SAP documentation about the support of field exits. Because, I herad some time ago that they are obsolete and its use is not recomended from 4.6C onwards.
    Regards,
    Eric

    Check OSS note 29377.

Maybe you are looking for

  • Question about Portal and BI Beans

    Hi, I am trying to create a Portlet that displays Thin BI Beans crosstab. Using the "URL-Based Portlet (inline rendering)", I could display the Thin BI Beans crosstab inside the Portal. But, when I try to drill down or change the page edge, it ends u

  • Can I load my current software on to a refurbished mac book pro

    Can I load my current software on to a refurbished mac book pro

  • Deployment wizard (OAS EJB)

    Why do I get There is nothing to process in jar file I:\\ows_4082\\ows\\upload\\691MyOASAppSource.jar. Compilation of idl interfaces for I:\\ows_4082\\ows\\upload\\691MyOASAppSource.jar failed! if I try to deploy my bc4j appmodule to an oas 4.0.8.2 a

  • Space management oracle

    Hi all, Greetings of the day.. I have few doubts about the space management in ASSM tablespace. 1.Does ALTER TABLE SHRINK COMPACT needs ALTER TABLE ENABLE ROW MOVEMENT to be fired prior 2. I have table having fragmentation and materialized views on t

  • Error on upgarding to LR 5.6

    Hi All, i got an Error on upgrading to LR 5.6. It is a German Error: "Schlüssel ist im angegebene Status nicht gültig" Tranlsated to English: Key not valid in actual status System is on running Windows 8.1 64 Bit. Can somebody help me?