on 07-08-2015 7:44 AM
Hi SCN Friends,
I'm not often stumped in the SAP world, but a recent conversation left me at a loss for how to resolve what seems like a simple request, using the tools available in the SAP kit bag.
The simple question is, I have n sets of data which are someone's location with a time stamp. How can I tell if any two people were at the same place at the same time?
There are lots of follow on questions and similar scenarios on different data sets, which I'm sure will follow the same approach, but for once, I didn't even know which tools to get out of the kit bag to start with on this problem....
Help me SCN!
Ian
Hmm, it seems like the only SCN question where the answer "Just give it to your ABAPer!" is perfectly appropriate.
This question is simpler when you're talking about comparing the exact timestamps and locations. But for humans "same time" might not be a fraction of a second. If, for example, you're capturing when a person entered location and when they left then it becomes more complex since you need to evaluate a period. "Same place" can also, in fact, be quite fuzzy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I assume your n sets are (or could be) stored in 1 (internal) table let's say with key location, time & person.
If you now put that data in a similar table with key location & time and update a counter, you'll know from that new table that all records with a counter > 1 are "doubles". Those can be looked up again in the original table (to show the persons who were at the same place at the same time).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.