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

how to comapre text lines?

Former Member
0 Likes
774

I have an input window which gets the texts from a file initially.

After reviewing the details, user can change some parts of the text.

Now the task is to identify the changes while downloading the same.

How to achive the part of identifying the changes?

(I did a read for the whole line but it does not tell me which word has been changed.)

Thanks,

Ven

6 REPLIES 6
Read only

former_member156446
Active Contributor
0 Likes
749

did you try using the FM : SF_STRING_CHECK

Read only

naimesh_patel
Active Contributor
0 Likes
749

If your table has 72 characters, than you can use the FM MAKE_TEXT_DELTA

Regards,

Naimesh Patel

Read only

0 Likes
749

How do you use the above function modules for text comparison?

MAKE_TEXT_DELTA - returns the latest entered value

while sf_string_check - what should be the inputs?

Read only

0 Likes
749

I checked the code.. of the FM yesterday... it returns the string with is different... I guess that is not what you are looking for..

Input:

How r u?

how r u here?

result :
how r u here?

Read only

0 Likes
749

Youa re right J@y.

Here is what I am trying to do:

In the ALV clikc on a button and int he resultant window, enter some text and save it.

Click on the sam button, open the window with the previously saved text.

Now change some sentences and SAVE - it should highlight the changes.

Read only

Former Member
0 Likes
749

this does not seem to be possible wrt performance