Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

find function

Former Member
0 Likes
300

Hi,

Can anyone pls help me to achieve the solution for this program?

report test.

data: begin of ITAB occurs 0,

SET type STRING,

end of ITAB.

call function 'GUI_UPLOAD'

exporting

FILENAME = 'C:\Documents and Settings\thiyagarajan\Desktop\model2.txt'

FILETYPE = 'ASC'

tables

DATA_TAB = ITAB.

data: X type string value 'abap',

OFF type I,

MOFF type I,

MLEN type I.

OFF = 0.

while SY-SUBRC = 0.

find X in section offset OFF of

itab-set

match offset MOFF

match length MLEN.

if SY-SUBRC = 0.

write / MOFF.

OFF = MOFF + MLEN.

endif.

endwhile.

1 REPLY 1
Read only

Former Member
0 Likes
280

Thanks.

I got it.