<?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: Getting values from fixed value in domain in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697931#M624591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks heilmen.&lt;/P&gt;&lt;P&gt;I got idea.&lt;/P&gt;&lt;P&gt;Im working with module pool. so the field company code is displayed in screen and next to it text field where the corresponding text value should be displayed.&lt;/P&gt;&lt;P&gt;can i use &amp;lt;b&amp;gt;(FIELD field name MODULE module name ON REQUEST)&amp;lt;/b&amp;gt; to do this? will it displayt the text as soon as the value is selected from F4 value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2007 19:16:35 GMT</pubDate>
    <dc:creator>former_member671224</dc:creator>
    <dc:date>2007-08-28T19:16:35Z</dc:date>
    <item>
      <title>Getting values from fixed value in domain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697927#M624587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There is one field called company code. for this field if the user select the value from drop down box(F4 help),  then it should display the corresponding text. the thing is, the values are getting from fixed value which is defined in domain, and it is not in value table or text table. so how i can get this correponding text value for the selected value? Is there any options?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me it urgent...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 18:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697927#M624587</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2007-08-28T18:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting values from fixed value in domain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697928#M624588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this function module to retrieve the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


data: idd07v type table of  dd07v with header line.

call function 'DD_DOMVALUES_GET'
     exporting
          domname        = 'RFBSK'   "&amp;lt;-- Your Domain Here
          text           = 'X'
          langu          = sy-langu
     tables
          dd07v_tab      = idd07v
     exceptions
          wrong_textflag = 1
          others         = 2.

loop at idd07v.
  write:/ idd07v-domvalue_l, idd07v-ddtext.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 18:54:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697928#M624588</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-28T18:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting values from fixed value in domain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697929#M624589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's some code to start you off:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  r_bstat-sign   = 'I'.
  select domvalue_l domvalue_h
    from  dd07l
    into  (d1, d2)
    where domname  = 'BSTAT'
    and   as4local = 'A'.
    if d2 is initial.
      r_bstat-option = 'EQ'.
      r_bstat-low    = d1.
      clear r_bstat-high.
    else.
      r_bstat-option = 'BT'.
      r_bstat-low    = d1.
      r_bstat-high   = d2.
    endif.
    append r_bstat.
  endselect.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 18:57:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697929#M624589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T18:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting values from fixed value in domain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697930#M624590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USe FM   DDUT_DOMVALUES_GET Pass Domain name and you will get the list of values...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 19:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697930#M624590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T19:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting values from fixed value in domain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697931#M624591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks heilmen.&lt;/P&gt;&lt;P&gt;I got idea.&lt;/P&gt;&lt;P&gt;Im working with module pool. so the field company code is displayed in screen and next to it text field where the corresponding text value should be displayed.&lt;/P&gt;&lt;P&gt;can i use &amp;lt;b&amp;gt;(FIELD field name MODULE module name ON REQUEST)&amp;lt;/b&amp;gt; to do this? will it displayt the text as soon as the value is selected from F4 value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 19:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697931#M624591</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2007-08-28T19:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting values from fixed value in domain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697932#M624592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm actually a little confused now, company code text is not stored at domain level, it is stored in the BUTXT field of table T001.  Am I missing something.  Anyway once you get the text, you will need to use the function module 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example, is implemented using a selection-screen, but the coding is similar to implement in a dynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0002 .

parameters: p_bukrs type t001-bukrs,
            p_butxt type t001-butxt,
            p_ort01 type t001-ort01,
            p_land1 type t001-land1.

data: dynfields type table of dynpread with header line.
data: return type table of ddshretval with header line.

at selection-screen on value-request for p_bukrs.

  call function 'F4IF_FIELD_VALUE_REQUEST'
       exporting
            tabname           = 'T001'
            fieldname         = 'BUKRS'
            dynpprog          = sy-cprog
            dynpnr            = sy-dynnr
            dynprofield       = 'P_BUKRS'
       tables
            return_tab        = return
       exceptions
            field_not_found   = 1
            no_help_for_field = 2
            inconsistent_help = 3
            no_values_found   = 4
            others            = 5.

  read table return with key fieldname = 'P_BUKRS'.

* Add it back to the dynpro.
  dynfields-fieldname = return-retfield.
  dynfields-fieldvalue =  return-fieldval.
  append dynfields.

* Get the company code from db and add to dynpro
  data: xt001 type t001.

  clear xt001.
  select single * into xt001
         from t001
        where bukrs = return-fieldval.

  dynfields-fieldname = 'P_BUTXT'.
  dynfields-fieldvalue = xt001-butxt.
  append dynfields.

  dynfields-fieldname = 'P_ORT01'.
  dynfields-fieldvalue = xt001-ort01.
  append dynfields.

  dynfields-fieldname = 'P_LAND1'.
  dynfields-fieldvalue = xt001-land1.
  append dynfields.

* Update the dynpro values.
  call function 'DYNP_VALUES_UPDATE'
       exporting
            dyname     = sy-cprog
            dynumb     = sy-dynnr
       tables
            dynpfields = dynfields
       exceptions
            others     = 8.

start-of-selection.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 19:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697932#M624592</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-28T19:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting values from fixed value in domain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697933#M624593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is actually Zcompany.&lt;/P&gt;&lt;P&gt;Problem solved. &lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 20:23:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-values-from-fixed-value-in-domain/m-p/2697933#M624593</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2007-08-28T20:23:39Z</dc:date>
    </item>
  </channel>
</rss>

