Skip to Content
0
Former Member
Jan 08, 2008 at 06:42 AM

Interface

11 Views

hi all,

i am uploading tab deli file from app server using

open dataset g_file for input in text mode encoding default.

do.

read dataset g_file into wa_string.

if sy-subrc <> 0.

exit.

endif.

split wa_string at '#' into wa_tribs-doc_date

wa_tribs-doc_type

wa_tribs-doc_no

wa_tribs-curr_code

wa_tribs-curr_rate

wa_tribs-ledger

wa_tribs-dr_cr

wa_tribs-ac_code

wa_tribs-ac_name

wa_tribs-sp_gl

wa_tribs-curr_amt

wa_tribs-curr_amt_lcl

wa_tribs-gross_up

wa_tribs-loc

wa_tribs-division

wa_tribs-reference

wa_tribs-ref_doc_typ

wa_tribs-ref_doc_no

wa_tribs-product

wa_tribs-sub_prod

wa_tribs-remarks

wa_tribs-ref_led

wa_tribs-ref_ac_code

wa_tribs-ref_ac_name

wa_tribs-ref_div_code

wa_tribs-user_name.

append wa_tribs to it_tribs.

enddo.

close dataset g_file.

wa_string is of 316 char lengh.

but the data is not going into the respective fields except 1st field wa_tribs-doc_date.

at split command sy-subrc set to 4

any solution for this one.

regards

Praveen