https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/SAP-Build-Work-Zone-advanced-edition-qa.xmlSAP Community - SAP Build Work Zone, advanced edition2024-05-20T11:12:12.900486+00:00python-feedgenSAP Build Work Zone, advanced edition Q&A in SAP Communityhttps://community.sap.com/t5/technology-q-a/ui-integration-card-preview-404-error-for-destinations/qaq-p/13601849UI Integration card preview - 404 error for destinations2024-02-12T04:02:45.639000+01:00stiffy89https://community.sap.com/t5/user/viewprofilepage/user-id/1395292<P>Hi guys,</P><P>I have been recently introduced to the world of UI Integration cards for SAP work zone and so far its been pretty easy to use. I have been trying to implement the Component UI Integration Card and whenever i try to preview the card, the destination (sapes5 devcenter) i'm trying to reach always returns with a 404. The setup is as follows below.</P><P><EM>destination in btp</EM></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stiffy89_0-1707706502008.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/63815iDF7AE201E96E94AD/image-size/medium?v=v2&px=400" role="button" title="stiffy89_0-1707706502008.png" alt="stiffy89_0-1707706502008.png" /></span></P><P><EM>manifest.json</EM></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stiffy89_1-1707706549046.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/63816i38F22CAA66EA2759/image-size/medium?v=v2&px=400" role="button" title="stiffy89_1-1707706549046.png" alt="stiffy89_1-1707706549046.png" /></span></P><P><EM>request from controller.js</EM></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stiffy89_2-1707706599359.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/63817iB5A1741203ED8E3F/image-size/medium?v=v2&px=400" role="button" title="stiffy89_2-1707706599359.png" alt="stiffy89_2-1707706599359.png" /></span></P><P><EM>network tab results</EM></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stiffy89_3-1707706718093.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/63818i39508BEB5021138E/image-size/medium?v=v2&px=400" role="button" title="stiffy89_3-1707706718093.png" alt="stiffy89_3-1707706718093.png" /></span></P><P>Appreciate any tips or hints as to where i might be missing some config or what im doing wrong here. Ive trawled through all the demo's and docs and cant seem to find anything as to why this is happening.</P><P>Cheers,</P><P>Steve</P><P> </P><P> </P>2024-02-12T04:02:45.639000+01:00https://community.sap.com/t5/technology-q-a/fiori-work-zone-themes-are-per-the-business-units/qaq-p/13603754Fiori / Work Zone - Themes are per the Business Units2024-02-13T13:37:08.547000+01:00AbhishekKrhttps://community.sap.com/t5/user/viewprofilepage/user-id/1396591<P>Dear Experts,</P><P>We have requirement to have custom theming & branding as per business units of the user in SAP Fiori Launchpad and SAP Build Work Zone, standard edition. Going through the blogs, I understood that for Fiori Launchpad, either through implicit enhancement or shell programing, it can be achieved.</P><P>Is there any standard way, or through configuration to achieve it?</P><P>Thank you.</P>2024-02-13T13:37:08.547000+01:00https://community.sap.com/t5/technology-q-a/using-odata-in-a-ui-integration-card-component/qaq-p/13617007Using OData in a Ui-Integration Card (Component)2024-02-23T13:43:32.048000+01:00t_krhttps://community.sap.com/t5/user/viewprofilepage/user-id/885975<P>Hello Experts, <BR /><BR />I want to Consume OData from Backend in a Component-Ui Card. <BR />I tried to read the whole O-Data Service, but I alwasy get the Error 404. <BR /><BR />I have attached my manifest.json. <BR />Is someone faceing this issue ? <BR /><BR /></P><P> </P><pre class="lia-code-sample language-javascript"><code>{
"_version": "1.52.0",
"sap.app": {
"id": "my.component.sample.requestData",
"type": "card",
"i18n": "i18n/i18n.properties",
"title": "Sample of a Component Content",
"subTitle": "Sample of a Component Content",
"applicationVersion": {
"version": "1.0.0"
},
"dataSources": {
"processChainDevDS": {
"uri": "{{destinations.tss057}}/sap/opu/odata/sap/ZSF_SFLIGHT_MD_ODATA_SRV",
"type": "OData",
"settings": {
"odataVersion": "2.0"
}
}
},
"shortTitle": "A short title for this Card",
"info": "Additional information about this Card",
"description": "A long description for this Card",
"tags": {
"keywords": [
"Component",
"Card",
"Sample"
]
}
},
"sap.ui": {
"technology": "UI5",
"icons": {
"icon": "sap-icon://technical-object"
},
"deviceTypes": {
"desktop": true,
"phone": true,
"tablet": true
}
},
"sap.ui5": {
"rootView": {
"viewName": "my.component.sample.requestData.View",
"type": "XML",
"async": true,
"id": "app"
},
"dependencies": {
"minUI5Version": "1.116",
"libs": {
"sap.m": {},
"sap.ui.core": {}
}
},
"contentDensities": {
"compact": true,
"cozy": true
},
"models": {
"products": {
"type": "sap.ui.model.json.JSONModel"
},
"oDataModel": {
"dataSource": "processChainDevDS",
"settings": {
"defaultBindingMode": "TwoWay",
"defaultCountMode": "InlineRepeat",
"useBatch": true
}
}
}
},
"sap.card": {
"type": "Component",
"configuration": {
"destinations": {
"tss057": {
"name": "tss057",
"label": "T57",
"defaultUrl": "/sap/opu/odata/sap/ZSF_SFLIGHT_MD_ODATA_SRV"
}
}
},
"header": {
"title": "Top {parameters>/productsCount/value} Products"
},
"content": {
"minHeight": "10rem"
}
}
}</code></pre><P> </P><P><BR /><BR /><BR />Thanks in Advance <BR />Thomas</P>2024-02-23T13:43:32.048000+01:00https://community.sap.com/t5/human-capital-management-q-a/where-to-find-product-related-answers-for-work-zone/qaq-p/13620742Where to find Product Related Answers for Work Zone2024-02-27T13:23:25.333000+01:00Gerhttps://community.sap.com/t5/user/viewprofilepage/user-id/120817<P>Hi<BR />I am getting high level questions from customers for pilot project that I am implementing Work Zone for. They ask me high level questions and I am tasked with acquiring the correct information.</P><P>So I am not sure where to proceed, ticket-wise. I assume the component code would be LOD-SF-SWZ.</P><P>Any ideas of where I would seek assistance or advice?</P><P>Product Management Team?<BR />I tried SAP for ME, Customer Interaction Center but all said it was out of their scope and not their responsibility.</P><P>The question (below) is regarding Work Zone Adv Ed and its release schedule <A href="https://me.sap.com/notes/0003303878" target="_blank" rel="noopener noreferrer">https://me.sap.com/notes/0003303878</A><BR />More high level questions may follow on so trying to also put a procedure in place.</P><P>Question: Is there any risk involved with upgrades and updates to Work Zone which occur bimonthly?<BR />Seems like a simple question but I believe there next question is if they customize UI cards etc in Work Zone to suit there needs then will there be any revert or risk to customization with any new WZ release or maybe major BTP upgrade?</P><P>Appreciate any help with this!</P><P>Ger</P>2024-02-27T13:23:25.333000+01:00https://community.sap.com/t5/technology-q-a/custom-chart-is-not-displaying-data-in-sap-ui-integration-chart/qaq-p/13630045Custom chart is not displaying data in SAP UI Integration chart2024-03-06T15:41:54.344000+01:00vadicherlahttps://community.sap.com/t5/user/viewprofilepage/user-id/591871<P>Hello Experts,</P><P><SPAN>I am new to SAP build work zone advanced edition and UI integration card. I created UI integration card to displays data from the SAP gateway system, so I created destination and consumed that destination in manifest.json and define content as well. But when I preview UI integration card in BAS, it is not showing any data and I don't see any errors in the network tab. Below is the manifest.json code. Kindly help me if I missing anything.</SPAN></P><DIV><DIV><DIV><DIV><SPAN>{</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"_version"</SPAN><SPAN>: </SPAN><SPAN>"1.14.0"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"sap.app"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"id"</SPAN><SPAN>: </SPAN><SPAN>"ns.uicard"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"type"</SPAN><SPAN>: </SPAN><SPAN>"card"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"title"</SPAN><SPAN>: </SPAN><SPAN>"Workflow History UI card"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"subTitle"</SPAN><SPAN>: </SPAN><SPAN>""</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"applicationVersion"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"version"</SPAN><SPAN>: </SPAN><SPAN>"1.0.0"</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"sap.ui"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"technology"</SPAN><SPAN>: </SPAN><SPAN>"UI5"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"deviceTypes"</SPAN><SPAN>: {</SPAN><SPAN>"desktop"</SPAN><SPAN>: </SPAN><SPAN>true</SPAN><SPAN>, </SPAN><SPAN>"phone"</SPAN><SPAN>: </SPAN><SPAN>true</SPAN><SPAN>, </SPAN><SPAN>"tablet"</SPAN><SPAN>: </SPAN><SPAN>true</SPAN><SPAN>},</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"icons"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"icon"</SPAN><SPAN>: </SPAN><SPAN>"sap-icon://list"</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"sap.card"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"type"</SPAN><SPAN>: </SPAN><SPAN>"List"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"configuration"</SPAN><SPAN>:{</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"destinations"</SPAN><SPAN>:{</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"FD1"</SPAN><SPAN>:{</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"name"</SPAN><SPAN>: </SPAN><SPAN>"Workflow_Dest"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"defaultUrl"</SPAN><SPAN>:</SPAN><SPAN>"/sap/opu/odata/sap/Z04_SRV/"</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"data"</SPAN><SPAN>:{</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"request"</SPAN><SPAN>:{</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"url"</SPAN><SPAN>:</SPAN><SPAN>"{{destinations.FD1}}/sap/opu/odata/sap/Z04_SRV/ZUI5_COMMONSet"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"withCredentials"</SPAN><SPAN>: </SPAN><SPAN>"true"</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"path"</SPAN><SPAN>:</SPAN><SPAN>"/d/results"</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"designtime"</SPAN><SPAN>:</SPAN><SPAN>"dt/configuration"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"header"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"title"</SPAN><SPAN>: </SPAN><SPAN>"Workflow History"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"subTitle"</SPAN><SPAN>: </SPAN><SPAN>"All type of Workflow history"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"icon"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"src"</SPAN><SPAN>: </SPAN><SPAN>"sap-icon://desktop-mobile"</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"content"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"item"</SPAN><SPAN>:{</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"title"</SPAN><SPAN>: </SPAN><SPAN>"{EmpName}"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"description"</SPAN><SPAN>: </SPAN><SPAN>"{WiText}"</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"maxItems"</SPAN><SPAN> : </SPAN><SPAN>5</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN>},</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"sap.platform.mobilecards"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"compatible"</SPAN><SPAN>: </SPAN><SPAN>true</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN>}</SPAN></DIV><DIV><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vadicherla_0-1709735535737.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/76581iC7B5857346F3441D/image-size/medium?v=v2&px=400" role="button" title="vadicherla_0-1709735535737.png" alt="vadicherla_0-1709735535737.png" /></span><P>Thanks & Regards,</P><P>Devi</P><P><a href="https://community.sap.com/t5/c-khhcw49343/SAP+Build+Work+Zone%25252C+advanced+edition/pd-p/73555000100800002781" class="lia-product-mention" data-product="898-1">SAP Build Work Zone, advanced edition</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+Business+Application+Studio/pd-p/67837800100800007077" class="lia-product-mention" data-product="13-1">SAP Business Application Studio</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+Business+Technology+Platform/pd-p/73555000100700000172" class="lia-product-mention" data-product="1215-1">SAP Business Technology Platform</a> , <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/33680">@ronaldlee</a> <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/17995">@Divya_Tiwari</a> </P></DIV></DIV></DIV></DIV>2024-03-06T15:41:54.344000+01:00https://community.sap.com/t5/technology-q-a/open-task-button-is-not-working-from-btp-workzone-standard-edition-cf/qaq-p/13631099Open Task Button is not working from BTP workzone standard edition - CF2024-03-07T11:46:18.504000+01:00srinivaashttps://community.sap.com/t5/user/viewprofilepage/user-id/176863<P>Hi All,</P><P>While open the SAP Build Work Zone URL > My Inbox app > Open Task its calling webgui of S4 System. But its should be call the BTP hostname only. Verified all the configuration part like -</P><P>Cloud connector : S4 system, Services, Certificates and SubAccount.</P><P>BTP : Destination > rt and dt, Connector, User and roles</P><P>BWZ : Channel Manager, Content Manager and Site settings</P><P>And tried below two notes, but wont work.</P><P>3423334 - [My Inbox] Open Task Button is not working from BTP workzone.</P><P>2519744 - How to change the domain of the "Open Task" URL to the domain of the Web dispatcher</P><P>Can you please suggest me any solution.</P><P>Thank you,</P><P>Vivaan</P><P><a href="https://community.sap.com/t5/c-khhcw49343/SAP+Build+Work+Zone%25252C+standard+edition/pd-p/73554900100800003081" class="lia-product-mention" data-product="684-1">SAP Build Work Zone, standard edition</a><a href="https://community.sap.com/t5/c-khhcw49343/SAP+BTP%25252C+Cloud+Foundry+runtime+and+environment/pd-p/73555000100800000287" class="lia-product-mention" data-product="443-1">SAP BTP, Cloud Foundry runtime and environment</a><a href="https://community.sap.com/t5/c-khhcw49343/SAP+Build+Work+Zone%25252C+advanced+edition/pd-p/73555000100800002781" class="lia-product-mention" data-product="898-1">SAP Build Work Zone, advanced edition</a></P>2024-03-07T11:46:18.504000+01:00https://community.sap.com/t5/technology-q-a/destinations-are-working-in-bas-but-not-in-build-work-zone-advanced-edition/qaq-p/13631410Destinations are working in BAS but not in Build Work Zone, advanced edition2024-03-07T15:38:02.297000+01:00christian73https://community.sap.com/t5/user/viewprofilepage/user-id/1395518<P>Hey experts,</P><P>I am quite new to the whole SAP world. Currently I am trying to retrieve data from a destination using a SAP UI5 integration card. For this reason, I have created a destination in our BTP Cockpit following <A href="https://developers.sap.com/tutorials/cp-cf-create-destination.html" target="_blank" rel="noopener noreferrer">this</A> tutorial.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test-destination.PNG" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/77225iDF6DCDE6034B5B23/image-size/large?v=v2&px=999" role="button" title="test-destination.PNG" alt="test-destination.PNG" /></span></P><P>After checking that everything was working fine (got 200 ok on 'Check Connection'), I created a UI integration card of type list in Business Application Studio and consumed the destination. </P><P> </P><pre class="lia-code-sample language-json"><code>{
"_version": "1.14.0",
"sap.app": {
"id": "ns.directDeploymentTest",
"type": "card",
"title": "Destination test",
"subTitle": "Test card for testing Destinations",
"applicationVersion": {
"version": "1.0.34"
}
},
"sap.ui": {
"technology": "UI5",
"deviceTypes": {
"desktop": true,
"phone": true,
"tablet": true
},
"icons": {
"icon": "sap-icon://list"
}
},
"sap.card": {
"extension": "/dataExtension",
"type": "List",
"designtime": "dt/configuration",
"configuration": {
"parameters": {
"cases": {
"value": "Adresse"
}
},
"destinations": {
"test": {
"name": "test"
}
}
},
"header": {
"title": "{version}",
"subTitle": "Version",
"icon": {
"src": "sap-icon://desktop-mobile"
},
"data": {
"extension": {
"method": "headerData"
},
"path": "/"
}
},
"content": {
"item": {
"title": "{{parameters.cases}}: {ShipAddress}",
"description": "{ShipCity}, {ShipCountry}",
"info": {
"value": "{= format.dateTime(${OrderDate}, {relative:true}) }"
}
},
"maxItems": 5
},
"data": {
"request": {
"url": "{{destinations.test}}/v4/Northwind/Northwind.svc/Orders",
"method": "GET"
},
"path": "/value"
},
"footer": {
"actionsStrip": [
{
"text": "Refresh",
"buttonType": "Emphasized",
"actions": [
{
"type": "Submit"
}
]
},
{
"type": "ToolbarSpacer"
}
]
}
},
"sap.platform.mobilecards": {
"compatible": false
}
}</code></pre><P> </P><P>Again, everything worked fine and I got a nice preview showing all the data.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="preview.PNG" style="width: 256px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/77229i72777F592EECFF4D/image-size/medium?v=v2&px=400" role="button" title="preview.PNG" alt="preview.PNG" /></span></P><P>When I use the card in the workzone, the problem starts. When I use the card in my workspace, I get the message "No items available". What is even more strange is the fact that the response "200 OK" is displayed in the network tab for the corresponding request. The response body is some HTML code that I can't do anything with.</P><P> </P><pre class="lia-code-sample language-markup"><code><html>
<head>
<link rel="shortcut icon" href="data&colon;image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/>
<script>
document.cookie = "fragmentAfterLogin=" + encodeURIComponent(location.hash) + ";path=/;Secure;SameSite=None;";
document.cookie = "locationAfterLogin=" + encodeURIComponent(location.href.split('#')[0].split(location.host)[1]) + ";path=/;Secure;SameSite=None;";
document.cookie = "signature=bjMqGSOEnOEj9ETqBLXC%2FZgOlB4%3D;path=/;Secure;SameSite=None;";
location = "https://our-workzone-instance/oauth/authorize?response_type=code&client_id=sb-workzone-rt-approuter!t3664&redirect_uri=https%3A%2F%2Four-workzone-instance%2Flogin%2Fcallback%3FauthType%3Dxsuaa&state=a1239c50-397e-4274-b4fc-7f4c35d7d402"
</script>
</head>
</html></code></pre><P> </P><P>Can any of you please give me a clue as to what I am doing wrong? I have tried different destinations but the overall picture does not change.</P><P> </P><P>Thanks a lot for your time and effort.</P><P> </P><P>Christian</P>2024-03-07T15:38:02.297000+01:00https://community.sap.com/t5/technology-q-a/how-to-enable-decimal-notation-settings-in-cloud-portal-service-in-btp/qaq-p/13635073how to enable Decimal Notation Settings in Cloud Portal Service in BTP2024-03-12T08:45:06.326000+01:00appu24https://community.sap.com/t5/user/viewprofilepage/user-id/791431<P>Hello Experts ,</P><P>in On-prem Fiori Launchpad we have option to set the Decimal Notation format .</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="appu24_0-1710229205965.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/79029i222A4539A3C50DA5/image-size/medium?v=v2&px=400" role="button" title="appu24_0-1710229205965.png" alt="appu24_0-1710229205965.png" /></span></P><P>However i could not find any way to enable the same in portal service /Site manager. how can we enable the same there ?</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="appu24_1-1710229342187.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/79034iB96E9F8A0D3627A2/image-size/medium?v=v2&px=400" role="button" title="appu24_1-1710229342187.png" alt="appu24_1-1710229342187.png" /></span></P><P> </P><P> </P>2024-03-12T08:45:06.326000+01:00https://community.sap.com/t5/technology-q-a/multi-tenancy-through-managed-approuter-with-the-sap-launchpad-sap-build/qaq-p/13639954Multi-tenancy through Managed Approuter with the SAP Launchpad / SAP Build Work Zone Service2024-03-15T16:49:59.658000+01:00millerdkhttps://community.sap.com/t5/user/viewprofilepage/user-id/28606<P>Hello,</P><P>I am reviewing the SAP Build Work Zone service. See SAP documentation <A href="https://help.sap.com/docs/build-work-zone-standard-edition/sap-build-work-zone-standard-edition/what-is-sap-build-work-zone-standard-edition" target="_self" rel="noopener noreferrer">here</A>.</P><P>Specifically I am interested in using the service to host multi-tenant based applications. Currently, this is possible through the Cloud Foundry environment using a standalone approuter. Can the same be achieved through the managed approuter available as part of the SAP Build Work Zone service? If yes, what does the configuration look like? For example, apply the same SaaS config (ex: getDependencies), XSUAA config (ex: "tenant-mode":"shared") and xs-app.json config (ex: TENANT_HOST_PATTERN) to the SAP Build Work Zone services. </P><P>I found mentions that this was not supported as part of the SAP Launchpad service (see <A href="https://community.sap.com/t5/technology-q-a/multitenancy-with-launchpad-service/qaq-p/12456649" target="_self">here</A>). SAP Build Work Zone is a rebrand of Launchpad, so it's unclear if this feature is now available.</P><P><a href="https://community.sap.com/t5/c-khhcw49343/SAP+Build+Work+Zone%25252C+standard+edition/pd-p/73554900100800003081" class="lia-product-mention" data-product="684-1">SAP Build Work Zone, standard edition</a> </P><P>Thank you!</P><P>Dominick</P>2024-03-15T16:49:59.658000+01:00https://community.sap.com/t5/technology-q-a/sap-btp-build-work-zone-application-opening-error/qaq-p/13641096SAP BTP Build Work Zone - Application Opening Error2024-03-18T09:50:13.953000+01:00sadifeyhttps://community.sap.com/t5/user/viewprofilepage/user-id/1418980<P><SPAN>Hello, when I deploy my BTP project, I can't view it on the Build Work Zone. It's showing as pending in the Build Work Zone. In the console, I see some errors. What could be the reason for this, and how can I resolve it? Below, I'm attaching a screenshot of the error I'm encountering in the Build Work Zone along, screenshots taken during the deployment process, and git repo.<BR /><BR /></SPAN>Git repo: <A href="https://github.com/sadifeyildirim/ProjectAPD" target="_self" rel="nofollow noopener noreferrer">https://github.com/sadifeyildirim/ProjectAPD</A> <BR /><BR />Yaml file : </P><P> </P><P> </P><P> </P><P> </P><pre class="lia-code-sample language-yaml"><code>_schema-version: "3.1"
ID: Project_APD
description: A simple CAP project.
version: 4.0.7
modules:
- name: Project_APD-srv
type: nodejs
path: gen/srv
requires:
- name: Project_APD-db
- name: Project_APD-uaa
provides:
- name: srv-api
properties:
srv-url: ${default-url}
parameters:
buildpack: nodejs_buildpack
- name: Project_APD-db-deployer
type: hdb
path: gen/db
requires:
- name: Project_APD-db
- name: Project_APD-uaa
parameters:
buildpack: nodejs_buildpack
- name: Project_APD-destinations
type: com.sap.application.content
requires:
- name: Project_APD-uaa
parameters:
service-key:
name: Project_APD-uaa-key
- name: Project_APD-html5-repo-host
parameters:
service-key:
name: Project_APD-html5-repo-host-key
- name: srv-api
- name: Project_APD-destination
parameters:
content-target: true
parameters:
content:
instance:
destinations:
- Authentication: OAuth2UserTokenExchange
Name: Project_APD-app-srv
TokenServiceInstanceName: Project_APD-uaa
TokenServiceKeyName: Project_APD-uaa-key
URL: ~{srv-api/srv-url}
sap.cloud.service: Project_APD.service
- Name: Project_APD-html5-repo-host
ServiceInstanceName: Project_APD-html5-repo-host
ServiceKeyName: Project_APD-html5-repo-host-key
sap.cloud.service: Project_APD.service
- Authentication: OAuth2UserTokenExchange
Name: Project_APD-uaa
ServiceInstanceName: Project_APD-uaa
ServiceKeyName: Project_APD-uaa-key
sap.cloud.service: Project_APD.service
existing_destinations_policy: update
build-parameters:
no-source: true
- name: Project_APD
type: approuter.nodejs
path: app/
requires:
- name: srv-api
group: destinations
properties:
forwardAuthToken: true
name: srv-api
url: ~{srv-url}
- name: Project_APD-uaa
- name: Project_APD-destination
group: destinations
properties:
forwardAuthToken: false
name: ui5
url: https://ui5.sap.com
parameters:
disk-quota: 1024M
keep-existing-routes: true
memory: 1024M
- name: Project_APD-app-content
type: com.sap.application.content
path: .
requires:
- name: Project_APD-html5-repo-host
parameters:
content-target: true
build-parameters:
build-result: resources
requires:
- artifacts:
- nsbtpmodulefi.zip
name: nsbtpmodulefi
target-path: resources/
- artifacts:
- project1.zip
name: project1
target-path: resources/
- artifacts:
- nsproject2.zip
name: nsproject2
target-path: resources/
- name: nsbtpmodulefi
type: html5
path: app/modulefi
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
- name: project1
type: html5
path: app/project1
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
- name: nsproject2
type: html5
path: app/project2
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
resources:
- name: Project_APD-db
type: com.sap.xs.hdi-container
parameters:
service: hana
service-plan: hdi-shared
properties:
hdi-service-name: ${service-name}
- name: Project_APD-uaa
type: org.cloudfoundry.managed-service
parameters:
config:
role-collections:
- description: Manage Risks
name: RiskManager3-${space}
role-template-references:
- $XSAPPNAME.RiskManager
- description: View Risks
name: RiskViewer3-${space}
role-template-references:
- $XSAPPNAME.RiskViewer
tenant-mode: dedicated
xsappname: Project_APD-${space}
path: ./xs-security.json
service: xsuaa
service-plan: application
- name: Project_APD-destination
type: org.cloudfoundry.managed-service
parameters:
config:
HTML5Runtime_enabled: true
init_data:
instance:
destinations:
- Authentication: NoAuthentication
Name: ui5
ProxyType: Internet
Type: HTTP
URL: https://ui5.sap.com
existing_destinations_policy: update
version: 1.0.1
service: destination
service-plan: lite
- name: Project_APD-html5-repo-host
type: org.cloudfoundry.managed-service
parameters:
service: html5-apps-repo
service-plan: app-host
parameters:
deploy_mode: html5-repo
enable-parallel-deployments: true
build-parameters:
before-all:
- builder: custom
commands:
- npm install --production
- npx -p /cds-dk cds build --production
- npx rimraf gen/db/src/gen/data</code></pre><P> </P><P> </P><P> </P><P> </P><P><BR />Deploy screenshots (After</P><P>mbt build -t ./mta_archive</P><P>cf deploy mta_archive/project_name.mtar </P><P>commands): <BR /><BR /></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deploy 3.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/82213i6933EAEEAEA1EB51/image-size/large?v=v2&px=999" role="button" title="deploy 3.png" alt="deploy 3.png" /></span></P><P> Build Work Zone and console screenshots: </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="workzone 1.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/82110iBC7BD82BD561DEA7/image-size/large?v=v2&px=999" role="button" title="workzone 1.png" alt="workzone 1.png" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="workzone 2.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/82068iE6EFD59B849AB062/image-size/large?v=v2&px=999" role="button" title="workzone 2.png" alt="workzone 2.png" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="workzone 3.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/82067iF33C573AEC98AA1C/image-size/large?v=v2&px=999" role="button" title="workzone 3.png" alt="workzone 3.png" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="workzone 4.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/82069i5E63966B4094A46B/image-size/large?v=v2&px=999" role="button" title="workzone 4.png" alt="workzone 4.png" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="workzone 5.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/82070i3DD40E78285F68EC/image-size/large?v=v2&px=999" role="button" title="workzone 5.png" alt="workzone 5.png" /></span></P>2024-03-18T09:50:13.953000+01:00https://community.sap.com/t5/supply-chain-management-q-a/can-we-create-email-approval-workflow-through-sap-build-workzone/qaq-p/13642282Can we create email approval workflow through SAP Build WorkZone?2024-03-19T07:51:04.997000+01:00kunalroyhttps://community.sap.com/t5/user/viewprofilepage/user-id/42239<P>HI Team,</P><P>I have IBP as my planning system. For certain risk-buys, i need to trigger emails for approval from IBP (or Workzone) to C level executives so they can approve it. However, these approvers shouldn't have to get into the system for approving (neither IBP nor workzone. They should be able to approve or reject direct from the email that they receive.</P><P>SAP workflow allows you to do it. However, i wanted to check if any of you have done it through Workzone? Any other suggestions to achieve this would be appreciated as well.</P><P>Thanks for your time. </P><P>Regards, Kunal</P>2024-03-19T07:51:04.997000+01:00https://community.sap.com/t5/technology-q-a/sap-build-apps-app-doesnt-get-user-information/qaq-p/13643384SAP Build Apps: App doesnt get user information2024-03-19T17:03:21.261000+01:00v_blum2000https://community.sap.com/t5/user/viewprofilepage/user-id/773322<P>Hi,</P><P>i have a problem with the system variable "systemVars.currentUser.email" (also the other ones like firstname or lastname) which reads the mail from the currently logged in user.<BR />Its working on the preview app for one time, but after reloading the page, the variable is empty.</P><P>When I deploy the app and use it, it's empty everytime. </P><P>In the developer tools from Chrome I can see, that this user API is triggered: <SPAN>/user-api/currentUser/</SPAN><BR />The query works and it returns my name, mail and some other information, but the systemvar variable is still empty.</P><P>Can somebody help me here?</P><P>Thanks,<BR /><SPAN>Vincent</SPAN></P>2024-03-19T17:03:21.261000+01:00https://community.sap.com/t5/technology-q-a/sap-build-app-after-deployed-into-btp-getting-error-while-open-app-error/qaq-p/13656471SAP Build App After Deployed into BTP getting Error while Open App Error GET --500 Missing zone info2024-04-02T22:13:46.756000+02:00Mbkdv_Techhttps://community.sap.com/t5/user/viewprofilepage/user-id/699239<P>Hi Experts,</P><P>I have SAP Build App trial version and create application and deploy into SAP BTP and successfully deployed into SAP BTP and display as HTML5 Application.</P><P>While Click on that App system is open into New browser but getting error as below</P><P><STRONG>GET request to /buildappsXXXXX.buildappsXXXXX-1.2.1/index.html completed with status 500 Missing zone information</STRONG></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mithun_panchal_0-1712088288304.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/90117iB58F744A5141CCBE/image-size/medium?v=v2&px=400" role="button" title="mithun_panchal_0-1712088288304.png" alt="mithun_panchal_0-1712088288304.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mithun_panchal_1-1712088338568.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/90118iD75E4AF8E568BE4E/image-size/medium?v=v2&px=400" role="button" title="mithun_panchal_1-1712088338568.png" alt="mithun_panchal_1-1712088338568.png" /></span></P><DIV class=""> </DIV><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mithun_panchal_4-1712088521171.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/90119iCDDF00CC79352248/image-size/medium?v=v2&px=400" role="button" title="mithun_panchal_4-1712088521171.png" alt="mithun_panchal_4-1712088521171.png" /></span></P><P>Kindly help me what is missing in SAP BTP, or SAP Build App. I can able to preview the application in SAP Build App but not after the Deployment into SAP BTP.</P><P>Thanks in Advance.<BR />Regards,<BR />Mithun</P>2024-04-02T22:13:46.756000+02:00https://community.sap.com/t5/technology-q-a/cannot-recreate-sap-build-app/qaq-p/13662835Cannot recreate SAP build app2024-04-08T19:41:52.657000+02:00sdramanehttps://community.sap.com/t5/user/viewprofilepage/user-id/874734<P>Hi Guys </P><P>I was a souscription on SAP build app and was an access issue to modifies something , for that a deleted souscription .</P><P>I try to recreate a souscription but not possible , i get this error</P><P> </P><P><SPAN class="">To subscribe this application link an Identity Authentication tenant to the subaccount with the "Establish Trust" option. For more information: </SPAN></P><DIV class="">Error Code: 422</DIV><DIV class=""> </DIV><DIV class=""><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdramane_0-1712597860345.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/92980i09F804E1D5C959C5/image-size/medium?v=v2&px=400" role="button" title="sdramane_0-1712597860345.png" alt="sdramane_0-1712597860345.png" /></span><P> </P></DIV>2024-04-08T19:41:52.657000+02:00https://community.sap.com/t5/technology-q-a/error-403-when-calling-process-automation-api-on-deployed-sap-build-app/qaq-p/13665946Error 403 when calling Process Automation API on deployed SAP Build App2024-04-10T16:21:47.503000+02:00v_blum2000https://community.sap.com/t5/user/viewprofilepage/user-id/773322<P>Hi all,</P><P>currently i'm facing an issue, where I receive an error 403 on trying to start my Process Automation workflow with this API: <A href="https://api.sap.com/api/SPA_Workflow_Runtime/path/post_v1_workflow_instances" target="_blank" rel="noopener noreferrer">https://api.sap.com/api/SPA_Workflow_Runtime/path/post_v1_workflow_instances</A>.<BR />It's working when I start it with Postman. On the preview-version from SAP Build Apps it is also working fine.</P><P>But on the deployed version it isn't working. <BR />I found out, that the bearer token is missing:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v_blum2000_0-1712758605044.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/94745i05B71AB4B7A44A8A/image-size/medium?v=v2&px=400" role="button" title="v_blum2000_0-1712758605044.png" alt="v_blum2000_0-1712758605044.png" /></span></P><P>The common request header is filled. It looks like the data query "query.authConfig.authToken" is empty.</P><P>Does anybody has an idea what's wrong here? In the past it worked like a charm.</P><P>Thanks,<BR />Vincent</P>2024-04-10T16:21:47.503000+02:00https://community.sap.com/t5/technology-q-a/timeout-error-waiting-for-screen-s-s-displaydocumentlineitem1-to-appear-30/qaq-p/13679187Timeout error: Waiting for screen(s) s_displayDocumentLineItem1 to appear (30 s)."2024-04-23T11:05:22.589000+02:00vedika11https://community.sap.com/t5/user/viewprofilepage/user-id/881062<P><SPAN>My BPA flow works fine, but it keeps getting stuck at the same step every time I run it again after a few hours, even though I've defined conditions to ensure it's uniquely Identified.</SPAN></P><P> </P><P><SPAN><a href="https://community.sap.com/t5/c-khhcw49343/SAP+Business+Workflow/pd-p/271076705480744283548543960420215" class="lia-product-mention" data-product="1046-1">SAP Business Workflow</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+Business+Application+Studio/pd-p/67837800100800007077" class="lia-product-mention" data-product="13-1">SAP Business Application Studio</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+Build+Process+Automation/pd-p/73554900100800003832" class="lia-product-mention" data-product="1213-1">SAP Build Process Automation</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+Build+Work+Zone%25252C+standard+edition/pd-p/73554900100800003081" class="lia-product-mention" data-product="684-1">SAP Build Work Zone, standard edition</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+Build+Work+Zone%25252C+advanced+edition/pd-p/73555000100800002781" class="lia-product-mention" data-product="898-1">SAP Build Work Zone, advanced edition</a> </SPAN></P><P> </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vedika11_0-1713862994897.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/100419i84E0C802A0A4CEDC/image-size/large?v=v2&px=999" role="button" title="vedika11_0-1713862994897.png" alt="vedika11_0-1713862994897.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vedika11_1-1713863042517.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/100420iDD5E419594CFA0A1/image-size/large?v=v2&px=999" role="button" title="vedika11_1-1713863042517.png" alt="vedika11_1-1713863042517.png" /></span></P><P> </P><P> </P>2024-04-23T11:05:22.589000+02:00https://community.sap.com/t5/technology-q-a/sap-build-workzone-maximum-characters-in-text-widget/qaq-p/13682649SAP Build Workzone maximum characters in text widget2024-04-25T17:19:25.910000+02:00MarcoKjhttps://community.sap.com/t5/user/viewprofilepage/user-id/130083<DIV class=""><DIV class=""><DIV class=""><P>Hi everyone!</P><P>I'm integrating data from an external database into SAP Build Workzone and I have a question about the Text Widget. Our data includes text fields that vary in length from 500 to 3000 characters. Does anyone know what the maximum character limit is for the text widget in SAP Build Workzone?</P><P>Thanks in advance for your help!</P></DIV></DIV></DIV>2024-04-25T17:19:25.910000+02:00https://community.sap.com/t5/technology-q-a/sap-build-process-deploy-error/qaq-p/13685874SAP BUILD Process Deploy Error2024-04-29T14:09:30.730000+02:00anurag_shahi1https://community.sap.com/t5/user/viewprofilepage/user-id/834080<P>Hi All,</P><P>When I am deploying the process I am getting form error issue. So I tried to deploy the process one by one after adding each form but sometime it is getting deployed and sometime giving the same error:-</P><P><span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2024-04-24 at 12.45.08 PM.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/103235i6633E415E4A91277/image-size/medium?v=v2&px=400" role="button" title="Screenshot 2024-04-24 at 12.45.08 PM.png" alt="Screenshot 2024-04-24 at 12.45.08 PM.png" /></span></P><P> Please someone guide on this.</P>2024-04-29T14:09:30.730000+02:00https://community.sap.com/t5/technology-q-a/redirecting-to-build-apps-when-trying-to-open-sap-bas-application-from-btp/qaq-p/13693826Redirecting to Build Apps when trying to open SAP BAS application from BTP2024-05-07T13:23:15.553000+02:00Boopalanhttps://community.sap.com/t5/user/viewprofilepage/user-id/1423089<P>Hi Experts,</P><P>Good Day!</P><P>I created a BTP Trail account and had the detailed set up of a trail sub-account subscribed to SAP Business Application Studio and SAP Build Apps<EM>(Used Boosters to get the complete set up)</EM>. You can see my subscription details in below screenshot.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Boopalan_0-1715080099890.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/106802i260BF7B49E91D8E6/image-size/medium?v=v2&px=400" role="button" title="Boopalan_0-1715080099890.png" alt="Boopalan_0-1715080099890.png" /></span></P><P>I've done this set up a month back and continuously using the same.</P><P><STRONG>My actual Question </STRONG>is When I'm trying to log into the SAP Business Application Studio it is redirecting me to SAP Build Page.</P><P>When I'm clicking on the "SAP Business Application Studio" from the screen shown in above screenshot, it is first loading the BAS, but in few seconds it is taking me to SAP Build page like in the below screenshots.</P><P>Screenshot - 1 - First Loading the BAS developer space.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Boopalan_1-1715080584212.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/106809i402565DF401B4A21/image-size/medium?v=v2&px=400" role="button" title="Boopalan_1-1715080584212.png" alt="Boopalan_1-1715080584212.png" /></span></P><P>Screenshot - 2 - immediately, in few seconds it is redirecting to the below page(SAP Build)</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Boopalan_2-1715080662171.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/106810iCDA5C22E4F9E9178/image-size/medium?v=v2&px=400" role="button" title="Boopalan_2-1715080662171.png" alt="Boopalan_2-1715080662171.png" /></span></P><P> </P><P><EM><STRONG>Note : I've not done any config changes to my BTP sub-account. I'm facing this issue from yesterday(6-5-2024). Till yesterday, the BAS was working perfectly fine.</STRONG></EM></P><P>When opened the console while opening the BAS, I got the below log<BR /></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Boopalan_0-1715083674777.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/106868i61D57688DE21BCDD/image-size/medium?v=v2&px=400" role="button" title="Boopalan_0-1715083674777.png" alt="Boopalan_0-1715083674777.png" /></span></P><P>Kindly help me out to figure out this issue or guide me through if there's anything that I've missed. Thanks in advance!</P><P>Thanks,</P><P>Boopalan M</P>2024-05-07T13:23:15.553000+02:00https://community.sap.com/t5/technology-q-a/sapui5-embeddable-workzone-knowledge-base-widget-errors/qaq-p/13703260SAPUI5 Embeddable WorkZone Knowledge Base Widget Errors2024-05-16T10:35:22.820000+02:00kishore_ms12https://community.sap.com/t5/user/viewprofilepage/user-id/827669<P>Hello Team,</P><P>We have a requirement to build a knowledge base widget and use it on an SAP UI5 Application. Made the required changes as per the <A href="https://help.sap.com/docs/build-work-zone-advanced-edition/sap-build-work-zone-advanced-edition/sapui5-embeddable-knowledge-base-widget?q=%22knowledge%20base%22" target="_blank" rel="noopener noreferrer">documentation link.</A></P><P>However, we encountered a couple of issues that are hindering the completion of the integration process. Here are the details of the issues:</P><OL><LI><STRONG><STRONG><U>CORS Issue: </U></STRONG></STRONG></LI></OL><P>The application is deployed on the SAP BTP HTML Repository. while generating a single-use token, we encountered a CORS issue despite configuring the deployed HTML application in SAP BTP trusted domains. The error message indicates that it is a CORS error. Please suggest where changes are needed to resolve the CORS issue.</P><P>Below are the code changes regarding single-use token generation.</P><P> </P><P> </P><P> </P><pre class="lia-code-sample language-javascript"><code>Component.js
jQuery.ajax({
url: " https://XXXX.xxx-1.dws.workzone.ondemand.com/v1/single_use_tokens",
type: "POST",
beforeSend: function(xhr) {
xhr.setRequestHeader("Authorization", "Bearer XXXXXXXXXXXXXXXXXX");
},
success: function(data) {
// Parse the XML response
var parser = new DOMParser();
var xmlDoc = parser.parseFromString(data, "text/xml");
// Get the single_use_token element
var singleUseTokenElement = xmlDoc.getElementsByTagName("single_use_token")[0];
// Get the value of the id attribute
var tokenId = singleUseTokenElement.getAttribute("id");
console.log("Token ID 0" + tokenId);
// Set the token ID value to the data object
},
error: function(xhr, status, error) {
// Handle error
console.error("Error occurred while fetching single use token:", error);
},
});<ol><li><strong><u>Failed to Load the Widget: When attempting to load the widget, the error message suggests that there was a script load error while trying to load 'jam/widget/wzKBWidget.js' from the specified URL. Here's the detailed error message:<li-code lang="bash">Failed to load component for container container - ModuleError: failed to load 'jam/widget/wzKBWidget.js' from https://XXXXXXX.X1.dws.workzone.ondemand.com/widget/jamWidget/wzKBWidget.js: script load error ModuleError: failed to load 'jam/widget/wzKBWidget.js' from https://XXXXXX.xxx-1.dws.workzone.ondemand.com/widget/jamWidget/wzKBWidget.js: script load error<p>Below are the code changes regarding DWS Knowledge Base Widget as per the documentatio</p><p>a. <strong><u>Component.js<strong> (As per the Properties DWSInstance Option): Single use token is hard coded which is generated through rest postman.<li-code lang="javascript">// Set up the data model
var oData = {
DWSInstance: {
uri: " https://XXXXXXXXX.xxx-1.dws.workzone.ondemand.com/",
singleUseToken: "Xxxxxxxxxxxxxx",
},
};
var oModel = new sap.ui.model.json.JSONModel(oData);
this.setModel(oModel);</code></pre><P> </P><P> </P><P> </P><P> </P><P><STRONG><U>2. Failed to Load the Widget:</U></STRONG></P><P>When attempting to load the widget, the error message suggests that there was a script load error while trying to load 'jam/widget/wzKBWidget.js' from the specified URL. Here's the detailed error message:</P><P> </P><P> </P><P> </P><P> </P><pre class="lia-code-sample language-bash"><code>Failed to load component for container container - ModuleError: failed to load 'jam/widget/wzKBWidget.js' from https://XXXX.eu10-1.dws.workzone.ondemand.com/widget/jamWidget/wzKBWidget.js: script load error
ModuleError: failed to load 'jam/widget/wzKBWidget.js' from https://XXXXX.eu10-1.dws.workzone.ondemand.com/widget/jamWidget/wzKBWidget.js: script load error</code></pre><P> </P><P> </P><P> </P><P> </P><P>Below are the code changes regarding DWS Knowledge Base Widget as per the documentation. </P><P> a. <STRONG><U>Component.js</U></STRONG><STRONG> (As per the Properties DWSInstance Option): </STRONG>Single use token is hard coded which is generated through rest postman.</P><P> </P><P> </P><P> </P><P> </P><pre class="lia-code-sample language-javascript"><code>// Set up the data model
var oData = {
DWSInstance: {
uri: " https://XXXXXXX.eu10-1.dws.workzone.ondemand.com/",
singleUseToken: "Xxxxxxxxxxxxxx",
},
};
var oModel = new sap.ui.model.json.JSONModel(oData);
this.setModel(oModel);</code></pre><P> </P><P> </P><P> </P><P> </P><P> <STRONG>b.<U> index.html (As per the STEP 2 Documentation):</U></STRONG></P><P> </P><P> </P><P> </P><P> </P><pre class="lia-code-sample language-javascript"><code><script id="sap-ui-bootstrap" src="https://sapui5.hana.ondemand.com/1.115.1/resources/sap-ui-core.js"
data-sap-ui-theme="sap_horizon"
data-sap-ui-resourceroots='{
"sap.m.sample.OverflowToolbarFooter": "./",
"app": "./",
"jam.widget": " https://XXXXXXX.xxxx-1.dws.workzone.ondemand.com/widget/jamWidget"
}'
data-sap-ui-compatVersion="edge"
data-sap-ui-async="true"
data-sap-ui-frameOptions="trusted"
data-sap-ui-oninit="module:sap/ui/core/ComponentSupport">
</script></code></pre><P> </P><P> </P><P> </P><P> </P><P> c. <STRONG><U> WzKBWidget.view.xml<STRONG> (As per the STEP 3 Documentation):</STRONG></U></STRONG></P><P> </P><P> </P><P> </P><P> </P><pre class="lia-code-sample language-javascript"><code><!-- Add the library to project resource roots -->
<jamWidget:wzKBWidget id="wzKBWidget"
DWSInstance="{/DWSInstance}"
widgetWidth="auto"
widgetHeight="600px"
pageSize="10"
defaultColumns="title,group">
<Button id="_IDGenButton1" text="Attach" press="handleAttach" />
</jamWidget:wzKBWidget></code></pre><P> </P><P> </P><P> </P><P> </P><P>Although we made the changes as per the documentation, we still face the errors above, please suggest what we should do further to overcome this.</P><P>Thanks</P><P>Kishore</P><P> </P>2024-05-16T10:35:22.820000+02:00