Skip to Content
0
Jan 21, 2023 at 03:43 PM

Error on Smart Variant with MTA in Business Application Studio

134 Views

Hi,

I am using a SmartTable/SmartFilter with a variant. Everything works fine with it when I test it locally in Business Application Studio. But then when I deploy it via MTA the variants are unable to be saved.

Here is the section of XML where I use the variant:

<smartFilterBar:SmartFilterBar id="smartFilterBar" filterChange="onSmartBarFilterChange" initialise="onInitSmartFilterBar" initialized="onInitSmartFilterBar" class="sapContrastPlus" persistencyKey="AvgDelTimeSmartFilterPKey" entitySet="YY1_POGoodsReceiptWF_API" enableBasicSearch="false" hSpacing="0"> 

When I run it from BAS, it works just fine:

image.png

However, once I build/deploy this via the MTA.yaml then when I run it It can not load the variant data:

image.png

When you look into the details, the Save Variant fails with a 404 (Not Found) message on the call to /sap/bc/lrep/actions/getcsrftoken/ This appears to be part of the SAPUI5 Flexibility Service.

image.png

Is there something that I need to add to the mta.yaml file that will cause that service to be active in the SAP Managed Router, or do I need to re-direct it someplace via a destination?

I'm confused really as to where that variant is being stored when I run it locally, and where it is supposed to be stored when deployed as an MTA app.

Thanks,

Jeff

Attachments

image.png (13.9 kB)
image.png (16.1 kB)
image.png (9.4 kB)