Infopackage Routine in flat file datasource

Hi,
There is a requirements to load the data from multiple flat files in folder into BI which source data is coming from other system. Each flat file has it own naming convention.
There are around more the 200 flat file (CSV.file) in folder,data source is flat file datasource.
Could any one help me in above issue.
Regards
RAM

I assume they'll be using FTP to send the files... You have the layout defined and naming convention as well...
One option would be to create a user and folder in the BW server for the FTP to use it and put all files in the same place... From here you can define different Infopackages to read those files at specific times during the day or whatever schedule you guys agree...
A thing with the naming convention... Try to avoid using timestamps on the names and keep the names to be always the same... That way you just overwrite the existing files, the space usage won't grow much and you can make the loads automatic with the same file names... 
Just some ideas...

Similar Messages

  • FLAT FILE Datasource SERIOUS Problem

    Hi
    I want to read a header information in csv file to fill the FLAT FILE DATASOURCE structure.
    I cannot read it by default as I have to IGNORE THE HEADER ROW otherwise it wont come up correctly along with otherdetail  data that is below header row during extraction of CSV file.
    How can i do that or How can I CALL A Function module or any other to fetch that header row ?
    PLEASE HELP URGENTLY.
    Thanks

    you cannot read the header row only. But you can do a start routine within the transfer rules. There you can do whatever you like.
    Perhaps you might have some troubles getting your data that far. Your header row must comply to the rules defined in your datasource like size or data type. So you might need to change some definitions of your datasource.

  • Mapping Quantity keyfigure in BI 7- Flat file datasource

    Hi Guys,
    I have a problem in creating transformations for Quantity key figure for flat file datasource. In my csv file quantity is just  a number. i created a datasource and Infopackage and loaded data into PSA without any problem.
    In cube i have quantity key figure of QUAN type with 0UNIT unit of measure. So when I try to map Quantity in datasource with quantity InfoObject, 0UNIT is empty.  So I am unable to activate transformations.
    Can somebody suggest me how to proceed with htis problem? Should I define Quantity key figure as just number?
    Thank you in advance

    Hi Sneralla,
      you can take one  more field on you flatfile.. as units(ex: KG  or CM.. like that) beside of the  quanity filed..  and now load it into PSA and  now create transformations...  and now map this  units filed to  newly added field...
       you can try this option.. becasue.. when you are loading  Quantity   field data  from flat file means we need to mention the units also..
    regards
    @jay

  • Field in Flat File DataSource

    I created a Flat File DataSource.
    In the DataSource, I enetered InfoObject 0OUTAGTARGT in the Fields tab ->InfoObject Template column. I want this InfoObject to be mapped
    into field KTWRT (Target Value) in R/3 table EKKO.
    However, when I enter the the InfoObject 0OUTAGTARGT and hit Enter key, system prompts me to copy the properties. I choose Copy.
    And then it says:
    Reference field 0DER_CURR was added automatically.
    Now I have ORDER_CURR entered in the Field column, with InfoObject Template 0ORDER_CURR.
    In the Field column, I replaced the field ORDER_CURR with WAERS (Currency field from R/3).
    When I save it, I hit the following:
    Missing currency field / unit field ORDER_CURR
    System expect the field ORDER_CURR to be entered in the Field column. But in my source file, there is no field call
    ORDER_CURR. It is actually WAERS.
    How can I overcome this?

    Maintain 0ORDER_CURR as it is needed by 0OUTAGTARGT.
    Next, simply map WAERS to the ORDER_CURR field.
    But it doesnt allow me to change. In DataSource ->Fields tab, I try to replaced the field ORDER_CURR with WAERS. When I click on Activate, I
    hit the following:
    Missing currency field / unit field ORDER_CURR
    Please help.

  • Flat File DataSource doesn't load properly.

    Hi all,
    we have a data file, which is tab delimited, saved as CSV and text versions. i have created a flat file datasource, mapped all fields.
    I can load CSV version fine, but when use it on text version, it doesn't like it and can only return column one with the rest of the column blanked in the preview tab.
    Setting:
    In the "General" tab, everything is unchecked.
    In Extraction tab, Adapter - "Load Text-Type File from Local Workstation"
                             Character settings - "Default setting"
                             Data format - "Separated with Separator"
                             Data separator - tab (00BB Hex)
                             Escape Sign - CR (00B6 Hex)
                             Number format - Direct entry
                                                     Thousand Separator - ","
                                                     Decimal point - "."
    i have tried different setting, change number format to "User Master Records".
    With the text version, the result in Preview can only display first column and Proposal preview can only shows one column. There is no error returned from the text version.
    The CSV version can display all data and they are aligned as well.
    what do i miss? is the text file not saved correctly? i can see all tabs and CR in the text version. it seems to be the tab is not detected properly or something.
    Regards

    Hi,
    Have a look at the below link:
    Loading Text Files(.TXT) into BW with HEX option

  • Flat file datasource error

    Hi gurus,
    I have created a flat file datasource and it is activated successfully. but when i am trying to load data to that datasource. in the info package i am not able to see any fields in the dataselection and also it is giving me error when i am loading the data that data selection error. all the settings i did at datasource. can u pls suggest me to solve this problem.
    and when i am trying to see load example data it is giving me
    Option=1. Problem during file upload from Work-Station --> Long Text
    thanks,
    sridhar
    Edited by: sridhar on Dec 11, 2008 1:02 PM

    It is giving me
            1 = FILE_OPEN_ERROR
            2 = FILE_READ_ERROR
            3 = NO_BATCH
            4 = GUI_REFUSE_FILETRANSFER
            5 = INVALID_TYPE
            6 = NO_AUTHORITY
            7 = UNKNOWN_ERROR
            8 = BAD_DATA_FORMAT
            9 = HEADER_NOT_ALLOWED
            10 = SEPARATOR_NOT_ALLOWED
            11 = HEADER_TOO_LONG
            12 = UNKNOWN_DP_ERROR
            13 = ACCESS_DENIED
            14 = DP_OUT_OF_MEMORY
            15 = DISK_FULL
            16 = DP_TIMEOUT
            17 = NOT_SUPPORTED_BY_GUI
            18 = ERROR_NO_GUI
            19 = OTHERS
    Procedure
    Check the option number to know the possible reason of error and correct the problem.

  • Infopackage routine for changing  file name

    Hi Everyone,
                               I have to load flat files from application server directories. I get these files from different locations and they are saved in own (location) folders by a script). I would like to run these file from infopackage through process chain. the problem is that these files have changing names. The format is like this
    Canada_co3300.csv
    I can write a routine is my infopackage but  "co3300" keeps changing as it represents different companies code in that particular location (Canada).
      I have a routine
    data: F1 type string value 'D:\usr\sap\FLAT_FILES\Inbound\Cayman\Canada_<b>co3300</b>_',
    F2 type string '.csv'.
    concatenate f1 f2 into p_filename.
      How can I get a variable <b>co</b>---- in my routine so my infopackage can read the file if <b>co</b> has different value like co2000. Thanks In advance.
    Regards,
    Asad

    Hi Saugata,
                           My flat file name has a naming convention based on company code in application server folder, so I get files with name
                                               Canadaco<b>3000</b>.csv  or
                                               Canadaco<b>2000</b>.csv or
                                               Canadaco<b>4000</b>.csv or something else <b>(co</b> number keeps changing)
    So My file name keeps changing all the time. I would like my infopackage to read these files automatically thorugh a routine or logical file name. I have tried both, but donot know how to configure this scenerio thorugh my infopackage. Please give me steps to use that table you mentioned. Thanks .

  • Error in DTP creation for a flat file datasource

    Hi SDN friends,
    Please if somebody can give me a help with this, it will be very appreciate.
    I have a DTP to load attributes master data into an infoobject. The master data comes from a flat file (data source flat file) .
    The extraction mode is full, when I try to modify any selection in the "Update" tab, a message "Enter valid value" shows, but it doesn't give me any hint about which is the wrong value that must be checked.
    The message ID is 00 002 and the and the text is the following
    Enter a valid value
    Message no. 00002
    Procedure
    Display the allowed values with F4 and correct your entry.
    I think it may be something related to the flatfile datasource. Are there any special considerations to create a DTP to upload master data from a flat file?
    Thanks so much for your attention and best regards,
    Karim

    Hi Karim,
    I suspect that you might be entering values that are not in correct format as defined in BI DTP. Eg: date it could be DD.MM.YYYY in BI you might be giving MM.DD.YYYY similary you may be entering the wrong format for master data you are giving it in selections.
    Hope it helps...
    Best Regards,
    Madhu

  • Flat File DataSource Issue

    Hai
    Im loading the data from flat file to DSO in BI-2004s.
    I have a flat file like below
    ZEMP ZEMPNAME   ZAMOUNT
    10       London           100
    20       India                200
    Im trying to create the DataSource. But in 'Proposal' tab imgetting all three infoobjects in row instead of three rows . Like below
    Im getting like
    ZEMPZEMPNAMEZAMOUNT as a one value .
    why it is like this
    Pls tell me
    kumar

    Hi Ravi,
    Hope this helps -
    Loading Text Files(.TXT) into BW with HEX option
    proposal tab
    FIELDS TAB
    http://help.sap.com/saphelp_nw04/helpdata/en/8e/dbe92341c84242be2c7d3917f1c197/frameset.htm
    Bye...

  • Flat File Datasource

    Dear All.
    I have created one planning cube in which i have laoded the data through CSV file, after completing all the work, i need to move this on Production system but when i transport the only cube and aggregation level got transport not the transformation and the data source.
    out production system in not open for change so i can not create the File datasource in it.
    Please advice how can i move the transformation and the datasource to Production.

    Oops my mistake i was not choosing the Source System while transporting

  • Fixed length in flat file Datasource

    Hi,
    While creation of flat file data source we have noticed the option Fixed length in place CSV , Can any one explain about that with one scenario.
    Thanks,
    Sankar

    Hi,
    for process wise Loading CSV,Fixed length file is the same but file format is different, however you can check the below link
    http://help.sap.com/SAPHELP_NW04S/helpdata/en/43/01ed2fe3811a77e10000000a422035/content.htm
    check from point :f
    Regards,
    Satya

  • Flat File Hierarchy Datasources

    We are creating several flat file hierarchy datasources. The datasources will be maintained in an external database.
    I am familiar with the creation of flat file datasources for master and transactional data, but don't have good documentation for how the external flat file hierarchy is to be formatted.
    We have reviewed the 2004 Netweaver Document "How to Download Hierarchies in BW" and have used the program referenced there, Z_SAP_HIERARCHY_DOWNLOAD, to download our hierarchies to then test the upload.
    However, this has not worked.
    Does anyone have the record layout that the flat file must be in to upload a simple 2-level hierarchy (for example groupings of 0vendor)?
    Thanks, Doug

    I think the URL you mention is http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/content.htm.
    This contains the record layout instructions as follows.
      5.      Maintaining the hierarchy:
    Choose Hierarchy Maintenance, and specify a technical name and a description of the hierarchy.
    PSA Transfer Method: You have the option here to set the Remove Leaf Value and Node InfoObjects indicator. As a result, characteristic values are not transferred into the hierarchy fields NODENAME, LEAFFROM and LEAFTO as is normally the case, but in their own transfer structure fields.  This option allows you to load characteristic values having a length greater than 32 characters.
    Characteristic values with a length > 32 can be loaded into the PSA, but they cannot be updated in characteristics that have a length >32.
    The node names for pure text nodes remain restricted to 32 characters in the hierarchy (0HIER_NODE characteristic).
    The system automatically generates a table with the following hierarchy format (for sorted hierarchies without removed leaf values and node InfoObjects):
    Description
    Field Name
    Length
    Type
    Node ID
    NODEID
    8
    NUMC
    InfoObject name
    INFOOBJECT
    30
    CHAR
    Node name
    NODENAME
    32
    CHAR
    Catalog ID
    LINK
    1
    CHAR
    Parent node
    PARENTID
    8
    NUMC
    First subnode
    CHILDID
    8
    NUMC
    Next adjacent node
    NEXTID
    8
    NUMC
    Language key
    LANGU
    1
    CHAR
    Description - short
    TXTSH
    20
    CHAR
    Description - medium
    TXTMD
    40
    CHAR
    Description- long
    TXTLG
    60
    CHAR

  • Flat file extraction with FILE

    Hi BWers,
    I want to extract a flat file to BW with an infopackage.
    This flat file is located in a physical path changing according to the system :
    - in the developpment server, path is :
    ...\dev\file.csv
    - in the quality server, path is :
    ...\qual\file.csv
    - in the production server, path is :
    ...\prod\file.csv
    In the Name of the File into the infopackage extraction tab, i have to put the physical path or the logical file or routine.
    I don't want to put directly the physical path, because i would have to change this path in qual and prod servers.
    I don't want too to use a routine.
    So I created a logical file with FILE T-code. But in physical path i put :
    ...\dev\<FILENAME>
    How to put a directory variable like that : $(director)<filename> which says : if we are in Dev, so $directory =
    ...\dev\file, else qual...
    Thanks for help.
    Cheers,

    Hi,
    Here is the answer i found:
    Use in  FILE\Assignment of Physical Paths to Logical Path the variable like that:
    <V=Z_INT_SRV>
    Declare this variables in Definition of Variables.
    Z_INT_SRV

  • Small suggestion for flat file upload!

    Hi,
    i have a flat file which is in note pad with ; as separated value
    how should i model in info package?
    Many thanks,
    Ravi

    Hi Ravi,
    1) Ensure that the fields in the flat file are in the same order as the transfre structure
    2) Save this file as a .CSV file
    3) Create infopackage under the relevant flat file datasource
    Under the external data tab, do the following things
    4) Use the type of file as .CSV
    5) field separator  as ';'
    6) Igoner the first row if you have a header
    7) Use the the complete path of the file if it is stored on your PC or the server path if on server(you have the two options there)
    8) Simulte the data to ensure everthing is fine.
    9) Load
    regards,
    Vinay

  • Steps to create Data loading from Flat File to Info Cube in BI

    Hi,
         I am very new BW, I need some one help. When I am trying to create info source i am any pop window stating to create Transaction data or master data.
         After creating Info source, I dont know how to assign this info source to source system (which i created).
          When select the context menu of info source I dont have option to assign the datasource.
          And one more thing is When I am creating the Info Cube. I cant understand how to create.
          Please some one help me how to map the fields to Source system.
    Regds
    Dave.

    Hi,
    For flat file upload, first you need to create the source system.
    Then you need to create the infosource based on the format of the flat file you are going to upload or vice versa depending on your requirements.
    Once your infosource is ready, right click on it and select assign datasource. Here you can assign your flat file datasource. Then create an infopackage and give the path from where the file is to be upload to BW (in the infopackage).
    Also look at the thread below for procedure on flat file upload :
    http://help.sap.com/saphelp_nw04s/helpdata/en/8e/dbe92341c84242be2c7d3917f1c197/frameset.htm
    Cheers,
    Kedar

Maybe you are looking for

  • How do you connect laptop to tv?

    Hi I have a Mac Laptop Pro and would like to know how to connect laptop to tv????  Or how to connect laptop to tv wirelessly???

  • How can i make a bar graph in numbers to track trends

    I have a table with columns A-K. All the columns have needed data for other things.  I need to track trends of incorrect input by staff.  Column A has the date and column K has a 1 if incorrect or it's blank if correct.   I only need to use the month

  • Classes in added jar on classpath not found

    Hi there, The javafx compiler seems to have trouble finding classes from a jar that was added to the lib directory of a javafx project. I experience this trouble when working with the Netbeans 6.5.1 IDE and javafx version 1.2. When trying to import a

  • How do I find camera profiles and load them into Camera Raw?

    I did a clean install of Windows 7 and reloaded all my apps. Photoshop CS5 and Camera Raw used to show my Canon 60D & its lens, but now has no camera profiles. I found a way to lookup the camera/lens profile in Photoshop (Filter - Lens Correction), b

  • SEELCT query

    Hi all, I have a table with the following fields: user_id, opt_col_id, width, ordering, udd_id user_id is the PK. In this table either opt_col_id is null and udd_id has the value or vice-versa. If opt_col_id is not null, it will be equal to: ref_opt_