<?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: Generated Key Column and Key Generation Transform in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/generated-key-column-and-key-generation-transform/qaa-p/373610#M29754</link>
    <description>&lt;P&gt;Thanks Ravi!&lt;/P&gt;&lt;P&gt;But then why is it generating random values under Cust_gen column. Also now if suppose I insert 2 new records in my source and set generate key column to Cust_gen(which is not present in source) then what will be the output.&lt;/P&gt;&lt;P&gt;Can you please help!&lt;/P&gt;&lt;P&gt;One more clarification required: - Under generated key column we have to select that common column(which has unique value or is primary key) which is present in both source and target, right?&lt;/P&gt;</description>
    <pubDate>Sat, 31 Dec 2016 10:56:25 GMT</pubDate>
    <dc:creator>rajan_burad</dc:creator>
    <dc:date>2016-12-31T10:56:25Z</dc:date>
    <item>
      <title>Generated Key Column and Key Generation Transform</title>
      <link>https://community.sap.com/t5/technology-q-a/generated-key-column-and-key-generation-transform/qaq-p/373608</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I implemented a scenario in which I used source -&amp;gt; query -&amp;gt; table_comparison -&amp;gt; target. In target I added Cust_gen column and after job execution I found that it contains null values which is correct as I have not added any key generation transform to get the values.&lt;/P&gt;&lt;P&gt;Now after this I added Key generation transform to check how it actually works and added a row in source and after execution of job i found that cust_gen column has a set of  values for every record but I have read that it looks for maximum existing value and then assigns value to newly inserted records. So as per my understanding the maximum value in source is 501 and the value of cust_gen should start from 501.&lt;/P&gt;&lt;P&gt;Can someone please help me that how does this Key generation transform works and also why every record has got values of cust_gen.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/13016-error-01.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/13017-error-02.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajan&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 11:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generated-key-column-and-key-generation-transform/qaq-p/373608</guid>
      <dc:creator>rajan_burad</dc:creator>
      <dc:date>2016-12-29T11:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generated Key Column and Key Generation Transform</title>
      <link>https://community.sap.com/t5/technology-q-a/generated-key-column-and-key-generation-transform/qaa-p/373609#M29753</link>
      <description>&lt;P&gt;Key_gen transform looks for the max value in the target, not in the source.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 11:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generated-key-column-and-key-generation-transform/qaa-p/373609#M29753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-30T11:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Generated Key Column and Key Generation Transform</title>
      <link>https://community.sap.com/t5/technology-q-a/generated-key-column-and-key-generation-transform/qaa-p/373610#M29754</link>
      <description>&lt;P&gt;Thanks Ravi!&lt;/P&gt;&lt;P&gt;But then why is it generating random values under Cust_gen column. Also now if suppose I insert 2 new records in my source and set generate key column to Cust_gen(which is not present in source) then what will be the output.&lt;/P&gt;&lt;P&gt;Can you please help!&lt;/P&gt;&lt;P&gt;One more clarification required: - Under generated key column we have to select that common column(which has unique value or is primary key) which is present in both source and target, right?&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2016 10:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generated-key-column-and-key-generation-transform/qaa-p/373610#M29754</guid>
      <dc:creator>rajan_burad</dc:creator>
      <dc:date>2016-12-31T10:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Generated Key Column and Key Generation Transform</title>
      <link>https://community.sap.com/t5/technology-q-a/generated-key-column-and-key-generation-transform/qaa-p/373611#M29755</link>
      <description>&lt;P&gt;Hi Rajan,&lt;/P&gt;&lt;P&gt;The surrogate key column is created in BODS (in query transform) and this column should be made primary key and use this in Key generation transform. It will create keys serially. it will not create random keys.&lt;/P&gt;&lt;P&gt;Please let me know if you need more info&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 11:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generated-key-column-and-key-generation-transform/qaa-p/373611#M29755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-01-05T11:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Generated Key Column and Key Generation Transform</title>
      <link>https://community.sap.com/t5/technology-q-a/generated-key-column-and-key-generation-transform/qaa-p/373612#M29756</link>
      <description>&lt;P&gt;Hello Ravi,&lt;/P&gt;&lt;P&gt;I added this surrogate column (Cust_gen) in query transform and same applied in TC and Key_gen and ran the job, but still found that its giving null values.&lt;/P&gt;&lt;P&gt;Also I mapped the input cust_id column with this surrogate key.&lt;/P&gt;&lt;P&gt;I have attached the screenshots of my job.&lt;/P&gt;&lt;P&gt;Please let me know where did I went wrong.&lt;/P&gt;&lt;P&gt;Thanks much for your help!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;A href="https://answers.sap.com/storage/temp/14239-error-03.png"&gt;error-03.png&lt;/A&gt;&lt;A href="https://answers.sap.com/storage/temp/14240-error-04.png"&gt;error-04.png&lt;/A&gt;&lt;A href="https://answers.sap.com/storage/temp/14261-error-05.png"&gt;error-05.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2017 08:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generated-key-column-and-key-generation-transform/qaa-p/373612#M29756</guid>
      <dc:creator>rajan_burad</dc:creator>
      <dc:date>2017-01-08T08:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Generated Key Column and Key Generation Transform</title>
      <link>https://community.sap.com/t5/technology-q-a/generated-key-column-and-key-generation-transform/qaa-p/373613#M29757</link>
      <description>&lt;P&gt;Hi Rajan,&lt;/P&gt;&lt;P&gt;Pass 1 in the mapping for cust_gen in query transform. remove cust_gen from generated key column in Table comparison and also please picture of key_gen transform.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 06:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generated-key-column-and-key-generation-transform/qaa-p/373613#M29757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-01-26T06:35:26Z</dc:date>
    </item>
  </channel>
</rss>

