05-26-2021 2:24 PM
I am trying to read a .csv file with more than 20K lines.
then I am executing function module KCD_CSV_FILE_TO_INTERN_CONVERT. However as KCDE_INTERN-ROW is 4 characters long, my data was eeroneous.
Instead of DO, I am using FOR loop to transform my data,
as we the first line of the imported file is a header/text line, I am deleting index 1 from my internal table gt_filedata. I want to know as we could as,
how can we write the same using FOR and avoid the DELETE statement ? I tried a few alternates but seems I am missing on something.
Can someone please help me here ?
05-26-2021 4:34 PM
Please post the code as text instead of image, so that one can easily answer by testing your code.
05-26-2021 4:36 PM
05-26-2021 5:22 PM
Hi sandrarossi,
Yes, I’m trying to start the loop from a particular value of sy-tabix, which in current scenario is 2 however unable to incorporate in the for loop. Also looking for how to use GT/E, LT/E in FOR loop.
05-27-2021 5:16 AM
I'm sorry, this question is a bit messy and hard to read for me... But I believe you need the ABAP Documentation for FOR - cond.
You can use FROM and/or TO there just as in LOOP, and you can use logical expressions in WHERE, just put them between ( parenthesis )...
Was that your question?