Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Falv Mass Replace bug: dump entering non-numeric chars to a numeric field #38

Closed
SantiMorenoSAP opened this issue Feb 20, 2017 · 8 comments
Assignees
Labels

Comments

@SantiMorenoSAP
Copy link

First of all thanks again for this greatly class.
I´ve found a bug in the Mass replace functionality.
If we have a numeric column, and we try to replace it with a non numeric character a dump is thrown.
The dump is originated in function Z_FALV_MASS_REPLACE, in the assigment of the Mass Replace field screen to the ALV tab:
= -low.

I think this line can be commented as there is a few lines later a call to an ALV method to do the assigment again.
io_grid->set_delta_cells

What do you think?

@fidley
Copy link
Owner

fidley commented Feb 20, 2017

Hi Santi,
thanks a lot for your input in version 7.31 !

Well you might be right. I'll do some tests and if they are succesfull then I'll update it. Or you already did the tests?
Cheers
Łukasz

@SantiMorenoSAP
Copy link
Author

SantiMorenoSAP commented Feb 20, 2017 via email

@fidley
Copy link
Owner

fidley commented Feb 20, 2017

Ok Then I'll do some additional tests on my own and I'll come back to you. At the end we can check the type of field symbol if is the same to the type of -low, but I'd like to avoid it as this could be time consuming if done wrong. Definitelly a buffer table for the RTTS type object would be needed for each column.
Then when types aren't the same I could omit passing -low value to but still pass it o set_delta_cells.

Let's see.

fidley added a commit that referenced this issue Feb 27, 2017
@fidley fidley removed the 7.40 SP5 label Feb 27, 2017
@fidley
Copy link
Owner

fidley commented Feb 27, 2017

Hello Santi,
I've check the code and also I've test a lot and I couldn't repeat the dump. But I remove direct assignment of data to result table as this is risky, as we could have some rules applied in event on_data_change and then this would omit this rules.
I've checked with demo program 08 and everything works fine. If I have NUMC field then on selection screen you cannot enter anything than numbers, the same for decimals and integer. Maybe this occurs only on older systems?
Cheers
Łukasz

@SantiMorenoSAP
Copy link
Author

SantiMorenoSAP commented Feb 28, 2017 via email

@fidley
Copy link
Owner

fidley commented Mar 3, 2017

Ok, I'll see if I can test it on some lower system. I guess my 7.31 on windows should still work. I'll keep you informed.

@fidley
Copy link
Owner

fidley commented Jul 27, 2017

Santi,
I've finally did a tests on 7.30 SP12 and using ZDEMO_FALV13 everything was working fine for NUMC fields. I was updating SPFLI-CONNID. Sorry but I cannot repeat it anyhow.

@fidley
Copy link
Owner

fidley commented Oct 29, 2018

Falv for 7.31 is in separate repository now.

@fidley fidley closed this as completed Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants