<?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 Parameters Comments in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-comments/m-p/6302217#M1391283</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 have a requirement like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my selection screen, input field is company code,once i enter the company code i want to display the company code description in the selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Nov 2009 08:01:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-12T08:01:24Z</dc:date>
    <item>
      <title>Parameters Comments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-comments/m-p/6302217#M1391283</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 have a requirement like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my selection screen, input field is company code,once i enter the company code i want to display the company code description in the selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 08:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-comments/m-p/6302217#M1391283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-12T08:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters Comments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-comments/m-p/6302218#M1391284</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;It is possible. Create a label field next to your text field of company code and make it invisisble in the settings. In your PBO event if the company code is not empty then populate the label with the text value. The PBO would get triggered everytime 'ENTER' is pressed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 08:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-comments/m-p/6302218#M1391284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-12T08:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters Comments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-comments/m-p/6302219#M1391285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Dynamic Parameter Texts in Selection Screen|http://help-abap.blogspot.com/2009/04/dynamic-parameter-texts-in-selection.html]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 08:09:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-comments/m-p/6302219#M1391285</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-11-12T08:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters Comments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-comments/m-p/6302220#M1391286</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;Check this sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
selection-screen begin of line.
parameters: p_comp type t001-bukrs.
selection-screen comment  6(20) text.
selection-screen end of line.


at selection-screen output.

select single butxt
into text
from t001
where bukrs = p_comp.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 08:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-comments/m-p/6302220#M1391286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-12T08:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters Comments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-comments/m-p/6302221#M1391287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hello Setty, 
&amp;lt;li&amp;gt;Try the below code which works only when you enter company code and press ENTER. 
&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF it_t001 OCCURS 0,
        bukrs TYPE t001-bukrs,
        butxt TYPE t001-butxt,
      END OF it_t001.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS:bukrs TYPE t001-bukrs.
PARAMETERS:butxt TYPE t001-butxt.
SELECTION-SCREEN END OF LINE.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name = 'BUTXT'.
      screen-input = '0'.
      screen-output = '1'.
      screen-display_3d = '0'.
      MODIFY SCREEN.
      CLEAR  screen.
    ENDIF.
  ENDLOOP.

AT SELECTION-SCREEN.
  SELECT SINGLE butxt FROM t001 INTO CORRESPONDING FIELDS OF it_t001 WHERE bukrs = bukrs.
  butxt = it_t001-butxt.&lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 03:53:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-comments/m-p/6302221#M1391287</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-11-13T03:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters Comments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-comments/m-p/6302222#M1391288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&amp;lt;li&amp;gt;The below program works when you press ENTER after giving company code  and also works when u press F4 and selecting company code. 
&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest_notepad.
DATA: BEGIN OF it_t001 OCCURS 0,
        bukrs TYPE t001-bukrs,
        butxt TYPE t001-butxt,
      END OF it_t001.
DATA:i_return_tab TYPE STANDARD TABLE OF ddshretval,
     w_return_tab LIKE LINE OF i_return_tab.
DATA:w_dynpfields TYPE dynpread,
    i_dynpfields LIKE STANDARD TABLE OF dynpread.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS:bukrs TYPE t001-bukrs.
PARAMETERS:butxt TYPE t001-butxt.
SELECTION-SCREEN END OF LINE.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name = 'BUTXT'.
      screen-input = '0'.
      screen-output = '1'.
      screen-display_3d = '0'.
      MODIFY SCREEN.
      CLEAR  screen.
    ENDIF.
  ENDLOOP.

AT SELECTION-SCREEN.
  SELECT SINGLE butxt FROM t001 INTO CORRESPONDING FIELDS OF it_t001 WHERE bukrs = bukrs.
  butxt = it_t001-butxt.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR bukrs.
  IF it_t001[] IS INITIAL.
    SELECT bukrs butxt
     FROM t001
    INTO TABLE it_t001.
  ENDIF.
  "Function module for F4 help
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'BUKRS'   "field name on f4 help window
      dynpprog    = sy-repid
      dynpnr      = sy-dynnr
      dynprofield = 'BUKRS' "Screen field name
      value_org   = 'S'
    TABLES
      value_tab   = it_t001
      return_tab  = i_return_tab.
  READ TABLE i_return_tab INTO w_return_tab INDEX 1.
  bukrs = w_return_tab-fieldval.
  READ TABLE it_t001 INTO it_t001 WITH KEY bukrs = bukrs.
  IF sy-subrc = 0.
    w_dynpfields-fieldname    = 'BUTXT'.
    w_dynpfields-fieldvalue   = it_t001-butxt.
    APPEND w_dynpfields TO i_dynpfields.
    CLEAR w_dynpfields.
    "DYNP_VALUES_UPDATE
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
      EXPORTING
        dyname     = sy-repid
        dynumb     = sy-dynnr
      TABLES
        dynpfields = i_dynpfields.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 04:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-comments/m-p/6302222#M1391288</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-11-13T04:00:31Z</dc:date>
    </item>
  </channel>
</rss>

