<?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: Change History Details Report in Spend Management Q&amp;A</title>
    <link>https://community.sap.com/t5/spend-management-q-a/change-history-details-report/qaa-p/11048614#M166548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for suggesting me .&lt;/P&gt;&lt;P&gt;However , while executing the query in SAP sourcing , one of the column is -&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;The value of '{0}' was changed from '{2}' to '{3}'&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;and next column is parameter values -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; &lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;paramcount=5 4=Service Registration 3=true 2=false 1=AGCLMD21-21-00 0=DKT0014&amp;nbsp; &lt;/STRONG&gt;(&amp;nbsp; in a singe row )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt; So somehow in the query result , I have to replace&amp;nbsp; the values so that user can run this report and extract in spreadsheet .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Can you please guide me ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 05:50:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-05-05T05:50:53Z</dc:date>
    <item>
      <title>Change History Details Report</title>
      <link>https://community.sap.com/t5/spend-management-q-a/change-history-details-report/qaq-p/11048611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a requirement for creating change history details report for Project . I am aware of that we can see change history details for each documents but the requirement is to create a report which we can run and see change history details for all documents .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The approach we have taken so far is - creating query definition joining FCI_DOC_CHG_HISTORY and FCI_PRO_PROJECTS and in the result field we have defined&amp;nbsp; EVENT_RESOURCE for capturing document change details and field type is - string resource . However , while running the query we are getting result as &lt;/P&gt;&lt;P&gt;The value of '{0}' was changed from '{2}' to '{3}'&amp;nbsp; &lt;/P&gt;&lt;P&gt;User account {0} was created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe we need to replace the values with respective parameters . Now while I also add the column - EVENT_PARAMS I am getting parameter values as below &lt;/P&gt;&lt;P&gt;paramcount=5 4=Service Registration 3=true 2=false 1=AGCLMD21-21-00 0=DKT0014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So looks like the value for {0} to be replaced with the value appearing for parameter 0 ( which is DKT0014 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me how to replace the values ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Sudipta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 07:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/change-history-details-report/qaq-p/11048611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-15T07:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change History Details Report</title>
      <link>https://community.sap.com/t5/spend-management-q-a/change-history-details-report/qaa-p/11048612#M166546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This type of message format is actually java-specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do have a possibility of implementing the same in Oracle DB, and have it available in the select list but it is not recommended because it requires direct changes at database level. &lt;/P&gt;&lt;P&gt;I have not tested this and I cannot confirm if it will work, because there are some differences between Oracle standard DB and Oracle DB for SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at Oracle's details for implementing this in the database and decide if it is actually mandatory to have:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.oracle.com/technetwork/database/enterprise-edition/parameterized-custom-messages-098893.html" title="http://www.oracle.com/technetwork/database/enterprise-edition/parameterized-custom-messages-098893.html"&gt;Parameterized Custom Message&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bogdan Toma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 15:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/change-history-details-report/qaa-p/11048612#M166546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-15T15:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change History Details Report</title>
      <link>https://community.sap.com/t5/spend-management-q-a/change-history-details-report/qaa-p/11048613#M166547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;It's a little tricky and gets ugly if not organized, but this can also be done right in the query by using combinations of standard Oracle functions in the SQL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/cd/E17952_01/refman-5.1-en/string-functions.html" title="https://docs.oracle.com/cd/E17952_01/refman-5.1-en/string-functions.html"&gt;12.5 String Functions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/cd/E17952_01/refman-5.1-en/regexp.html" title="https://docs.oracle.com/cd/E17952_01/refman-5.1-en/regexp.html"&gt;12.5.2 Regular Expressions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 14:12:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/change-history-details-report/qaa-p/11048613#M166547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-22T14:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change History Details Report</title>
      <link>https://community.sap.com/t5/spend-management-q-a/change-history-details-report/qaa-p/11048614#M166548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for suggesting me .&lt;/P&gt;&lt;P&gt;However , while executing the query in SAP sourcing , one of the column is -&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;The value of '{0}' was changed from '{2}' to '{3}'&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;and next column is parameter values -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; &lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;paramcount=5 4=Service Registration 3=true 2=false 1=AGCLMD21-21-00 0=DKT0014&amp;nbsp; &lt;/STRONG&gt;(&amp;nbsp; in a singe row )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt; So somehow in the query result , I have to replace&amp;nbsp; the values so that user can run this report and extract in spreadsheet .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Can you please guide me ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 05:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/change-history-details-report/qaa-p/11048614#M166548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-05T05:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change History Details Report</title>
      <link>https://community.sap.com/t5/spend-management-q-a/change-history-details-report/qaa-p/11048615#M166549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the gist of how to do it with a SQL expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://stackoverflow.com/questions/83856/how-to-replace-multiple-strings-together-in-oracle" title="http://stackoverflow.com/questions/83856/how-to-replace-multiple-strings-together-in-oracle"&gt;how&lt;BR /&gt;to replace multiple strings together in Oracle - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAP CLM’s “Query Definition” editor, you will add a new field on the “Result Fields” tab and you write your expression in the “Database Column Name” field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example in the link is from a function and not a simple query, but you can find what you need by focusing on this piece:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; replace&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;mycol&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="str"&gt;'{1}'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="str"&gt;'myoneval'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;),&lt;/SPAN&gt; &lt;SPAN class="str"&gt;'{2}'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; mytwoval&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This covers replacing the parameter tag in the string but, of course, you have to extract the appropriate value &lt;SPAN class="pun"&gt;from the EVENT_PARAMS column. I think this is the most powerful way to do it: &lt;A href="http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions131.htm" title="http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions131.htm"&gt;REGEXP_SUBSTR&lt;/A&gt;&lt;/SPAN&gt;.&amp;nbsp; You basically will insert this function in place of myoneval, mytwoval etc in the example.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;I don't have time at the moment, but if you want to post the SQL from the first tab, I can try to look at it later, if you need help-- or ask a follow-up question here. I’m also interested in this for my own use and don’t mind helping out, if I can.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;HTH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;Mike&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Console'; font-size: 10pt; mso-bidi-font-size: 11.0pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 11:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/change-history-details-report/qaa-p/11048615#M166549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-06T11:43:52Z</dc:date>
    </item>
  </channel>
</rss>

