Apigee Tutorial | A Comprehensive Guide for Beginners


Apigee Tutorial – Table of Content

Introduction to Apigee

Apigee is an API management and predictive analytics software tool developed by Sonoa Corporation as Sonoa systems in 2004. Now, Apigee is maintained by Google corporations to help them build cloud-based interfaces. Apigee helps companies secure, design, and scale their application programming Interfaces.

What is Apigee?

Apigee operates through APIs(Application Programming Interface). The APIs created help define interactions occurring between multiple software applications. The original Apigee model operates on cloud, but an Apigee hybrid model may be used to operate on-premise to limit access as per a corporation’s boundaries. Provides solutions for all types of enterprises and industries like education, retail, healthcare, telecommunications, the government, etc.

What is Apigee Edge?

Apigee Edge is a platform for managing and developing application programming interfaces (APIs). This platform uses the proxy layer and edge to abstract the protocol and also helps for your backend services APIs. Apigee Edge platform offers security, rate limiting, data quotas, and analytics.

The above diagram gives the quick view of Apigee edge, now most of the companies use this Apigee Edge as HTTP for their backend services used in their web services or mobile service development applications. This tool makes it easy for application developers to consume the services and enables them to change the backend service implementations without affecting already existing APIs. And also supports the developers to take advantage of the data analytics, monetization process, portal development, and also other advanced features in Apigee Edge.

 Want to get certified in Apigee. Learn from our experts and do excel in your career with hkr’s Apigee Online Course

Why should you use Apigee?

Apigee enables you to provide secure access to your services with a well-defined API that is consistent across all of your services, regardless of service implementation.  

A consistent API makes it easy for app developers to consume your services. 

Apigee allows easy transfer of data among multiple applications and is widely used for legacy applications.

Robust features like full life-cycle management of APIs, i.e., their development, creation, and deployment, make it the best tool.

Its top-notch security alerts you of intrusions and unauthorized access.

Apigee offers unparalleled compatibility making it easier to work on different devices and across multiple platforms.

Measures and monitors what services are being used by your users.

Calculates services used by a user to generate a bill and simplify payment procedures.

Apigee terminology

The following are the fundamental terminologies used by app developers in their day-to-day development services.

API – An Application Programming Interface is a set of protocols, rules, or definitions. These APIs make it easier to consume the application capabilities or data from another application by providing stability and simplicity to the entry points to application logic or data. APIs enable developers to access and reuse the already existing application developed by other developers. 

API proxy – This is a kind of façade available on Edge for APIs, HTTP services, and application developments. An API is a set of configuration files, policies, and codes provided by Apigee edge. These API proxies are generated and configured using the Apigee Edge management user interface applications, or they can also be configured locally in any text editor or IDE. API proxy is mainly used as a façade backend service or HTTP services that are developed for mobile applications or web service applications.

API base path and resources – An API is made up of a ‘base path’ and a set of ‘API resources.’ Each API proxy finds a default base path point and optionally available multiple API resource paths. You can simply consider an API as a set of multiple URLs, and all of these URLs share a common base path.

API product – It is a collection of URLs with a combined quota or service plan, which is published by the developer at the time of design. API products can be used as an API package for monetization.

API Package – A collection of API products is represented as a bundle and associated with the rate of plans described in the Monetization process.

App – This is an abbreviation of ‘Application’. It refers to mobile applications that consume APIs. These apps are developed by developers using a variety of programming languages and platforms.

Environment – Environment is a runtime context where you can execute the API proxies. Each API must be added to this environment before any proxy is exposed over the system network.

Organization – It is a container holding Apigee objects like details of Apigee Edge account, API proxies used in Apigee, application interface products, application interface Apigee packages, apps development, and developers.

Policy – A policy is a set of executed atomics, the reusable unit of logic data, and proxy processing flow.

API resource path – A resource path is a uniform resource identifier (URI) used to identify the network path.

Versions –  The version of the developer-facing API interface.

Revision – It is a numbered, version-controlled package of policies and configurations used in API proxy. This revision term comes from the various Apigee software upgrades. 

Development tools in Apigee Edge

If you are an API developer, you develop it for the consumption of client apps. These APIs are used to create, configure, and monitor API products, API proxy, and also services that enable the creation of HTTP server requests. There are two types of development tools available in Apigee Edge they are,

1) Use the UI

2) Use the Apigee API

1) Use the UI:

This is browser-based tools, developer can use this tool to create, configure, and manage all kinds of API products, API proxies, and HTTP services. The following table describes how to access this UI;

Use the UI, others, apigee-tutorial-description-0

Using this Apigee UI you can perform the following tasks

You can create the API proxies by editing API code and this helps you to trace the request flows through your API proxies.

You can also create API products that store the bundle of proxies to exposure to the client requests.

This manages developers and developer apps.

Helps you to configure your app test and environment products.

This enables the developer to implement javaScript and Node.js applications.

2) Use the Apigee API:

Developers can use this Apigee edge API’s to manage all the API resources in Edge. This API also provides the access request to low-level capabilities that are not used by the Apigee UI.

The following table describes how to use this Apigee API;

Use the UI, others, apigee-tutorial-description-0, Use the Apigee API, others, apigee-tutorial-description-1

This API also stores the data configuration information and also authentication information (for example; username and password). The following API methods are used to access any kind of request, HTTP GET, POST, PUT and DELETE methods.

There are two types of access available under this Apigee Edge API:

a) Authenticating Access:

Before calling any APIs you should authenticate yourself to the respective API. The following are simple ways:

OAuth2

SAML

Basic Auth

Apigee Training

Master Your Craft

Lifetime LMS & Faculty Access

24/7 online expert support

Real-world & Project-Based Learning

b) Understanding the Apigee API base path:

The following are the path required to access the request;

A base path: this contains your organization name.

An edge point: This tends to the edge resource you’re accessing.

API Development lifecycle

The development of APIs is managed through the lifecycle to ensure maximum functioning from the beginning to the end of the phases mentioned below:

  • Planning: Any API needs to be strategized to address an issue or requirement. Planning what services the API you are building is the first step.
  • Building: After a plan is put in place, the next step is to build and assemble the API for service. 
  • Testing: Once an API is built, multiple tests like penetration testing, load testing, UI testing, functional testing, validation testing, security testing, runtime error detection, performance testing, etc., need to be performed to ensure its successful operation across different factors. 
  • Deployment: Stable and secure APIs are deployed or published after all testing is cleared for other developers to use. 
  • Management: The journey doesn’t just end at the deployment phase. Deployed APIs need to be managed and maintained regularly to prevent compromising of security and integrity of APIs.
  • Monetization: You can choose if you want to offer your APIs for free or monetize them by calculating the need and demand for a particular API.
  • Retirement: There could be many reasons behind a developer team deciding to retire an API. An API can be retired when :   

Technology has advanced, and the API is incompatiblenwith the new systems or software. 

The API needs to be updated frequently, and the company is reluctant to incur unnecessary expenditures. 

The API’s security has been compromised, and the risk is unresolved. 

Key Points of API proxy development

Here are the few major points on characteristics of API Proxies, let me explain the main points,

API’s are the entry points for one application to use the capabilities of another

Here developer implements the APIs to create API proxies with the use of API logics as a sequence of steps that executes in response to the requests from the client’s code. Developers can expose the API proxy by defining the endpoint that contains the URL, resource paths, and HTTP requests, and so on.

You can arrange the sequence of API proxy logics using flows:

While developing any application, data that we used are flows through the application development with the help of Condition logic. In Apigee Edge, the processes are made up of data flows. Flows are nothing but a sequence of stages or steps that are used in the making of an API proxy’s processing path.

You can access the state of data through flow variables created by API proxies

An API proxy can able to access the variable that represents the execution state. Any API user can access these variables from the XML that manages and configures the API proxies and policies. You can even access these variables with the help of any procedural languages like Java, javascript, and python.

You can have API Proxies execute conditionally:

Like other programming languages, the API proxies also have the facility to execute the code conditionally. Conditions are consists of API proxy state and accessible flow variables.

You implement most logic in an API proxy using policies:

Most of the logic that is used in API proxy is considered as Policies. A policy is an Apigee Edge component that encapsulated logic for functional areas such as traffic management, security management.

You can include reusable sets of functionality:

When you created an API proxy that contains logic this logic will be used for multiple places at the time of code execution. Developers can collect other API proxies from multiple places.

You can debug a proxy with the trace tool:

Apigee Edge contains a trace tool mainly used to examine the API proxy execution flow. This tool also supports debugging and testing of proxy execution codes.

You can handle API proxy errors as Faults:

Developers can customize the API client errors just by configuring the fault handler in Apigee Edge. You will get notified by messages when the system finds any fault in API proxy.

The transition from classic Edge UI

Now all the interactions in the Apigee Edge managed by a newly developed Edge user interface (UI). Few major enhancements of this Edge UI are as follows;

API proxy management phase and navigation: this enables users to easily navigate through different API proxy management phases using the new side navigation bar.

Integrated Open API specification editor: You can create and edit open API specifications using the Spec editor which is integrated into the Edge UI design flow.

Simplified API proxy creation using Open API specification: you can easily and quickly create API proxy using any open API specifications that you have already created and imported.

Self-service SAML: this SAML enables the proper authentication for the members of the organizations can be adapted to your identity service.

Hosted targets: run the script language node.Js in any runtime environment hosted by Apigee Edge.

Virtual host management: The user can host multiple domains on a single server to handle and manage the API requests to multiple domain names.

Integrated portal development: Apigee Edge includes tools like simple-to-use and robust portal development tools to build your developer portal and documents.

Improved developer program management: this identity provider used for authentication of the portal that includes information like user registration and sign-in experience.

Asynchronous Custom reports: run these custom reports asynchronously as a background job to analyze and create reports that span a large time interval.

API monitoring: enable the operations team to increase the API availability for mainly application developers and customers.

Security monitoring: now you need to understand how your API proxies are configured for security and also check the runtime conditions that impact the proxy security.

Extensions: integrate the external resources into your API proxies. So that you could integrate google cloud platform services such as Google cloud storage. API uses this Extension at the run time to exchange the requests and interacts with external resources.

Use the UI, others, apigee-tutorial-description-0, Use the Apigee API, others, apigee-tutorial-description-1, , others, apigee-tutorial-description-2, , others, apigee-tutorial-description-3

Subscribe to our YouTube channel to get new updates..!

How to create your Apigee Edge Account

Now it’s time to create your first ever Apigee Edge account in your organization. Apigee Edge offers free account creation for a limited time.

To create a free 60-days trial Apigee edge account:

Steps:

1) Go to the link https://login.apigee.com/sign_up.

2) Open the link-> enters the required information.

3) Click the create account button (or sign up).

4) The user account information will send to your email account-> then go to your mail inbox-> click the account Verification.

After that just click the email link, then the browser tab is opened to the login page that is, https://login.apigee.com/login.

5) Now log in with the email and password that you used to sign up.

Apigee activates your account and just log in to the Apigee Edge UI.

Point to be noted:

a) In a few cases, this may take a few minutes for the activation to complete and you will see the progress dialog.

Once your account is activated, the following message appears:

6) Now click the get started to access the Apigee Edge UI.

Sign in and manage your Apigee edge account

The following methods describe how to manage your Apigee Edge account,

To sign in to your Apigee Edge account follow the below steps;

a) First, navigate to the Edge UI:

Edge UI: Apigee login

Classic Edge UI (this is for private cloud only): http://ms-ip:9000 where IP is the IP address or server management DNS name.

b) Now enter your Apigee Edge login details (Apigee username and password) -> click the Sign in button.

Apigee Training

Weekday / Weekend Batches

Reset your password

Steps:

1) Sign out of your Apigee Edge account.

2) Click the Reset Password -> on the sign-in page-> then it displays the Reset your password page.

3) Enter your Email Address.

4) Click the Send Reset password Link-> that is sent to your email address.

5) Then click the Reset password link -> follow the prompts to reset your password.

6) Now sign in using your new password. 

                       If you want to build your career as a Apigee certified professional, then visit Apigee Community.

Advantages of using Apigee Edge

Apigee is designed to suit individuals and small, medium, and large-sized businesses alike. 

Apigee offers Apigee Edge pricing plans depending on the number of users: Evaluation Plan, Team Plan, Business Plan, and Enterprise Plan. 

Developers are constantly in need of new APIs. Apigee lets producers create API products and make them available for other developers to consume.

Apigee implements consistent government policies to protect APIs and minimize the risk of mal attacks and authenticates access for better monitoring. 

Analysis of APIs determines the traffic surges and helps developers track the activity of their applications to enhance the digital experience for users. 

Apigee monitors APIs to address concerns and prevent service delays immediately. 

The developer portal is an Apigee feature that is much appreciated by many developers. The customizable portal allows quick testing, exploration, and gathering co-related API keys for quick innovation. 

Apigee manages microservices rendered to partners and customers through APIs. 

Conclusion

Apigee is the most optimal app for developers to create, analyze, secure, deploy, and manage APIs. Apigee helps businesses manage scalability and respond to issues without directly affecting the public APIs and before it reaches the backend servers. It helps run and collaborate with multiple applications and platforms.

Apigee is the key towards digital excellence. 

Related Article



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


SAP business workflows:

Business Workflows are used in SAP systems to execute business processes in applications. Workflows are an important component of the SAP system because they aid in the design of business processes, which can range from a simple release to a complex repeated business process such as creating a material master, among other things.

SAP Business Workflows are predefined in the SAP R/3 system, but users can also create their own. The workflow enables users to manage business processes efficiently and in accordance with compliance.

Workflows ensure that the correct information is sent to the correct person at the correct time and in the correct sequence. 

To complete a complex task in the SAP system, such as invoice approval or purchase request, several steps must be taken. These steps can be carried out manually or through formal communication channels such as email, notes, and so on. When tasks are performed manually, there are some common issues that arise, such as 

  • Tracking the task status is difficult.
  • Managing Inefficiency
  • Tracking formal communications is difficult. 
  • Keeping a deadline 

SAP workflow

The image above depicts the SAP Workflow process. It is a business process automation tool that works consistently across all applications. As you can see, it is appropriate for business processes that involve multiple people or groups of people.

Business workflows could be seamlessly implemented with Organization Management and SAP NetWeaver BI for analysis purposes, allowing you to quickly identify the business processes that are best suited to your organization.

 Become a SAP Certified professional by learning this HKR SAP Certification Training !

Why do we need sap workflows in business processes?

Workflow is required in business processes in SAP for a variety of reasons. Wait time is the longest duration in any business process.

Raising a Purchase Order, an Invoice, and a Sales Order all require approval from specific stakeholders and involve multiple steps. As a result, a significant amount of time is added to the cycle.
Auditing and Compliance – Areas at which auditing is needed or specific compliance must be based on court rules, SOX, and so on. They are difficult to manage with manual business processes.
Processes that require regular repeated steps and adhere to specific business rules are referred to as specific processes. For example, when you create a new BP, you must specify contact information, a credit limit, and other details to help you manage the process. SAP Workflow is recommended for managing these specific processes.

Companies can easily address these issues by utilizing SAP Workflows, as well as perform detailed reporting such as implementing time, wait time, and so on.

Benefits of workflow:

The workflow inside a SAP system ensures the right data is sent to the right people at the right time. SAP Workflows can be used with SAP applications such as ERP, CRM, and others. Users can easily map business processes using these workflows, which can also be edited using the workflow builder.

  • Workflow automates business processes that are composed of a series of tasks, activities, and steps.
  • Workflows make it simple to manage task dependencies and send notifications about pending actions to SAP mailboxes.
  • The use of SAP Workflows makes it simple for users to understand what tasks must be completed. Work items are delivered to the user in the form of notifications, and with a single click, it invokes the appropriate T-code and navigates to the appropriate screen in the application.
  • SAP applications include ready-to-use workflows. Users can also edit the predefined business workflows to map them to the processes of the organization.
  • Users can create a particular part of Business workflows by using different workflow wizards. The workflow builder can be used to display and modify existing workflows.
  • Workflows are not restricted to specific SAP applications and can be tailored to meet the needs of the user.
  • One of the primary advantages of using SAP Workflow is that it is consistent across all SAP applications.
  • Workflows are useful for processes involving multiple people or groups of people, a sequence of tasks, and coordination between various objects. 

SAP workflow layers:

The SAP Workflow architecture in the SAP Application system is made up of the following layers:

  • Business Object
  • Business Process
  • Organization Model 

In SAP Business Workflow, a Business Object is a collection of methods or events for an entity in the business process. Customer, Material, and Vendor are some of the most common Business Objects in the SAP system.

Business processes in SAP Workflow are defined in the Workflow Builder. Each work process is referred to as an activity, and it consists of a single step task or workflow template. Business logic is defined in Business Objects using ABAP code.

People or groups of people are responsible for taking actions in a Business Workflow in the organization model. People who are in charge of taking action are referred to as actual agents, and they are defined in the workflow activity in the Business Workflow.

Each object in the SAP system comes with a standard set of events and methods for performing actions on that object. The most common methods and events are as follows:

  • Change, Display, Get Details, and Create are all methods.
  • Created and Modified Events 

Business Objects are known in SAP systems to reduce the complexity of the SAP system by dividing it into smaller units. These properties are shared by all business objects.

  • Object Type ID It is used to identify the business object internally.
  • Object Name It is used to externally identify the business object. The external system can interact with the SAP system by using this property.
  • Super Type It is the parent object from which all of the BO’s components are inherited.
  • Name:It is a descriptive name for the BO.
  • DescriptionIt is a brief description of the type of business object.
  • Application:The application component to which the BO is assigned.
  • Program:The ABAP code of the BO is contained in the Program. 

SAP workflow Architecture:

SAP Workflow is built on a three-tiered architecture. The three layers of SAP Workflow architecture are as follows:

  • Business Object
  • Business Process
  • Organization Model 

SAP workflow Architecture

 Become a SAP FICO Certified professional by learning this HKR SAP FICO Training IN Chennai !

SAP Certification Training

  • Master Your Craft
  • Lifetime LMS & Faculty Access
  • 24/7 online expert support
  • Real-world & Project Based Learning

The lowest level in SAP Workflow architecture seems to be the business object, which is located at the bottom level. In SAP Business Workflow, a Business Object is defined as a collection of methods or events for an entity in a business process. Customer, Material, and Vendor are some of the most common Business Objects in a SAP system. All services are provided in the form of executable methods when Business Objects are used.

A Business Object Repository is an object-oriented approach for modeling Business Objects and Processes. It is a collection of Business Object and Interface types, as well as their associated attributes, methods, and events.

Business processes are at the middle level of the Workflow architecture, defining the steps to be performed as part of the Workflow. The Workflow Builder is used to define business processes.Each work process is referred to as an activity, and it consists of a single step task or the workflow template. Business logic is defined in Business Objects using ABAP code.

The top layer of the SAP Workflow architecture is the organization model. People or groups of people are responsible for taking actions in a Business Workflow in an organizational model. People who are in charge of taking action are referred to as actual agents, and they are defined in the Business Workflows workflow activity.

Using Business Object Builder, you can develop new Business Objects. Events in Business Objects are in charge of both the initial start and the termination of the workflow.Events are also used to trigger the execution of subsequent tasks in the workflow. All tasks defined in the Workflow will be executed in the order specified in the Workflow definition.

Examples of common tasks include

  • Release Document
  • After Invoice 
  • Approval Absence
  • Run the Change Material
  • Call
  • Check the report and Work 

The image below depicts how a task is carried out in SAP Workflow and how it interacts with object types and object methods, organization models, events, and texts.

SAP Workflow

Components of sap workflow:

Business processes in SAP Workflow are defined in the Workflow Builder. Each step is defined as an activity in the Workflow builder. Each activity defines a single-step task or workflow template.

  • Organizational plan
  • Workflow builder
  • Standard task and events triggering 

Each step throughout the workflow definition can be a task that points to a SAP transaction or decision. A decision may include agent specifications and deadline monitoring for a step. The workflow is initiated either manually or automatically by the system at runtime. In order for the system to initiate a workflow, the workflow definition must include a triggering event.

Whenever an event occurs, the appropriate workflow is initiated automatically. Tasks or work items describe the activities involved and can refer to methods that can be executed automatically or methods that must be executed by a user . Tasks are business objects that are coded in ABAP.

Events are activities that initiate a workflow – one or more workflows at the same time. When the workflow is triggered, the definition flowchart determines when and how work is completed. After that, work items are received and executed in MS Outlook, Lotus Notes, mySAP Workflow MiniApp, or the SAP integrated inbox.

Conversely, the workflow system will send e-mail alerts to any mail system, informing the user that they must log in to the SAP system in order to complete the task. Every work item is assigned to one or more users. When the task is completed, the work item is removed from the inboxes of the other users.

Integration to email systems:

Workflow inboxes are typically populated with executable work items. However, casual SAP users, particularly managers, may forget to check their inbox on a regular basis, so it’s a good idea to set up reminder emails, informing people via a batch job that they have work items in their inbox. Alternatively, an email with a hotlink to the Workflow can be sent directly to their Lotus Notes / Outlook account.All emails are sent out of SAP through SAPConnect, whether they are Workflow notifications, Workflow Workitems, or just a standard SAP Office memo. This provides a one-stop shop for connecting SAP and the mail server.

Transporting workflow items between SAPConnect and the mail server (whether Lotus Notes or Microsoft Outlook) has been made easier by SAP-supplied add-ons that are fully optimized for the different protocols required by each server. Lotus Notes, for example, makes use of a “pipe” known as the MTA, or Message Transfer Agent. This was created in collaboration between SAP and Lotus to provide full integration.

It is important to note that the type of transport medium used is determined by the mail server, not the mail client. In other words, if an employee uses Outlook on their computer but the mail server is a Lotus Domino server, the MTA will be used as a mail gateway. Each workflow background user’s user profile must include an email address.It is important to note that no approval or reply notification from an external mail system will be permitted in other words, external email systems will be unable to respond back to SAP for security reasons.

Creating the sap workflow:

The following are the steps in order to create the workflow. They are:

1.Define Organization Plan  (T-code PPOCE)

This transaction is the most straightforward way to define an organizational plan in the SAP system. You must enter the start date of the Organization unit and then click the Green tick mark, as shown in the screenshot below.

Creating the sap workflow

Want to gain knowledge in SAP FICO? Then visit here to learn SAP FICO Training in Marathahalli!

HKR Trainings Logo

Subscribe to our YouTube channel to get new updates..!

2. Create Workflow template: (T-code PFTC_INS) to create a basic template of workflow,

(T-code SWDD) to build the workflow in the workflow builder

Create Workflow template

Select the Workflow template in the Task type field. To create tasks: Select Standard Task from the Task type drop-down menu and click Create.

Navigate to T-Code: SWDD to begin building the workflow in the workflow builder.

Navigate to T-Code

Step types are different options in the Workflow Builder that you can drag and drop and insert into the Workflow.

3. Define 1st task  (T-code PFTC_INS) (Create notification of absence)

To define the first task, navigate to T-Code: PFTC_INS

Select Standard Task in the Task type field.

Enter the following values and Save the task. Once you save the task, you will get code ID in number 93XXX989

  • In the Name field, select Form_created
  • In Abbr, select create_form
  • In Workitem text, select vik_notif_absence-create
  • In Object Type, select FORMABSENC
  • In Method field, select CREATE
  • Checkbox Synchronous object method, Object method with dialog checked 

4. Add activity > first task in the workflow

You must add an activity to your workflow in place of the undefined step in the Workflow.

 Add activity

As seen in the following screenshot, using T-Code: PFTC_INS, a Task TS99500654 has been created separately.

using T-Code

SAP Certification Training

Weekday / Weekend Batches

Step Properties allows you to select various options based on your needs. Select the checkbox – Advance with dialog, as shown in the screenshot above. It demonstrates that the workflow work item is immediately available for processing.

Because we entered WF INITIATOR in Expression under Agents, the person who will initiate the workflow is one of the workitem recipients. There is also a binding option defined that confirms absence notification is not only in this task but also in the workflow – _WI ObjectId &ABSENCEFORM&.

In graphical mode, the Workflow Builder now looks like this:

Workflow Builder

5. 1st Test in SAP Inbox (T-code SBWP)

Now that the workflow has been executed, workitems such as e-mails are created in the SAP Inbox. When it is executed, it invokes the corresponding task or transaction screen. When you run this workflow, the notification of absence form appears.

1st Test in SAP Inbox

To cancel the processing of the first notification, click Cancel. The workflow inbox contains one item for processing – creating an absence notification. Select the workitem and press the Execute button (F8). This will take you back to the “Create notification of absence screen,” where the notification of absence form will be displayed. Fill out the form with your information and save it. The Workitem will be removed from the inbox as a result of this action.

Create notification of absence screen

6. Define 2nd task  (Check notification of absence)

Using the object formabsenc-approve, the created form will be sent to the supervisor for approval. Next, use T-Code: PFTC INS to create a new task.

Define 2nd task

7. Add activity > second task in workflow

Using the task code generated in the previous step, add Task “Check Notification of Absence in the Workflow.”

Define the binding properties as well, as shown in the screenshot below.

Add activity

8. 2nd Test

The workflow will then be executed, and you will be directed to the workitem for creating notification of absence for processing. This is due to the Advancing with immediate dialog option being selected when creating a task.

Navigate to Business Workplace using the approver’s user-id to see the workitem to process and other attributes to include in the Workitem. Choose Execute after selecting the workitem for checking the notification of absence.

Reject or approve the request. Take note of the two buttons: Accept and Reject.

9. Integrate User Decision for Re-submit

If the approver rejects the leave request, you can also add the user decision to the rejected output. This gives the requester the opportunity to make changes and resubmit the request for approval.

10. 3rd Test

When a request is denied, the next step is for the user to make a decision. Because we specified (&WF INITIATOR&) as the step’s agent, the request will be sent back to us for a decision. You have two choices. Requests should be revised or withdrawn.

11. Define 3rd task  (Revise notification of absence)

For this you need to revise the notification.

12. Add activity > third task to the workflow

To add this step, you have to make the following entries −

Use FORMABSENC-UPDATE as an object.

In the binding option, enter _WI_Object_ID <= &ABSENCEFORM&

In the Agents → add &_WF_INITIATOR& in the expression field

FORMABSENC-UPDATE

13. Add 4th Customer Task (Send Notification for approval of leave)

To send a notification, you must add a new step called “Send mail.” You must drag this step to the Undefined Step – following the result of the step “Check notification of absence.”

To add this step, you have to make the following entries −

  • Select the Recipient type − Enter the Organizational object
  • Select Agents → Choose the Expression &_WF_INITIATOR&.
  • Enter the subject line as <“Leave Approved”>
  • Enter the email text as <“Approved”>

When you press the Enter key, you will be prompted to enter the task’s name and abbreviation. 

Conclusion:

In the above blog post we had clearly explained the in depth of sap workflows, architecture, features and benefits and why to choose the sap workflows. Had any doubts related to this concept drop your queries in the comment section to get them clarified. 

Related Articles

1. SAP Installation

2. SAP cyber security

3. SAP Logistic Execution

4. SAP Master Data



Source link