How to load data from UTL file to database

Hi All,
I am new in this technologies.
I am facing below problem to load data from utl file to database .
below is the script written by me :
CREATE OR REPLACE PROCEDURE load_data AS
v_line VARCHAR2(2000);
v_file UTL_FILE.FILE_TYPE;
v_dir VARCHAR2(250);
v_filename VARCHAR2(50);
v_1st_Comma NUMBER;
v_2nd_Comma NUMBER;
v_deptno NUMBER;
v_dname VARCHAR2(14);
v_loc VARCHAR2(13);
BEGIN
v_dir := ':f/rashi/dataload';
v_filename := 'fake.txt';
v_file := UTL_FILE.FOPEN(v_dir, v_filename, 'r');
LOOP
BEGIN
UTL_FILE.GET_LINE(v_file, v_line);
EXCEPTION
WHEN no_data_found THEN
exit;
END;
v_1st_Comma := INSTR(v_line, ',' ,1 , 1);
v_2nd_Comma := INSTR(v_line, ',' ,1 , 2);
v_deptno := SUBSTR(v_line, 1, v_1st_Comma-1);
v_dname := SUBSTR(v_line, v_1st_Comma+1, v_2nd_Comma-v_1st_Comma-1);
v_loc := SUBSTR(v_line, v_2nd_Comma+1);
DBMS_OUTPUT.PUT_LINE(v_deptno || ' - ' || v_dname || ' - ' || v_loc);
INSERT INTO don
VALUES (v_deptno, UPPER(v_dname), UPPER(v_loc));
END LOOP;
UTL_FILE.FCLOSE(v_file);
COMMIT;
END;
show error
I am getting the below errors:
LINE/COL ERROR
3/8 PL/SQL: Item ignored
3/8 PLS-00201: identifier 'UTL_FILE' must be declared
15/1 PL/SQL: Statement ignored
15/1 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
20/1 PL/SQL: Statement ignored
20/19 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
36/1 PL/SQL: Statement ignored
LINE/COL ERROR
36/17 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
could anyone please advice me on above error.
thanx.

First of all, is file located on (or is accessible from) database server? If not - you can't load it neither with UTL_FILE nor with external table. You need to use client side tool like SQL*Loader or write your own client side load. If file is accessible from database server, then, as sb92075 noted, external table (assuming you are not on some ancient Oracle version) is the way to go.
SY.

