SPLIT data-record AT delimiter into table-fieldname

Hi all,
I have the following SPLIT statement. But unable to split into respective field in an internal table. I'm using the standard delimeter.
Please help me how to create a file using the delimeter w_delimeter.
When I create the file with separated by '#' even it is not spliting.
w_delimeter TYPE c value cl_abap_char_utilities=>horizontal_tab.
SPLIT data-record AT w_delimeter INTO i_0208-pernr
                                                                     i_0208-begda
                                                                    i_0208-endda
                                                                    i_0208-wtart
                                                                    i_p0208-allpc.
Thanks,
Prasad

Hi Prasad,
it should work try this bellow piece of code.
REPORT  ZTEST_A.
data: Begin of itab occurs 1,
        name(30),
        street(30),
        Apt(3),
        city(30),
        state(2),
        zipcode(5),
      end of itab,
      text1(250),
      text2(250).
Text1 = 'Jacson  3 xyz dr  B4  abcd  DE  12345'.
Text2 = 'Edward  3 Caaa dr  B4  pqr  DE  54623'.
split text1  AT '  '  into   itab-name itab-street  itab-Apt
        itab-city itab-state itab-zipcode.
append itab.
split text2  AT '  '  into   itab-name itab-street  itab-Apt
        itab-city itab-state itab-zipcode.
append itab.
thanks,
Venkat

