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

String Operation

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 12, 2009 at 07:37 AM

    Frequently asked question. Locked.

    matt

    Edited by: Matt on Aug 12, 2009 9:41 AM

    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.