Input Hours for "My leave Request" in SAP - sap-fiori

does somebody know how the field "Input Hours" is calculated in "My leave Request" from Fiori/Servicepoint?
I can´t find the Class/Method or calculation formular for this field.
Thanks

Related

exclude certain text from keyword analysis in google sheets

I'm trying to do a little bit of analysis on the topics of emails I receive. I have the emails in a Google-sheet in the format below. I'm trying to count how often 'privacy' or 'confidentiality' are mentioned. My challenge is that pretty much every email signature mentions one of those words, so when i use SEARCH every cell returns TRUE.
Most email signatures start with similar phrases, so I tried deleting anything after those phrases with this formula:
=ArrayFormula(TRIM(LEFT(B1:B,MIN(IFERROR(FIND({" This email and any","IMPORTANT NOTICE", " Important notice","The information in this email"," The contents of this message"," Information in this email including"," This electronic mail message"," this message and any attachments"," This message is intended for the addressee only"," This email is CONFIDENTIAL"},B1:B),LEN(L2))))))
Column B is the column with the email body text in.
However that seems to be deleting text that follows words that aren't in my search (deleting everything after 'not' instead of 'IMPORTANT NOTICE' for instance).
Could anyone advise on either:
what's wrong with my above search
an alternate way of searching for 'privacy' and 'confidentiality' without including text from email signatures.
Example table:
|email title|email body|
|-----------|----------|
|Do you want to buy my stuff| Hi there, I'd like to know if you'd like to buy this thing I want to sell you. IMPORTANT: this email is private|
|two-for-the-price-of-one| I've a great offer for you! This email and attachments are private & confidential|
|Last chance to buy stuff!| Can we have a private call about whether you want to buy my stuff yet?|
In the example above I want to count row 3, but not rows 1 & 2, as the 'private' and 'confidential' mentions in 1 & 2 are in the signature.
Thanks!
I think I understand the error that you've described is occuring with your formula. Once the formula finds one of the values you are using to try to identify an email signature, such as " Important notice", and returns the location of that text, let's say position 96, it then uses 96 for all of the cells, like this: LEFT(B1:B,96). So you might not be able to do the compound arrayformula of an arrayformula that you are trying.
Using the formula like this, in B2, and dragging it down, should work though:
=ArrayFormula(TRIM(LEFT(B2,MIN(IFERROR(
FIND({" This email and any","IMPORTANT NOTICE", " Important notice","The information in this email"," The contents of this message"," Information in this email including"," This electronic mail message"," this message and any attachments"," This message is intended for the addressee only"," This email is CONFIDENTIAL"},B2),
LEN(L2))))))
Note: I'm not sure what value is in your L2.
But for the overall approach, it really depends on how well your terms to identify email signatures work, so as to exclude them from your final full text searches.

Is there a way to add multiple short answers to one question in google forms (not a quiz)?

I have a little problem. I need to add multiple short answers by question in google forms but I don't find that alternative. Is there a way to do that? For example:
the form would be like:
Enter your name:
"short answer 0"
Enter the name of your 3 best friends:
"short answer 1"
"short answer 2"
"short answer 3"
the resulting data should be like:
name friends
"short answer 0" "short answer 1"
"short answer 0" "short answer 2"
"short answer 0" "short answer 3"
There is someone that know how to do that? Is there another tool different from google forms that allow to do that? I'll be grateful
This is not possible. Instead, create a new section and ask the question 3 times.
Currently, not possible. But you can get around it by adding multiple short answers but giving only the first one a question. Like here: https://docs.google.com/forms/d/e/1FAIpQLSfsfCITS9BQkH92xEEkqf2Kb2RmOnIq-pEgUoCSBn3m7lSWlw/viewform
Or you can add custom styling to the form
https://www.youtube.com/watch?v=Q9BHCv2x_Pg

Graylog alert condition based on field value

I tried Graylog Community forum but no response from there, so I am asking Stackoverflow for help.
I need to setup a Graylog alert based on field value greater than certain threshold. for example, my message:
“sample alert, age: 100”
I want to get an alert when age > 60. (you can assume age extractor is setup and age is converted to numeric value)
There’s this aggregate condition in alert but it does aggregation across multiple messages. What I need is much simpler than that,
Is this possible? How could I do that?
Notes:
My Graylog version v2.4.6
Thanks in advance
There is no alert condition you can use to check if any message contains a field > n. The workaround for this would be to setup a stream that contains all messages where a field is > n and then use the message count condition on that stream to alert on any incoming message.

Fixing duplicates and invalid data in a string

I have a spreadsheet that takes data from people who submit me their forms. I have it set up so people can use check boxes to fill out the times of the day they are free. However sometimes people will check "busy all day" and check times like "1:00pm,3:00pm". So that it appears as:
busy all day,1:00pm,3:00pm
on the googlesheet. Also sometimes there is duplicates such as:
free all day, 1:00pm,2:00pm,3:00pm etc.
Is there a way where I can have my googlesheet validate the data that the people send me? Like checking if a cell has "busy all day" in it and erasing the rest of cells contents besides:
busy all day
try formula:
=REGEXEXTRACT(A1,"busy all day|free all day|.*")
get the result:
Data Result
busy all day,1:00pm,3:00pm busy all day
free all day, 1:00pm,2:00pm,3:00pm free all day
busy all day busy all day
free all day free all day
1:00pm,2:00pm 1:00pm,2:00pm
The formula finds and returns "busy all day" or "free all day" or any other text.

Find two identical cells in Google Sheets

I'm trying to set up some kind of check in/out system on Google sheets. So, I'd like to know how long people have been signed in.
Is there a way to AUTOMATICALLY subtract two cells IF and only if these are equal?
For example, subtract time if and only if the names are equal. I'd need to know how long John Doe was signed in for, knowing that other people signed in in-between so I can't assume that names follow each other.
[Timestamp. Name. Sign in or out]
[10:00:00 John Doe sign in]
[11:00:00 John Doe sign out]
Any help would be greatly appreciated, even if you know how to do this in Excel? I've been looking around and wasn't able to find a solution.
Edit: note that I'd like this to be automatic. Whenever somebody inputs their names twice, it recognizes it, gets the name and the time frame.
I think this will do what you want. If a name has a 'Sign in' and 'Sign out' it calculates the logged in time. It handles the same name 'Sign in and 'Sign out' multiple times. And it will be blank if a name only has a 'Sign in'. Be sure to format the column the formula is placed in as time 00:00:00. Copy the formula down.
=if(sumproduct((B2:B=B2)*(C2:C="sign out")*(A2:A))=0,"",if(C2="Sign in",arrayformula(sumproduct((B2:B=B2)*(C2:C="sign out")*(A2:A))-sumproduct((B2:B=B2)*(C2:C="sign in")*(A2:A))),""))
=sumproduct((B1:B2="John Doe")*(C1:C2="sign out")*(A1:A2))-sumproduct((B1:B2="John Doe")*(C1:C2="sign in")*(A1:A2))
that will add up all the sign in and out times, and subtract all the sum of the sign in from the sum of the sign in. For John Doe.
You may want to do a countifs to see if the count of sign ins is equal to the count of sign outs before processing the above. The reason being if you so the math with a sign out, you most likely will wind up with negative time.

Resources