<?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: Retrieve a query value into a variable in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/retrieve-a-query-value-into-a-variable/qaa-p/11229532#M4151440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get the SI_CHILDREN value as below&lt;/P&gt;&lt;P&gt;String si_children=InfoObjectInbox.properties().getProperty("SI_CHILDREN").getValue().toString();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get the names as well, you would need to again query to infostore to get the names of the children in an inbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the steps to follow for that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Get the Inbox ID's as per your query&lt;/P&gt;&lt;P&gt;SELECT SI_ID,SI_NAME FROM CI_INFOOBJECTS WHERE SI_KIND= 'Inbox' AND SI_CHILDREN&amp;gt;0 ORDER BY SI_CHILDREN DESC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. From the above query you would retrieve the SI_ID of the inbox's. Now this id becomes as a parent id to get the details of all the objects present in a inbox. Below is the query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SI_ID,SI_NAME,SI_KIND FROM CI_INFOOBJECTS WHERE SI_PARENTID=the si_id from above query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if any issues in understanding the concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prithvi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prithviraj Shekhawat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2015 08:14:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-09-04T08:14:09Z</dc:date>
    <item>
      <title>Retrieve a query value into a variable</title>
      <link>https://community.sap.com/t5/technology-q-a/retrieve-a-query-value-into-a-variable/qaq-p/11229531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts!&lt;/P&gt;&lt;P&gt;In the code below, I want to list in a browser, the Inbox names and the quantity of objects next to each.&lt;/P&gt;&lt;P&gt;While the function InfoObjectInbox.getTittle() gets me the name (SI_NAME) I do not find one that can get me the quantity (SI_CHILDREN), perhaps into the line: int aInt = ??????;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/783403" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 19:36:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/retrieve-a-query-value-into-a-variable/qaq-p/11229531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-03T19:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve a query value into a variable</title>
      <link>https://community.sap.com/t5/technology-q-a/retrieve-a-query-value-into-a-variable/qaa-p/11229532#M4151440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get the SI_CHILDREN value as below&lt;/P&gt;&lt;P&gt;String si_children=InfoObjectInbox.properties().getProperty("SI_CHILDREN").getValue().toString();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get the names as well, you would need to again query to infostore to get the names of the children in an inbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the steps to follow for that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Get the Inbox ID's as per your query&lt;/P&gt;&lt;P&gt;SELECT SI_ID,SI_NAME FROM CI_INFOOBJECTS WHERE SI_KIND= 'Inbox' AND SI_CHILDREN&amp;gt;0 ORDER BY SI_CHILDREN DESC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. From the above query you would retrieve the SI_ID of the inbox's. Now this id becomes as a parent id to get the details of all the objects present in a inbox. Below is the query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SI_ID,SI_NAME,SI_KIND FROM CI_INFOOBJECTS WHERE SI_PARENTID=the si_id from above query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if any issues in understanding the concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prithvi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prithviraj Shekhawat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 08:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/retrieve-a-query-value-into-a-variable/qaa-p/11229532#M4151440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-04T08:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve a query value into a variable</title>
      <link>https://community.sap.com/t5/technology-q-a/retrieve-a-query-value-into-a-variable/qaa-p/11229533#M4151441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prithvi,&lt;/P&gt;&lt;P&gt;Thanks for your reply and your help.&lt;/P&gt;&lt;P&gt;I was able to get the results I wanted!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 16:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/retrieve-a-query-value-into-a-variable/qaa-p/11229533#M4151441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-08T16:28:57Z</dc:date>
    </item>
  </channel>
</rss>

