Skip to Content
author's profile photo Former Member
Former Member

Typical Question...

4;20070302000001; 4; 4; 13;12 ;11:39:51;15:48:05;04:08:14;0;5;070619990001

White ball;0-250;1;kleur;blos;1;test label;1234567890

061010.001;0;;20061006;0; 13; 1

64;20070302000002; 4; 4; 89; 3;16:02:31;16:12:25;00:09:54;0;5;070619990002

White ball;0-250;1;kleur;blos;1;test label;1234567890

061010.001;0;;20061006;0; 89; 3

4;20070302000003; 4; 4; 405;8;16:12:25;16:22:20;00:09:55;0;5;070619990003

White ball;0-250;1;kleur;blos;1;test label;1234567890

061010.001;0;;20061006;0; 405; 8

64;20070302000004; 4; 4; 1252;3;16:22:20;16:32:14;00:09:54;0;5;070619990004

White ball;0-250;1;kleur;blos;1;test label;1234567890

061010.001;0;;20061006;0; 1252; 13

4;20070302000005; 4; 4; 12;1;16:32:14;17:04:26;00:32:12;0;5;070619990005

White ball;0-250;1;kleur;blos;1;test label;1234567890

061010.001;0;;20061006;0; 12; 1

64;20070302000006; 4; 4;18;1;17:04:26;17:16:08;00:11:42;0;5;070619990006

White ball;0-250;1;kleur;blos;1;test label;1234567890

061010.001;0;;20061006;0; 418; 1

4;20070302000009; 4; 4; 46; 18:15:33;18:25:28;00:09:55;0;5;070619990009

White ball;0-250;1;kleur;blos;1;test label;1234567890

061010.001;0;;20061006;0; 46; 2

17;20070302000010;17;17; 59775; 32;17:06:14;19:09:56;02:03:42;21;2;070619990010

White ball;;;;;;;

061009.004;0;20061006;0;0; 1; 4

061009.005;0;20061006;0;0; 1; 0

061009.006;0;klaas;20061006;0; 981; 14

061009.007;0;Adani;20061006;0; 0; 8

061010.001;0;20061006;0;0; 58792; 6

How to read data as described above into internal tables...

kindly have a look on last paragraph...

warm regards,

Nirav Parekh

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 10, 2007 at 10:00 AM

    Hi

    U can use SPLIT statament:

    DATA: BEGIN OF ITAB OCCURS 0,
                 FIELD(100), "It needs to set the lenght of the bigger field
              END     OF ITAB.
    
    
    LOOP AT T_FILE.
       REFRESH ITAB.
    
       SPLIT T_FILE AT ';' INTO TABLE ITAB.
       
       WRITE: 'Record nr.', SY-TABIX.
    
       LOOP AT ITAB.
         WRITE: / 'Field nr.:', SY-TABIX, ', Value:', ITAB-FIELD.
       ENDLOOP. 
    
       SKIP.
    ENDLOOP.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 10, 2007 at 10:24 AM

    Yes, use SPLIT, and then loop into that file, and put condition for first line, second line, and others, since based on your data, first and second line are different from the others.

    Then, in that loop, append it to other internal table (you will need 2 internal tables I guess).

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 10, 2007 at 12:00 PM

    use split statement

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.