SAP Approve and Reject Hours - methods

I am a beginner with ABAP programming and I do not have much experience with SAP GUI...
I am developing a Fiori application to approve and reject absences like the standard application "approve leave request". I wanted to access the "approve leave request" methods to analyze the code to implement my methods..
How can I do that? Which methods / BAPIs do you recommend to use?

In the Fiori Apps Library you can search for Fiori apps delivered by SAP.
With search term “approve leave request” you will find the following 2 apps:
Approve Leave Requests
Approve Leave Requests (Version 2)
Under tab “IMPLEMENTATION INFORMATION” you can expand “Configuration”.
There you will find the corresponding oData Services:
/GBHCM/LEAVEAPPROVAL
HCM_LEAVE_REQ_APPROVE_SRV
With transaction SEGW in the backend, you should be able, to navigate to their corresponding ABAP classes.
It might be, that in SEGW you have to skip the “_SRV” and just search for “HCM_LEAVE_REQ_APPROVE”.

Related

How to extend MS Health Bot existing scenarios?

I am evaluating MS Health Bot service and able to create and test custom scenarios. However, I was looking at extending existing in-built scenario like "I have a headache" and customize based on my need. I could see product features say we can extend existing scenarios but I don't see any documentation on how to do it. Anyone aware of how to extend existing scenario?
Thanks
Monu
Additional Information:
Health Bot Service provided three templates in the catalog - Provider Lookup, File a claim, Handoff to a human. There are few others with Coming Soon tag.
Scenarios template catalog
However, I thought, I can use any of the already trained bot scenario to handle medical conditions like "I have a headache" as shown in the diagram below.(which shows up in empty designer page on the right chat widget)
Demo chat for "I have a headache"
So my revised question is "we will be able to extend only scenario that is part of template catalog and our own created scenario". Is that correct understanding?
Thanks in advance
You can customize pre-built scenarios in the Healthcare Bot through the Scenario Designer. In the Healthcare bot service you created, click on Manage Account. If you do not have any scenarios configured, either select a template scenario or create a new blank scenario. Otherwise, click on the name of the scenario to open the designer. From here, you can customize the scenario as needed by either adding more scenario elements from the top pane or modifying elements in the scenario.
At the moment it appears that you are only able to modify the three provided templates. You do not have access to the other scenarios like 'I have a headache' in the healthcare manager. The Healthcare Bot Service is relatively new so that might change in future updates.
I would recommend looking at the topics under Scenario Authoring in the Healthcare Bot Documentation for more details on creating and editing scenarios.
Hope this helps!

Google Dialogflow API v2 Explorer access_token field

Please forgive me, I am fairly new to the Dialogflow Api (v2.)
I am starting off with testing these API calls using the Google API Explorer utility on the right side of the page.
My question is specifically about the "access_token" field:
Is this supposed to be the JSON authentication file that I downloaded from the Google Cloud Console when I created a new service account?
If not, then where do I find the specific resource I am actually supposed to pass into this field?
Side note: I read in the support section: "Google engineers monitor and answer questions about the Google API Explorer on Stack Overflow using the tag google-apis-explorer." Thank you all in advance for your service/help in this topic!
The access_token field is a higher-level field used across the API by some tooling. In some manual client libraries, you might need to use it, but for the API Explorer utility and for most use-cases, you can ignore it. This is true of most (maybe all) fields under the "Show standard parameters" zippy.
The documentation on the left side should explain the relevant fields you need to fill in to successfully complete a request. Keep in mind that even some of these fields are optional; you can leave them blank if they are not relevant to your goal.

How to check how many calls has been made with my LUIS application?

I googled but i didn't find anything where can i see how many calls has been made with my application.
They have 10k free calls, after that, must pay for their services.
When you're in the LUIS portal you can click Download logs from the publishing window.
Otherwise you can get them via the LUIS Programmatic API:
https://dev.projectoxford.ai/docs/services/56d95961e597ed0f04b76e58/operations/5739a8c71984550500affdf9

Use Application Insights to view all REST API requests per user

We are developing a WebApi2 application. Users can use the REST API using their specific API key. I am investigating how to setup Application Insights to be able to see the usage of the REST API endpoints per user.
I have been experimenting with using telemetryclient.TrackPageview(endpoint-ID) and telemetryclient.TrackEvent(endpoint-ID), but I am not sure if this is the right way to go. And how should I pass the user-ID (API-key) in the tracking call? As telemetryclient.Context.User.Id? Or using properties or some other way? I would like to be able to use the user-ID to aggregate/segment the pageviews/events that were registered for that particular user. Any ideas are welcome!
I'd suggest using the built in properties, like context.user.id whenever possible, and then custom properties after that.
Currently in the portal, from the search view you can then find an item for any user, then use the "related items" to view "all telemetry for this user" to see all of the items.
Then can use the App Analytics portal to do queries (click the "analytics" button toolbar in the overview blade for your resource azure portal to go to the AA site for that resource), and that service lets you write much richer queries.
in those queries, it's easiest to group/filter on the "built in" properties, for custom properties you have to write a little bit more complicated queries to parse the values out of custom code.

OpenERP Events Organisation Web Integration

Does anybody knows how exactly can OpenERP's Events Organisation module be integrated with a website for event registration? Basically, a registration form on a website should be able to send information to the module, but I have no experience with this, neither with OpenERP or its web integration, but we would like to implement it. For instance, the module information says that it helps on getting the payments -the registration process should charge participants' credit cards- but it doesn't says anything on what exactly that means and how should it be done.
Any help is greatly appreciated!
Thanks.
If you just want to manage event registrations as part of your web site, I think OpenERP is probably overkill. It's a full ERP system for running your business, so there's a lot to learn.
However, if you want to try it out, I suggest you start by getting a trial subscription and reading through the guided tour. I haven't tried the events module, so I can't tell you how useful it is.
To integrate OpenERP with your web site, you would probably make XML-RPC calls from your web server to the OpenERP server. See the developer book for details.

Resources