<?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: F4IF_INT_TABLE_VALUE_REQUEST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594193#M1275111</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;I think you know everything........Better try at your end and come with the Problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/EN/9f/dbaac935c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/EN/9f/dbaac935c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would be writing your all code in the PAI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2009 18:50:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-05T18:50:19Z</dc:date>
    <item>
      <title>F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594192#M1275110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to do as follows.&lt;/P&gt;&lt;P&gt;I have 2 parameters on selection screen P1 and P2.&lt;/P&gt;&lt;P&gt;If i hit F4 on P1 it brings value list with 2 columns. I want to fill parameter P1 with C1 value and P2 with C2 value when i select any row in the list. I am just wondering to know how it can be done using the following FM. &lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST. I appreciate your response.&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 18:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594192#M1275110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T18:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594193#M1275111</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;I think you know everything........Better try at your end and come with the Problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/EN/9f/dbaac935c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/EN/9f/dbaac935c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would be writing your all code in the PAI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 18:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594193#M1275111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T18:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594194#M1275112</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;Problem is i could able to pass only one value. ex C1 to P1 but not C2 to P2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 20:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594194#M1275112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T20:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594195#M1275113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the following code as per ur requirement. Give the select query according to ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INTTAB OCCURS 10,&lt;/P&gt;&lt;P&gt;CODE LIKE QPCT-CODE,&lt;/P&gt;&lt;P&gt;KURZTEXT LIKE QPCT-KURZTEXT,&lt;/P&gt;&lt;P&gt;END OF INTTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR CODE-LOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT CODE KURZTEXT FROM QPCT INTO TABLE INTTAB WHERE CODEGRUPPE = 'QCREMARK'.&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 = 'CODE'&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 = 'CODE-LOW'&lt;/P&gt;&lt;P&gt;WINDOW_TITLE = 'Select Quality Remark Code'&lt;/P&gt;&lt;P&gt;VALUE_ORG = 'S'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VALUE_TAB = inttab&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 05:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594195#M1275113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T05:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594196#M1275114</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;on selection of F4 help for P1,    the value C1 and C2 will be stored in memory separated by space as shown below import from memory split record_tab at space into C1 and C2 , remove leading zeros from C2 and call FM-DYNP_VALUES_UPDATE preparing DYNPFIELDS as .....&lt;/P&gt;&lt;P&gt;fill fieldname as P2,  field value as C2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;record_tab is a internal table.&lt;/P&gt;&lt;P&gt; IMPORT record_tab FROM MEMORY ID 'mcx_record_tab'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Lavanya K on May 6, 2009 7:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 05:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594196#M1275114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T05:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594197#M1275115</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;Check this code...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETES : p_werks type ...
PARAMETES : p_plnnr type ....
PARAMETES : p_plnal type....
 
 
AT SELECTION-SCREEN ON P_PLNNR.
 


  data:
    lg_condition    type string.

  data:
     lwa_ddshretval type ddshretval,
     lwa_dselc      type dselc,
     lwa_dynpread   type dynpread.
  data:
     li_f4_insp     type standard table of t_f4_insp,
     li_ddshretval  type standard table of ddshretval,
     li_dselc       type standard table of dselc,
     li_dynpread    type standard table of dynpread.


  lwa_dynpread-fieldname = 'P_WERKS'.
  append lwa_dynpread to li_dynpread.
  clear lwa_dynpread.
* Read Screen Field Values.
  call function 'DYNP_VALUES_READ'
    exporting
      dyname     = sy-repid
      dynumb     = sy-dynnr
    tables
      dynpfields = li_dynpread.

* Read the first record as only one record will be present
  read table li_dynpread into lwa_dynpread index 1.
  p_werks = lwa_dynpread-fieldvalue.

  if p_werks is initial.
    move 'PLNTY EQ ''Q''' to lg_condition.
  else.
    move 'WERKS EQ P_WERKS AND PLNTY EQ ''Q''' to lg_condition.
  endif.

* Fetch Data
  select werks
         plnnr
         plnal
         plnty
         ktext
    into table li_f4_insp
    from plko
    where (lg_condition).

  lwa_dselc-fldname = 'F0002'.
  lwa_dselc-dyfldname = 'PLNNR'.
  append lwa_dselc to li_dselc.
  clear lwa_dselc.
  lwa_dselc-fldname = 'F0003'.
  lwa_dselc-dyfldname = 'PLNAL'.
  append lwa_dselc to li_dselc.
  clear lwa_dselc.
* FM For F4 Help
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield        = 'PLNNR'
      dynpprog        = sy-cprog
      dynpnr          = sy-dynnr
      dynprofield     = 'PLNNR'
      value_org       = 'S'
    tables
      value_tab       = li_f4_insp
      return_tab      = li_ddshretval
      dynpfld_mapping = li_dselc
    exceptions
      parameter_error = 1
      no_values_found = 2
      others          = 3.

  if sy-subrc eq 0.
    refresh li_dynpread.
    read table li_ddshretval into lwa_ddshretval index 1.
    if sy-subrc eq 0.
      move lwa_ddshretval-fieldval to p_plnnr.
      lwa_dynpread-fieldname = 'P_PLNNR'.
      lwa_dynpread-fieldvalue = lwa_ddshretval-fieldval.
      append lwa_dynpread to li_dynpread.
      clear lwa_dynpread.
    endif.                             " IF sy-subrc EQ 0.
    read table li_ddshretval into lwa_ddshretval index 2.
    if sy-subrc eq 0.
      move lwa_ddshretval-fieldval to p_plnal.
      lwa_dynpread-fieldname = 'P_PLNAL'.
      lwa_dynpread-fieldvalue = lwa_ddshretval-fieldval.
      append lwa_dynpread to li_dynpread.
      clear lwa_dynpread.
    endif.                             " IF sy-subrc EQ 0.
  endif.                               " IF sy-subrc EQ 0.

* Set Screen Field Values.
  call function 'DYNP_VALUES_UPDATE'
    exporting
      dyname               = sy-repid
      dynumb               = sy-dynnr
    tables
      dynpfields           = li_dynpread
    exceptions
      invalid_abapworkarea = 1
      invalid_dynprofield  = 2
      invalid_dynproname   = 3
      invalid_dynpronummer = 4
      invalid_request      = 5
      no_fielddescription  = 6
      undefind_error       = 7
      others               = 8.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 05:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594197#M1275115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T05:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594198#M1275116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at selection-screen on value-request for p1.&lt;/P&gt;&lt;P&gt;  perform f4_p1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form f4_p1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; refresh it_p1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select c1 from &lt;STRONG&gt;table&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;       into corresponding fields of table it_p1.&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     = 'Ref field of P1 parameter'&lt;/P&gt;&lt;P&gt;      dynpprog     = sy-repid&lt;/P&gt;&lt;P&gt;      dynpnr       = '1000'&lt;/P&gt;&lt;P&gt;      dynprofield  = 'P1'&lt;/P&gt;&lt;P&gt;      value_org    = 'S'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      value_tab    = it_p1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Vidhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 05:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594198#M1275116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T05:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594199#M1275117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for responses. It is working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 13:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/5594199#M1275117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T13:31:24Z</dc:date>
    </item>
  </channel>
</rss>

