<?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 painter problem ..... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter-problem/m-p/2998641#M708365</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;You can do it through by providing F4 help on the same screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while you create a seperate box for your user for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usr name create one box  for it and then in the next box where you will leave empty space for the user input there declare your table and field name so that it will accepts only the name from that table and if user press F4 then he/she can get values from your table only &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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2007 11:11:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-25T11:11:27Z</dc:date>
    <item>
      <title>Screen painter problem .....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter-problem/m-p/2998638#M708362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a screen with the screen painter .One of the fields is taking the possible values from a Z* table that i have made . For example 1  -  off , 2 - on . &lt;/P&gt;&lt;P&gt;How can i set that the user will be able to pass value from this table only ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean which must be the attributes ...???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be rewarded ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:05:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter-problem/m-p/2998638#M708362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T11:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Screen painter problem .....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter-problem/m-p/2998639#M708363</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;u can declare that field as a list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write this on screen flow logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;  FIELD ifmtp-form_type MODULE fm_drop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here &amp;lt;b&amp;gt;fm_drop&amp;lt;/b&amp;gt; is my module name.&lt;/P&gt;&lt;P&gt;field is &amp;lt;b&amp;gt;form_type&amp;lt;/b&amp;gt; on screen and declare as listbox and also make one internal table of name &amp;lt;b&amp;gt;ifmtp&amp;lt;/b&amp;gt; which has one field &amp;lt;b&amp;gt;form_type&amp;lt;/b&amp;gt; in top module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE &amp;lt;b&amp;gt;fm_drop&amp;lt;/b&amp;gt; INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR ifmtp.&lt;/P&gt;&lt;P&gt;  REFRESH ifmtp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ifmtp-form_type = 'C'.&lt;/P&gt;&lt;P&gt;  APPEND ifmtp.&lt;/P&gt;&lt;P&gt;  ifmtp-form_type = 'F'.&lt;/P&gt;&lt;P&gt;  APPEND ifmtp.&lt;/P&gt;&lt;P&gt;  ifmtp-form_type = 'H'.&lt;/P&gt;&lt;P&gt;  APPEND ifmtp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      retfield  = 'FORM_TYPE'&lt;/P&gt;&lt;P&gt;      value_org = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab = ifmtp.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " fm_drop  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In TOP Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ifmtp OCCURS 0,&lt;/P&gt;&lt;P&gt;          form_type LIKE zform_track_mast-form_type,&lt;/P&gt;&lt;P&gt;       END OF ifmtp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Dhwani shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter-problem/m-p/2998639#M708363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T11:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Screen painter problem .....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter-problem/m-p/2998640#M708364</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;see this and do accordingly&lt;/P&gt;&lt;P&gt;For F4 Values on Screen:&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE_REQUEST &lt;/P&gt;&lt;P&gt;using module call starting with FIELD i.e FIELD field MODULE module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are number of function modules that can be used for the purpose, but these&lt;/P&gt;&lt;P&gt;can fullfill the task easily or combination of them. &lt;/P&gt;&lt;P&gt;DYNP_VALUE_READ&lt;/P&gt;&lt;P&gt;F4IF_FIELD_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;POPUP_WITH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DYNP_VALUE_READ&lt;/P&gt;&lt;P&gt;This function module is used to read values in the screen fields. Use of this &lt;/P&gt;&lt;P&gt;FM causes forced transfer of data from screen fields to ABAP fields.&lt;/P&gt;&lt;P&gt;There are 3 exporting parameters &lt;/P&gt;&lt;P&gt;DYNAME = program name = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNUMB = Screen number = SY-DYNNR&lt;/P&gt;&lt;P&gt;TRANSLATE_TO_UPPER = 'X'&lt;/P&gt;&lt;P&gt;and one importing TABLE parameter &lt;/P&gt;&lt;P&gt;DYNPFIELDS = Table of TYPE DYNPREAD&lt;/P&gt;&lt;P&gt;The DYNPFIELDS parameter is used to pass internal table of type DYNPREAD&lt;/P&gt;&lt;P&gt;to this FM and the values read from the screen will be stored in this table.This&lt;/P&gt;&lt;P&gt;table consists of two fields:&lt;/P&gt;&lt;P&gt;FIELDNAME : Used to pass the name of screen field for which the value is to&lt;/P&gt;&lt;P&gt;be read.&lt;/P&gt;&lt;P&gt;FIELDVALUE : Used to read the value of the field in the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,&lt;/P&gt;&lt;P&gt;SCREEN_VALUE LIKE LINE OF SCREEN_VALUES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCREEN_VALUE-FIELDNAME = 'KUNNR' . * Field to be read&lt;/P&gt;&lt;P&gt;APPEND SCREEN_VALUE TO SCREEN_VALUES. * Fill the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DYNAME = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNUMB = SY-DYNNR&lt;/P&gt;&lt;P&gt;TRANSLATE_TO_UPPER = 'X'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DYNPFIELDS = SCREEN_VALUES.&lt;/P&gt;&lt;P&gt;READ TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.Now the screen value for field KUNNR is in the SCREEN_VALUE-FIELDVALUE and can be used for further processing like using it to fill the internal table to be used as parameter in F4IF_INT_TABLE_VALUE_REQUEST ETC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4IF_FIELD_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three&lt;/P&gt;&lt;P&gt;parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TABNAME = table/structure&lt;/P&gt;&lt;P&gt;FIELDNAME = 'field name'&lt;/P&gt;&lt;P&gt;DYNPPROG = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNPNR = SY-DYNR&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'screen field'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN_TAB = table of type DYNPREAD&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;This FM is used to dsiplay values stored in an internal table as input&lt;/P&gt;&lt;P&gt;help.This FM is used to program our own custom help if no such input help&lt;/P&gt;&lt;P&gt;exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD&lt;/P&gt;&lt;P&gt;is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB. &lt;/P&gt;&lt;P&gt;If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;RETFIELD = field from int table whose value will be returned &lt;/P&gt;&lt;P&gt;DYNPPROG = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNPNR = SY-DYNNR&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'screen field'&lt;/P&gt;&lt;P&gt;VALUE_ORG = 'S'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VALUE_TAB = internal table whose values will be shown.&lt;/P&gt;&lt;P&gt;RETURN_TAB = internal table of type DDSHRETVAL &lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;parameter_error = 1&lt;/P&gt;&lt;P&gt;no_values_found = 2&lt;/P&gt;&lt;P&gt;others = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_WITH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;This FM is used to display the contents of an internal table in a popup window.The user can select a row and the index of that is returned in the CHOISE&lt;/P&gt;&lt;P&gt;parameter.The VALUETAB is used to pass the internal table.&lt;/P&gt;&lt;P&gt;A suitable title can be set using TITLETEXT parameter. The starting and end position of the popup can be specified by the parameters STARTPOS_COL / ROW and ENDPOS_ROW / COL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ENDPOS_COL = &lt;/P&gt;&lt;P&gt;ENDPOS_ROW = &lt;/P&gt;&lt;P&gt;STARTPOS_COL = &lt;/P&gt;&lt;P&gt;STARTPOS_ROW = &lt;/P&gt;&lt;P&gt;TITLETEXT = 'title text'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;CHOISE = &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VALUETAB = &lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;BREAK_OFF = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_choice TYPE SY-TABIX.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF i_values OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;values TYPE I,&lt;/P&gt;&lt;P&gt;END OF i_values.&lt;/P&gt;&lt;P&gt;PARAMETRS : id TYPE I. &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_values-values = '0001'.&lt;/P&gt;&lt;P&gt;APPEND i_values.&lt;/P&gt;&lt;P&gt;i_values-values = '0002'.&lt;/P&gt;&lt;P&gt;APPEND i_values.&lt;/P&gt;&lt;P&gt;i_values-values = '0003'.&lt;/P&gt;&lt;P&gt;APPEND i_values.&lt;/P&gt;&lt;P&gt;i_values-values = '0004'.&lt;/P&gt;&lt;P&gt;APPEND i_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;ENDPOS_COL = 40 &lt;/P&gt;&lt;P&gt;ENDPOS_ROW = 12 &lt;/P&gt;&lt;P&gt;STARTPOS_COL = 20 &lt;/P&gt;&lt;P&gt;STARTPOS_ROW = 5 &lt;/P&gt;&lt;P&gt;TITLETEXT = 'Select an ID' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;CHOISE = w_choice &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;VALUETAB = i_values &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;BREAK_OFF = 1 &lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;CHECK w_choice &amp;gt; 0.&lt;/P&gt;&lt;P&gt;READ TABLE i_values INDEX w_choice....now we can process the selection as it is contained&lt;/P&gt;&lt;P&gt;...in the structure i_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other FM that may be used to provide input help is HELP_START .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ANJI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter-problem/m-p/2998640#M708364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T11:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Screen painter problem .....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter-problem/m-p/2998641#M708365</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;You can do it through by providing F4 help on the same screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while you create a seperate box for your user for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usr name create one box  for it and then in the next box where you will leave empty space for the user input there declare your table and field name so that it will accepts only the name from that table and if user press F4 then he/she can get values from your table only &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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter-problem/m-p/2998641#M708365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T11:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Screen painter problem .....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter-problem/m-p/2998642#M708366</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;you can also made search help using ur Z table and give that search help name into search help attributes of that field. ( Attributes-&amp;gt;Dict)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter-problem/m-p/2998642#M708366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T11:18:24Z</dc:date>
    </item>
  </channel>
</rss>

