<?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 program - populating values for columns in Table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981818#M1340955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  The selected value would be there returned in structure: RETURN_TAB&lt;/P&gt;&lt;P&gt; If you want values for other fields to be returned from the F4 help use the strucutre DYNPFLD_MAPPING&lt;/P&gt;&lt;P&gt; create an internal table and populate values for teh field FLDNAME with fields from the F4 help screen that you want to be returned.&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;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2009 13:23:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-18T13:23:37Z</dc:date>
    <item>
      <title>Module pool program - populating values for columns in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981813#M1340950</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;In my module pool program Table control i  am having 10 columns fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in one of the column field i have used 'PROCESS ON VALUE-REQUEST'   to get the material no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that F4 search help list is having releated information of the material like material group, company code, description etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user while searching for material  they will use F4 search help and in that list they will select the material .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the list I need releated information of the materials like material group, company code, description etc&lt;/P&gt;&lt;P&gt;to be populated in other columns while selecting the material .( User is not ready to enter all the values for the fileds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appended the releated values for the material in the Table control Internal table in the Process on value-request  Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(after selecting material by the user from F4 search help)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even then I am not getting the data in the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help me how to proceed  to get the data in other columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 03:21:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981813#M1340950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T03:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool program - populating values for columns in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981814#M1340951</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;  In the Event POV in the module for the field that you are already have you can do this,follow the following steps:&lt;/P&gt;&lt;P&gt;1. You might be using FM F4IF_INT_TABLE_VALUE_REQUEST which will give you the index or the value the user has selected on the F4 screen.&lt;/P&gt;&lt;P&gt;2. Get the values of the other fields based on the index or value returned in the above step.&lt;/P&gt;&lt;P&gt;3. Then you need the position of the row the user has pressed F4 on use FM:DYNP_GET_STEPL this give you the current step loop &lt;/P&gt;&lt;P&gt;4. Then you have to use FM 'DYNP_VALUES_UPDATE' to update values to the screen like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: dynpfields        LIKE dynpread OCCURS o with header line.
REFRESH dynpfields.
CLEAR   dynpfields.
dynpfields-fieldname  = 'ITAB-FACTURA'.
dynpfields-fieldvalue = itab_bsik_v-xblnr.
dynpfields-stepl      = l_stepl.
APPEND dynpfields.
dynpfields-fieldname  = 'ITAB-BUZEI'.
dynpfields-fieldvalue = itab_bsik_v-buzei.
dynpfields-stepl      = l_stepl.
APPEND dynpfields.
 
CALL FUNCTION 'DYNP_VALUES_UPDATE'
  EXPORTING
    dyname     = sy-repid  "Program name sy-cprog
    dynumb     = sy-dynnr  "Screen number
  TABLES
    dynpfields = dynpfields
  EXCEPTIONS
    OTHERS     = 0.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 03:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981814#M1340951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T03:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool program - populating values for columns in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981815#M1340952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is fine to get values using F4 and updating those values to internal table but you must referesh the table control to make those internal table content available to table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if this can help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 05:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981815#M1340952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T05:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool program - populating values for columns in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981816#M1340953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sharma,&lt;/P&gt;&lt;P&gt;After getting the values from search help, you have to assign that value to your concern table control field.&lt;/P&gt;&lt;P&gt;The return value from  DDSHRETVAL structure,you have to assign to concern table control field.&lt;/P&gt;&lt;P&gt;then only the selected data will come and sit into your table control field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 05:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981816#M1340953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T05:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool program - populating values for columns in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981817#M1340954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himanshu Verma ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;I am getting the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having one more problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while selecting from the F4 search list  user is selecting  Row in the F4 list.&lt;/P&gt;&lt;P&gt;How can I find the row or index they selected in the F4List.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sharma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sharma on Aug 18, 2009 3:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 13:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981817#M1340954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T13:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool program - populating values for columns in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981818#M1340955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  The selected value would be there returned in structure: RETURN_TAB&lt;/P&gt;&lt;P&gt; If you want values for other fields to be returned from the F4 help use the strucutre DYNPFLD_MAPPING&lt;/P&gt;&lt;P&gt; create an internal table and populate values for teh field FLDNAME with fields from the F4 help screen that you want to be returned.&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;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 13:23:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981818#M1340955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T13:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool program - populating values for columns in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981819#M1340956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himanshu Verma ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for fast reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i tried with field names available in F4  Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even then I am not getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_DYNPFLD_MAPPING-FLDNAME = ' MTART.&lt;/P&gt;&lt;P&gt;APPEND T_DYNPFLD_MAPPING TO ITAB_DYNPFLD_MAPPING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_DYNPFLD_MAPPING-FLDNAME = 'MBRSH'.&lt;/P&gt;&lt;P&gt;APPEND T_DYNPFLD_MAPPING TO ITAB_DYNPFLD_MAPPING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT&lt;/P&gt;&lt;P&gt;  MATNR&lt;/P&gt;&lt;P&gt; MTART&lt;/P&gt;&lt;P&gt; MBRSH&lt;/P&gt;&lt;P&gt; MATKL&lt;/P&gt;&lt;P&gt; BISMT&lt;/P&gt;&lt;P&gt; MEINS&lt;/P&gt;&lt;P&gt; BSTME&lt;/P&gt;&lt;P&gt;  FROM MARA&lt;/P&gt;&lt;P&gt;  INTO TABLE INT_F4&lt;/P&gt;&lt;P&gt;  up to 5000 rows&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR INT_F4.&lt;/P&gt;&lt;P&gt;****function module to get pop-up window of f4.&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        = 'MATNR'&lt;/P&gt;&lt;P&gt;      DYNPPROG        = W_PROGNAME&lt;/P&gt;&lt;P&gt;      DYNPNR          = W_SCR_NUM&lt;/P&gt;&lt;P&gt;      DYNPROFIELD     = 'V_TAB-MATNR'&lt;/P&gt;&lt;P&gt;      VALUE_ORG       = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      VALUE_TAB       = INT_F4&lt;/P&gt;&lt;P&gt;      RETURN_TAB      = RETURN_VALUES&lt;/P&gt;&lt;P&gt;      DYNPFLD_MAPPING = ITAB_DYNPFLD_MAPPING&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;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ELSE .&lt;/P&gt;&lt;P&gt;    V_TAB-matnr = RETURN_VALUES-FIELDVAL.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the above code.  I am not getting the field values available in ITAB_DYNPFLD_MAPPING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help me how to get the exact row for the F4 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 13:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981819#M1340956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T13:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool program - populating values for columns in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981820#M1340957</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 like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
T_DYNPFLD_MAPPING-FLDNAME = ' INT_F4-MTART'.
APPEND T_DYNPFLD_MAPPING TO ITAB_DYNPFLD_MAPPING.

T_DYNPFLD_MAPPING-FLDNAME = 'INT_F4-MBRSH'.
APPEND T_DYNPFLD_MAPPING TO ITAB_DYNPFLD_MAPPING.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 14:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981820#M1340957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T14:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool program - populating values for columns in Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981821#M1340958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himanshu Verma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your timely help.&lt;/P&gt;&lt;P&gt;Problem solved. I am getting values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 14:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program-populating-values-for-columns-in-table-control/m-p/5981821#M1340958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T14:15:47Z</dc:date>
    </item>
  </channel>
</rss>