Similar Messages

  • How to regularly load data from .csv file to database (using apex)

    Hi,
    i am using apex3 , I need to load data from a csv file to apex . I need to perform this automatically through code at regular time interval of 5-10 seconds.
    Is it possible .If yes how ?. Please reply as early as possible. This will decide whether to use apex or not for this application.
    this is question for Application Express. Dont know why in forum for BPEL
    Edited by: TEJU on Oct 24, 2008 2:57 PM

    Hello,
    You really need to load the data every 5-10 seconds? Presumably it's read only?
    I would look at using an Oracle external table instead, that way you just drop your CSV in a location the DB can read it and then you build a table that essentially references the underlying CSV (that way when you query the table you view the data in the CSV file).
    Take a look at this link for a quick example on usage -
    http://www.oracle-base.com/articles/9i/SQLNewFeatures9i.php#ExternalTables
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • How to extract data from  text file to database table

    Hi ,
    I am trying to upload  data in text file to database table  using GUI_UPLOAD function .what would be the program for that.
    thanks in advance.

    Hi,
    I don't think you have a standard sap program to upload data from file to database table...
    Instead you can create a custom program like this..
    DATA: T_FILEDATA(1000) OCCURS 0 WITH HEADER LINE.
    DATA: T_ZTABLE LIKE ZTABLE OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = 'C:\TEST.TXT'
      tables
        data_tab                      = T_FILEDATA
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT T_FILEDATA.
      T_ZTABLE = T_FILEDATA.
      APPEND T_ZTABLE.
    ENDLOOP.
    MODIFY ZTABLE FROM TABLE T_ZTABLE.
    COMMIT WORK..
    Thanks,
    Naren

  • Help - Step by Step Material on How to load Data from flatfile to BI 7.0

    Hi BI Experts,
    Can any one send the document or a pdf file on how to load data from flat file to BI 7.0 in step by step process.
    Thanks in Advance
    Regards
    Ramakrishna Kamurthy
    +91-9963101073

    1.     On log on you will be placed in the SAP Easy Access Strategic Management/ Business Analytics
    1.     You see the screen divided in two segments.
    2.     Follow the left segment.
    3.     Click on the Business Information Warehouse.
    4.     Sub Menu &#61664; BW Administration.
    5.     You find various entries in it.
    6.     Now double click on UG_BW_RSA1-Administrator Workbench
    2.     Creation of Info Area
    1.     Click on InfoObjects.
    2.     Now in the right hand side screen select the InfoObjects (First item on the top). Right click the mouse and select Create InfoArea.
    3.     A dialog box pops up.
    4.     Give the InfoArea as ZIVY_Iarea.
    5.     Give the Long Description as ZIVY Info Area.
    3.     Create a Catalog:
    1.     Select the InfoArea just created “ZIVY_Iarea”.
    2.     Right click the mouse pointer and select the option “Create InfoObject Catalog” 
    3.     A dialog box pops up.
    4.     Give the InfoObjCat = ZIVY_CHCAT
                                                                  i.      Description = “ZIVY Character Catalog”
                                                                 ii.      InfoObjectType: Check the Character. ( As we are creating the master data, check the Character)
                                                                iii.      Now at the bottom of this dialog box you see an icon called “CREATE”. Click this icon.
    1.      
    1.     The next screen in front of you is the “Edit InfoObject Catalog”.
    2.     Simply click the “activate” icon present on the Application Toolbar.
    2.     Create InfoObject :
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_CUST and
                                                                   i.      Description&#61664; Customer Info Object
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_CUST: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 10
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Check the “With Master Data” and “With Texts”.
    2.      Use suitable formats in the fields.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
                                                               iv.      In the Attributes Tab:
    1.      We need to create the Attribute InfoObjects. These could be done directly from here or even from the RSA1 &#61664; InfoObject &#61664; ZIVY_Iarea&#61664;ZIVY_CHCAT. This will be delt in the forth coming steps (STEP  .
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the ZIVY_CUST, by clicking the icon “ACTIVATE”
    2.     Creation of InfoObject: ZIVY_CITY
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_CITY and
                                                                   i.     
    Description&#61664;
    Customer
    City Name.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_CITY: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 25
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Uncheck the “With Master Data” and “With Texts”.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_CITY, by clicking the icon ACTIVATE.
    2.     Creation of InfoObject: ZIVY_STATE
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_STATE and
                                                                   i.     
    Description&#61664;
    Customer
    State Name.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_STATE: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 25
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Uncheck the “With Master Data” and “With Texts”.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_STATE, by clicking the icon ACTIVATE.
    2.     Creation of InfoObject: ZIVY_CTRY
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_CTRY and
                                                                   i.      Description&#61664; Customer Country Name.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_CTRY: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 10
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Uncheck the “With Master Data”
    2.      Check the “With Texts” and make suitable Text Table Properties.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_CTRY, by clicking the icon ACTIVATE.
    1.     Creation of  Attributes and InfoObject from the ZIVY_CUST InfoObject:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     In this ZIVY_CHCAT, you see the InfoObject ZIVY_CUST. Double click the InfoObject ZIVY_CUST.
    6.     You find the screen “Change Characteristic ZIVY_CUST:Detail”.
    7.     Click on the tab “Attributes”
    8.     In the Character Attribute Box, type ZIVY_CITY and enter the ENTER KEY.
    9.     You see the relevant information regarding this being inserted.
    10.     Similarly, type ZIVY_STATE, ZIVY_CTRY.
    11.     Now, we will create another InfoObject ZIVY_TEL, from here.
    12.     So type ZIVY_Tel and enter the ENTER KEY.
    13.     A dialog box pops up, and request you “If you want to Create an InfoObject”
    14.     Select “ Create Attribute As Characteristic” and click the check mark.
    15.     Another window pops up. Give the following:
                                                                   i.      In the General Tab:
    1.      Long Description: ZIVY Telephone Number
    2.      Short Description: ZIVY Telephone Number
    3.      DataType : NUMC
    4.      Length : 10
    5.      Uncheck Attribute Only
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Uncheck the “With Master Data” and “With Texts”.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”
                                                               iv.      Now click the “TICK MARK”
    1.      
    1.     Click the “ACTIVATE”
    2.     A window pops up.
                                                                   i.      Select “activate dependent InfoObjects.
                                                                 ii.      Click the Check Mark.
    1.     Creation of InfoObject: ZIVY_DATE
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_DATE and
                                                                   i.      Description&#61664; ZIVY Date.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_DATE: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: DATS
    2.      Length: 8
                                                                 ii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_CTRY, by clicking the icon ACTIVATE.
    2.     Create ZIVY Application Component:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Right click the mouse pointer and select the entry “Create Application Component”
    5.     A window pops up.
                                                                   i.      Application Component: ZIVY_APPCOMP
                                                                 ii.      Long Description : ZIVY Application Component
                                                                iii.      Click the check mark.
    1.     Create InfoSoure:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Right click the mouse pointer and select the entry “Create InfoSource”
    6.     A window pops up:
                                                                   i.      Select the “Direct Update of Master Data”
                                                                 ii.      InfoObject : ZIVY_CUST
                                                                iii.      Click the CHECK MARK.
    1.      
    1.     Now beneath “ZIVY Application Component” you see the “Customer Info Object”.
    2.     Select the “Customer Info Object” mentioned above.
    3.     Right click the mouse pointer, and select the entry “Assign DataSource”.
    4.     A window pops up.
                                                                   i.      InfoSource: ZIVY_CUST
                                                                 ii.      Source System: FLATFILE
                                                                iii.      Check the TICK MARK.
                                                               iv.      Just click yes for the coming window pop ups.
    1.      
    1.     Key thing
                                                                   i.      Click on the tab “Transfer Rules”
    1.      Have a look at the data mapping here.
    2.      First field is ZIVY_CUST,
    3.      Second field is ZIVY_CITY.
    4.      And so on.
    5.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.                                                            ii.      Click on the tab “DataSource/Transport Structure”1.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
    2.      If the order is different, just shuffle the rows.
                                                                iii.      Click the “Activate Button”. By clicking the “ACTIVATE BUTTON” you just activated the ZIVY_CUST MASTER DATA.
                                                               iv.      Now in DataSource : select the text.
                                                                 v.      Click on the tab “Transfer Rules”
    1.      Have a look at the data mapping here.
    2.      First Field : 0LANGUAGE
    3.      Second field is ZIVY_CUST,
    4.      Third field is 0TXTMD.
    5.      Click the Transfer Rule adjacent to “0LANGUAGE”
    6.      A window pops up.
    a.       Check the “CONSTANT” and give the value as “EN”
    b.      Click the TICK MARK.
    7.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. Ignore the first field, as it is a constant.                                                          vi.      Click on the tab “DataSource/Transport Structure”1.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
    2.      If the order is different, just shuffle the rows.
                                                              vii.      Click the “Activate Button”. By clicking the “ACTIVATE.
    1.     Create the DATA required for this MASTER DATA
    1.     Open EXCEL.
    2.     Type the following data:
    1.      
    1.     Save as “ZIVY_CUST_MASTER.CSV”
    2.     The file should be saved in COMMA SEPARATED FORMAT.
    3.     Open EXCEL
    4.     Type the following data:
    5.     Save the file *** “ZIVY_CUST_TEXT.CSV”
    1.     Create InfoPackage
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Beneath this, you see “ZIVY_CUST” alias “Customer Info Object”
    6.     Beneath this you see a “FLAT FILE”.
    7.     Select this “FLAT FILE”,  right click the mouse pointer and select the option “Create InfoPackage”.
    8.     A window pops up.
                                                                   i.      InfoPackage Description: Info package for “ZIVY_CUST_ATTR”.
                                                                 ii.      Select “ZIVY_CUST_ATTR”
                                                                iii.      Click the “CHECK MARK”
    1.      
    1.     You see a new screen “Scheduler (Maintain InfoPackage)”.
    2.     Click the tab “External Data”
                                                                   i.      Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_CUST_MASTER.csv
                                                                 ii.      Check the CSV file.
                                                                iii.      Click the Preview Button.
                                                               iv.      A window pops up, click the CHECK MARK.
                                                                 v.      You see the data present in the EXCEL File.
    1.      
    1.     Click the tab “Update”
                                                                   i.      Have a look at the entries.
    1.      
    1.     Click the tab: Scheduler:
                                                                   i.      Click the button “Start”
                                                                 ii.      You now click on “MONITOR BUTTON” present on the tool bar.
                                                                iii.      Browse the data.
    1.     Create InfoPackage
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Beneath this, you see “ZIVY_CUST” alias “Customer Info Object”
    6.     Beneath this you see a “FLAT FILE”.
    7.     Select this “FLAT FILE”,  right click the mouse pointer and select the option “Create InfoPackage”.
    8.     A window pops up.
                                                                   i.      InfoPackage Description: Info package for “ZIVY_CUST_TEXT”.
                                                                 ii.      Select “ZIVY_CUST_TEXT”
                                                                iii.      Click the “CHECK MARK”
    1.      
    1.     You see a new screen “Scheduler (Maintain InfoPackage)”.
    2.     Click the tab “External Data”
                                                                   i.      Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_CUST_TEXT.csv
                                                                 ii.      Check the CSV file.
                                                                iii.      Click the Preview Button.
                                                               iv.      A window pops up, click the CHECK MARK.
                                                                 v.      You see the data present in the EXCEL File.
    1.      
    1.     Click the tab “Update”
                                                                   i.      Have a look at the entries.
    1.      
    1.     Click the tab: Scheduler:
                                                                   i.      Click the button “Start”
                                                                 ii.      You now click on “MONITOR BUTTON” present on the tool bar.
                                                                iii.      Browse the data.         
    1.     Create InfoObject :
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_MAT and
                                                                   i.      Description&#61664; ZIVY Material Info Object
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_MAT: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 10
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Check the “With Master Data” and “With Texts”.
    2.      Use suitable formats in the fields.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
                                                               iv.      In the Attributes Tab:
    1.      We need to create the Attribute InfoObjects. These could be done directly from here or even from the RSA1 &#61664; InfoObject &#61664; ZIVY_Iarea&#61664;ZIVY_CHCAT. This will be delt in the forth coming steps (STEP 17).
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the ZIVY_MAT, by clicking the icon “ACTIVATE”
    2.     Creation of InfoObject: ZIVY_GROUP
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_GROUP and
                                                                   i.      Description&#61664; ZIVY Material Group.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_GROUP: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 10
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Uncheck the “With Master Data”
    2.      Check the “With Texts” and make suitable Text Table Properties.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_GROUP, by clicking the icon ACTIVATE.
    2.     Creation of InfoObject: ZIVY_COLOR
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_COLOR and
                                                                   i.      Description&#61664; ZIVY Material Color.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_COLOR: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 10
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Uncheck the “With Master Data”  and  “With Texts”.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_COLOR, by clicking the icon ACTIVATE.
    2.     Creation of InfoObject from the ZIVY_MAT InfoObject:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     In this ZIVY_CHCAT, you see the InfoObject ZIVY_MAT. Double click the InfoObject ZIVY_MAT.
    6.     You find the screen “Change Characteristic ZIVY_MAT:Detail”.
    7.     Click on the tab “Attributes”
    8.     In the Character Attribute Box, type ZIVY_GROUP and enter the ENTER KEY.
    9.     You see the relevant information regarding this being inserted.
    10.     Similarly, type ZIVY_COLOR.
    11.     Click the “ACTIVATE”
    3.     Create InfoSoure:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Right click the mouse pointer and select the entry “Create InfoSource”
    6.     A window pops up:
                                                                   i.      Select the “Direct Update of Master Data”
                                                                 ii.      InfoObject : ZIVY_MAT
                                                                iii.      Click the CHECK MARK.
    1.      
    1.     Now beneath “ZIVY Application Component” you see the “ZIVY Material Info Object”.
    2.     Select the “ZIVY Material  Info Object” mentioned above.
    3.     Right click the mouse pointer, and select the entry “Assign DataSource”.
    4.     A window pops up.
                                                                   i.      InfoSource: ZIVY_MAT
                                                                 ii.      Source System: FLATFILE
                                                                iii.      Check the TICK MARK.
                                                               iv.      Just click yes for the coming window pop ups.
    1.      
    1.     Key thing
                                                                   i.      Click on the tab “Transfer Rules”
    1.      Have a look at the data mapping here.
    2.      First field is ZIVY_MAT,
    3.      Second field is ZIVY_GROUP.
    4.      Third field is ZIVY_COLOR.
    5.      Check the mapping. If you don’t see the mapping.
    6.      Click on the empty row in the group “Assign InfoObjectField”, the box to the right.
    7.      Type ZIVY_GROUP, ZIVY_COLOR.
    8.      Check the transfer rules.
    9.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.                                                            ii.      Click on the tab “DataSource/Transport Structure”1.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
    2.      If the order is different, just shuffle the rows.
                                                                iii.      Click the “Activate Button”. By clicking the “ACTIVATE BUTTON” you just activated the ZIVY_CUST MASTER DATA.
                                                               iv.      Now in DataSource : select the text.
                                                                 v.      Click on the tab “Transfer Rules”
    1.      Have a look at the data mapping here.
    2.      First Field : 0LANGUAGE
    3.      Second field is ZIVY_MAT,
    4.      Third field is 0TXTSH.
    5.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. Ignore the first field, as it is a constant.                                                          vi.      Click on the tab “DataSource/Transport Structure”1.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
    2.      If the order is different, just shuffle the rows.
                                                              vii.      Click the “Activate Button”. By clicking the “ACTIVATE.
    1.     Create the DATA required for this MASTER DATA
    1.     Open EXCEL.
    2.     Type the following data:
    1.      
    1.     Save as “ZIVY_Material_MASTER.CSV”
    2.     The file should be saved in COMMA SEPARATED FORMAT.
    3.     Open EXCEL
    4.     Type the following data:
    5.     Save the file *** “ZIVY_Material_TEXT.CSV”
    1.     Create InfoPackage
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Beneath this, you see “ZIVY_MAT” alias “ZIVY Material Info Object”
    6.     Beneath this you see a “FLAT FILE”.
    7.     Select this “FLAT FILE”,  right click the mouse pointer and select the option “Create InfoPackage”.
    8.     A window pops up.
                                                                   i.      InfoPackage Description: Info package for “ZIVY_MAT_ATTR”.
                                                                 ii.      Select “ZIVY_MAT_ATTR”
                                                                iii.      Click the “CHECK MARK”
    1.      
    1.     You see a new screen “Scheduler (Maintain InfoPackage)”.
    2.     Click the tab “External Data”
                                                                   i.      Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_Material_MASTER.csv
                                                                 ii.      Check the CSV file.
                                                                iii.      Click the Preview Button.
                                                               iv.      A window pops up, click the CHECK MARK.
                                                                 v.      You see the data present in the EXCEL File.
    1.      
    1.     Click the tab “Update”
                                                                   i.      Have a look at the entries.
    1.      
    1.     Click the tab: Scheduler:
                                                                   i.      Click the button “Start”
                                                                 ii.      You now click on “MONITOR BUTTON” present on the tool bar.
                                                                iii.      Browse the data.
    1.     Create InfoPackage
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Beneath this, you see “ZIVY_MAT” alias “ZIVY Material Info Object”
    6.     Beneath this you see a “FLAT FILE”.
    7.     Select this “FLAT FILE”,  right click the mouse pointer and select the option “Create InfoPackage”.
    8.     A window pops up.
                                                                   i.      InfoPackage Description: Info package for “ZIVY_MAT_TEXT”.
                                                                 ii.      Select “ZIVY_MAT_TEXT”
                                                                iii.      Click the “CHECK MARK”
    1.      
    1.     You see a new screen “Scheduler (Maintain InfoPackage)”.
    2.     Click the tab “External Data”
                                                                   i.      Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_MATERIAL_TEXT.csv
                                                                 ii.      Check the CSV file.
                                                                iii.      Click the Preview Button.
                                                               iv.      A window pops up, click the CHECK MARK.
                                                                 v.      You see the data present in the EXCEL File.
    1.      
    1.     Click the tab “Update”
                                                                   i.      Have a look at the entries.
    1.      
    1.     Click the tab: Scheduler:
                                                                   i.      Click the button “Start”
                                                                 ii.      You now click on “MONITOR BUTTON” present on the tool bar.
                                                                iii.      Browse the data.         
    1.     Create InfoObject :
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_SPER and
                                                                   i.      Description&#61664; ZIVY Sales Person Info Object
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_SPER: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 20
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Check the “With Master Data” and “With Texts”.
    2.      Use suitable formats in the fields.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
                                                               iv.      In the Attributes Tab:
    1.      We need to create the Attribute InfoObjects. These could be done directly from here or even from the RSA1 &#61664; InfoObject &#61664; ZIVY_Iarea&#61664;ZIVY_CHCAT. This will be delt in the forth coming steps (STEP 24).
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the ZIVY_SPER, by clicking the icon “ACTIVATE”
    2.     Creation of InfoObject: ZIVY_SREG
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_SREG and
                                                                   i.      Description&#61664; ZIVY Sales Region.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_SREG: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 20
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Check the “With Master Data”  and “With Texts”.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_SREG, by clicking the icon ACTIVATE.
    2.     Creation of Attributes from the ZIVY_SPER InfoObject:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     In this ZIVY_CHCAT, you see the InfoObject ZIVY_SPER. Double click the InfoObject ZIVY_SPER.
    6.     You find the screen “Change Characteristic ZIVY_SPER:Detail”.
    7.     Click on the tab “Attributes”
    8.     In the Character Attribute Box, type ZIVY_SREG and enter the ENTER KEY.
    9.     You see the relevant information regarding this being inserted.
    10.     Click the “ACTIVATE”
    3.     Create InfoSoure:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Right click the mouse pointer and select the entry “Create InfoSource”
    6.     A window pops up:
                                                                   i.      Select the “Direct Update of Master Data”
                                                                 ii.      InfoObject : ZIVY_SPER
                                                                iii.      Click the CHECK MARK.
    1.      
    1.     Now beneath “ZIVY Application Component” you see the “ZIVY Sales Person Info Object”.
    2.     Select the “ZIVY Sales Person  Info Object” mentioned above.
    3.     Right click the mouse pointer, and select the entry “Assign DataSource”.
    4.     A window pops up.
                                                                   i.      InfoSource: ZIVY_SREP
                                                                 ii.      Source System: FLATFILE
                                                                iii.      Check the TICK MARK.
                                                               iv.      Just click yes for the coming window pop ups.
    1.      
    1.     Key thing
                                                                   i.      Click on the tab “Transfer Rules”
    1.      Have a look at the data mapping here.
    2.      First field is ZIVY_SPER,
    3.      Second field is ZIVY_SREG.
    4.      Check the mapping. If you don’t see the mapping.
    5.      Click on the empty row in the group “Assign InfoObjectField”, the box to the right.
    6.      Check the transfer rules.
    7.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.                                                            ii.      Click on the tab “DataSource/Transport Structure”1.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
    2.      If the order is different, just shuffle the rows.
                                                                iii.      Click the “Activate Button”. By clicking the “ACTIVATE BUTTON” you just activated the ZIVY_SREP MASTER DATA.
                                                               iv.      Now in DataSource : select the text.
                                                                 v.      Click on the tab “Transfer Rules”
    1.      Have a look at the data mapping here.
    2.      First Field : 0LANGUAGE
    3.      Second field is ZIVY_SPER,
    4.      Third field is 0TXTSH.
    5.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. Ignore the first field, as it is a constant.                                                          vi.      Click on the tab “DataSource/Transport Structure”1.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
    2.      If the order is different, just shuffle the rows.
                                                              vii.      Click the “Activate Button”. By clicking the “ACTIVATE.
    1.     Create the DATA required for this MASTER DATA
    1.     Open EXCEL.
    2.     Type the following data:
    1.      
    1.     Save as “ZIVY_SREP_MASTER.CSV”
    2.     The file should be saved in COMMA SEPARATED FORMAT.
    3.     Open EXCEL
    4.     Type the following data:
    5.     Save the file *** “ZIVY_SREP_TEXT.CSV”
    1.     Create InfoPackage
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Beneath this, you see “ZIVY_SPER” alias “ZIVY Sales Person Info Object”
    6.     Beneath this you see a “FLAT FILE”.
    7.     Select this “FLAT FILE”,  right click the mouse pointer and select the option “Create InfoPackage”.
    8.     A window pops up.
                                                                   i.      InfoPackage Description: Info package for “ZIVY_SPER_ATTR”.
                                                                 ii.      Select “ZIVY_SPER_ATTR”
                                                                iii.      Click the “CHECK MARK”
    1.      
    1.     You see a new screen “Scheduler (Maintain InfoPackage)”.
    2.     Click the tab “External Data”
                                                                   i.      Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_SPER_MASTER.csv
                                                                 ii.      Check the CSV file.
                                                                iii.      Click the Preview Button.
                                                               iv.      A window pops up, click the CHECK MARK.
                                                                 v.      You see the data present in the EXCEL File.
    1.      
    1.     Click the tab “Update”
                                                                   i.      Have a look at the entries.
    1.      
    1.     Click the tab: Scheduler:
                                                                   i.      Click the button “Start”
                                                                 ii.      You now click on “MONITOR BUTTON” present on the tool bar.
                                                                iii.      Browse the data.
    1.     Create InfoPackage
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Beneath this, you see “ZIVY_SPER” alias “ZIVY Sales Person Info Object”
    6.     Beneath this you see a “FLAT FILE”.
    7.     Select this “FLAT FILE”,  right click the mouse pointer and select the option “Create InfoPackage”.
    8.     A window pops up.
                                                                   i.      InfoPackage Description: Info package for “ZIVY_SPER_TEXT”.
                                                                 ii.      Select “ZIVY_SPER_TEXT”
                                                                iii.      Click the “CHECK MARK”
    1.      
    1.     You see a new screen “Scheduler (Maintain InfoPackage)”.
    2.     Click the tab “External Data”
                                                                   i.      Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_SPER_TEXT.csv
                                                                 ii.      Check the CSV file.
                                                                iii.      Click the Preview Button.
                                                               iv.      A window pops up, click the CHECK MARK.
                                                                 v.      You see the data present in the EXCEL File.
    1.      
    1.     Click the tab “Update”
                                                                   i.      Have a look at the entries.
    1.      
    1.     Click the tab: Scheduler:
                                                                   i.      Click the button “Start”
                                                                 ii.      You now click on “MONITOR BUTTON” present on the tool bar.
                                                                iii.     
    Browse the data.         
    1.     Creation of InfoObject Catalog with Key Figures:
    1.     Select the InfoArea just created “ZIVY_Iarea”.
    2.     Right click the mouse pointer and select the option “Create InfoObject Catalog” 
    3.     A dialog box pops up.
    4.     Give the InfoObjCat = ZIVY_KEYCAT
                                                                  i.      Description = “ZIVY Key Figures Catalog”
                                                                 ii.      InfoObjectType: Check the Key Figures.
                                                                iii.       Now at the bottom of this dialog box you see an icon called “CREATE”. Click this icon.
    1.      
    1.     The next screen in front of you is the “Edit InfoObject Catalog”.
    2.     Simply click the “activate” icon present on the Application Toolbar.
    2.     Create InfoObject :
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_KEYCAT”,which is ZIVY  Key Figures Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_AMT and
                                                                   i.      Description&#61664; ZIVY Amount Info Object
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Create Key Figure ZIVY_AMT: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the Type/ Unit Tab
    1.      DataType: Amount
    2.      Unit/ Currency = 0Currency
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the ZIVY_AMT, by clicking the icon “ACTIVATE”.
    2.     Create InfoObject :
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3. 

  • How to load data from a  flat file which is there in the application server

    HI All,
              how to load data from a  flat file which is there in the application server..

    Hi,
    Firstly you will need to place the file(s) in the AL11 path. Then in your infopackage in "Extraction" tab you need to select "Application Server" option. Then you need to specify the path as well as the exact file you want to load by using the browsing button.
    If your file name keeps changing on a daily basis i.e. name_ddmmyyyy.csv, then in the Extraction tab you have the option to write an ABAP routine that generates the file name. Here you will need to append sy-datum to "name" and then append ".csv" to generate complete filename.
    Please let me know if this is helpful or if you need any more inputs.
    Thanks & Regards,
    Nishant Tatkar.

  • Step by Step details on how to load data from a flat file

    hi can anyone explain how to load data from a flat file. Pls giv me step by step details. thnx

    hi sonam.
    it is very easy to load data from flat file. whn compared with other extrations methods...
    here r the step to load transation data from a flat file.......
    step:1 create a Flat File.
    step:2 log on to sap bw (t.code : rsa1 or rsa13).
    and observe the flat file source system icon. i.e pc icon.
    step:3 create required info objects.
    3.1: create infoarea
         (infoObjects Under Modeling > infoObjects (root node)-> context menu -
    > create infoarea).
    3.2:  create char /keyfig infoObject Catalog.(select infoArea ---.context menu --->create infoObject catalog).
    3.3:   create char.. infoObj and keyFig infoObjects accourding to ur requirement and activate them.
    step:4 create infoSource for transaction data and create transfer structure and maintain communication structure...
        4.1: first create a application component.(select InfoSources Under modeling-->infosources<root node>>context menu-->create  applic...component)
       4.2: create infoSource  for transation data(select appl..comp--.context menu-->create infosource)
    >select O flexible update and give info source name..
    >continue..
    4.4: *IMp* ASSIGN DATASOURCE..
      (EXPAND APPLIC ..COMP..>EXPAND YOUR INFOSOURCE>CONTEXT MENU>ASSIGN DATASOURCE.)
    >* DATASOURCE *
    >O SOURCE SYSTEM: <BROWSE AND CHOOSE YOUR FLAT FILE SOURCE SYSTEM>.(EX:PC ICON).
    >CONTINUE.
    4.5: DEFINE DATASOURCE/TRANSFER STRUCTURE  FOR IN FOSOURCE..
    > SELECT TRANSFER STRUCTURE TAB.
    >FILL THE INFOOBJECT FILLED WITH THE NECESSARY  INFOOBJ IN THE ORDER OR SEQUENCE OF FLAT FILE STRUCTURE.
    4.6: ASSIGN TRANSFER RULES.
    ---> NOW SELECT TRANSFER RULES TAB. AND SELECT PROPOSE TRANSFER RULES SPINDLE LIKE ICON.
    (IF DATA TARGET IS ODS -
    INCLUDE 0RECORDMODE IN COMMUNICATION STRUCTURE.)
    --->ACTIVATE...
    STEP:5  CREATE DATATARGET.(INFOCUBE/ODS OBJECT).
    5.1: CREATE INFO CUBE.
    -->SELECT YOUR INFOAREA>CONTEXT MENU>CREATE INFOCUBE.
    5.2: CREATE INFOCUBE STRUCTURE.
    ---> FILL THE STRUCTURE PANE WILL REQUIRE INFOOBJECTS...(SELECT INFOSOURCE ICON>FIND UR INFOSOURCE >DOUBLE CLICK > SELECT "YES" FOR INFOOBJECT ASSIGNMENT ).
    >MAINTAIN ATLEAST  ON TIME CHAR.......(EX; 0CALDAY).
    5.3:DEFINE AND ASSIGN DIMENSIONS FOR YOUR CHARACTERISTICS..
    >ACTIVATE..
    STEP:6 CREATE UPDATE RULES FOR INFOCUDE USING INFOSOURCE .
    >SELECT UR INFOCUBE >CONTEXT MENU> CREATE UPDATE RULES.
    > DATASOURCE
    > O INFOSOURCE : _________(U R INFOSOURCE). AND PRESS ENTER KEY.......
    >ACTIVATE.....UR UPDATE RULES....
    >>>>SEE THE DATA FLOW <<<<<<<<----
    STEP:7  SCHEDULE / LOAD DATA..
    7.1 CREATE INFOPACKAGE.
    --->SELECT INFOSOURCE UNDER MODELING> EXPAND UR APPLIC.. COMP..> EXPAND UR INFOSOURCE..> SELECT UR DATASOURCE ASSIGN MENT ICON....>CONTEXT MENU> CREAE INFOPACKAGE..
    >GIVE INFOPACKAGE DISCREPTION............_________
    >SELECT YOUR DATA SOURCE.-------> AND PRESS CONTINUE .....
    >SELECT EXTERNAL DATA TAB...
    > SELECT *CLIENT WORKSTATION oR APPLI SERVER  >GIVE FILE NAME > FILE TYPE> DATA SAPARATER>
    >SELECT PROCESSING TAB
    > PSA AND THEN INTO DATATARGETS....
    >DATATARGET TAB.
    >O SELECT DATA TARGETS
    [ ] UPDATE DATATARGET CHECK BOX.....
    --->UPDATE TAB.
    O FULL UPDATE...
    >SCHEDULE TAB..
    >SELECT O START DATA LOAD IMMEDIATELY...
    AND SELECT  "START" BUTTON........
    >>>>>>>>>>
    STEP:8 MONITOR DATA
    > CHECK DATA IN PSA
    CHECK DATA IN DATA TARGETS.....
    >>>>>>>>>>> <<<<<<<<<----
    I HOPE THIS LL HELP YOU.....

  • Loading data from flat file...

    Hello,
    I am actually experiencing a problem where I cant load data from a flat file into a table. I have actually reverse engineered the flat file into ODI. But the thing is I don't know how to load the data that is reversed into a RDBMS table. Added, I don't know how create this RDBMS table form within ODI to be reflected on the DB. Added, don't know how to load the data from the flat file onto this table without having to add the columns in order to map between the flat file and the table.
    In conclusion, I need to know how to create an RDBMS table from within ODI on the database. And how to automatically map the flat file to the DB table and load the data into the DB table.
    Regards,
    Hossam

    Hi Hossam,
    We can used ODI procedure to create table in the DB.
    Make sure you keep the column name in the table name same as the column name in FLAT FILE so that it can automatically map the column.
    and regarding Loading data from FLAT File i.e. our source table is FLAT FILE till ODI 10.1.3.4 we need to manually insert the datastore since the file system cannot be reversed.
    Please let me know Hossam if i can assis you further.
    Thanks and Regards,
    Andy

  • How to load images from css file in JavaFX 8

    I have this css file which loads images in JavaFX 8 application:
    #pill-left {
        -fx-padding: 5;
         -fx-border-image-source: url("/com/dx57dc/images/left-btn.png");
        -fx-border-image-slice: 4 4 4 4 fill;
        -fx-border-image-width: 4 4 4 4;
        -fx-border-image-insets: 0;
        -fx-border-image-repeat: stretch;
         -fx-background-color: null !important;
    #pill-left:selected { -fx-border-image-source: url("/com/dx57dc/images/left-btn-selected.png"); }
    #pill-left .label {
        -fx-text-fill: #d3d3d3;
        -fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
    #pill-left:selected .label {
        /* -fx-text-fill: black; */
        -fx-text-fill: white;
        -fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
    #pill-center {
        -fx-padding: 5;
         -fx-border-image-source: url("/com/dx57dc/images/center-btn.png");
        -fx-border-image-slice: 4 4 4 4 fill;
        -fx-border-image-width: 4 4 4 4;
        -fx-border-image-insets: 0;
        -fx-border-image-repeat: stretch;
         -fx-background-color: null !important;
    #pill-center:selected { -fx-border-image-source: url("/com/dx57dc/images/center-btn-selected.png"); }
    #pill-center .label {
        -fx-text-fill: #d3d3d3;
         -fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
    #pill-center:selected .label {
        -fx-text-fill: black;
        -fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
    #pill-right {
        -fx-padding: 5;
        -fx-border-image-source: url("/com/dx57dc/images/right-btn.png");
        -fx-border-image-slice: 4 4 4 4 fill;
        -fx-border-image-width: 4 4 4 4;
        -fx-border-image-insets: 0;
         -fx-border-image-repeat: stretch;
        -fx-background-color: null !important;
    #pill-right:selected { -fx-border-image-source: url("/com/dx57dc/images/right-btn-selected.png"); }
    #pill-right .label {
         -fx-text-fill: #d3d3d3;
        -fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
    #pill-right:selected .label {
        -fx-text-fill: black;
        -fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
    The images are located at the Java package com.dx57dc.images
    In Java 7_25 this code works as expected but in JavaFX 8 b99 I get this error:
    ava.lang.NullPointerException
    at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1129)
    at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
    at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
    at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:233)
    at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:199)
    at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1249)
    at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
    at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
    at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:233)
    at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:199)
    at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1249)
    at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
    at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
    at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:99)
    at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:210)
    at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
    at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
    at java.lang.Thread.run(Thread.java:724)
    D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
    20 total resources being managed
    4 permanent resources (20.0%)
    1 resources locked (5.0%)
    7 resources contain interesting data (35.0%)
    0 resources disappeared (0.0%)
    D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
    20 total resources being managed
    4 permanent resources (20.0%)
    1 resources locked (5.0%)
    7 resources contain interesting data (35.0%)
    0 resources disappeared (0.0%)
    D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
    20 total resources being managed
    4 permanent resources (20.0%)
    1 resources locked (5.0%)
    7 resources contain interesting data (35.0%)
    0 resources disappeared (0.0%)
    What is the proper way to load images from css in Java 8?
    Ref
    How to load images from css file in JavaFX 8 - Stack Overflow

    There is nothing special to do - you execute the statement from your program just like any other SQL statement.  The only thing to be aware of are the privilege/permission issues:
    When loading from a file on a client computer:
    READ CLIENT FILE privilege is also required for the database user.
    Read privileges are required on the directory being read from.
    The allow_read_client_file database option must be enabled.
    The read_client_file secure feature must be enabled.
    Revoking these privileges is also the only way you can prevent a user from executing the statement.

  • I need how to load data from MS Excel(csv format) to NW Excel

    Hi,
    I am doing Migration project from SAP MS to NW Manually.
    I need how to load data from MS excel (csv format) to NW excel .
    For example 2008 budget data.
    Could you please help me in this.
    Thanks and Regards
    Krishna

    Hi,
    You need to create a transformation file and a conversion file if required. First upload the excel (csv) file into BPC using Manage Data and Upload File option.
    Create the transformation file (refer to the sap help  on how to define a transformation file). You need to specify the mapping correctly and include all your application dimensions and map them to appropriate columns of the flat file.
    Before running the import package, do validate the data in the flat file you uploaded into BPC with the transformation file you created.
    Thanks,
    Sreeni

  • Load data from XML files into BI

    Hi All,
    Can any one guide me through the steps which involve in loading data from XML files into BI?
    Thanks
    Santosh

    Hi James,
    I have followed upto step No: 12 .
    Please could you let me know how to link the XML file on my local drive to BI,
    I am not able to find figure out where to specify the path of the XML file to be loaded into BI.
    Thanks In Advance
    Regards,
    San
    1. Create a Infosource(ZIS), with transfer structure in accordance with the structure in the XML file. (You can open the XML file with MS Excel.This way you can get to know the structure).
    2. Activate the transfer rules.
    3. After activation ;from the Menu Bar , Select Extras>Create BW Datasource with SOAP connection.
    4.Now Activate the Infosurce again, this creates an XML based Datasource(6AXXX...)
    5.These steps would create two sub nodes under the Infosource(ZIS).
    6.Select Myself system and create a data package and execute it run in Init mode(without Data Transfer).
    7. This would create an entry in RSA7(BW delta Queue)
    8. Again create another Delta Infopackage under it, and run it. Now the Datasource(6AXXXXXX..) would turn green in RSA7.
    9.In Function builder(SE37) select your FM( do a search ,F4, on the datasource 6AXXX....) .
    10.Inside this RFC based FM , from the Menu Bar select Utilities>more Utilities>Create Web services>From Function module.
    11.A wizard will guide you through the next steps .
    12.once this is done a Web serrvice would be enabled in WSADMIN. Select your FM and execute it.
    13.From here you can upload the data from XML file into BW delta queue.
    Edited by: Santosh on Nov 30, 2008 2:22 PM

  • Loading data from multiple files to multiple tables

    How should I approach on creating SSIS package to load data from multiple files to multiple tables. Also, Files will have data which might overlap so I might have to create stored procedure for it. Ex. 1st day file -data from au.1 - aug 10 and 2nd day
    file might have data from aug.5 to aug 15.  So I might have to look for max and min date and truncate table with in that date range.

    thats ok. ForEachLoop would be able to iterate through the files. You can declare a variable inside loop to capture the filenames. Choose fully qualified as the option in loop
    Then inside loop
    1. Add execute sql task to delete overlapping data from the table. One question here is where will you get date from? Does it come inside filename?
    2. Add a data flow task with file source pointing to file .For this add a suitable connection manager (Excel/Flat file etc) and map the connection string property to filename variable using expressions
    3. Add a OLEDB Destination to point to table. You can use table or view from variable - fast load option and map to variable to make tablename dynamic and just set corresponding value for the variable to get correct tablename
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Loading data from a file    - originally posted in Spatial forum

    Loading data from a file
    Posted: Jun 23, 2008 10:21 AM      
    Hello,
    i want to load my data to oracle from a rdf file and can consult it later with sparql.
    so, I construct a Jena Model, then I store it using this program, but how can i consult it without loading the file again. thanks
    Oracle oracle = new Oracle(jdbcUrl, user, password);
    // read a data file into a default Jena model.
    Model model = ModelFactory.createDefaultModel();
    InputStream is;
    is = new BufferedInputStream( new FileInputStream(filename));
    model.read(new InputStreamReader(is), "", "");
    is.close();
    ModelOracleSem modelDest = ModelOracleSem.createOracleSemModel(oracle, modelName);
    GraphOracleSem g = new GraphOracleSem(oracle, modelName);
    g.dropApplicationTableIndex();
    if (method == 0) {
    psOut.println("start incremental");
    modelDest.add(model);
    psOut.println("end size " + modelDest.size());
    }else if (method == 1) {
    psOut.println("start batch load");
    ((OracleBulkUpdateHandler) g.getBulkUpdateHandler()).addInBatch(
    GraphUtil.findAll(model.getGraph()), tbs);
    psOut.println("end size " + modelDest.size());
    } else {
    psOut.println("start bulk load");
    ((OracleBulkUpdateHandler) g.getBulkUpdateHandler()).addInBulk(
    GraphUtil.findAll(model.getGraph()), tbs);
    psOut.println("end size " + modelDest.size());
    g.rebuildApplicationTableIndex();

    Hi,
    Chapter 1 (section 1.8) in the documentation has a quickstart on these steps - creating a semantic network, a model, loading the data using INSERT statements and so on. For faster load of large amounts of data you can use the bulk load functionality, documented in chapter 1 (section 1.7).
    For Java code, you could use the Oracle Jena Adaptor, and the best place to start is with the documentation of the Oracle Jena Adaptor, at http://www.oracle.com/technology/tech/semantic_technologies/htdocs/documentation.html
    Melli

  • Loading data from .csv file into existing table

    Hi,
    I have taken a look at several threads which talk about loading data from .csv file into existing /new table. Also checked out Vikas's application regarding the same. I am trying to explain my requirement with an example.
    I have a .csv file and I want the data to be loaded into an existing table. The timesheet table columns are -
    timesheet_entry_id,time_worked,timesheet_date,project_key .
    The csv columns are :
    project,utilization,project_key,timesheet_category,employee,timesheet_date , hours_worked etc.
    What I needed to know is that before the csv data is loaded into the timesheet table is there any way of validating the project key ( which is the primary key of the projects table) with the projects table . I need to perform similar validations with other columns like customer_id from customers table. Basically the loading should be done after validating if the data exists in the parent table. Has anyone done this kind of loading through the APEX utility-data load.Or is there another method of accomplishing the same.
    Does Vikas's application do what the utility does ( i am assuming that the code being from 2005 the utility was not incorporated in APEX at that time). Any helpful advise is greatly appreciated.
    Thanks,
    Anjali

    Hi Anjali,
    Take a look at these threads which might outline different ways to do it -
    File Browse, File Upload
    Loading CSV file using external table
    Loading a CSV file into a table
    you can create hidden items in the page to validate previous records before insert data.
    Hope this helps,
    M Tajuddin
    http://tajuddin.whitepagesbd.com

  • How to read data from a file that was formatted by excel?

    Hi everyone, I'm familiar with java.io and the ability to read from files, can anyone tell me how to read data from a file that was formatted by excel? Or at least give me some web references so that I can learn about it?

    http://jakarta.apache.org/poi/hssf/index.html
    HSSF stands for Horrible Spreadsheet Format, but it still works!

  • How to load data from a ODS to CUBE Request ID - by - Request ID?

    <i>How to load data from a ODS to CUBE Request ID - by - Request ID?</i>
    The problem is that... some requests had been eliminated of the cube and the delta control between the ODS and CUBE was lost. The flag "<b>data mart status of request</b>" of all the requests of the ODS had been blank.
    Now it is necessary to load some requests from the ODS for the cube.
    Notes:
    - it is not possible to make a complete load selecting the data to be loaded;
    - the PSA is not being used;
    - considering the data volume it is impracticable to reload the cube completely.
    Thanks in advance,
    Wesley.

    Dear R B,
    Considering the following:
    -> the delta control was lost;
    -> the data already are active in the ODS;
    -> part of the data of the ODS already is in the cube.
    The indicated procedure it only guarantees the load of the data that are in the ODS and that are not in the cube.
    Tks,
    Wesley.

Maybe you are looking for