<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: CDS SmartLink URL generation in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cds-smartlink-url-generation/qaa-p/13922816#M4890372</link>
    <description>&lt;P&gt;Hi Marvin,&lt;/P&gt;&lt;P&gt;URL is generated automatically based on the CDS view you are navigating from in form of&amp;nbsp;&lt;EM&gt;#SemanticObject-action?&amp;lt;param1&amp;gt;=&amp;lt;value1&amp;gt;&amp;amp;&amp;lt;paramX&amp;gt;=&amp;lt;valueX&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;where &lt;EM&gt;param1&lt;/EM&gt; to &lt;EM&gt;paramX&lt;/EM&gt; are all properties' names from the CDS that the page is generated from. I.e. if I have this navigation defined&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;@Consumption.semanticObject: 'show'
@UI.fieldGroup: [
{
	qualifier: 'CustomerInfo',
	type: #WITH_INTENT_BASED_NAVIGATION,
	semanticObjectAction: 'Customer',	
	requiresContext: true,  
	position: 10
}]
CustomerFirstName,
CustomerLastName&lt;/LI-CODE&gt;&lt;P&gt;...some of the URL parameters are the &lt;EM&gt;CustomerFirstName&amp;nbsp;&lt;/EM&gt;and&amp;nbsp;&lt;EM&gt;CustomerLastName&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In the resulting app that resolves from the &lt;EM&gt;#Customer-show&lt;/EM&gt;&amp;nbsp;all the parameters should have the same names as CDS properties, so that they can be resolved from parsed URL on the target app launch. The rest of the params should be ignored, as the target app does not need them for proper app initialization.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2024 15:34:00 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2024-10-29T15:34:00Z</dc:date>
    <item>
      <title>CDS SmartLink URL generation</title>
      <link>https://community.sap.com/t5/technology-q-a/cds-smartlink-url-generation/qaq-p/13885296</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;many CDS Based Applications have implemented a SmartLink that allows you to navigate to a related application.&lt;/P&gt;&lt;P&gt;E.g.: the CDS View 'C_SchedgAgrmtHdrObjPg' which is showing the Details in the MyInbox for approving scheduling agreements.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2024-10-02 10_13_14-Purchase Scheduling Agreement und 5 weitere Seiten - Geschäftlich – Microsoft​ E.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/174178i34682056BC2F9745/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2024-10-02 10_13_14-Purchase Scheduling Agreement und 5 weitere Seiten - Geschäftlich – Microsoft​ E.png" alt="2024-10-02 10_13_14-Purchase Scheduling Agreement und 5 weitere Seiten - Geschäftlich – Microsoft​ E.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once I click on one of the Links, the respective Target Mapping gets called and in addition, URL Parameters will get attached.&lt;/P&gt;&lt;P&gt;E.g.:&amp;nbsp;&lt;A target="_blank" rel="noopener"&gt;https://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/sap/bc/ui2/flp#PurchaseSchedulingAgreement-displayFactSheet?CashDiscount1Days=30&amp;amp;CashDiscount1Percent=0.000&amp;amp;CashDiscount2Days=0&amp;amp;CashDiscount2Percent=0.000&amp;amp;CompanyCode=xxx&amp;amp;CompanyCodeName=xxx&amp;amp;CompanyVATRegistration=xxx&amp;amp;CreatedByUser=xxx&amp;amp;CreatedByUserFullName=xxx&amp;amp;DocumentCurrency=xxx&amp;amp;ExchangeRateIsFixed=false&amp;amp;IncotermsClassification=xxx&amp;amp;IncotermsLocation1=xxx&amp;amp;IncotermsLocation2=&amp;amp;..&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;So I was wondering where the URL gets generated, to understand it in gernal as well.&amp;nbsp;&lt;BR /&gt;The specific reason why I'm asking is, that we want to integrate a custom application via SmartLink which is working fine by creating a Target Mapping with the same Semantic Object, but in addition we want to attach a custom URL parameter as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you guys can help me out to understand how these Links are getting generated.&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;Br,&lt;BR /&gt;Marvin&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 09:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cds-smartlink-url-generation/qaq-p/13885296</guid>
      <dc:creator>marvin_heibert</dc:creator>
      <dc:date>2024-10-02T09:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: CDS SmartLink URL generation</title>
      <link>https://community.sap.com/t5/technology-q-a/cds-smartlink-url-generation/qaa-p/13922816#M4890372</link>
      <description>&lt;P&gt;Hi Marvin,&lt;/P&gt;&lt;P&gt;URL is generated automatically based on the CDS view you are navigating from in form of&amp;nbsp;&lt;EM&gt;#SemanticObject-action?&amp;lt;param1&amp;gt;=&amp;lt;value1&amp;gt;&amp;amp;&amp;lt;paramX&amp;gt;=&amp;lt;valueX&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;where &lt;EM&gt;param1&lt;/EM&gt; to &lt;EM&gt;paramX&lt;/EM&gt; are all properties' names from the CDS that the page is generated from. I.e. if I have this navigation defined&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;@Consumption.semanticObject: 'show'
@UI.fieldGroup: [
{
	qualifier: 'CustomerInfo',
	type: #WITH_INTENT_BASED_NAVIGATION,
	semanticObjectAction: 'Customer',	
	requiresContext: true,  
	position: 10
}]
CustomerFirstName,
CustomerLastName&lt;/LI-CODE&gt;&lt;P&gt;...some of the URL parameters are the &lt;EM&gt;CustomerFirstName&amp;nbsp;&lt;/EM&gt;and&amp;nbsp;&lt;EM&gt;CustomerLastName&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In the resulting app that resolves from the &lt;EM&gt;#Customer-show&lt;/EM&gt;&amp;nbsp;all the parameters should have the same names as CDS properties, so that they can be resolved from parsed URL on the target app launch. The rest of the params should be ignored, as the target app does not need them for proper app initialization.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 15:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cds-smartlink-url-generation/qaa-p/13922816#M4890372</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2024-10-29T15:34:00Z</dc:date>
    </item>
  </channel>
</rss>

