https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/SAP-Business-Application-Studio-qa.xml SAP Community - SAP Business Application Studio 2024-05-20T17:00:50.989814+00:00 python-feedgen SAP Business Application Studio Q&A in SAP Community https://community.sap.com/t5/technology-q-a/authentication-of-a-web-service-that-points-to-a-hana-database-container/qaq-p/13693422 Authentication of a web service that points to a hana database container 2024-05-07T07:12:08.612000+02:00 Santiago789 https://community.sap.com/t5/user/viewprofilepage/user-id/1448657 <P>Hello experts, my client requires a webservice in which he makes queries to a database that I have in the same space, this is the mta<BR /><BR /></P><DIV><DIV><SPAN># XSUAA</SPAN></DIV><DIV><SPAN>&nbsp; - </SPAN><SPAN>name</SPAN><SPAN>: </SPAN><SPAN>bim-tarifficationservice-nodejs-auth</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; </SPAN><SPAN>type</SPAN><SPAN>: </SPAN><SPAN>org.cloudfoundry.managed-service</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; </SPAN><SPAN>parameters</SPAN><SPAN>:</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; </SPAN><SPAN>service</SPAN><SPAN>: </SPAN><SPAN>xsuaa</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; </SPAN><SPAN>service-plan</SPAN><SPAN>: </SPAN><SPAN>application</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; </SPAN><SPAN>path</SPAN><SPAN>: </SPAN><SPAN>./xs-security.json</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; </SPAN><SPAN>config</SPAN><SPAN>:</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>xsappname</SPAN><SPAN>: </SPAN><SPAN>bim-tarifficationservice-nodejs-${org}-${space}</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>tenant-mode</SPAN><SPAN>: </SPAN><SPAN>dedicated</SPAN></DIV></DIV><P>- name: cmm-ddl-hana-hdi-db<BR />type: org.cloudfoundry.existing-service<BR />parameters:<BR />service: hana<BR />service-plan: hdi-shared<BR />service-name: cmm-ddl-hana-hdi-db<BR />config:<BR />schema: CELLNEX<BR />properties:<BR />cellnex-container-name: ${service-name}<BR /><BR /><BR /></P><P>The web service has a normal xsuaa with which I can make local requests, but when I deploy to productive and put xsuaa authentication to the webservice I can only send one token to the web service and I don't know how to send the second one for database authentication What could be the most appropriate solution?</P><P>Best regards,<BR />Santiago</P> 2024-05-07T07:12:08.612000+02:00 https://community.sap.com/t5/technology-q-a/extend-all-components-of-a-sap-cap-application-from-space1-to-space2-within/qaq-p/13693710 Extend all components of a SAP CAP application from SPACE1 to SPACE2 within the same subaccount 2024-05-07T11:39:38.130000+02:00 somnathsap https://community.sap.com/t5/user/viewprofilepage/user-id/857377 <P><SPAN>I have developed an SAP CAP application that includes three main components: the database (DB), service, and application (App). This application is currently operational in SPACE1 of a subaccount. Due to evolving project requirements, I need to extend all three components—DB, service, and App—to operate in SPACE2 of the same subaccount. Could you provide guidance or outline the steps necessary to replicate these components in the new space while ensuring that the application remains functional and secure in both environments?<BR /><BR /></SPAN>Thanks<BR />Somnath</P> 2024-05-07T11:39:38.130000+02:00 https://community.sap.com/t5/technology-q-a/redirecting-to-build-apps-when-trying-to-open-sap-bas-application-from-btp/qaq-p/13693826 Redirecting to Build Apps when trying to open SAP BAS application from BTP 2024-05-07T13:23:15.553000+02:00 Boopalan https://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&amp;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&nbsp;</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&amp;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&amp;px=400" role="button" title="Boopalan_2-1715080662171.png" alt="Boopalan_2-1715080662171.png" /></span></P><P>&nbsp;</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&amp;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:00 https://community.sap.com/t5/technology-q-a/service-user-authentication-error-in-bas/qaq-p/13694826 Service user Authentication error in BAS 2024-05-08T09:49:56.947000+02:00 SanjaySadhuka https://community.sap.com/t5/user/viewprofilepage/user-id/131102 <P><SPAN>We have created a RAP list report in ADT and we need to deploy the same on the Public Cloud system, however on BAS we are getting the error as authorization incorrect.</SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SanjaySadhuka_0-1715154534589.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/107327i03EECCCCEBCCCA87/image-size/medium?v=v2&amp;px=400" role="button" title="SanjaySadhuka_0-1715154534589.png" alt="SanjaySadhuka_0-1715154534589.png" /></span></P><P>&nbsp;</P> 2024-05-08T09:49:56.947000+02:00 https://community.sap.com/t5/technology-q-a/business-application-studio-bas-is-not-opening-instead-it-is-redirecting/qaq-p/13694920 Business Application Studio (BAS) Is Not Opening Instead It Is Redirecting SAP Build Code 2024-05-08T11:03:08.100000+02:00 AadityaSAPUser https://community.sap.com/t5/user/viewprofilepage/user-id/1004973 <P><STRONG>Business Application Studio (BAS) is Not Opening, Instead It Is Opening SAP Build Code When It Is Clicked From BTP Cocopit. (Occuring Since 7 May 2024)</STRONG></P><P>Hi,<BR /><BR />I Am Facing A Problem To Open Business Application Studio (BAS) From The Cockpit. Whenever I Try To Click On The Link from Cockpit, It Always Redirect To SAP Build Code. Different Web Browsers (Chrome &amp; Opera)Were Also Used With Incognito Mode But No Luck.</P><P>In The BAS I Am Using trial Account And There Are Already Deployed Project Exist.<BR /><BR />#BAS<SPAN>&nbsp;#</SPAN><A class="" href="https://community.sap.com/t5/c-khhcw49343/SAP+Business+Application+Studio/pd-p/67837800100800007077" target="_blank">SAP Business Application Studio</A><SPAN>&nbsp;</SPAN>&nbsp;<SPAN>&nbsp;#</SPAN><A class="" href="https://community.sap.com/t5/c-khhcw49343/SAP+Build+Code/pd-p/73555000100800004372" target="_blank">SAP Build Code</A></P><P>&nbsp;</P> 2024-05-08T11:03:08.100000+02:00 https://community.sap.com/t5/technology-q-a/fiori-tools-visual-studio-code-completion-no-suggestions/qaq-p/13695254 Fiori Tools Visual Studio Code Completion No Suggestions 2024-05-08T15:20:47.894000+02:00 StephanG https://community.sap.com/t5/user/viewprofilepage/user-id/1411427 <P>Hi,</P><P>when trying to develop a Fiori Elements App in Fiori Tools for Visual Studio there are almost never any suggestions for values. What I really want to find out for example which options there are for the chart settings like here when developing an Analytical List Page:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StephanG_0-1715173466491.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/107504i8E0935BD1717F8D1/image-size/medium?v=v2&amp;px=400" role="button" title="StephanG_0-1715173466491.png" alt="StephanG_0-1715173466491.png" /></span></P><P>There are no suggestions on what values I can put in here, I guess because they are strings(?).<BR />When i go to the API reference for example for&nbsp;<SPAN>sap.suite.ui.generic.template.</SPAN><SPAN>AnalyticalListPage I would expect maybe a list of settings possible for this, but there isn't. Is there a way to find out what can be done within the settings of those completely SAP standard elements? So far I always just found the options through scattered documentation by SAP or by blog posts.&nbsp;</SPAN></P><DIV><DIV><SPAN>I installed the extensions the sap recommends for visual studio.&nbsp;</SPAN></DIV><DIV>&nbsp;</DIV><DIV><SPAN><SPAN>To be honest it is a bit frustrating to have to test where for example if it is called "</SPAN></SPAN><DIV><DIV><SPAN><SPAN>presentationAnnotationPath" or just "annotationPath" or anything else</SPAN></SPAN><SPAN>, with no way for me to find out. Like in the backend CDS where you can see what are the possibilities, and test around.</SPAN></DIV></DIV></DIV><DIV>&nbsp;</DIV><DIV><SPAN>Sorry if I came across a little harsh.&nbsp;</SPAN></DIV><DIV>&nbsp;</DIV><DIV><SPAN>Kind Regards and thank you very much,&nbsp;</SPAN></DIV><DIV><SPAN>Stephan</SPAN></DIV></DIV> 2024-05-08T15:20:47.894000+02:00 https://community.sap.com/t5/technology-q-a/how-to-consume-the-odata-services-in-bas-and-run-locally/qaq-p/13695337 How to consume the oData Services in BAS and run locally 2024-05-08T16:06:37.170000+02:00 yogeshwarans https://community.sap.com/t5/user/viewprofilepage/user-id/852353 <P>Hello All,</P><P>&nbsp;we are in process of migration from neo to cloud foundry trying to create a new SAP fiori app and trying to add the OData services.after adding tried to run locally in BAS but the oData service metadata is failing to load.</P><P>Steps followed:</P><P>Created a new sap Fiori app in BAS</P><UL><LI>Trying to consume on-premise OData service or any other APIs</LI><LI>Added the service in BTP destinations</LI><LI>Added the same in Xs-app.json</LI><LI>Added the service in data sources in manifest.json</LI><LI>Added the same in models in manifest.json</LI><LI>And tried to run the app locally from BAS after running locally in the developer tools network I’m able to see metadata is failing for the service which i added.<P>Could anyone please help me...</P><P>Thanks,</P><P>Yogesh.</P></LI></UL> 2024-05-08T16:06:37.170000+02:00 https://community.sap.com/t5/technology-q-a/folders-are-not-cloned-into-business-application-studio/qaq-p/13696661 Folders are not cloned into Business Application Studio 2024-05-09T20:07:20.576000+02:00 rohith23 https://community.sap.com/t5/user/viewprofilepage/user-id/1451204 <P>I tried to clone a project from GitHub to Business Application Studio, Project is showing up in the workspace but I didn't see any folders. I tried to see if there is a feature branch for that project, but it is not showing up, when I clicked on main on the left side bottom sesction.<BR /><BR />Any leads on how can I resolve this?</P> 2024-05-09T20:07:20.576000+02:00 https://community.sap.com/t5/sap-learning-q-a/no-available-aspects-in-bas-data-modeler/qaq-p/13697617 No available aspects in BAS Data Modeler 2024-05-10T14:01:46.820000+02:00 K4I https://community.sap.com/t5/user/viewprofilepage/user-id/160367 <P>Hi All,</P><P>I am "stuck" on step 6 on this chapter of the learning journey&nbsp;&nbsp;<A href="https://learning.sap.com/learning-journeys/develop-full-stack-applications-using-productivity-tools-in-sap-business-application-studio/creating-a-data-model_ad584c56-8a32-47a5-9a21-3263866b669d" target="_blank" rel="noopener noreferrer">https://learning.sap.com/learning-journeys/develop-full-stack-applications-using-productivity-tools-in-sap-business-application-studio/creating-a-data-model_ad584c56-8a32-47a5-9a21-3263866b669d</A></P><P>I am in an anterprise BTP environment. I double-checked to do all the steps correctly but I dont get any aspects. Can someone replicate this behaviour or knows the issue? Thanks in advance!</P><P>&nbsp;</P> 2024-05-10T14:01:46.820000+02:00 https://community.sap.com/t5/technology-q-a/connect-to-data-source-amp-services-in-sap-fiori-application-bas/qaq-p/13698562 Connect to Data Source & Services in SAP FIORI APPLICATION (BAS) 2024-05-12T14:57:16.524000+02:00 rahuljain257 https://community.sap.com/t5/user/viewprofilepage/user-id/431 <P>Dear Everyone,</P><P>I'm encountering an issue while integrating the ODATA Service from the S4 HANA Public Edition API Endpoint into my SAP Fiori Application. Despite entering the correct credentials, I'm facing a password error upon connection.&nbsp;Here's what happened during my attempts:</P><P>Screenshot of the Destination which I created in my BTP Account -&nbsp;</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rahuljain257_0-1715521986623.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/109155iA097AC6F0080C2D0/image-size/medium?v=v2&amp;px=400" role="button" title="rahuljain257_0-1715521986623.png" alt="rahuljain257_0-1715521986623.png" /></span></P><P>1st&nbsp;Atttempt - I used the URL below and received a 400 status code error, indicating a bad request:</P><P><STRONG>URL</STRONG> -&nbsp;<A href="https://ZZZ-api.s4hana.cloud.sap/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner" target="_blank" rel="noopener nofollow noreferrer">https://ZZZ-api.s4hana.cloud.sap/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner</A></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rahuljain257_0-1715518129696.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/109149i872AFB28C8FA3561/image-size/medium?v=v2&amp;px=400" role="button" title="rahuljain257_0-1715518129696.png" alt="rahuljain257_0-1715518129696.png" /></span></P><P>2nd&nbsp;Attempt: With this URL, the error message stated that the authentication was incorrect:</P><P>URL - <SPAN><A href="https://ZZZ-api.s4hana.cloud.sap/sap/opu/odata/" target="_blank" rel="noopener nofollow noreferrer">https://ZZZ-api.s4hana.cloud.sap/sap/opu/odata/</A></SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rahuljain257_0-1715522155030.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/109156i38543E64B6256F6E/image-size/medium?v=v2&amp;px=400" role="button" title="rahuljain257_0-1715522155030.png" alt="rahuljain257_0-1715522155030.png" /></span></P><P>Any insights or guidance on resolving these errors would be greatly appreciated.</P> 2024-05-12T14:57:16.524000+02:00 https://community.sap.com/t5/technology-q-a/destination-service-failed-after-deployment-cloud-foundry/qaq-p/13698612 Destination Service failed after deployment - Cloud Foundry 2024-05-12T19:05:43.254000+02:00 andreeav https://community.sap.com/t5/user/viewprofilepage/user-id/172085 <P>Hello,&nbsp;</P><P>After re-deploying MTA application on BTP I encountered the following error :</P><P><STRONG>"Updating service "*-destination-service" failed: Service broker error: Service broker destination-service-broker failed with: Failed to update the destination service instance with the user provided configuration."</STRONG></P><P>What could be the cause of it?</P> 2024-05-12T19:05:43.254000+02:00 https://community.sap.com/t5/technology-q-a/how-to-connect-database-between-sap-business-application-studio-and-sap/qaq-p/13700319 How to connect database between SAP Business Application Studio and SAP HANA Cloud 2024-05-14T09:27:09.469000+02:00 mark135780309 https://community.sap.com/t5/user/viewprofilepage/user-id/38081 <P>Dear Experts,</P><P>I would like to know how to show all schemas on my SAP HANA Database Explorer in SaP Business Application Studio.</P><P>When I use SAP HANA Cloud in the Cloud Foundry spaces, it shows all schemas that I created before, but when I attempt to use SAP Business App Studio, it won't show all schemas except one whose name is the same as the Database user's.</P><P>&nbsp;</P><P>For example, my database admin account is DBADMIN; the SAP business app studio only shows DBADMIN.</P><P>My HANA Cloud plan used Hana-free and didn't deploy the Hana data lake.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark135780309_2-1715671534911.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/109961i31CBE584A311DC18/image-size/medium?v=v2&amp;px=400" role="button" title="mark135780309_2-1715671534911.png" alt="mark135780309_2-1715671534911.png" /></span></P><P>&nbsp;</P><P>Here's the capture where in my Cloud Foundry space.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark135780309_1-1715671473223.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/109960i66033DF593008250/image-size/medium?v=v2&amp;px=400" role="button" title="mark135780309_1-1715671473223.png" alt="mark135780309_1-1715671473223.png" /></span></P><P>Here's the capture where in my SAP Business App Studio development environment.</P><DIV class="">&nbsp;</DIV><P>&nbsp;</P><P>&nbsp;</P><P>Could anyone tell me how to fix it, or can I only show all the schemas when I use the paid plan?</P><P>Thanks!</P><P>&nbsp;</P> 2024-05-14T09:27:09.469000+02:00 https://community.sap.com/t5/sap-learning-q-a/cannot-select-destination-for-live-data-run-configuration/qaq-p/13700581 Cannot select destination for live data run configuration 2024-05-14T12:04:55.895000+02:00 rsham_ososoft https://community.sap.com/t5/user/viewprofilepage/user-id/167276 <P>I have an issue in the step "Previewing Your Application" of the learning journey "<SPAN class=""><A target="_blank">Developing Full-Stack Applications Using Productivity Tools in SAP Business Application Studio</A></SPAN>".</P><P>In the step to create a run configuration using live data from an external service, I can not select the destination I've created earlier.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rsham_ososoft_0-1715680765862.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/110064i0174A62541FD2F51/image-size/medium?v=v2&amp;px=400" role="button" title="rsham_ososoft_0-1715680765862.png" alt="rsham_ososoft_0-1715680765862.png" /></span></P><P>In the step where I added the external service, the destination is visible.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rsham_ososoft_1-1715680842996.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/110065iEA273FB22A47D999/image-size/medium?v=v2&amp;px=400" role="button" title="rsham_ososoft_1-1715680842996.png" alt="rsham_ososoft_1-1715680842996.png" /></span></P><P>Any suggestions what I could have missed in a previous step or is this an outdated instruction in the learning journey?</P> 2024-05-14T12:04:55.895000+02:00 https://community.sap.com/t5/technology-q-a/cap-export-language-independent-technical-values/qaq-p/13700598 CAP Export language independent / technical values 2024-05-14T12:12:15.678000+02:00 CDGabriel https://community.sap.com/t5/user/viewprofilepage/user-id/1429365 <P>Hello,</P><P>I'm working on a CAP application where I have a table with some rules. Some of the values in the columns are not language dependent, but some of them get translated using an i18n file. There is a column "language" where English, for example, gets translated to Englisch in German and so on.<BR />For the sake of importing those values in this application, i need to have some type of universal export.<BR />Is there a possibility to have the export always be based on the database technical values or to force the export to always be in a specific language, or maybe something similar?</P><P>Thank you,<BR />Gabriel</P> 2024-05-14T12:12:15.678000+02:00 https://community.sap.com/t5/technology-q-a/deployment-from-bas-to-sap-s-4hana-public-cloud-dev-tenant/qaq-p/13700798 Deployment from BAS to SAP S/4HANA Public cloud dev tenant 2024-05-14T14:15:10.291000+02:00 JariYlitolonen https://community.sap.com/t5/user/viewprofilepage/user-id/172808 <P>Hi,</P><P>I'm experiencing problems in BAS when deploying a Fiori app to Public cloud development tenant. It is giving me an authentication error even though I'm using right username and password. I have not configured username and password anywhere but destination I am using. I get the same error when entering username and password manually. Any idea what is wrong?</P> 2024-05-14T14:15:10.291000+02:00 https://community.sap.com/t5/technology-q-a/ui-adapt-using-sap-bas/qaq-p/13702915 UI adapt using SAP BAS 2024-05-16T04:23:33.331000+02:00 rameshputta https://community.sap.com/t5/user/viewprofilepage/user-id/836305 <P>Hello,</P><P>My app (on cloud )is enabled for key user adaptation ( by setting&nbsp;FlexEnabled to 'true' in the manifest. json) using BAS.</P><P>And my user has role -&nbsp;<SPAN>FlexKeyUser.</SPAN></P><P><SPAN>But I still do not see the Adapt UI option for my app.&nbsp;</SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rameshputta_0-1715825994297.png" style="width: 168px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/111295iEB048070E76DC308/image-dimensions/168x263?v=v2" width="168" height="263" role="button" title="rameshputta_0-1715825994297.png" alt="rameshputta_0-1715825994297.png" /></span></P><P>what am I missing ?</P><P>Can you please let me know how to get Adapt UI feature enable for my app.</P><P>thanks</P><P>&nbsp;</P> 2024-05-16T04:23:33.331000+02:00 https://community.sap.com/t5/technology-q-a/sapui5-embeddable-workzone-knowledge-base-widget-errors/qaq-p/13703260 SAPUI5 Embeddable WorkZone Knowledge Base Widget Errors 2024-05-16T10:35:22.820000+02:00 kishore_ms12 https://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:&nbsp;</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>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</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); }, });&lt;ol&gt;&lt;li&gt;&lt;strong&gt;&lt;u&gt;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:&lt;li-code lang="bash"&gt;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&lt;p&gt;Below are the code changes regarding DWS Knowledge Base Widget as per the documentatio&lt;/p&gt;&lt;p&gt;a. &lt;strong&gt;&lt;u&gt;Component.js&lt;strong&gt; (As per the Properties DWSInstance Option): Single use token is hard coded which is generated through rest postman.&lt;li-code lang="javascript"&gt;// 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>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</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>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</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>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>Below are the code changes regarding DWS Knowledge Base Widget as per the documentation.&nbsp;</P><P>&nbsp; &nbsp; &nbsp; &nbsp;a. <STRONG><U>Component.js</U></STRONG><STRONG> (As per the Properties DWSInstance Option):&nbsp;</STRONG>Single use token is hard coded which is generated through rest postman.</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</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>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp; &nbsp; &nbsp; &nbsp;<STRONG>b.<U> index.html (As per the STEP 2 Documentation):</U></STRONG></P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><pre class="lia-code-sample language-javascript"><code>&lt;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"&gt; &lt;/script&gt;</code></pre><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp; &nbsp; &nbsp;c.&nbsp;<STRONG><U> WzKBWidget.view.xml<STRONG> (As per the STEP 3 Documentation):</STRONG></U></STRONG></P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><pre class="lia-code-sample language-javascript"><code>&lt;!-- Add the library to project resource roots --&gt; &lt;jamWidget:wzKBWidget id="wzKBWidget" DWSInstance="{/DWSInstance}" widgetWidth="auto" widgetHeight="600px" pageSize="10" defaultColumns="title,group"&gt; &lt;Button id="_IDGenButton1" text="Attach" press="handleAttach" /&gt; &lt;/jamWidget:wzKBWidget&gt;</code></pre><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</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>&nbsp;</P> 2024-05-16T10:35:22.820000+02:00 https://community.sap.com/t5/technology-q-a/details-related-to-factory-calendar-endpoint-in-s4-hana-public-cloud/qaq-p/13703666 Details related to Factory Calendar Endpoint in S4 HANA Public Cloud 2024-05-16T15:38:54.291000+02:00 rahuljain257 https://community.sap.com/t5/user/viewprofilepage/user-id/431 <P>Hello Team,</P><P>As a newcomer to S4 HANA Public Cloud, I am currently navigating through the platform with the aim of locating the 'Maintain Holiday Calendar' option. Unfortunately, I have been unsuccessful in my attempts to find it. My objective is to access the data from the Holiday Calendar through an API for integration with my BTP CAP Application.</P><P>Could anyone guide me on how to achieve this or point me in the direction of relevant documentation or resources?</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rahuljain257_0-1715865091985.png" style="width: 593px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/111598i7FCC2513C8E32E73/image-dimensions/593x339?v=v2" width="593" height="339" role="button" title="rahuljain257_0-1715865091985.png" alt="rahuljain257_0-1715865091985.png" /></span></P><P>In API Accesslator HUB, I found this option as CDS Views - <STRONG>Holiday Calendar</STRONG></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rahuljain257_1-1715865495288.png" style="width: 613px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/111599iB056443F08718459/image-dimensions/613x273?v=v2" width="613" height="273" role="button" title="rahuljain257_1-1715865495288.png" alt="rahuljain257_1-1715865495288.png" /></span></P><P>&nbsp;</P><P>Regards,</P><P>Rahul Jain</P> 2024-05-16T15:38:54.291000+02:00 https://community.sap.com/t5/technology-q-a/rename-project-name-in-cap/qaq-p/13704222 rename project name in CAP 2024-05-17T07:08:18.181000+02:00 krishnakumar_nagarajan01 https://community.sap.com/t5/user/viewprofilepage/user-id/770271 <P>how to rename project name?</P><P>&nbsp;</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krishnakumar_nagarajan01_0-1715922445581.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/111819i16693B8D2E0839D9/image-size/medium?v=v2&amp;px=400" role="button" title="krishnakumar_nagarajan01_0-1715922445581.png" alt="krishnakumar_nagarajan01_0-1715922445581.png" /></span></P><P>&nbsp;</P> 2024-05-17T07:08:18.181000+02:00 https://community.sap.com/t5/technology-q-a/get-selected-items-in-ui-from-a-table-on-execution-of-a-custom-action-in/qaq-p/13705038 get Selected Items in UI from a table on execution of a custom action in capm fiori elements 2024-05-17T16:39:23.427000+02:00 2109_v https://community.sap.com/t5/user/viewprofilepage/user-id/808118 <P>Hi Experts,<BR /><BR />I have a requirement where I have defined a custom action on an Entity(Material) and on that action I am showing a pop up with value help. After selection of value help and execution of action I need the Selected Items from the Material table on which this action is defined.</P><P><U><STRONG>Defining Action</STRONG></U></P><DIV><DIV><SPAN>type</SPAN> <SPAN>actionbtn</SPAN> <SPAN>:</SPAN><SPAN> {</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; ActionBtn</SPAN>&nbsp;<SPAN>:</SPAN> <SPAN>String</SPAN><SPAN>;</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; }</SPAN></DIV><DIV><DIV><SPAN>entity</SPAN> <SPAN>Material</SPAN><SPAN> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</SPAN><SPAN>as</SPAN> <SPAN>projection</SPAN> <SPAN>on</SPAN> <SPAN>db</SPAN><SPAN>.</SPAN><SPAN>Material</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>actions</SPAN><SPAN> {</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>// <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1434188">@CDS</a>.odata.bindingparameter.collection</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>action</SPAN> <SPAN>actionbtn</SPAN><SPAN>(</SPAN><SPAN>Template</SPAN> <SPAN>:</SPAN> <SPAN>actionbtn</SPAN><SPAN>:ActionBtn</SPAN><SPAN>) </SPAN><SPAN>returns</SPAN> <SPAN>Material</SPAN><SPAN>;</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; };</SPAN></DIV><DIV>&nbsp;</DIV><DIV><U><STRONG>service.js handler function</STRONG></U></DIV><DIV><DIV><DIV><SPAN>this</SPAN><SPAN>.</SPAN><SPAN>on</SPAN><SPAN>(</SPAN><SPAN>'actionbtn'</SPAN><SPAN>, </SPAN><SPAN>async</SPAN> <SPAN>req</SPAN> <SPAN>=&gt;</SPAN><SPAN> {</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>console</SPAN><SPAN>.</SPAN><SPAN>log</SPAN><SPAN>(</SPAN><SPAN>req.data</SPAN><SPAN>);</SPAN></DIV><DIV><EM><STRONG>Here I want the selected materials in Ui from the Material table</STRONG></EM></DIV><DIV><DIV><DIV><SPAN>});</SPAN></DIV></DIV></DIV></DIV></DIV></DIV></DIV> 2024-05-17T16:39:23.427000+02:00