<?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: Dynamic Selection text. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069046#M972753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a possiblity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:   g_atwrt TYPE atwrt.
DATA:   sw.
*G_FIELD_TEXT TYPE DYNFNAM.

*G_FIELD_TEXT = 'MYFIELD'. "==&amp;gt; RUNTIME VALUE

SELECTION-SCREEN: BEGIN OF LINE.
PARAMETERS: gfldtext(20) MODIF ID xxx.
SELECTION-SCREEN: POSITION 23.
SELECT-OPTIONS: s_vbcod FOR g_atwrt.
SELECTION-SCREEN: END OF LINE.

AT SELECTION-SCREEN OUTPUT.
  CASE sw.
    WHEN 'X'.
      gfldtext = 'Text Two'.
      CLEAR sw.
    WHEN OTHERS.
      gfldtext = 'Text One'.
      sw = 'X'.
  ENDCASE.

  LOOP AT SCREEN.
    IF screen-group1 = 'XXX'.
      screen-input = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2008 12:28:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-27T12:28:38Z</dc:date>
    <item>
      <title>Dynamic Selection text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069042#M972749</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;I have a requirement, where one of the select-options on the selection screen needs to get its name on runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be more precise, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the following code in place : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:   G_ATWRT TYPE ATWRT,
G_FIELD_TEXT TYPE DYNFNAM.

G_FIELD_TEXT = 'MYFIELD'. "==&amp;gt; RUNTIME VALUE
                                           
SELECT-OPTIONS: S_VBCOD FOR G_ATWRT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is that instead of maintaining the field name value to be displayed for S_VBCOD under SELECTION TEXTS, the value should to be displayed should come from  G_FIELD_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the question is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched extensively on the forum/help for this, unfortunately could not find an answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas, experts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 11:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069042#M972749</guid>
      <dc:creator>vimalv</dc:creator>
      <dc:date>2008-06-27T11:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069043#M972750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want to get dynamic text for selection screen field&lt;/P&gt;&lt;P&gt;declare a parameters field (to assign a dynamic value) and &lt;/P&gt;&lt;P&gt;assign that value to that selection-screen field in the initialization event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if the answer is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 11:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069043#M972750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T11:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069044#M972751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know at condition you need to get the dynamic text .&lt;/P&gt;&lt;P&gt;explain the condition when you need to get the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For any condition you have to check in the Intilaization.&lt;/P&gt;&lt;P&gt;Provide me the condition i will Provide logic to you.&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;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 12:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069044#M972751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T12:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069045#M972752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; You can try using parameter &amp;amp; giving comment.&lt;/P&gt;&lt;P&gt; assign dynamic value to comment (i.e. to G_FIELD_TEXT )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 12:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069045#M972752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T12:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069046#M972753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a possiblity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:   g_atwrt TYPE atwrt.
DATA:   sw.
*G_FIELD_TEXT TYPE DYNFNAM.

*G_FIELD_TEXT = 'MYFIELD'. "==&amp;gt; RUNTIME VALUE

SELECTION-SCREEN: BEGIN OF LINE.
PARAMETERS: gfldtext(20) MODIF ID xxx.
SELECTION-SCREEN: POSITION 23.
SELECT-OPTIONS: s_vbcod FOR g_atwrt.
SELECTION-SCREEN: END OF LINE.

AT SELECTION-SCREEN OUTPUT.
  CASE sw.
    WHEN 'X'.
      gfldtext = 'Text Two'.
      CLEAR sw.
    WHEN OTHERS.
      gfldtext = 'Text One'.
      sw = 'X'.
  ENDCASE.

  LOOP AT SCREEN.
    IF screen-group1 = 'XXX'.
      screen-input = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 12:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069046#M972753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T12:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069047#M972754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Comment looks like an option. But a comment would follow the select box. would not substitute the field name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 12:38:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069047#M972754</guid>
      <dc:creator>vimalv</dc:creator>
      <dc:date>2008-06-27T12:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069048#M972755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Madhavi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Initialization, I got the value for G_FIELD_TEXT fetched from a table where I have maintained the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, on selection screen initialization, I have the runtime value for G_FIELD_TEXT ready. Now I need to assign this value to the field name for S_VBCOD at SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not use the SELECTION-SCREEN BEGIN LINE as other parameters have STATIC names maintained in selection texts.&lt;/P&gt;&lt;P&gt;So the solution given by Paul would be my last resort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@All.  Thanks experts! You guys give beginers a hive of confidence out here &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 12:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069048#M972755</guid>
      <dc:creator>vimalv</dc:creator>
      <dc:date>2008-06-27T12:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069049#M972756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;static text would not be effected using the BEGIN OF LINE option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 14:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069049#M972756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T14:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069050#M972757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works fine&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:   g_atwrt TYPE atwrt.
DATA:   sw.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) gfldtext for field s_vbcod.
SELECT-OPTIONS: s_vbcod FOR g_atwrt.
SELECTION-SCREEN: END OF LINE.

AT SELECTION-SCREEN OUTPUT.
  CASE sw.
    WHEN 'X'.
      gfldtext = 'Text Two'.
      CLEAR sw.
    WHEN OTHERS.
      gfldtext = 'Text One'.
      sw = 'X'.
  ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 14:22:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069050#M972757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T14:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069051#M972758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Paul! &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 06:37:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-text/m-p/4069051#M972758</guid>
      <dc:creator>vimalv</dc:creator>
      <dc:date>2008-06-30T06:37:09Z</dc:date>
    </item>
  </channel>
</rss>

