https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/JavaScript-qa.xmlSAP Community - JavaScript2026-02-07T00:10:46.133972+00:00python-feedgenJavaScript Q&A in SAP Communityhttps://community.sap.com/t5/technology-q-a/cap-factory-facade-pattern-with-remote-and-local-entities/qaq-p/14012599CAP Factory/Facade Pattern with Remote and Local Entities2025-02-10T11:46:42.663000+01:00DavidBrodmannhttps://community.sap.com/t5/user/viewprofilepage/user-id/168790<P>Dear all</P><P>I was wondering if there is a good/certain way to implement some kind of factory or facade pattern with CDS to combine two entities from different remote services, into the current application.</P><P>Here is a brief example that I was thinking of. The goal would be to use as many tools from the CAP framework itself so I have to implement as few things as possible.</P><pre class="lia-code-sample language-bash"><code> ┌──────────────┐
│FactoryOrders ┼──────────────┐
└──────────────┘ ┌───▼───┐
│Orders ├─────►use entity <Orders>
┌──────────────┐ └───▲───┘ in OrdersService
│LogisticOrders┼──────────────┘
└──────────────┘
</code></pre><P>Of Course FactoryOrders and LogisticOrders have the same keywords with the same types etc. But FactoryOrders is from one remote service and LogisticOrders are from another remote service.</P><P>At the moment, what I am doing is I have an entity Order, that is getting the keywords and types from one of the remote entities:</P><pre class="lia-code-sample language-javascript"><code>entity Orders {
orderNumber : FactoryOrders:orderNumber;
orderType : FactoryOrders:orderType;
orderData: FactoryOrders:orderDate;
}</code></pre><P>Then in the on.READ event handler of entitity <Orders> I read the orders from both remote services and return the combined orders.</P><P>This solution does not feel completely right though and I am curious if there are better/different solutions.</P><P>I hope I explained the problem in an understandable manner, have a blast.</P><P>cheers</P><P>David</P>2025-02-10T11:46:42.663000+01:00https://community.sap.com/t5/technology-q-a/sap-dms-and-destination-help-for-cap-service/qaq-p/14019437SAP DMS and Destination Help for CAP service.2025-02-18T08:14:25.739000+01:00Tommyssjhttps://community.sap.com/t5/user/viewprofilepage/user-id/1812883<P class="">Scenario: We have 2 sub-account, sub-account A and sub-account B in SAP BTP Cockpit under a global account, all the development is being done on SAP BAS.</P><P class="">Sub-account A: This account has a DMS service which is currently being consumed by an app.<BR />Sub-account B: This account is our development account in which we do our development.</P><P class="">Problem: The DMS service needs to be called to Sub-account B from Sub-account A for making an attachment functionality in our application. To consume the DMS, I need to create a CAP service which has the functionality of List all the content of the repository of the DMS, Upload content into the repo and download content from the repo.<BR /><BR />Currently, I have attempted Destination Config and hardcoding the credentials for Bearer token authorization but I am getting 401 unauthorized error when trying to call the DMS service using destination and Method not allowed error when trying to use hard-code the credentials (which i know is not a recommended practice but I had to test it) but both these efforts have been in vain. <BR /><BR />Can somebody share their expertise on this topic, If its even possible to do something like this: Creating a CAP service which can download,upload and List the content of a DMS repository which is situated in a different Sub-account under the same global account. <BR />Kindly Help if you can. Thank you<BR /><BR /></P>2025-02-18T08:14:25.739000+01:00https://community.sap.com/t5/technology-q-a/integration-flow-reuse-javascript-functions-across-script-blocks/qaq-p/14032062Integration Flow reuse Javascript functions across Script Blocks2025-03-03T09:39:58.056000+01:00jlabahttps://community.sap.com/t5/user/viewprofilepage/user-id/1881095<P>I have several javascript blocks in my iFlow and want to share some functions between them, as they are used on all of them. To achieve that, I created a javascript file like below and uploaded it to the local references of the iFLow as <EM>shared_function_file.js</EM>.</P><P> </P><PRE>export function shared_function(variable) {<BR /> return "cool";<BR />}</PRE><P>In the script, where I want to use this function, I tried to import it with</P><PRE>import { shared_function} from "shared_function_file.js";</PRE><P>which results in the error:</P><PRE><SPAN class="">javax.script.ScriptException: identifier is a reserved word: import</SPAN></PRE><P>Is it somehow possible to share functions between script blocks and if yes, how it is working?</P>2025-03-03T09:39:58.056000+01:00https://community.sap.com/t5/technology-q-a/putting-user-defaults-in-a-key-user-adaption-view/qaq-p/14120547Putting user defaults in a key user adaption view2025-06-05T22:15:50.994000+02:00Hanshttps://community.sap.com/t5/user/viewprofilepage/user-id/4360<P>When a user uses a key user adaptation of a Listreport with a smartFilterBar, the user's default values are not being populated in the (blank) filter fields. I understand this is standard behavior, but our users do not like it one bit.</P><P>Example: app F2173 (Find Maintenance Orders and Operations). Our key user has made a key user adaptation, setting certain filter fields, but leaving the planning plant blank. The intention was that actual users would use that adaptation, and see the planning plant filled with their individual default.</P><P>I have tried creating a controller extension in BAS, and I was able to read the user's defaults, but I can't set the values in the smartFilterBar. The console message I get is that the smartFilterBar is not yet initialized. Adding a call to the init() function does not help, as that generates all kinds of errors about duplicate objects.</P><P>Has anyone found a way to accomplish this?</P><P>We are on Fiori 1.108.38.</P>2025-06-05T22:15:50.994000+02:00https://community.sap.com/t5/technology-q-a/fiori-app-controller-extension-overrides-not-being-triggered-successfully/qaq-p/14125669Fiori App Controller Extension: Overrides not being triggered successfully2025-06-11T21:09:49.306000+02:00jtrahernhttps://community.sap.com/t5/user/viewprofilepage/user-id/540566<P>I'm trying to make a simple controller extension, which would hook onto a method when user clicks a button. The name of this method is "<SPAN>onClickActionC_MaintenanceJobWorkItemTPHeader1."</SPAN></P><P><SPAN>I've tried the following code, and several variations, trying to get a simple console.log message, but I can't get any of the methods below to trigger. Is there something I'm missing in order to get any of the below methods to trigger after their respective base controller methods are called?</SPAN></P><P> </P><DIV><DIV><DIV><SPAN>sap</SPAN><SPAN>.</SPAN><SPAN>ui</SPAN><SPAN>.</SPAN><SPAN>define</SPAN><SPAN>(</SPAN></DIV><DIV><SPAN> [</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>'sap/ui/core/mvc/ControllerExtension'</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>'sap/ui/core/mvc/OverrideExecution'</SPAN></DIV><DIV><SPAN> ],</SPAN></DIV><BR /><DIV><SPAN> </SPAN></DIV><DIV><SPAN> </SPAN><SPAN>function</SPAN><SPAN> (</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>ControllerExtension</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>OverrideExecution</SPAN><SPAN> </SPAN><SPAN>//,Dialog, Button, mobileLibrary</SPAN></DIV><DIV><SPAN> </SPAN></DIV><DIV><SPAN> ) {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>console</SPAN><SPAN>.</SPAN><SPAN>log</SPAN><SPAN>(</SPAN><SPAN>"testing 1"</SPAN><SPAN>);</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>"use strict"</SPAN><SPAN>;</SPAN></DIV><DIV><SPAN> </SPAN></DIV><DIV><SPAN> </SPAN><SPAN>return</SPAN><SPAN> </SPAN><SPAN>ControllerExtension</SPAN><SPAN>.</SPAN><SPAN>extend</SPAN><SPAN>(</SPAN><SPAN>"customer.zperform.maintenance.jobs.PopupMessage"</SPAN><SPAN>, {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>metadata</SPAN><SPAN>:</SPAN><SPAN> {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>methods</SPAN><SPAN>:</SPAN><SPAN> {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>onclick</SPAN><SPAN>:</SPAN><SPAN> {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>public</SPAN><SPAN>:</SPAN><SPAN> </SPAN><SPAN>true</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>final</SPAN><SPAN>:</SPAN><SPAN> </SPAN><SPAN>false</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>overrideExecution</SPAN><SPAN>:</SPAN><SPAN> </SPAN><SPAN>"After"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><BR /><DIV><SPAN> </SPAN><SPAN>onmousedown</SPAN><SPAN>:</SPAN><SPAN> {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>public</SPAN><SPAN>:</SPAN><SPAN> </SPAN><SPAN>true</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>final</SPAN><SPAN>:</SPAN><SPAN> </SPAN><SPAN>false</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>overrideExecution</SPAN><SPAN>:</SPAN><SPAN> </SPAN><SPAN>"After"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><BR /><DIV><SPAN> </SPAN><SPAN>onClickActionC_MaintenanceJobWorkItemTPHeader1</SPAN><SPAN>:</SPAN><SPAN> {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>public</SPAN><SPAN>:</SPAN><SPAN> </SPAN><SPAN>true</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>final</SPAN><SPAN>:</SPAN><SPAN> </SPAN><SPAN>false</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>overrideExecution</SPAN><SPAN>:</SPAN><SPAN> </SPAN><SPAN>"After"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>override</SPAN><SPAN>:</SPAN><SPAN> {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>onclick</SPAN><SPAN>:</SPAN><SPAN> </SPAN><SPAN>function</SPAN><SPAN> (</SPAN><SPAN>oEvent</SPAN><SPAN>) {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>console</SPAN><SPAN>.</SPAN><SPAN>log</SPAN><SPAN>(</SPAN><SPAN>"testing 2"</SPAN><SPAN>);</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><BR /><DIV><SPAN> </SPAN><SPAN>onmousedown</SPAN><SPAN>:</SPAN><SPAN> </SPAN><SPAN>function</SPAN><SPAN> (</SPAN><SPAN>oEvent</SPAN><SPAN>) {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>console</SPAN><SPAN>.</SPAN><SPAN>log</SPAN><SPAN>(</SPAN><SPAN>"testing 2"</SPAN><SPAN>);</SPAN></DIV><DIV><SPAN> },</SPAN></DIV><DIV><SPAN> </SPAN></DIV><DIV><SPAN> </SPAN><SPAN>onClickActionC_MaintenanceJobWorkItemTPHeader1</SPAN><SPAN>:</SPAN><SPAN> </SPAN><SPAN>function</SPAN><SPAN> (</SPAN><SPAN>oEvent</SPAN><SPAN>) {</SPAN></DIV><DIV><SPAN> </SPAN><SPAN>console</SPAN><SPAN>.</SPAN><SPAN>log</SPAN><SPAN>(</SPAN><SPAN>"testing 2"</SPAN><SPAN>);</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN> });</SPAN></DIV><DIV><SPAN> }</SPAN></DIV><DIV><SPAN>)</SPAN></DIV></DIV><DIV> </DIV><DIV> </DIV><DIV> </DIV><DIV><SPAN>Manifest: </SPAN></DIV><DIV>{<BR />"fileName": "manifest",<BR />"layer": "CUSTOMER_BASE",<BR />"fileType": "appdescr_variant",<BR />"reference": "i2d.eam.perfmaintjobs.manages1",<BR />"id": "customer.zperform.maintenance.jobs",<BR />"namespace": "apps/i2d.eam.perfmaintjobs.manages1/appVariants/customer.zperform.maintenance.jobs/",<BR />"version": "0.1.0",<BR />"content": [<BR />{<BR />"changeType": "appdescr_ui5_addNewModelEnhanceWith",<BR />"content": {<BR />"modelId": "i18n"<BR />},<BR />"texts": {<BR />"i18n": "i18n/i18n.properties"<BR />}<BR />},<BR />{<BR />"changeType": "appdescr_ui5_addNewModelEnhanceWith",<BR />"content": {<BR />"modelId": "@i18n"<BR />},<BR />"texts": {<BR />"i18n": "i18n/i18n.properties"<BR />}<BR />},<BR />{<BR />"changeType": "appdescr_ui5_addNewModelEnhanceWith",<BR />"content": {<BR />"modelId": "i18n|sap.suite.ui.generic.template.ListReport|C_MaintenanceJobWorkItemTP"<BR />},<BR />"texts": {<BR />"i18n": "i18n/ListReport/C_MaintenanceJobWorkItemTP/i18n.properties"<BR />}<BR />},<BR />{<BR />"changeType": "appdescr_ui5_addNewModelEnhanceWith",<BR />"content": {<BR />"modelId": "i18n|sap.suite.ui.generic.template.ObjectPage|C_MaintenanceJobWorkItemTP"<BR />},<BR />"texts": {<BR />"i18n": "i18n/ObjectPage/C_MaintenanceJobWorkItemTP/i18n.properties"<BR />}<BR />},<BR />{<BR />"changeType": "appdescr_ui5_addNewModelEnhanceWith",<BR />"content": {<BR />"modelId": "i18n|sap.suite.ui.generic.template.ObjectPage|C_MaintenanceJobTP"<BR />},<BR />"texts": {<BR />"i18n": "i18n/ObjectPage/C_MaintenanceJobTP/i18n.properties"<BR />}<BR />},<BR />{<BR />"changeType": "appdescr_ui5_setMinUI5Version",<BR />"content": {<BR />"minUI5Version": "1.108.38"<BR />}<BR />},<BR />{<BR />"changeType": "appdescr_app_setTitle",<BR />"content": {},<BR />"texts": {<BR />"i18n": "i18n/i18n.properties"<BR />}<BR />}<BR />]<BR />}</DIV><DIV> </DIV></DIV>2025-06-11T21:09:49.306000+02:00https://community.sap.com/t5/technology-q-a/i-am-currently-working-on-a-custom-ui5-app-where-i-use-third-part-software/qaq-p/14129300I am currently working on a custom Ui5 app, where i use third part software to access documents2025-06-17T07:57:39.891000+02:00krishnaKonehttps://community.sap.com/t5/user/viewprofilepage/user-id/2045598<P>My custom Ui app is using Alfresco server to fetch documents, I make the call via a API portal, which is accessed via a BTP destination.</P><P> </P><P>it works well, but it needs a x-api-key in the http header, when i make a request call.</P><P>I am looking for best solution to pass this x-api-key in the request, I want to hardcode it in the code, </P><P>I have tried adding this to additional parameters of the destination, it does not work, </P><P>I have passed encrypted key as well, but it also returns unauthorized.</P><P>Any idea on how can i pass this x-api-key securely to my http request via BTP destination?</P><P> </P><P>any use case for SAP credentials store foe such requirement?</P><P><a href="https://community.sap.com/t5/c-khhcw49343/SAP+Fiori+Launchpad/pd-p/538710751289542466232554247536294" class="lia-product-mention" data-product="1060-1">SAP Fiori Launchpad</a> <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/731745">@ui5_dev</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+BTP+Security/pd-p/842ea649-eeef-464c-b80c-a64b03e40158" class="lia-product-mention" data-product="99-1">SAP BTP Security</a> <a href="https://community.sap.com/t5/c-khhcw49343/development+tools+for+SAP+BTP%25252C+Neo+environment/pd-p/67838200100800004383" class="lia-product-mention" data-product="362-1">development tools for SAP BTP, Neo environment</a> <a href="https://community.sap.com/t5/c-khhcw49343/JavaScript/pd-p/506421944534752500398156104608974" class="lia-product-mention" data-product="321-1">JavaScript</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+Fiori+for+SAP+ERP/pd-p/67838200100800006297" class="lia-product-mention" data-product="621-1">SAP Fiori for SAP ERP</a> </P>2025-06-17T07:57:39.891000+02:00https://community.sap.com/t5/technology-q-a/error-on-logout-event-from-sap-build-work-zone-in-sapui5-page/qaq-p/14130343Error on Logout event from SAP Build Work Zone in SAPUI5 page2025-06-17T21:39:30.559000+02:00guilherme_saleshttps://community.sap.com/t5/user/viewprofilepage/user-id/17054<P>I am trying to attach a callback to the Logout event from the SAP Build Work Zone in my SAPUI5 application, to then request a logout in my approuter application. This is the logic I added to enable the event:</P><pre class="lia-code-sample language-javascript"><code>// UI5 Component
export default class Component extends UIComponent {
//...
public init(): void {
//...
// Log out when the user clicks the logout button in the shell header (BWZ)
Container.attachLogoutEvent(() => {
console.log("Logout event triggered, redirecting to logout endpoint.");
window.location.replace('/do/logout');
}, false)
}
}</code></pre><P> The callback is working on my local tests, and I can see the log message on the console. However, when I try to do same thing inside our SAP Build Work Zone subscription, the callback doesn't run and we see a error message:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2025-06-17 at 4.35.14 PM.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/275553i980D6C5A3390FC80/image-size/large?v=v2&px=999" role="button" title="Screenshot 2025-06-17 at 4.35.14 PM.png" alt="Screenshot 2025-06-17 at 4.35.14 PM.png" /></span></P><P> After investigating the source files I notices this error happens when the Logout Event is being created and a deprecated part of the code executes. I wasn't able to find any configurations on SAP Build Work Zone that would fix it, but I might have missed something?</P><P>Has anyone else seen this error before? How can I contact the SAP Build Work Zone team to get support?</P><P>Thanks</P><P> </P>2025-06-17T21:39:30.559000+02:00https://community.sap.com/t5/technology-q-a/find-the-bug-formatting-dates-and-times-in-build-apps/qaq-p/14145374Find the Bug 🐞 Formatting dates and times in Build Apps2025-07-06T14:17:53.108000+02:00Dan_Wroblewskihttps://community.sap.com/t5/user/viewprofilepage/user-id/72<P>Someone sent me a problem they were having in a private message, that made me chuckle.</P><P>To be honest, after 2 years of war and 2 weeks of intense war, and having to live out of a suitcase for a week in Athens because my plane was diverted and could not enter my country -- this was a fun, amusing diversion (it actually made me laugh).</P><P>Here's the message I received:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rule.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/242171i90366DC4F4BD6F45/image-size/large?v=v2&px=999" role="button" title="rule.png" alt="rule.png" /></span></P><pre class="lia-code-sample language-javascript"><code>FORMAT_DATETIME_WITH_TIMEZONE(DATETIME("2025-04-03T02:00:00.000Z"), "MMM d, yyyy", "America/Chicago") </code></pre><P>"I am using formula to format the date. Actually the output should be Apr 2, 2025, 9 pm. But I am getting Apr 3, 2025, 9 pm. How to solve this? I tried multiple ways. It's only changing time but not date. I used other timezone format as well. Please help. This is an issue in production."</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rule.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/242171i90366DC4F4BD6F45/image-size/large?v=v2&px=999" role="button" title="rule.png" alt="rule.png" /></span></P><P>After running the formula in my Build Apps and getting the same result, I assumed it was a bug in the tool (<a href="https://community.sap.com/t5/user/viewprofilepage/user-id/163703">@Mari</a> and <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1641528">@Pekka_Aaltonen</a>, please forgive me). For the programmer, the obvious thing to think was that you asked for the date in the format April 2 (because it had to give the day before because the time zone they gave was minus 6 hours from UTC) and instead it was giving April 3. Why? Probably because the formula was too stupid to return the previous day's date.</P><P>It was supposed to show this:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Wroblewski_1-1751859860631.png" style="width: 198px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/283321iB0EAE6A724332757/image-dimensions/198x204?v=v2" width="198" height="204" role="button" title="Dan_Wroblewski_1-1751859860631.png" alt="Dan_Wroblewski_1-1751859860631.png" /></span></P><P>But kept showing this:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Wroblewski_0-1751859812914.png" style="width: 0px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/283320i6A6CCB35A7939D05/image-size/small?v=v2&px=200" width="0" height="0" role="button" title="Dan_Wroblewski_0-1751859812914.png" alt="Dan_Wroblewski_0-1751859812914.png" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Wroblewski_0-1751859948461.png" style="width: 195px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/283322i073475760A3806EE/image-dimensions/195x203?v=v2" width="195" height="203" role="button" title="Dan_Wroblewski_0-1751859948461.png" alt="Dan_Wroblewski_0-1751859948461.png" /></span></P><P>But, alas, there was a perfectly logical explanation, but it was hidden because of the actual date and time used in the example. Another case of all-too-human error.</P><P>Can you find the bug?</P><P>P.S.: If you like this puzzle, wait for Devtoberfest in October. We'll have plenty more.</P><P> </P><P> </P>2025-07-06T14:17:53.108000+02:00https://community.sap.com/t5/technology-q-a/how-to-use-story-filter-for-company-dimension-in-sac-analytic-model-without/qaq-p/14148598How to Use Story Filter for Company Dimension in SAC Analytic Model Without Mapping Table2025-07-09T19:53:09.735000+02:00stephan-ghttps://community.sap.com/t5/user/viewprofilepage/user-id/883208<P> </P><P>Hi everyone,</P><P>I'm working in <STRONG>SAP Analytics Cloud (SAC)</STRONG> using an <STRONG>import model (analytic)</STRONG> that includes two hierarchical dimensions: <STRONG>Company</STRONG> and <STRONG>BU</STRONG>.</P><P>Currently, when I filter by <STRONG>Company</STRONG>, the corresponding <STRONG>BU</STRONG> values are not filtered correctly due to the hierarchical structure. To work around this, I’ve implemented a <STRONG>mapping table</STRONG>. However, I’d like to eliminate this workaround and instead use a <STRONG>story filter</STRONG> directly on the Company dimension. d<SPAN>ue to the hierarchy blending the data model and mapping model is not an option.</SPAN></P><H4 id="currentsetup" id="toc-hId-1992458240"><STRONG>Current Setup:</STRONG></H4><UL><LI>A <STRONG>dropdown filter</STRONG> on the story page for selecting a Company.</LI><LI>A <STRONG>script</STRONG> that reads the selected Company, looks up the corresponding BU from the mapping table, and applies both filters to a table widget.</LI></UL><P>Here’s a simplified version of the script:</P><PRE>var selectedCompany = Dropdown_Mapping.getSelectedKey();
var datasource = Table_Mapping.getDataSource();
var mappingEntries = datasource.getResultSet();
for (var i = 0; i < mappingEntries.length; i++) {
if (mappingEntries[i]["COMPANY"].id === selectedCompany) {
var attribute = mappingEntries[i]["COMPANY"].properties;
var attribute_value = attribute["COMPANY.BU"];
break;
}
}
Table_1.getDataSource().setDimensionFilter("COMPANY", "[COMPANY].[PARENTH1].&[" + selectedCompany + "]");
Table_1.getDataSource().setDimensionFilter("BU", "[BU].[PARENTH1].&[" + attribute_value + "]");</PRE><H4 id="whatiwant" id="toc-hId-1795944735"><STRONG>What I Want:</STRONG></H4><UL><LI>Use a <STRONG>story filter</STRONG> for the Company dimension instead of a dropdown.</LI><LI><STRONG>Avoid using a mapping table</STRONG>.</LI><LI>Ideally, retrieve the BU property directly from the model using something like getMember.</LI></UL><H4 id="challenge" id="toc-hId-1599431230"><STRONG>Challenge:</STRONG></H4><P>In analytic models, getMember doesn’t work the same way as in planning models. For example:</P><PRE>Company_ID = cast(Type.SingleFilterValue, Company);
var Company_Member = Company_ID.value;
var Company_sliced = Company_Member.slice(22, Company_Member.length - 1);
var Company_BU = Modelname.getMember("Company", company_id).properties["BU"];</PRE><P>This approach fails because getMember isn’t supported in this context.</P><HR /><H3 id="myquestions" id="toc-hId-1273835006"><STRONG>My Questions:</STRONG></H3><OL><LI>Is there a <STRONG>workaround</STRONG> to retrieve dimension properties (like BU) from an analytic model without using a mapping table?</LI><LI>If not, is there a way to <STRONG>use a story filter</STRONG> (instead of a dropdown) and still apply the correct BU filter in the script?</LI><LI>Any best practices for handling <STRONG>hierarchical filtering</STRONG> in analytic models?</LI></OL><P>Thanks in advance for your help!</P>2025-07-09T19:53:09.735000+02:00https://community.sap.com/t5/technology-q-a/sap-analytics-cloud-optimized-story-experience-api-reference-guide/qaq-p/14157613SAP Analytics Cloud Optimized Story Experience API Reference Guide2025-07-21T10:16:13.524000+02:00DomiKhttps://community.sap.com/t5/user/viewprofilepage/user-id/1884924<DIV><P>I have the following problem: I want to get a notification in my story both in the SAC and by mail when I click on a button (function onclick() ).</P><P>Here is my code:</P><P> </P>var user_info = Application.getUserInfo();</DIV><DIV>console.log(user_info);</DIV><DIV> </DIV><DIV>console.log("Senden beginnen:");</DIV><DIV>Application.sendNotification({</DIV><DIV> "title": "Test",</DIV><DIV> "content": "Test2",</DIV><DIV><SPAN> "receivers": [Application.getUserInfo().id],</SPAN></DIV><DIV> "isSendEmail": false</DIV><DIV> </DIV><DIV>}</DIV><DIV>);</DIV><DIV>console.log("Senden beendet:");</DIV><DIV> </DIV><DIV>I also have the appropriate authorizations (Runtime notification). Unfortunately, I still don't get a notification and the following exception is thrown in the JS code.</DIV><DIV><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DomiK_0-1753085634274.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/289118i651EA6A97FC3EA21/image-size/medium?v=v2&px=400" role="button" title="DomiK_0-1753085634274.png" alt="DomiK_0-1753085634274.png" /></span><P>KR</P><P>Dominik </P><P> </P></DIV><DIV> </DIV><DIV> </DIV>2025-07-21T10:16:13.524000+02:00https://community.sap.com/t5/technology-q-a/javascript-works-in-adobe-form-designer-for-check-printing-but-not-in-btp/qaq-p/14159728JavaScript works in Adobe Form Designer for Check Printing but not in BTP Runtime2025-07-23T07:01:59.525000+02:00Achana_Bisoyihttps://community.sap.com/t5/user/viewprofilepage/user-id/1616209<P class="lia-align-left" style="text-align : left;"><FONT face="arial,helvetica,sans-serif"> Hello Experts,</FONT></P><P><FONT face="arial,helvetica,sans-serif">I’m working on a <STRONG>Check Printing Form</STRONG> using <STRONG>Adobe Interactive Forms</STRONG> (developed via Adobe LiveCycle Designer). In the form, I’ve written a JavaScript function to convert the numeric check amount into <STRONG>words</STRONG>, like:</FONT></P><BLOCKQUOTE><P><FONT face="arial,helvetica,sans-serif">123456.78 → "Rupees One Lakh Twenty Three Thousand Four Hundred Fifty Six and Seventy Eight Paise Only"</FONT></P></BLOCKQUOTE><P><FONT face="arial,helvetica,sans-serif">The script is placed under the calculate event of a text field. This works <STRONG>perfectly in local Adobe Designer preview</STRONG>, but <STRONG>after uploading to SAP BTP Forms Runtime</STRONG>, the amount in words is not displaying at all.</FONT></P><P> </P><H3 id="toc-hId-1864330538"><FONT face="arial,helvetica,sans-serif"><STRONG>My JavaScript Code (Client-Side)</STRONG></FONT></H3><P> </P><DIV class=""><DIV class=""><DIV class=""><DIV class=""><DIV class=""><DIV class=""><DIV class=""><DIV class=""><DIV class=""><DIV class=""><P><FONT face="arial,helvetica,sans-serif">1. After uploading to <STRONG>SAP BTP</STRONG> (Forms by Adobe), the script does not run</FONT><BR /><FONT face="arial,helvetica,sans-serif">2.The amount in words is <STRONG>blank</STRONG> on the output PDF generated in cloud</FONT></P><H3 id="toc-hId-1667817033"><FONT face="arial,helvetica,sans-serif"> My Questions:</FONT></H3><OL><LI><P><FONT face="arial,helvetica,sans-serif">Is client-side JavaScript supported in <STRONG>SAP BTP Check Printing Adobe Forms</STRONG>?</FONT></P></LI><LI><P><FONT face="arial,helvetica,sans-serif">Is there any alternative way to achieve <STRONG>Amount in Words</STRONG> in BTP (e.g., ABAP backend or script object)?</FONT></P></LI><LI><P><FONT face="arial,helvetica,sans-serif">How should I implement this logic so that it works <STRONG>after upload to BTP</STRONG>?</FONT></P></LI></OL><P><FONT face="arial,helvetica,sans-serif">Any guidance or workaround for handling amount in words in check printing would be appreciated. </FONT></P><P><FONT face="arial,helvetica,sans-serif">Thanks in advance,</FONT></P><P><FONT face="arial,helvetica,sans-serif">Archana</FONT></P></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV>2025-07-23T07:01:59.525000+02:00https://community.sap.com/t5/technology-q-a/sapui5-ui-table-checkbox-in-a-column-template-problem/qaq-p/14176751SAPUI5 ui.table checkbox in a column template problem2025-08-10T10:08:35.199000+02:00pablos81https://community.sap.com/t5/user/viewprofilepage/user-id/721790<P>I am using a CheckBox in Column template in a ui.table in SAPUI5. But when scrolling the table, the CheckBox is frozen in the row, and it does not scroll. How can solve this issue?</P><P>I tried creating a Custom Checkbox without using the ui5 Checkbox but also did not work. The example that I posted is from the SDK website using the last version available.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/298996i565140B057B9FA5F/image-size/large?v=v2&px=999" role="button" title="Untitled.png" alt="Untitled.png" /></span></P><PRE><SPAN class=""><<SPAN class="">mvc:View</SPAN>
<SPAN class="">controllerName</SPAN>=<SPAN class="">"sap.ui.table.sample.Basic.Controller"</SPAN>
<SPAN class="">xmlns</SPAN>=<SPAN class="">"sap.ui.table"</SPAN>
<SPAN class="">xmlns:mvc</SPAN>=<SPAN class="">"sap.ui.core.mvc"</SPAN>
<SPAN class="">xmlns:u</SPAN>=<SPAN class="">"sap.ui.unified"</SPAN>
<SPAN class="">xmlns:c</SPAN>=<SPAN class="">"sap.ui.core"</SPAN>
<SPAN class="">xmlns:m</SPAN>=<SPAN class="">"sap.m"</SPAN>
<SPAN class="">xmlns:p</SPAN>=<SPAN class="">"sap.m.plugins"</SPAN>
<SPAN class="">height</SPAN>=<SPAN class="">"100%"</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">m:Page</SPAN>
<SPAN class="">showHeader</SPAN>=<SPAN class="">"false"</SPAN>
<SPAN class="">enableScrolling</SPAN>=<SPAN class="">"false"</SPAN>
<SPAN class="">class</SPAN>=<SPAN class="">"sapUiContentPadding"</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">m:content</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">Table</SPAN>
<SPAN class="">rows</SPAN>=<SPAN class="">"{/ProductCollection}"</SPAN>
<SPAN class="">selectionMode</SPAN>=<SPAN class="">"MultiToggle"</SPAN>
<SPAN class="">paste</SPAN>=<SPAN class="">"onPaste"</SPAN>
<SPAN class="">ariaLabelledBy</SPAN>=<SPAN class="">"title"</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">extension</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">m:OverflowToolbar</SPAN> <SPAN class="">style</SPAN>=<SPAN class="">"Clear"</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">m:Title</SPAN> <SPAN class="">id</SPAN>=<SPAN class="">"title"</SPAN> <SPAN class="">text</SPAN>=<SPAN class="">"Products"</SPAN>/></SPAN>
<SPAN class=""></<SPAN class="">m:OverflowToolbar</SPAN>></SPAN>
<SPAN class=""></<SPAN class="">extension</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">columns</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">Column</SPAN> <SPAN class="">width</SPAN>=<SPAN class="">"11rem"</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">m:Label</SPAN> <SPAN class="">text</SPAN>=<SPAN class="">"Product Name"</SPAN> /></SPAN>
<SPAN class=""><<SPAN class="">template</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">m:Text</SPAN> <SPAN class="">text</SPAN>=<SPAN class="">"{Name}"</SPAN> <SPAN class="">wrapping</SPAN>=<SPAN class="">"false"</SPAN> /></SPAN>
<SPAN class=""></<SPAN class="">template</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">dependents</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">p:ColumnAIAction</SPAN> <SPAN class="">press</SPAN>=<SPAN class="">"onAIActionPress"</SPAN>></SPAN><SPAN class=""></<SPAN class="">p:ColumnAIAction</SPAN>></SPAN>
<SPAN class=""></<SPAN class="">dependents</SPAN>></SPAN>
<SPAN class=""></<SPAN class="">Column</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">Column</SPAN> <SPAN class="">width</SPAN>=<SPAN class="">"11rem"</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">m:Label</SPAN> <SPAN class="">text</SPAN>=<SPAN class="">"Product Id"</SPAN> /></SPAN>
<SPAN class=""><<SPAN class="">template</SPAN>></SPAN>
<SPAN class=""><<SPAN class="">m:CheckBox</SPAN>/></SPAN>
<SPAN class=""></<SPAN class="">template</SPAN>></SPAN>
<SPAN class=""></<SPAN class="">Column</SPAN>></SPAN>
<SPAN class=""></<SPAN class="">columns</SPAN>></SPAN>
<SPAN class=""></<SPAN class="">Table</SPAN>></SPAN>
<SPAN class=""></<SPAN class="">m:content</SPAN>></SPAN>
<SPAN class=""></<SPAN class="">m:Page</SPAN>></SPAN>
<SPAN class=""></<SPAN class="">mvc:View</SPAN>><BR /></SPAN></PRE><P> </P>2025-08-10T10:08:35.199000+02:00https://community.sap.com/t5/technology-q-a/fallback-method-for-opening-web-applications-in-iframe-if-loading-fails/qaq-p/14190117Fallback method for opening web applications in iframe if loading fails2025-08-24T23:25:18.458000+02:00INC02778https://community.sap.com/t5/user/viewprofilepage/user-id/1421127<P>Hello Experts,</P><P>I am trying to implement a <STRONG>fallback mechanism</STRONG> for opening a web application inside an <STRONG>iframe</STRONG>. If the app fails to load in the iframe, I want to automatically open it in a new browser tab.</P><P>Here’s are the implementations that I have tried so far, I am providing a brute code of the methods that I have tried implementing:</P><pre class="lia-code-sample language-javascript"><code>onTilePress: function (oEvent) {
var sUrl = oEvent.getSource().getBindingContext("appModel").getProperty("url");
var oFrame = this.byId("appFrame");
// attachAfterRendering for iframe handling
oFrame.attachAfterRendering({ url: sUrl }, function (oEvent, oData) {
var iframe = document.querySelector("iframe");
if (!iframe) {
console.error("Iframe not found");
return;
}
// Listen for load success/failure
iframe.onload = function () {
console.log("App loaded successfully in iframe");
};
iframe.onerror = function () {
console.error("Error loading app in iframe, opening in new tab");
window.open(oData.url, "_blank");
};
// Safety fallback - message event listener
window.addEventListener("message", function (e) {
console.log("Message received from origin:", e.origin);
// Expected origin is from embedded app, but I only get the portal origin here
});
// Detach afterrendering after execution
oFrame.detachAfterRendering();
});
}</code></pre><P> </P><P><STRONG>Challenges I am facing:</STRONG></P><OL><LI><P>iframe.onload and iframe.onerror are <STRONG>never triggered</STRONG> – not even for successful apps.</P></LI><LI><P>onAfterRendering only detects the UI5 HTML control render, <STRONG>not the internal iframe load state</STRONG>.</P></LI><LI><P>When listening for postMessage, I get the <STRONG>custom portal origin</STRONG> (e.g., <A href="https://port8081-workspaces" target="_blank" rel="noopener nofollow noreferrer">https://port8081-workspaces</A>...) instead of the <STRONG>embedded app’s origin</STRONG>, so I cannot distinguish failures correctly.<BR /><BR /><BR />Can someone please help me to find a correct way to detect if an app inside an iframe has failed to load in SAP UI5 (so that I can implement a proper fallback to open it in a new tab)?<BR />Also suggest if is there a recommended UI5 mechanism to achieve this?<BR /><BR />Thanks in advance,<BR />Sai Krishna.</P></LI></OL>2025-08-24T23:25:18.458000+02:00https://community.sap.com/t5/human-capital-management-q-a/sap-enable-now-java-script-error-when-generating-a-document/qaq-p/14204560SAP Enable Now - JAVA script Error when generating a document2025-09-02T14:54:10.405000+02:00MelissaMEhttps://community.sap.com/t5/user/viewprofilepage/user-id/1419244<P>Dear Experts,</P><P>We are multiple Authors within a Creation environment.<BR />A MS Word Template has been created and uploaded, and everyone can access and use it. One specific Author gets a JAVA error when generating the document. The template document did work but this week, the Java error pops up and Producer crashes. No one else has this issues and the same template are used by all the Authors. The Java error only displays when the document template is generated, but other documents and outputs work fine.</P><P>The Author is using the Desktop App. </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MelissaME_0-1756817534097.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/307902i53CD32BE28187734/image-size/medium?v=v2&px=400" role="button" title="MelissaME_0-1756817534097.png" alt="MelissaME_0-1756817534097.png" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MelissaME_1-1756817567176.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/307903iA38758F90794C706/image-size/medium?v=v2&px=400" role="button" title="MelissaME_1-1756817567176.png" alt="MelissaME_1-1756817567176.png" /></span></P><P> </P>2025-09-02T14:54:10.405000+02:00https://community.sap.com/t5/technology-q-a/sac-story-filter-api-on-change-event/qaq-p/14207780SAC Story Filter API | On Change Event2025-09-04T20:25:06.036000+02:00SAC_Newbiehttps://community.sap.com/t5/user/viewprofilepage/user-id/1414078<P> </P><P><SPAN>Dear all,</SPAN></P><P><SPAN>I am currently working on a SAC story that consumes a BW query via live connection. The query is designed to rely solely on story filters and variables from the BW live model.</SPAN></P><P><SPAN>However, we’ve encountered a strange issue with a time variable. When opening the story and providing an initial input value, everything works as expected. But if we change the prompt while the story is already open, the numbers do not update. The only way to reflect the new values is by refreshing the page and restarting the story—this allows us to enter a new input value, and then the correct data is displayed.</SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAC_Newbie_0-1757010251464.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/309432iF67825A7E8761C33/image-size/medium?v=v2&px=400" role="button" title="SAC_Newbie_0-1757010251464.png" alt="SAC_Newbie_0-1757010251464.png" /></span></P><P> </P><P><SPAN>In summary, changing the prompt within the story has no impact on the on-the-fly calculations. It appears that no request is sent to BW unless the story is reloaded with the desired variable value.</SPAN></P><P><SPAN>Has anyone experienced something similar?</SPAN></P><P><SPAN>My proposed solution was to capture the click on the story or variable filter, track the change, and then trigger a story refresh. However, this approach is problematic since story filters do not support an onChange event. Reopening the story every time the timestamp needs to be changed is not a user-friendly solution.</SPAN></P><P><SPAN>Do you have any alternative ideas or workarounds to address this issue?</SPAN></P><P><SPAN>Best regards,</SPAN></P>2025-09-04T20:25:06.036000+02:00https://community.sap.com/t5/technology-q-a/cap-how-to-update-association-of-remote-entity-without-duplicating-entries/qaq-p/14220394CAP - How to Update Association of Remote Entity without Duplicating Entries in Local DB ?2025-09-17T18:36:24.204000+02:00DavidBrodmannhttps://community.sap.com/t5/user/viewprofilepage/user-id/168790<P>Dear Reader, </P><P>I have a question about how to deal with remote associations when updating their values from my local CAP application.</P><P>Imagine having a schema like this:</P><pre class="lia-code-sample language-abap"><code>entity Products : cuid {
name : String;
price : Integer;
order : Association to Orders;
/*
totalQuantiy : type of order.TotalQuantity;
startDate : type of order.MfgOrderPlannedStartDate;
endDate : type of order.MfgOrderPlannedEndDate;
*/
}
entity Orders as
projection on API_PRODUCTION_ORDER_2_SRV {
key ManufacturingOrder,
TotalQuantity,
MfgOrderPlannedStartDate,
MfgOrderPlannedEndDate,
}</code></pre><P>My local CAP application has a Fiori-Eelements frontend and displays all the fields of "Products" in an object page and I dynamically add associated fields to "TotalQuantity", "StartDate" and "EndDate" from remote entity "Orders". So when I am reading my "Products" I expand the read to the remote entity with my custom handler, everything is fine. </P><P>But what if I want to update certain elements, like "TotalQuantity", "StartDate" and "EndDate" from the remote entity?<BR />My Entity "Products" is draft enabled, but changes in the fields "TotalQuantity", "StartDate" and "EndDate" of the association are not triggering any "PUSH" or "UPDATE" event in the backend. </P><P>The problem is, I don't want to persistently add the fields "TotalQuantity", "StartDate" and "EndDate" to the entity "Products", that is why I added them in /* */.<BR />I tried making them virtual or computed fields, but then they are also read-only for the Fiori frontend and no event is triggered when changing them. New values are also not delivered to the backend on "save" button in the frontend. </P><P>So the question for me remains, is it only possible to send draft values from the frontend to the backend on persistently saved elements ?<BR />or is there another way I am missing, to somehow allow me to change the values in the fields "TotalQuantity", "StartDate" and "EndDate" and receive the new values in the backend, so I can update the remote entity ?</P><P>I hope i explained the problem somehow understandable, otherwise feel free to tell me so I can update <span class="lia-unicode-emoji" title=":slightly_smiling_face:">🙂</span> </P><P>thanks for your time, greetings</P><P>David</P>2025-09-17T18:36:24.204000+02:00https://community.sap.com/t5/technology-q-a/table-line-items-not-displaying-in-duplicated-form-copy-adobe-form/qaq-p/14262804Table line items not displaying in duplicated form copy (Adobe Form)2025-11-07T08:29:18.451000+01:00Meru_Khttps://community.sap.com/t5/user/viewprofilepage/user-id/1395614<P>Hi everyone,</P><P>I’m working on an Adobe Form where my client requires a duplicate copy of the form within the same PDF.</P><P>I have duplicated the entire form object, and both the original and duplicate forms are bound to the same XML data source.</P><P>Here’s the issue:</P><UL><LI><P>The field values (scripted fields) are displaying correctly in PDF preview.</P></LI><LI><P>However, the <STRONG>table line items</STRONG> are displayed only in the <STRONG>original form</STRONG> and not in the <STRONG>duplicate form copy</STRONG>.</P></LI><LI><P>The duplicate form is bound to the same XML nodes, but the table data is not replicating dynamically. even though I have tried using <STRONG>scripting logic</STRONG> to force data refresh and rebind events.</P></LI></UL><P>Has anyone else faced this kind of issue before?<BR />Would appreciate any suggestions or solutions to make the table data appear dynamically in both copies during preview or print.</P><P>Thanks in advance!<BR />— Merushetha Kannan<BR /><a href="https://community.sap.com/t5/c-khhcw49343/SAP+Forms+service+by+Adobe/pd-p/73555000100800000066" class="lia-product-mention" data-product="629-1">SAP Forms service by Adobe</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+Interactive+Forms+by+Adobe/pd-p/582573882271271216439685697820265" class="lia-product-mention" data-product="1065-1">SAP Interactive Forms by Adobe</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+BTP+ABAP+environment/pd-p/73555000100800001164" class="lia-product-mention" data-product="11-1">SAP BTP ABAP environment</a> <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1729438">@XFA</a> <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/2250587">@adobe</a> <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1715590">@SAPExpert</a> <a href="https://community.sap.com/t5/c-khhcw49343/JavaScript/pd-p/506421944534752500398156104608974" class="lia-product-mention" data-product="321-1">JavaScript</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+S%25252F4HANA+Cloud+ABAP+Environment/pd-p/60907aa9-99e9-4d5d-9103-8b970e9bc0a4" class="lia-product-mention" data-product="39-1">SAP S/4HANA Cloud ABAP Environment</a> </P>2025-11-07T08:29:18.451000+01:00https://community.sap.com/t5/technology-q-a/incorrect-data-display-in-adobe-livecycle-designer-mm-purchase-order-form/qaq-p/14262888Incorrect Data Display in Adobe LiveCycle Designer – MM Purchase Order Form2025-11-07T10:24:32.949000+01:00Meru_Khttps://community.sap.com/t5/user/viewprofilepage/user-id/1395614<P>Dear SAP Experts,</P><P>I am facing an issue where the data displayed in the <STRONG>Adobe LiveCycle Designer form</STRONG> for the <STRONG>MM Purchase Order (PO)</STRONG> does not match the values from the XML source, even though the XML mapping appears to be correct.</P><P><STRONG>Details:</STRONG></P><P>The XML data provided by the functional consultant has been verified and mapped correctly in the Adobe LiveCycle Designer.<BR />As per the XML source:</P><UL><LI><P><STRONG>Packing (ZK10)</STRONG> value = <STRONG>125</STRONG></P></LI><LI><P><STRONG>Forwarding (ZK03)</STRONG> value = <STRONG>23,000</STRONG></P></LI></UL><P>However, when previewing the <STRONG>Purchase Order form (MM-PO)</STRONG> in <STRONG>Adobe LiveCycle Designer</STRONG>, the table displays <STRONG>incorrect values</STRONG>:</P><UL><LI><P><STRONG>Packing (ZK10)</STRONG> = <STRONG>240</STRONG></P></LI><LI><P><STRONG>Forwarding (ZK03)</STRONG> = <STRONG>47,50,22,365</STRONG></P></LI></UL><P>The XML mapping and data structure are correct, but the values in the form table are not aligning with the source XML data. This seems to indicate a <STRONG>data binding or layout rendering issue</STRONG> within the LiveCycle form.</P><P>The root cause is not yet identified.<BR />Could you please help suggest possible reasons or solutions for this <STRONG>data mismatch</STRONG> issue?</P><P>I have attached the following for reference:<BR /><STRONG>FORM TABLE-ADOBE LIVECYCLE DESIGNER</STRONG></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Meru_K_0-1762506340705.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/337265i9D487E3F1B3638BF/image-size/medium?v=v2&px=400" role="button" title="Meru_K_0-1762506340705.png" alt="Meru_K_0-1762506340705.png" /></span></P><P><STRONG>XML DATA SOURCE:<BR /></STRONG></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Meru_K_2-1762506475827.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/337268i8628A754E3291A20/image-size/medium/is-moderation-mode/true?v=v2&px=400" role="button" title="Meru_K_2-1762506475827.png" alt="Meru_K_2-1762506475827.png" /></span></P><P><a href="https://community.sap.com/t5/c-khhcw49343/SAP+Interactive+Forms+by+Adobe/pd-p/582573882271271216439685697820265" class="lia-product-mention" data-product="1065-1">SAP Interactive Forms by Adobe</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+Interactive+Forms+by+Adobe/pd-p/582573882271271216439685697820265" class="lia-product-mention" data-product="1065-2">SAP Interactive Forms by Adobe</a> <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1862993">@Pa_Vi</a> <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1715590">@SAPExpert</a> <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/2250587">@adobe</a> <a href="https://community.sap.com/t5/c-khhcw49343/JavaScript/pd-p/506421944534752500398156104608974" class="lia-product-mention" data-product="321-1">JavaScript</a> </P><P> </P><P> </P>2025-11-07T10:24:32.949000+01:00https://community.sap.com/t5/technology-q-a/mismatch-in-table-display-incorrect-values-for-packing-and-forwarding-in/qaq-p/14262900Mismatch in Table Display – Incorrect Values for Packing and Forwarding in Adobe Form2025-11-07T10:53:35.029000+01:00Meru_Khttps://community.sap.com/t5/user/viewprofilepage/user-id/1395614<P>Dear SAP Experts,</P><P>The XML data provided by the functional consultant has been verified and is mapped correctly as per the SAP data in the Adobe LiveCycle designer. As per the XML:</P><UL><LI><STRONG>Packing (ZK10)</STRONG> value = <STRONG>125</STRONG></LI><LI><STRONG>Forwarding (ZK03)</STRONG> value = <STRONG>23,000</STRONG></LI></UL><P>However, when the Purchase Order (MM-PO) form is previewed in <STRONG>Adobe LiveCycle Designer</STRONG>, the table displays incorrect values:</P><UL><LI><STRONG>Packing (ZK10)</STRONG> is showing as <STRONG>240</STRONG></LI><LI><STRONG>Forwarding (ZK03)</STRONG> is showing as <STRONG>47,50,22,365</STRONG></LI></UL><P>The XML mapping and data structure appear to be correct, but the data displayed in the table(form- design Adobe LiveCycle designer) is not aligning properly with the source values. This indicates that the issue is likely related to <STRONG>data binding or layout rendering</STRONG> within the LiveCycle form.</P><P>The exact root cause is not yet identified. Could you please check and advise on the possible solution for this mismatch issue?</P><P>I have attached the screenshots for your reference</P><P><STRONG> FORM TABLE-ADOBE LIVECYCLE DESIGNER<BR /></STRONG></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Meru_K_0-1762508598027.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/337272i021E9A62F3B7391A/image-size/medium?v=v2&px=400" role="button" title="Meru_K_0-1762508598027.png" alt="Meru_K_0-1762508598027.png" /></span></P><P><STRONG>XML DATA SOURCE:<BR /></STRONG></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Meru_K_1-1762508631569.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/337273i6DFA47211A8F4CD5/image-size/medium/is-moderation-mode/true?v=v2&px=400" role="button" title="Meru_K_1-1762508631569.png" alt="Meru_K_1-1762508631569.png" /></span></P><P>Thanks for your support in Advance!<BR /><a href="https://community.sap.com/t5/c-khhcw49343/SAP+Interactive+Forms+by+Adobe/pd-p/582573882271271216439685697820265" class="lia-product-mention" data-product="1065-1">SAP Interactive Forms by Adobe</a> <a href="https://community.sap.com/t5/c-khhcw49343/SAP+Forms+service+by+Adobe/pd-p/73555000100800000066" class="lia-product-mention" data-product="629-1">SAP Forms service by Adobe</a> <a href="https://community.sap.com/t5/c-khhcw49343/JavaScript/pd-p/506421944534752500398156104608974" class="lia-product-mention" data-product="321-1">JavaScript</a> <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1862993">@Pa_Vi</a> <a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1398182">@SAPABAP</a> </P><P><STRONG><BR /><BR /><BR /><BR /><BR /><BR /></STRONG></P><P><STRONG><BR /><BR /><BR /><BR /><BR /><BR /></STRONG></P>2025-11-07T10:53:35.029000+01:00https://community.sap.com/t5/technology-q-a/oauth2technicaluserpropagation-in-javascript/qaq-p/14282670Oauth2TechnicalUserPropagation in javascript2025-12-03T09:23:25.510000+01:00avaneehttps://community.sap.com/t5/user/viewprofilepage/user-id/2268866<P>Hello everyone, I wanted to know what kind of configuration is needed to make an HTTP call with http/axios from SAP BTP CAP in NodeJS/javascript to an on-Premise system? I've tried with the Cloud SDK, but it does not support the Oauth2TechnicalUserPropagation in the destination for HTTP calls (executeHttpRequest fails because of this).</P><P>I've tried making an axios call with the "<CODE><SPAN class="">SAP-Connectivity-Technical-Authentication</SPAN></CODE>" header, with proxy credentials that I can get from the destination, but that does not seem to work. So I wanted to know what was the full configuration needed to make a call with this setup to On-Premise system. </P>2025-12-03T09:23:25.510000+01:00