Skip to Content
0
Former Member
Sep 29, 2007 at 10:27 AM

Uploading a tablimited file from Unix Urgent Plssssssss

24 Views

Hi Experts,

I am working in ECC 6.0.

I want to upload a tablimited file from unix. How do i upload.

this is the code that i had tried

<b>types : BEGIN OF INPUT, " input record

DOC_DATE(08) TYPE C, " document date

POST_DATE LIKE BKPF-BUDAT, " post date

DOC_TYPE LIKE BKPF-BLART, " document type

END OF INPUT. " end of input record

data : wa_input type input,

it_input type table of input,

wa_string(40) type c.

constants:

con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.

parameters : file type rlgrap-filename.

OPEN DATASET file FOR INPUT IN TEXT MODE encoding default.

IF sy-subrc EQ 0.

DO .

READ DATASET file INTO wa_string.

if sy-subrc eq 0.

SPLIT wa_string AT con_tab into wa_input-DOC_DATE

wa_input-POST_DATE

wa_input-DOC_TYPE.

append wa_input to it_input.

endif.

enddo.

endif.

close dataset file.</b>

But my file is not uploding in to the internal table. could any one guide me where i am wrong.