<?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: Screen field ouput problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288174#M1389442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: matnr type matnr,&lt;/P&gt;&lt;P&gt;            text type maktx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if matnr is not initial.&lt;/P&gt;&lt;P&gt;    select single maktx &lt;/P&gt;&lt;P&gt;      from makt &lt;/P&gt;&lt;P&gt;into text&lt;/P&gt;&lt;P&gt;      where matnr eq matnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2009 07:02:20 GMT</pubDate>
    <dc:creator>RahulKeshav</dc:creator>
    <dc:date>2009-11-04T07:02:20Z</dc:date>
    <item>
      <title>Screen field ouput problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288169#M1389437</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;&lt;/P&gt;&lt;P&gt;Is there any way to display for example customer name on the right of a customer code select option in a report? Is just the same like in screen, when we define an input field for customer code and one output field to display the customer name based on what he or she enters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing this way but got stuck:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF BLOCK r01 WITH FRAME TITLE text-003. 
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 1.
SELECTION-SCREEN COMMENT (28) FOR FIELD cust.
SELECT-OPTIONS: cust FOR kna1-kunnr NO INTERVALS NO-EXTENSION.    &amp;lt;--------the customer code
SELECTION-SCREEN POSITION 48.
PARAMETERS: name LIKE kna1-name1.               &amp;lt;--------the customer name
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK r01.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i show the customer name field as output only?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used screen-output = 1, but the layout is not the same when we choose it from the screen field properties --&amp;gt; output only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: starry99 on Nov 3, 2009 4:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 15:59:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288169#M1389437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T15:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Screen field ouput problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288170#M1389438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try using screen-input = 0 in the AT SELECTION-SCREEN OUTPUT event for the required field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nilesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 16:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288170#M1389438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T16:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Screen field ouput problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288171#M1389439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Starry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add below code in under event  'At selection-screen output'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-name = 'NAME'. " Ur customer name field&lt;/P&gt;&lt;P&gt;      screen-input = 0.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 03:50:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288171#M1389439</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2009-11-04T03:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Screen field ouput problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288172#M1389440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sap Fan on Nov 4, 2009 5:03 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 03:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288172#M1389440</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2009-11-04T03:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Screen field ouput problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288173#M1389441</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;Hi, 
&amp;lt;li&amp;gt;Try this. It works.
&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest_program.
DATA: BEGIN OF it_kna1 OCCURS 0,
        kunnr TYPE kna1-kunnr,
        name1 TYPE kna1-name1,
      END OF it_kna1.
DATA:
    i_return_tab  TYPE STANDARD TABLE OF ddshretval,
    w_return_tab  TYPE ddshretval.
DATA:w_dynpfields TYPE dynpread,
    i_dynpfields LIKE STANDARD TABLE OF dynpread.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
TABLES kna1.
SELECTION-SCREEN BEGIN OF BLOCK r01 WITH FRAME TITLE text-003.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 1.
SELECTION-SCREEN COMMENT (28) FOR FIELD cust.
SELECT-OPTIONS: cust FOR kna1-kunnr NO INTERVALS NO-EXTENSION. "   &amp;lt;--------the customer code
SELECTION-SCREEN POSITION 48.
PARAMETERS: name1 LIKE kna1-name1.              " &amp;lt;--------the customer name
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK r01.
SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name = 'NAME1'.
      screen-input = '0'.
      screen-output = '1'.
      screen-display_3d = '0'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
"F4 Help for Werks

AT SELECTION-SCREEN ON VALUE-REQUEST FOR cust-low.
  IF it_kna1[] IS INITIAL.
    SELECT kunnr name1
    FROM kna1
    INTO TABLE it_kna1.
  ENDIF.
  "Function module for F4 help
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'KUNNR'   "field name on f4 help window
      dynpprog    = sy-repid
      dynpnr      = sy-dynnr
      dynprofield = 'CUST-LOW' "Screen field name
      value_org   = 'S'
    TABLES
      value_tab   = it_kna1
      return_tab  = i_return_tab.
  READ TABLE i_return_tab INTO w_return_tab INDEX 1.
  cust-low = w_return_tab-fieldval.
  READ TABLE it_kna1 WITH KEY kunnr = cust-low.
  IF sy-subrc = 0.
    w_dynpfields-fieldname    = 'NAME1'.
    w_dynpfields-fieldvalue   = it_kna1-name1.
    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>Wed, 04 Nov 2009 06:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288173#M1389441</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-11-04T06:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Screen field ouput problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288174#M1389442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: matnr type matnr,&lt;/P&gt;&lt;P&gt;            text type maktx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if matnr is not initial.&lt;/P&gt;&lt;P&gt;    select single maktx &lt;/P&gt;&lt;P&gt;      from makt &lt;/P&gt;&lt;P&gt;into text&lt;/P&gt;&lt;P&gt;      where matnr eq matnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 07:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288174#M1389442</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2009-11-04T07:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Screen field ouput problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288175#M1389443</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;Thanks for the replies. I have solved it. &lt;/P&gt;&lt;P&gt;Thanks to Venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, i have one more doubts. When i use the function F4IF_INT_TABLE_VALUE_REQUEST, can i design my own search help fields? For example, i have the customized customer search help with code and name. Can i include one more field for maximum hits to allow user to enter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 08:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288175#M1389443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T08:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Screen field ouput problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288176#M1389444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Starry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below thread,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1521272"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 08:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-field-ouput-problem/m-p/6288176#M1389444</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2009-11-04T08:13:40Z</dc:date>
    </item>
  </channel>
</rss>

