Mirata forms can be embedded on any standard or customer SAP object. You do not need to be a SAM expert to build a Mirata form that can be used embedded in SAM.
Add header fields in the Designer to tie the form to the object in SAP that you want SAM users to launch the form from (step 2 below). When a SAM user navigates to an object that’s configured to use Mirata forms (in this case, the Work Order Operation), they’ll see the Mirata “M” in the top right corner. Clicking the Mirata "M" will seamlessly initiate the Mirata form associated with the corresponding Work Order Operation (step 5 below). Subsequently, the SAM user can use the Mirata form just like they would in the Mirata Inbox.
SAM users need a SAP user set up in Mirata in order to use SAM embedded Mirata forms (step 6 below). This means if you have access to both forms embedded in SAM and forms in the Mirata Inbox, you will have two separate users in Mirata. Access to Mirata forms in SAM follows the same permission rules as access to Mirata forms in the Mirata Inbox. The SAM user’s access to a particular work order does not mean they have access to the associated form - form permissions are still configured in the Mirata Admin Tool.
When the SAM user returns to SAM from the Mirata form and syncs SAM with an internet connection, the data that was collected in the form will be synced with the Mirata server. You might want to configure your form to, at this point, assign to an approver who will open the same Mirata form submission in the web Inbox.
In the Designer, you have two tools that you’ll use for every SAM form:
You need a Connection to SAP created in Mirata for forms to work embedded in SAM. This only needs to be set up once and should be done by a System Administrator.
To create a Connection or see if there’s already a SAP Connection set up, go to the ADMIN tab in the Admin Tool and then go to the Connection Info tab on the left. If you’re a System Administrator, go to the Create a Connection section of the How to Integrate with Other Systems article for details on setting up a new Connection in Mirata
NOTE: The fields you need to add as header fields in this step is dependent on which SAP object you want to launch this Mirata form from in SAM. In this example, the form will be launched from a Work Order Operation. If you want to launch this Mirata form from a different SAP object, contact your SAP Admin to understand which header fields to include.
Open the form you want to use in SAM in the Mirata Designer. Go to the Designer Overview article if you’re unfamiliar with the Designer
Add two “Text Input” components to your form. Make sure these fields are not within any sections or groups. These inputs will be for the Work Order ID and the Operation ID. You should name them: “WorkOrderId” and “OperationId” respectively.
At the bottom of the Form Details tab of the left panel, you’ll add two fields in “HEADER INFO” using the “+ Add Field” button. Map one to the “WorkOrderId” field and one to the “OperationId” field.
You can hide these fields on your form by setting visible to false in the Presentation Properties.
Integration Data Mappings are a way to bring data from SAM into your Mirata form. For example, you may want the Mirata form to pull in the Equipment data from the Operation that the SAM user is working on.
You can use Integration Data Mappings as much as you need to in your form/workflow, but you’re only required to configure two mappings (for the WorkOrderId and OperationId fields we created in step 2) so that a form works embedded in SAM (see below).
Integration Data Mappings are set up in the Admin Tool. Your Mirata environment will come with the standard MDK Integration Data Mappings already preloaded. If you don’t see a mapping that you need, contact your SAP Administrator to get it added.
You’ll use Integration Data Mappings in the Calculation Editor in the Designer. Simply use the “integration-data” calculation to bring in data from SAM (through MDK). The “integration-data” has two pieces:
For the header fields you created in step 2, use the “integration-data” calculation for their initial value to map them to the “Work Order ID” and “Operation ID” standard MDK Integration Data Mappings. Your calculations should look like this:
If your SAP Admin instructed you to use other header fields, map those to their corresponding standard SAP mapping.
Like MDK Integration Data Mappings, your Mirata environment will come preloaded with the standard MDK Integration Actions, so you don’t have to worry about setting up these actions unless you’re trying to do a custom action as a SAP Admin.
Add MDK Integration Actions to your workflow in the Designer just like you add any other type of Integration Action. There are no inputs to MDK Integration Actions. Go to the Edit Mode Layout section of the Workflow Designer Overview article to find where to add Integration Actions to your workflow transitions
There are a few MDK Integration Actions that we recommend utilizing for every Mirata form you’re going to embed in SAM:
Talk to your SAP Administrator about how they’ve configured your SAP to link Mirata forms to objects in SAP. Most customers will do this through a custom field on the SAP object which holds the Mirata Form ID.
To get the Mirata Form ID, go to the Form Catalog in the Admin Tool and go to the details page for the form. There, you’ll be able to copy the Mirata Form ID.
SAM users need a SAP user set up in Mirata in order to use SAM embedded Mirata forms. This means if you have access to both forms embedded in SAM and forms in the Mirata Inbox, you will have two separate users in Mirata. For example below, looking at the Provider column, this user has a COGNITO user and a SAP user. The email address used for the Mirata SAP user must be the same as the email address used for their SAP account.
Access to Mirata forms in SAM follows the same permission rules as access to Mirata forms in the Mirata Inbox. The SAM user’s access to a particular work order, or other SAP object, does not mean they have access to the associated form - form permissions are still configured in the Mirata Admin Tool.
When logging into Mirata, on the left-hand side, you’ll see options to log in through any SAP Providers that are set up for your organization. In this example below, there are two SAP Providers configured that I can log in through. If you want to make sure that a SAP user has access to a form you created, then have that user log into the Inbox through their SAP connection and make sure they see that form in the create form dialog. When you log into the Inbox as a SAP user, the forms you see available in the create form dialog align with those that will function for the same SAP user within SAM.
Some common mishaps to double check are: