Skip to Content
0
Former Member
Aug 12, 2009 at 07:34 AM

String Operation

24 Views

Hello Experts,

I am downloading a flat file from application server using read dataset, I can read the the flat file

but i can see the # symbol between each and every field. When i am trying for split statement to split each and every record

i am getting a problem, i cannot split.

DO.

READ DATASET 'SPP_SHIFT' INTO lv_d1.

IF sy-subrc = 0.

SPLIT lv_d1 AT '#' INTO lv_data1 lv_data2 lv_data3 lv_data4 lv_data5 lv_data6.

ELSE.

EXIT.

ENDIF.

enddo.

CLOSE DATASET 'SPP_SHIFT'.

For example i am reading a record 12100710010#1200#1000#test#5## after split the entire record

gets into my first variable lv_data1 instead of splitting.

Thanks,

Vivrk