<?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 Refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035406#M1499987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Nov 2010 12:22:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-24T12:22:55Z</dc:date>
    <item>
      <title>Screen Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035398#M1499979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Master's,&lt;/P&gt;&lt;P&gt;                     I heve created screen where there is I/O field &lt;STRONG&gt;kunnr&lt;/STRONG&gt; and output(Display) field is &lt;STRONG&gt;Name of kunnr&lt;/STRONG&gt;.My question is that whenever i select &lt;STRONG&gt;kunnr&lt;/STRONG&gt; name should be display in name field.&lt;/P&gt;&lt;P&gt;                  In my coading it's shows after preesing the enter button, but i want after selection immediate name is shows in name field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    WHEN 'ENTE'.
          SELECT SINGLE kunnr name1
          FROM kna1
          INTO (gv_kunnr, gv_name)
          WHERE kunnr = zmc_fi_interest-kunnr.
        IF sy-subrc = 0.
          gs_interest-name = gv_name.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Atul Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 11:26:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035398#M1499979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-16T11:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035399#M1499980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to use the FM: DYNP_VALUES_UPDATE to update the screen data. Search SDN for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar requirement is discussed here: &lt;SPAN __jive_macro_name="message" id="8996624"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Jun 16, 2010 5:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 11:33:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035399#M1499980</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-06-16T11:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035400#M1499981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use event POV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 14:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035400#M1499981</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-06-16T14:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035401#M1499982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may also not use ABAP: use an existing search help, or create one, with the following requirements:&lt;/P&gt;&lt;P&gt;- screen field names must refer to the same DDIC structure or table&lt;/P&gt;&lt;P&gt;- search help must have kunnr as the only importing parameter, and kunnr and name1 as the exporting parameters&lt;/P&gt;&lt;P&gt;- in the DDIC the structure or table, search help must be attached to the kunnr field, and the 2 search help parameters must be linked to the 2 DDIC fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 21:56:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035401#M1499982</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-06-16T21:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035402#M1499983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a small query since i am not that conversant with DDIC search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will this technique work if the NAME1 field is disabled on the screen, i mean will the screen element be populated ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 01:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035402#M1499983</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-06-17T01:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035403#M1499984</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;&lt;/P&gt;&lt;P&gt;Check the following&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"  Implement your own search Help as below
data : from_f4.
PARAMETERS : carrid TYPE spfli-carrid,
             connid TYPE spfli-connid,
             fldate TYPE sflight-fldate.
 
DATA : itab TYPE TABLE OF sflight WITH HEADER LINE. " You can create a Structure having only KUNNR and NAME1 so that 
" Only required fields will be visible in the F4 Help
DATA : fmap TYPE TABLE OF dselc WITH HEADER LINE.
 
 AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-name = 'CONNID' OR
       screen-name = 'FLDATE'.
      screen-input = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP
 
AT SELECTION-SCREEN ON VALUE-REQUEST FOR carrid." If it is a selection Screen
else in PROCESS ON VALUE REQUEST
from_f4 = 'X'. " This indicates the Value come from F4 only
  SELECT * FROM sflight INTO TABLE itab.
  SORT itab BY carrid connid fldate.
  DELETE ADJACENT DUPLICATES FROM itab
  COMPARING carrid connid fldate.
  fmap-fldname = 'CARRID'.
  fmap-dyfldname = 'CARRID'.
  APPEND fmap.
  fmap-fldname = 'CONNID'.
  fmap-dyfldname = 'CONNID'.
  APPEND fmap.
  fmap-fldname = 'FLDATE'.
  fmap-dyfldname = 'FLDATE'.
  APPEND fmap.
 
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
     ddic_structure         = 'SFLIGHT'
      retfield               = 'CARIID'
     dynpprog               = sy-repid
     dynpnr                 = sy-dynnr
     DYNPROFIELD            = 'CARRID'
     value_org              = 'S'
     DISPLAY                = 'F' " This forces the F4 help for Display Only Fields
    TABLES
      value_tab              = itab
     dynpfld_mapping        = fmap
   EXCEPTIONS
     PARAMETER_ERROR        = 1
     NO_VALUES_FOUND        = 2
     OTHERS                 = 3
            ." Just Execute this pilot program and verify&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 04:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035403#M1499984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T04:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035404#M1499985</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;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Declare two fields like carrid and connid.&lt;/P&gt;&lt;P&gt;2. In connid attributes select program, and select check boxes of outfield and outputonly.&lt;/P&gt;&lt;P&gt;3. In PAI write the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_carrid like sflight-carrid,&lt;/P&gt;&lt;P&gt;i_connid like sflight-connid,&lt;/P&gt;&lt;P&gt;connid like sflight-connid,&lt;/P&gt;&lt;P&gt;ok_code type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select connid&lt;/P&gt;&lt;P&gt;from sflight into connid&lt;/P&gt;&lt;P&gt;where carrid eq i_carrid.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;ok_code = sy-ucomm.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;case ok_code.&lt;/P&gt;&lt;P&gt;when ''.&lt;/P&gt;&lt;P&gt;i_connid = connid.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 04:58:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035404#M1499985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T04:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035405#M1499986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Will this technique work if the NAME1 field is disabled on the screen, i mean will the screen element be populated ?&lt;/P&gt;&lt;P&gt;Good remark, I should have mentioned it explicitly! The answer is Yes &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One important point is to not make it as an importing parameter of the search help (only an exporting parameter), otherwise it wouldn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shortest example you can try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS input TYPE DD04D-DATATYPE.
PARAMETERS display TYPE DD04D-LENG MODIF ID GR1.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'GR1'.
      SCREEN-INPUT = 0. "gray out DISPLAY field
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to make a test with dynpro, you simply need to define field names DD04D-DATATYPE (don't forget to link the screen field to the ABAP Dictionary, otherwise search help is inactive) and DD04D-LENG (declare it as an input/output field of type output only).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works because you'll see in SE11 that DD04D structure has its DATATYPE field assigned explicitly to DD_DATATYPE search help, where the linked fields between structure and search help are:&lt;/P&gt;&lt;P&gt;1) DATATYPE is linked to the &lt;STRONG&gt;importing&lt;/STRONG&gt; (and exporting of course) parameter VALUE of search help&lt;/P&gt;&lt;P&gt;2) LENG is linked to the &lt;STRONG&gt;exporting only&lt;/STRONG&gt; parameter LENG of search help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 11:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035405#M1499986</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-06-17T11:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035406#M1499987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 12:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/7035406#M1499987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-24T12:22:55Z</dc:date>
    </item>
  </channel>
</rss>

