<?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>topic Re: CDS View - Appending 0 to a variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-appending-0-to-a-variable/m-p/480377#M15777</link>
    <description>&lt;P&gt;Use the CAST operator to cast the intermediate types to something that fits your purpose. Think about using LPAD and other functions.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abencds_f1_cast_expression.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abencds_f1_cast_expression.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2017 15:06:58 GMT</pubDate>
    <dc:creator>retired_member</dc:creator>
    <dc:date>2017-04-25T15:06:58Z</dc:date>
    <item>
      <title>CDS View - Appending 0 to a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-appending-0-to-a-variable/m-p/480376#M15776</link>
      <description>&lt;P&gt;In CDS view, I have to pass prps.psphi in the output appending 0s to it and have to make it upto 24 char and then I need to concatenate  the value with EBELN. I am facing two problems regarding this.&lt;/P&gt;&lt;P&gt;1. Appeding 0 to the variable of shorter length.&lt;/P&gt;&lt;P&gt;2. While concatenating its taking the internal numeric number with it. means - &lt;/P&gt;&lt;P&gt;I have written - "concat( prps.psphi , ekkn.ebeln )  end as uniquekey,"&lt;/P&gt;&lt;P&gt;I am getting data like - "00004566&lt;EM&gt;4000000001&lt;/EM&gt;" &lt;/P&gt;&lt;P&gt;(Where - prps.psphi = 00004566 &amp;amp; ekkn.ebeln = 4000000001 )&lt;/P&gt;&lt;P&gt;but I want - "0000000000000ABCDE.LOO18&lt;EM&gt;4000000001&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;(Where - external value of PRPS.PSPHI - ABCDE.LOO18 &amp;amp; ekkn.ebeln = 4000000001  )&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 14:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-appending-0-to-a-variable/m-p/480376#M15776</guid>
      <dc:creator>sabarna17</dc:creator>
      <dc:date>2017-04-25T14:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View - Appending 0 to a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-appending-0-to-a-variable/m-p/480377#M15777</link>
      <description>&lt;P&gt;Use the CAST operator to cast the intermediate types to something that fits your purpose. Think about using LPAD and other functions.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abencds_f1_cast_expression.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abencds_f1_cast_expression.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 15:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-appending-0-to-a-variable/m-p/480377#M15777</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-04-25T15:06:58Z</dc:date>
    </item>
  </channel>
</rss>

