|
| 1 | +--- |
| 2 | +auto_validation: true |
| 3 | +title: Get to Know the Additional Functionality of Business Configuration |
| 4 | +description: Learn how to use the copy and paste functionality of Excel documents. Get to know how to create knowledge transfer documentation and make use of intent navigation. |
| 5 | +primary_tag: software-product>sap-btp--abap-environment |
| 6 | +tags: [ tutorial>beginner, programming-tool>abap-development, software-product>sap-business-technology-platform ] |
| 7 | +time: 15 |
| 8 | +author_name: Merve Temel |
| 9 | +author_profile: https://github.com/mervey45 |
| 10 | +--- |
| 11 | + |
| 12 | +## Prerequisites |
| 13 | +- You need an SAP BTP, ABAP environment [trial user](abap-environment-trial-onboarding) or a license. |
| 14 | +- Install [ABAP Development Tools](https://tools.hana.ondemand.com/#abap). You can also follow **step 1** of this [tutorial](abap-install-adt) to install ADT. |
| 15 | + |
| 16 | + |
| 17 | +## Details |
| 18 | +### You will learn |
| 19 | +- How to use copy and paste functionality of Excel documents |
| 20 | +- How to create knowledge transfer document |
| 21 | +- How to make use of intent navigation |
| 22 | + |
| 23 | +>**Hint:** Don't forget to replace all occurrences of the placeholder ### with your ID of choice in the exercise steps below. You can use the ADT function Replace All (`CTRL+F`) for the purpose. |
| 24 | +
|
| 25 | +--- |
| 26 | +[ACCORDION-BEGIN [Step 1: ](Use copy and paste functionality)] |
| 27 | + |
| 28 | +You can add multiple holidays with copy & paste from [Microsoft Excel](https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e). |
| 29 | + |
| 30 | + 1. Start the **Maintain Business Configurations** app. |
| 31 | + |
| 32 | +  |
| 33 | + |
| 34 | + 2. Select your business configuration. |
| 35 | + |
| 36 | +  |
| 37 | + |
| 38 | + 3. Click **Edit**. |
| 39 | + |
| 40 | + 4. Select **Export as**. |
| 41 | + |
| 42 | +  |
| 43 | + |
| 44 | + 5. Export the current table content to spreadsheet: |
| 45 | + - File Name: Holiday000s |
| 46 | + - Format: `Microsoft Excel Workbook (*.xlsx)` |
| 47 | + |
| 48 | +  |
| 49 | + |
| 50 | + 6. Open the downloaded file and **Enable Editing**. |
| 51 | + |
| 52 | + 7. Add a new row with following data: |
| 53 | + - Holiday ID: ENDYEAR |
| 54 | + - Description: End of Year |
| 55 | + - Month: 12 |
| 56 | + - Day: 31 |
| 57 | + |
| 58 | + 8. Select the entire new row and copy it |
| 59 | + |
| 60 | + 9. Back in the `Maintain Business Configurations` app, click **Paste**. |
| 61 | + |
| 62 | +  |
| 63 | + |
| 64 | +10. If prompted, click on **Allow**. |
| 65 | + |
| 66 | +11. After pasting, you can see the new row. Select a transport and click on **Save**. |
| 67 | + |
| 68 | +  |
| 69 | + |
| 70 | +[DONE] |
| 71 | +[ACCORDION-END] |
| 72 | + |
| 73 | +[ACCORDION-BEGIN [Step 2: ](Create knowledge transfer document)] |
| 74 | + |
| 75 | +You want to provide a detailed documentation of the business configuration to the user of the Maintain business configuration app. |
| 76 | + |
| 77 | + 1. Open your ABAP package in Eclipse, right-click on your business configuration maintenance object and select **New Knowledge Transfer Document**. |
| 78 | + |
| 79 | +  |
| 80 | + |
| 81 | + 2. Create a new knowledge transfer document: |
| 82 | + - Name: `ZHOLIDAY###` |
| 83 | + |
| 84 | +  |
| 85 | + |
| 86 | + 3. Finish the wizard. |
| 87 | + |
| 88 | + 4. Write the documentation in markdown. |
| 89 | + |
| 90 | +  |
| 91 | + |
| 92 | + 5. Activate your knowledge transfer document. |
| 93 | + |
| 94 | + 6. Reload the maintain business configuration app. A new action will now will be visible on the top right corner. Click **Show Documentation**. |
| 95 | + |
| 96 | +  |
| 97 | + |
| 98 | + 7. Check the documentation in SAP Fiori. |
| 99 | + |
| 100 | +  |
| 101 | + |
| 102 | + |
| 103 | +[DONE] |
| 104 | +[ACCORDION-END] |
| 105 | + |
| 106 | +[ACCORDION-BEGIN [Step 3: ](Make use of intent navigation)] |
| 107 | + |
| 108 | +You want to navigate from your SAP Fiori app to the maintenance view of a business configuration maintenance object. |
| 109 | + |
| 110 | +For this [intent navigation](https://help.sap.com/docs/BTP/65de2977205c403bbc107264b8eccf4b/76384d8e68e646d6ae5ce8977412cbb4.html#intent-navigation) you can use the parameter `TechnicalIdentifier` for the semantic object `BusinessConfiguration` with the action maintain. |
| 111 | + |
| 112 | +You can test this in the browser: |
| 113 | + |
| 114 | +`/ui#BusinessConfiguration-maintain` navigates to the List Report of the MBC app |
| 115 | +`/ui#BusinessConfiguration-maintain?TechnicalIdentifier=ZHOLIDAY###` directly navigates to the maintenance view of the business configuration maintenance object `ZHOLIDAY###` |
| 116 | +In your SAP Fiori app one option is to use [cross application navigation](https://sapui5.hana.ondemand.com/sdk/#/api/sap.ushell.services.CrossApplicationNavigation): |
| 117 | + |
| 118 | + |
| 119 | +```Unified Shell |
| 120 | +sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(function (oService) { |
| 121 | + oService.toExternal({ |
| 122 | + target: { |
| 123 | + semanticObject: "BusinessConfiguration", |
| 124 | + action: "maintain" |
| 125 | + }, |
| 126 | + params: { |
| 127 | + TechnicalIdentifier: "ZHOLIDAY###" |
| 128 | + } |
| 129 | + }); |
| 130 | +}); |
| 131 | +``` |
| 132 | + |
| 133 | +[DONE] |
| 134 | +[ACCORDION-END] |
| 135 | + |
| 136 | +[ACCORDION-BEGIN [Step 2: ](Test yourself)] |
| 137 | + |
| 138 | +[VALIDATE_1] |
| 139 | +[ACCORDION-END] |
| 140 | +--- |
0 commit comments