<?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: Get domain value range dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155127#M1820780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know &lt;A __default_attr="302712" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Paul Hardy" href="https://community.sap.com/" modifiedtitle="true" title="Paul Hardy"&gt;&lt;/A&gt; did something similar! Maybe he can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards and good luck,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Mar 2014 08:15:31 GMT</pubDate>
    <dc:creator>bruno_esperanca</dc:creator>
    <dc:date>2014-03-08T08:15:31Z</dc:date>
    <item>
      <title>Get domain value range dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155124#M1820777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a dynamic method that retrieves the value range (key-value) of a domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is pretty simple to get fixed values using FM &lt;STRONG&gt;DD_DOMVALUES_GET&lt;/STRONG&gt;, but how do I manage a value table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Field XFELD has fixed values so use &lt;STRONG&gt;DD_DOMVALUES_GET&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Fields BUKRS and SPRAS have value tables.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I can get the value table name using FM &lt;STRONG&gt;DDIF_FIELDINFO_GET&lt;/STRONG&gt; and retrieve the data from that table. Unfortunately, I can be sure to get the right key field, but I can't be sure to get the right value field, it depends on the value table definition.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUKRS&lt;/STRONG&gt; has T001 that stores the text in field BUTXT of the same instead SPRAS has T002 that stores the text in text table T002T in field SPTXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any standard function module that does the trick?&lt;/P&gt;&lt;P&gt;In this &lt;A _jive_internal="true" href="https://answers.sap.com/thread/797171"&gt;thread&lt;/A&gt; &lt;A __default_attr="2331" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Gregor Wolf" href="https://community.sap.com/"&gt;&lt;/A&gt; managed it manually using a case statement, but I would avoid it, too many case statements...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 22:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155124#M1820777</guid>
      <dc:creator>_IvanFemia_</dc:creator>
      <dc:date>2014-03-07T22:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get domain value range dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155125#M1820778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be possible since the system is using it for value helps, maybe you will find the answer there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 23:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155125#M1820778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-07T23:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get domain value range dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155126#M1820779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ivan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to fetch the domain value range by putting a selection query on DD07V table by passing the domain name as the key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Abhinav Goel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Mar 2014 05:34:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155126#M1820779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-08T05:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get domain value range dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155127#M1820780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know &lt;A __default_attr="302712" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Paul Hardy" href="https://community.sap.com/" modifiedtitle="true" title="Paul Hardy"&gt;&lt;/A&gt; did something similar! Maybe he can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards and good luck,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Mar 2014 08:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155127#M1820780</guid>
      <dc:creator>bruno_esperanca</dc:creator>
      <dc:date>2014-03-08T08:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get domain value range dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155128#M1820781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I am doing is not quite the same but similar - I am dynamically getting the text description when I have a data element and the value of the variable that references that data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was pointed to CL_TEXT_IDENTIFIER which when you pass in the domain and the value magicaly brings back the text description, despite the fact that, as far as I can see, SAP has set up almost every text table slightly differently - sometimes in the main table like T001W or lFA1, sometimes which just the language and the value as a key, sometimes with extra key fields (e.g. MAKT) and sometimes with added organisational key fields e.g. the same GL account have different text descriptions in different chart of accounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think at some stage CASE statements or subclasses are going to have to come into the equation, due to the utter lack of consistency in SAP table defintions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheersy Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Mar 2014 23:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155128#M1820781</guid>
      <dc:creator>hardyp180</dc:creator>
      <dc:date>2014-03-08T23:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get domain value range dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155129#M1820782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;I am currently looking for exactly the same solution.It would be great if you could share the&amp;nbsp; approach have used&amp;nbsp; read dynamically key-value from a domain with value range table.&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Neeta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 09:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155129#M1820782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-12T09:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get domain value range dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155130#M1820783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neeta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;luckily it was a test case, not a real project. So in the meantime I managed it using a case statement.&lt;/P&gt;&lt;P&gt;It is not the solution that I like but I had no time to investigate further in a better solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 15:27:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-domain-value-range-dynamically/m-p/10155130#M1820783</guid>
      <dc:creator>_IvanFemia_</dc:creator>
      <dc:date>2015-02-13T15:27:54Z</dc:date>
    </item>
  </channel>
</rss>