Similar Messages

  • How  to load the data from excel  file  into table in oracle using UTL_FI

    How to load the data from excel file into table in oracle
    and from table to excel file
    using UTL_FILE package
    Please give me some example

    This is something i tried in oracle apex
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Regards,
    CKLP

  • Split String at delimiter into table.

    Hi Experts,
    I have a requirement wherein i need to split aaaa#bbbbbbbbbbbb#ccc#dddddddddddddddddddddd#e# into internal table as below:
    Header 1
    Header 2
    1
    aaaa
    2
    bbbbbbbbbbbb
    3
    ccc
    4
    dddddddddddddddddddddd
    5
    e
    how can this be done.
    Thanks & Regards,
    Anil

    Hi Ashok,
    split <string> at '#' into table it.  -Doesn't work
    split <string> at SPACE into table it. - Works
    But same statement with '#' is not working.
    Feeling strange.
    Thanks,
    Anil

  • Data is not inserting into table

    Hi Team,
    I am inserting data into a custom table.
    but my records are not inserting into table
    //CO File
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("createEmployee");
    // am.invokeMethod("init");
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("Apply") != null)
    OAViewObject vo = (OAViewObject)am.findViewObject("TestEmpVO1");
    String NAME = (String)vo.getCurrentRow().getAttribute("Name");
    Number employeeNumber = (Number)vo.getCurrentRow().getAttribute("Num");
    String NUM = String.valueOf(employeeNumber.intValue());
    am.invokeMethod("apply");
    MessageToken[] tokens = { new MessageToken("EMP_NAME", NAME),
    new MessageToken("EMP_NUMBER", NUM) };
    OAException confirmMessage = new OAException("AK", "FWK_TBX_T_EMP_CREATE_CONFIRM", tokens,
    OAException.CONFIRMATION, null);
    pageContext.putDialogMessage(confirmMessage);
    else if (pageContext.getParameter("Cancel") != null)
    am.invokeMethod("rollbackEmployee");
    TransactionUnitHelper.endTransactionUnit(pageContext, "empCreateTxn");
    // End CO
    //AMImpl
    package oracle.apps.fnd.framework.toolbox.labsolutions.server;
    import oracle.jbo.Row;
    import oracle.jbo.Transaction;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.domain.Number;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OARow;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.server.OAViewObjectImpl;
    // --- File generated by Oracle Business Components for Java.
    public class TestEmpAMImpl extends EmployeeAMImpl
    * This is the default constructor (do not remove)
    public TestEmpAMImpl()
    * Container's getter for TestEmpVO1
    public TestEmpVOImpl getTestEmpVO1()
    return (TestEmpVOImpl)findViewObject("TestEmpVO1");
    * Creates a new employee.
    public void createEmployee()
    OAViewObject vo = (OAViewObject)getTestEmpVO1();
    // Per the coding standards, this is the proper way to initialize a
    // VO that is used for both inserts and queries. See View Objects
    // in Detail in the Developer's Guide for additional information.
    if (!vo.isPreparedForExecution())
    vo.executeQuery();
    Row row = vo.createRow();
    vo.insertRow(row);
    // Required per OA Framework Model Coding Standard M69
    row.setNewRowState(Row.STATUS_INITIALIZED);
    } // end createEmployee()
    public void apply()
    getDBTransaction().commit();
    * Sample main for debugging Business Components code using the tester.
    public static void main(String[] args)
    launchTester("oracle.apps.fnd.framework.toolbox.labsolutions.server", "TestEmpAMLocal");
    //End AmImpl
    Please suggest.
    Thanks,
    Ajit

    Ajit,
    Its always a good idea to close the thread with an explanation. It will help others whenever they are into similar situation.
    --Shiv                                                                                                                                                                                                                                                                                               

  • Record not updating into table helpme

    in the following functionmodule record is not commiting into table is there any wrong please hep me.
    FUNCTION Z_MZPR_DETAILS.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(ZPRHEADER) TYPE  BAPIMEREQHEADER OPTIONAL
    *"     VALUE(ZPRHEADERX) TYPE  BAPIMEREQHEADERX OPTIONAL
    *"  EXPORTING
    *"     VALUE(ZNUMBER) TYPE  BAPIMEREQHEADER-PREQ_NO
    *"     VALUE(RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
    *"  TABLES
    *"      ZPRITEM STRUCTURE  BAPIMEREQITEMIMP
    *"      ZPRITEMX STRUCTURE  BAPIMEREQITEMX OPTIONAL
    *"      ZPRACCOUNT STRUCTURE  BAPIMEREQACCOUNT OPTIONAL
    *"      ZPRACCOUNTX STRUCTURE  BAPIMEREQACCOUNTX OPTIONAL
    DATA:ITAB LIKE TABLE OF ZPRDETAILS WITH HEADER LINE,
         ZRETURN LIKE TABLE OF RETURN WITH HEADER LINE.
    CALL FUNCTION 'BAPI_PR_CREATE'
    EXPORTING
       PRHEADER                    = ZPRHEADER
       PRHEADERX                   = ZPRHEADERX
      TESTRUN                     =
    IMPORTING
       NUMBER                      = ZNUMBER
      PRHEADEREXP                 =
      TABLES
       RETURN                      = ZRETURN
       PRITEM                      = ZPRITEM
       PRITEMX                     = ZPRITEMX
      PRITEMEXP                   =
      PRITEMSOURCE                =
       PRACCOUNT                   = ZPRACCOUNT
      PRACCOUNTPROITSEGMENT       =
       PRACCOUNTX                  = ZPRACCOUNTX.
      PRADDRDELIVERY              =
      PRITEMTEXT                  =
      PRHEADERTEXT                =
      EXTENSIONIN                 =
      EXTENSIONOUT                =
      PRVERSION                   =
      PRVERSIONX                  =
      ALLVERSIONS                 =
    ITAB-BANFN = ZNUMBER.
    APPEND ITAB.
    IF ZRETURN-NUMBER = '000'.
    UPDATE ZPRDETAILS from TABLE ITAB.
    COMMIT WORK.
    ENDFUNCTION.

    HI,
    IF ZRETURN-NUMBER = '000'.
    <b>MODIFY ZPRDETAILS from TABLE ITAB.</b>
    COMMIT WORK.
    <b>ENDIF.</b>
    Best regards,
    Prashant

  • Validate the record while uploading into table

    Hi,
    I am uploading records into the table, and it so happened that an incorrect record full of text data was there in theinput file, it got uploaded along with the records,
    hence I need to modify the code to check for such data -it is text data.
    I have an 'empid' field (only numbers). I used that field to check for numeric data some thing like this...
    if itab-empid+0(1) between '0' and '1'.
    move-corresponding itab to DTABLE.
    APPEND DTABLE.
    else.
    continue.
    endif.
    it is not working, throwing a short dump.
    is there a better way to validate this? All I am doing is if empid field has any text data do not read into the internal table.
    Thanks,
    SK

    Hi,
    Check this, It will work.
    if itab-empid CO '12345 67890'.
    move-corresponding itab to DTABLE.
    APPEND DTABLE.
    else.
    endif.
    Regards
    L Appana

  • Deadlock when deleting a not linked data record in a parent table

    Hello, who knows about this problem with Oracle 10g:
    Our installation of Oracle 10.2g behaves different from Oracle 9.2 concerning locking of data records:
    To prevent that different users edit a complex data record at the same time and store it, the user has to put
    the data record into the "edit mode" and we lock it with "Select CharFieldZ from TableX where ID = 1 for UPDATE NOWAIT".
    In this data record references (= foreign keys) to other tables are used; with foreign key constraints we
    prevent those data records of these tables from being deleted, which are used in data records of tableX: on
    deleting such a record Oracle gives an error message ORA-02292, which the application translates for the
    user: "You cannot delete this record, because it is used somewhere else".
    Now when locking data record A under Oracle 10.2g, which contains a foreign Key upon data record 1 of tableF,
    and trying to delete data record 2 of tableF, a deadlock appears, even when this data record is not used
    anywhere else.
    Further conditions:
    - Data record 2 was created before locking of data record A.
    - In the same session tableF was opened for reading before.
    Is there a parameter, which leads Oracle 10.2g to return to the former behavoir ?
    or: how is it possible to prevent a deadlock anyhow else ?
    Thanks in advance
    Lothar Weidl-Walther
    Germany
    Edited by: schatzag on 04.02.2009 14:22
    for easier demonstration the SQL-scripts:
    Installation:
    DELETE TableF;
    DELETE TableX;
    CREATE TABLE TableF
    ( ID INTEGER NOT NULL,
    NAME VARCHAR2(30 BYTE) NOT NULL);
    CREATE UNIQUE INDEX PK_TableF ON TableF(ID);
    ALTER TABLE TableF ADD CONSTRAINT PK_TableF PRIMARY KEY(ID);
    INSERT INTO TableF VALUES (1, 'Record1');
    INSERT INTO TableF VALUES (2, 'Record2');
    commit;
    CREATE TABLE TableX
    ( ID INTEGER NOT NULL,
    NAME VARCHAR2(30 BYTE) NOT NULL,
    CharFieldZ VARCHAR2(100 BYTE),
    TableF_ID INTEGER);
    ALTER TABLE TableX ADD (
    CONSTRAINT FK_TableX_TableF
    FOREIGN KEY (TableF_ID)
    REFERENCES TableF (ID));
    INSERT INTO TableX VALUES (1, 'ComplexRecord1', 'User1', 1);
    commit;
    Session1:
    SELECT CharFieldZ FROM TableX WHERE ID = 1 FOR UPDATE NOWAIT;
    SELECT * FROM TableF;
    Session2:
    DELETE FROM TableF WHERE ID = 2;
    Edited by: schatzag on 04.02.2009 14:26

    I'm not aware that the locking mechanism did change between Oracle 9i and 10g. Can you provide a simple and reproducable example?
    You current description is very "uncomplete", e.g. this statement would lock the full table, but I think that is not what your application does.
    Select CharFieldZ from TableX for UPDATE NOWAITAs Peter already mentioned you should check if there are any other differences between the databases. Let me mention just a few points that I can think of at the moment:
    * indexes
    * FK constraints with DELETE CASCADE
    * higher oracle block size (can lead to more ITL locks)
    Edited by: Sven W. on Feb 4, 2009 2:18 PM

  • Help needed badly Insert text data from xml files into tables

    Hi all, I have asked to do insertion of text from a xml file into tables upon receiving using pro*c. i've done quite an amount of research on xml parser in c but there wasn't much information for mi to use for implementation...
    Guys don't mind helping me to clarify few doubts of mine...
    1. Where can i get the oracle xml parser libs? Is it included when i installed oracle 8i?
    2. Is there any tutorials or help files for xml parser libs where i can read up?
    I need the xml parser to recognise the tags, followed by recognising the text after the tags.
    eg. xml format
    <studentID> 0012 </studentID>
    <student> john </student>
    <studentID> 0013 </studentID>
    <student> mary </student>
    text willl be inserted into tables like this:
    studentID | student
    0012 | john
    0013 | mary
    by the way i'm using oracle 8i on HP-UX. Thanks in advance.

    I can answer one of of your questions at least
    1. Where can i get the oracle xml parser libs? Is it included when i installed oracle 8i?You need the XML XDK. You can use http://www.oracle.com/technology/tech/xml/xdkhome.html as your starting point. I believe the 9i version works for 8i.
    I have no pro*c experience so I can't offer any other suggestions regarding how to do this in pro*c.

  • To split the records of the internal table and send in Packets to XI

    Hi All,
    I am executing the program in SAP. Program will send the material numbers to Oracle through XI and in turn we will get the corresponding data back to SAP. and this all data is written into the file.
    if records are more than 700 then XI will not able to get the data fully.
    So, solution for this is to send the data in packets.
    I want to write the logic like whenever the recods are more than 700, the first 700 records  will got to XI and rest of the records will go to XI after that. we are sending the material numbers to xi through proxy.
    Problem is : how to write the logic for this.
    suppose we have  executed the report for 1000 records, then it should generate 2 excel file in which first file shud contain 700 records, AND 2nd will contain rest of the 300 records.
    Regards,
    Mamta

    Hi Mamta,
    Please try this code. This is to split records as 255 length and u can change it as ur requirement by simply changing l_offset value as 700.
    DATA: l_length TYPE i,                               
          l_lines TYPE i,                                
          l_pos TYPE i VALUE 0,                          
          l_offset TYPE i VALUE 255,                     
          l_part TYPE i,                                 
          l_lastpart TYPE i.                             
    CLEAR i_etabfinal.                                   
    REFRESH i_etabfinal.                                 
    *Split etab line as multiple 255 char length of lines
    LOOP AT i_etab INTO x_etab.                          
    l_length = STRLEN( x_etab-result ).                  
    l_lines = l_length DIV l_offset.                     
    l_lines = l_lines + 1.                               
    l_part = l_offset.                                   
    DO l_lines TIMES.
    *To avoid spaces                                    
    IF l_part LT l_length.                               
    x_etabfinal-line = x_etab-result+l_pos(l_offset).    
    APPEND x_etabfinal TO i_etabfinal.                   
    l_pos = l_pos + l_offset.                            
    l_part = l_pos + l_part.                             
    ELSE.                                                
    l_lastpart = l_length - l_pos.                       
    x_etabfinal-line = x_etab-result+l_pos(l_lastpart).  
    APPEND x_etabfinal TO i_etabfinal.                   
    ENDIF.                                               
    endloop.
    Regards,
    Subbu

  • How to use header information in line records while inserting into table?

    Hi,
    Requirement: Data in flat file needs to be loaded into Oracle Tables.
    File has header information (basically file information, some account info) and Line information ( Actual data need to be loaded to oracle tables).
    File has position based data, first 2 char for Header is 00 and line is 50
    Now, header has some extra info which needs to be loaded along with details lines ( This has to be done using sql loader control file).
    What should be the control file logic to capture header information in details lines?
    Please suggest.
    I am calling this control file from Unix, so I can change the control file definition dynamically by retrieving the first line of the data file and modify the control file before executing the sql loader command. Is there any option to achieve this using SQL LOADER commands?
    Thanks,
    Venkat.

    Pl post details of OS and database versions.
    Use the WHEN clause to load header and detail lines into separate tables, then write PL/SQL code to perform needed post-processing.
    See the examples in section titled "Distinguishing Different Input Record Formats" here http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_control_file.htm
    HTH
    Srini

  • How to check if data is being inserted into table?

    Oracle 10.2.0.1.0
    I have a long running transaction, an insert based on select running from SQLPLUS. It is running for more than 2 hours as the volume of data is extremely high ( more than 2 million records ).
    How do I check:
    1) The volume of data that is already inserted?.
    This is to make sure the session is not "hung", but is actually inserting records into the table.
    Thanks

    I have a long running transaction, an insert based on select running from SQLPLUS. It is running for more than 2 hours as the volume of data is extremely high ( more than 2 million records ).
    How do I check:
    1) The volume of data that is already inserted?.If there is a commit statement then you can directly query the table for number of rows inserted.
    This is to make sure the session is not "hung", but is actually inserting records into the table.To confirm if it is running or not you can query dba view like dba_extents for that objects you can look into bytes or blocks which should increase if you query is running.
    Hope this helps
    Virendra

  • How to load data from XML DOM into tables using Business Components

    <p>
    Hi,
    </p>
    <p>
    I need to upload XML file (it&#39;s not a problem) an load data (DOM tree) from this file into relationan tables. This filelooks like this:
    </p>
    <p>
    <font face="courier new,courier" size="2">&lt;Departments&gt;
       &lt;Department&gt;
          &lt;DepartmentName&gt;OPERATIONS&lt;/DepartmentName&gt;
          &lt;Localization&gt;BOSTON&lt;/Localization&gt;
          &lt;Employees&gt;
             &lt;Employee&gt;
                &lt;LastName&gt;TURNER&lt;/LastName&gt;
                &lt;Job&gt;SALESMAN&lt;/Job&gt;
                &lt;Manager&gt;7698&lt;/Manager&gt;
                &lt;HireDate&gt;1981-09-08&lt;/HireDate&gt;
                &lt;Salary&gt;1500&lt;/Salary&gt;
                &lt;Commerce&gt;0&lt;/Commerce&gt;
             &lt;/Employee&gt;
          &lt;/Employees&gt;
       &lt;/Department&gt;
    &lt;/Departments&gt;</font>
    </p>
    <p>
    Is there any Business Components support to obtain this ? What about primary and foreign keys values (there is no in XML file). How to place this XML data in appropriate tables ?
    </p>
    <p>
    Kuba 
    </p>

    Pl post details of exact OS and database versions, along with a sample of the XML file and description of the tables. What have you tried so far ?
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_control_file.htm#i1005614
    HTH
    Srini

  • Date pblem while inserting into table

    hi
    i have table with fields
    USERID VARCHAR2(20)
    TIMEEMTRY DATE
    EVENTID VARCHAR2(20)
    TERMINALSN VARCHAR2(20)
    FSHIFTIN DATE
    while i try to insert using the following statment
    INSERT INTO TEmPATT VALUES ('16',to_date('19/04/2007 7:47:26 PM','DD/MM/YYYY HH:MM:SS AM'),'OUT','00111DA02C14',NULL)
    it shows fomat codeappears twice
    but when i eleminate the time part then it inserts ie
    INSERT INTO TMEPATT VALUES ('16',to_date('19/04/2007','DD/MM/YYYY'),'OUT','00111DA02C14',NULL)
    without using to_date it shows invalid month
    please suggest a solution
    Thanks and regards

    The format for minutes is MI not MM.

  • Data not getting inserted into table Hxt_Add_Assign_Info_F

    Hi,
    Can any one tell me as to when data is inserted into the table Hxt_Add_Assign_Info_F.
    Lately this table has not been getting updated.
    Thanks
    Zicky

    Hi Sharath,
    Thanks alot for the info, it seems that data had not been entered for certain employees in that form and hence the problem.
    Even then, I guess it will be a day or 2 before they will be able to see their in/out timings.
    Regards
    Zicky

  • Need to split data from one row into a new row redux

    Hi folks,
    I asked this question about eight months ago (see thread https://discussions.apple.com/message/23961353#23961353) and got an excellent response from forum regular Wayne Contello.  However, I need to perform this operation again and when I attempted it recently, I am now greeted with a yellow warning triangle.  Clicking it shows "This formula can’t reference its own cell, or depend on another formula that references this cell."
    What I'm trying to do is the following:
    I have an excel file that keeps track of members of a social group.  The file places each member "unit" on a single row.  The unit can be a single person or a couple.  Columns are labeled "First1" "Last1" "Hometown1" "B-day1" while the second member of the unit is identified in columns like "First2" "Last2" etc.
    What I'd like to do is duplicate those rows with two people (which I'll do by hand) but have a way of deleting the "xxxx2" data from one row and the "xxxx1" data from the duplicate row.
    Wayne's illustrated solution was to create a blank sheet and enter the following formula in cell A2:
    =OFFSET(Input Data::$A$2, INT((ROW()−2)÷2), COLUMN()−1+IF(MOD(ROW()−2, 2)=0, 0, 4)), which apparently worked fine for me last year but now is sending up an error flag.  When I look at the formula, there is no clue except that which I quoted above.
    Can anyone (or hopefully Wayne) take a second look at this and help me out?  I can't imagine that it's a problem with using the newer version of Numbers, but who knows?  I'm using version 3.2 (1861), which is the "new" Numbers.
    Any help would really be appreciated.
    Thanks!
    -Tod

    Hi Tod,
    The error message "This formula can’t reference its own cell, or depend on another formula that references this cell." may be because your table may be different from the one you were using for Wayne's solution. Numbers has Header Rows, Footer Rows and Header Columns. Such Headers in tables exclude themselves from formulas. Excel does not recognise them as headers. What table are you using now?
    A screen shot of (the top left portion of) your table or a description of what you see under Menu > Table will help.
    Regards,
    Ian.

Maybe you are looking for

  • NF-e 3.10 - Nota SAP ausente - Função p/ conexão não-GRC

    Boa tarde, estamos fazendo a implementação da NF-e 3.10 com mensageria não-SAP. (Sem o uso do GRC). Após aplicação da Nota 1933985 ( NF-e new layout 3.10 ) a função que faz a conexão com mensageria ( J_1B_NFE_XML_OUT, que existe no ECC ) não é mais c

  • How can I manage several ID on my computer, one for my iPhone and another one for the iPad of the family?

    Hi everybody Just have bought an ipad2 and i would like to manage several IDs on my computer (i.e keep my iPhone ID and create another one for the ipad to manage apps for my iPhone (4) and the apps for the iPad). How can I resetup the iPad to create

  • Some contact picture are missing from verizon messaging

    brand new s5 set up messaging for my husband.  all contact pictures show up in verizon messaging but mine.  there is a picture for me under contacts. no idea why this is happening.  husband uses google for contacts and linked to facebook  we use syne

  • SAP BI or SAP ECC SAP SD

    Hi All , Looking at long term career prospects ......would it be viable to get into new kind of Technologu with experice of 2.5 years in SAP ECC As I would be working on implementation of BI 7.0 Then would get certified in the same. or should I get c

  • Anybody has example of setting up bi-direction streams DB replication?

    I am looking for a solid example of setting up bi-direction replication at database level (global), using RMAN duplicate for instantiation and possible using MAINTAIN_GLOBAL package. This will be single source in 2 databases environment. The 2 databa