<?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: module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2324057#M510575</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;Move the first record in Return internal table of the Funtion module 'F4IF_INT_TABLE_VAL_REQUEST' into ut screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;READ TABLE it_RETFIELD into x_retfield index 1.   &lt;/P&gt;&lt;P&gt;W_MATNR = X_RETTAB-FIELDVALUE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2007 10:59:36 GMT</pubDate>
    <dc:creator>former_member491305</dc:creator>
    <dc:date>2007-06-18T10:59:36Z</dc:date>
    <item>
      <title>module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2324054#M510572</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; im using fm CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;to display f4 help in my screen field. im able to get the f4 help but im nt able to display the selected column on my screen field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 10:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2324054#M510572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T10:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2324055#M510573</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 report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;RUTSHEXP&lt;/P&gt;&lt;P&gt;demo_dynpro_f4_help_dictionary.&lt;/P&gt;&lt;P&gt;demo_dynpro_f4_help_module .&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REagrds,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 10:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2324055#M510573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T10:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2324056#M510574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&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;Reward points for useful Answers&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>Mon, 18 Jun 2007 10:59:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2324056#M510574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T10:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2324057#M510575</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;Move the first record in Return internal table of the Funtion module 'F4IF_INT_TABLE_VAL_REQUEST' into ut screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;READ TABLE it_RETFIELD into x_retfield index 1.   &lt;/P&gt;&lt;P&gt;W_MATNR = X_RETTAB-FIELDVALUE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 10:59:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2324057#M510575</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-06-18T10:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2324058#M510576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is the sample code for displaying the F4 value in the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST( F4 ) statement &lt;/P&gt;&lt;P&gt;Code to demonstrate how to perform a manual value help(F4) on a particular field using the PROCESS ON VALUE-REQUEST statement and how to return values back to a table control on the screen. For standard screen fields simply move the value to the appropriate screen field name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Screen flow logic........
 
PROCESS BEFORE OUTPUT.
*MODULE PBO_MODULE.
 
PROCESS AFTER INPUT.
*MODULE PAI_MODULE.
 
PROCESS ON VALUE-REQUEST. "F4
  FIELD EKPO-EBELP MODULE help_ekpo.
 
 
 
  
 
* populate screen field from within PROCESS ON VALUE-REQUEST(F4) call
*&amp;amp;------------------------------------------------------------------*
*&amp;amp;      Module  help_responsibility  INPUT
*&amp;amp;------------------------------------------------------------------*
*       text
*-------------------------------------------------------------------*
MODULE help_ekpo INPUT.
 
 
**Transport values to table dynpro/screen table control
  DATA: l_stepl LIKE  sy-stepl,
        l_indx  LIKE  sy-stepl.
  DATA: dynpfields        LIKE dynpread OCCURS 5 WITH HEADER LINE.
 
* Adjust for scroling within table control
  CALL FUNCTION 'DYNP_GET_STEPL'
    IMPORTING
      povstepl        = l_stepl
    EXCEPTIONS
      stepl_not_found = 0
      OTHERS          = 0.
 
  l_indx = tc_ekpotable-top_line + l_stepl - 1. 
          "tc_ekpotable should already have been declared
 
  REFRESH dynpfields.
  CLEAR   dynpfields.
  dynpfields-fieldname  = 'EKPO-EBELN'.
  dynpfields-fieldvalue = '00010'   "wa_ekpo-ebeln.
  dynpfields-stepl      = l_stepl.
  APPEND dynpfields.
  dynpfields-fieldname  = 'EKPO-EBELP'.
  dynpfields-fieldvalue = '00020'   "wa_ekpo-ebelp.
  dynpfields-stepl      = l_stepl.
  APPEND dynpfields.
 
  CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
      dyname     = 'SAPLZZ_EKKO'    "Program name
      dynumb     = '0100'           "Screen number 
    TABLES
      dynpfields = dynpfields
    EXCEPTIONS
      OTHERS     = 0.
ENDMODULE.                 " help_ekpo  INPUT
 
 
 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it is usefull ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 11:01:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2324058#M510576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T11:01:22Z</dc:date>
    </item>
  </channel>
</rss>

