<?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/1374099#M183683</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 the sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_F4HELP                              .

*---Report with selection screen and to display the list of
* possible entries for field 'B' as per the value in field 'A'.


parameters: p_vbeln type vbak-vbeln,
            p_posnr type vbap-posnr.

at selection-screen on value-request for p_posnr.


  data: begin of help_item occurs 0,
          posnr type vbap-posnr,
          matnr type vbap-matnr,
          arktx type vbap-arktx,
        end of help_item.

  data: dynfields type table of dynpread with header line.


  dynfields-fieldname = 'P_VBELN'.
  append dynfields.

  call function 'DYNP_VALUES_READ'
       exporting
            dyname               = sy-cprog
            dynumb               = sy-dynnr
            translate_to_upper   = 'X'
       tables
            dynpfields           = dynfields
       exceptions
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            invalid_parameter    = 7
            undefind_error       = 8
            double_conversion    = 9
            stepl_not_found      = 10
            others               = 11.


  read table dynfields with key fieldname = 'P_VBELN'.

  p_vbeln = dynfields-fieldvalue.


  call function 'CONVERSION_EXIT_ALPHA_INPUT'
       exporting
            input  = p_vbeln
       importing
            output = p_vbeln.

  select posnr matnr arktx into table help_item
                 from vbap
                      where vbeln = p_vbeln.



  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'POSNR'
            dynprofield = 'P_POSNR'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = help_item.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 May 2006 12:11:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-16T12:11:07Z</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/1374093#M183677</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;I am creating a F4 help using this FM F4IF_INT_TABLE_VALUE_REQUEST. But i would like to know which parameter returns the selected entries of F4 help. So that i can use them update my other screen fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 11:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/1374093#M183677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T11:59: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/1374094#M183678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Durgesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Function Module provides an F4 help that returns the values that have selected in an internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM(Function Module) is quite useful when you are programming your own F4 help for a field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following example may be of some help to you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lf_repid LIKE sy-repid, &lt;/P&gt;&lt;P&gt;lf_dynnr LIKE sy-dynnr, &lt;/P&gt;&lt;P&gt;lf_dynprofield LIKE help_info-dynprofld,&lt;/P&gt;&lt;P&gt;lf_retfield LIKE dfies-fieldname. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE sy-repid TO lf_repid. &lt;/P&gt;&lt;P&gt;MOVE sy-dynnr TO lf_dynnr. &lt;/P&gt;&lt;P&gt;MOVE 'PA_DPROF' TO lf_dynprofield. &lt;/P&gt;&lt;P&gt;MOVE 'PROFILNAME' TO lf_retfield. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM prepare_gt_value_tab. &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 = lf_retfield &lt;/P&gt;&lt;P&gt;dynpprog = lf_repid &lt;/P&gt;&lt;P&gt;dynpnr = lf_dynnr &lt;/P&gt;&lt;P&gt;dynprofield = lf_dynprofield &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_value_tab &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 &amp;lt;&amp;gt; 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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to retrieve the selected field , &lt;/P&gt;&lt;P&gt;READ TABLE it_value_tab INDEX 1 .&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;&amp;lt;field_to_get_Fvalue&amp;gt; = it_value_tab-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;Refer the documentation for the function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Susmitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 12:07:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/1374094#M183678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T12:07:15Z</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/1374095#M183679</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;Find below a sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selected value(s) reference is in the return_values internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: return_values LIKE ddshretval OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  STATICS: BEGIN OF value_tab OCCURS 0,&lt;/P&gt;&lt;P&gt;    key   TYPE textpoolky,&lt;/P&gt;&lt;P&gt;    entry TYPE textpooltx,&lt;/P&gt;&lt;P&gt;  END OF value_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE value_tab LINES sy-index.&lt;/P&gt;&lt;P&gt;  IF sy-index EQ 0.&lt;/P&gt;&lt;P&gt;    READ TEXTPOOL 'RVTEXTE' INTO texttab.&lt;/P&gt;&lt;P&gt;    LOOP AT texttab WHERE id = 'I' AND " Textsymbole&lt;/P&gt;&lt;P&gt;                          key(1) EQ 'A'.&lt;/P&gt;&lt;P&gt;      value_tab-key    = texttab-key+2(1).&lt;/P&gt;&lt;P&gt;      value_tab-entry  = texttab-entry.&lt;/P&gt;&lt;P&gt;      APPEND value_tab.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&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   = 'KEY'&lt;/P&gt;&lt;P&gt;            value_org  = 'S'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            value_tab  = value_tab&lt;/P&gt;&lt;P&gt;            return_tab = return_values&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS     = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE return_values INDEX 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 12:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/1374095#M183679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T12:07:38Z</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/1374096#M183680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;   The field name for which you have created this F4 help will have the selected value.&lt;/P&gt;&lt;P&gt;   For example if it is a parameter(p_matnr) , p_matnr will have the selected value.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Umasankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 12:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/1374096#M183680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T12:07:52Z</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/1374097#M183681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this you have to populate the fields for which you want the values to be returned in the tables parameter DYNPFLD_MAPPING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After selection the values selected will be found in the same internal table in the field FLDINH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 12:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/1374097#M183681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T12:08:05Z</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/1374098#M183682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT Z.&lt;/P&gt;&lt;P&gt;data: begin of inttab occurs 10,&lt;/P&gt;&lt;P&gt;          bukrs like t001-bukrs,&lt;/P&gt;&lt;P&gt;          butxt like t001-butxt,&lt;/P&gt;&lt;P&gt;          ort01 like t001-ort01,&lt;/P&gt;&lt;P&gt;      end of inttab,&lt;/P&gt;&lt;P&gt;      ret_tab like DDSHRETVAL occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;  select bukrs butxt ort01 from t001 into table inttab.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    DDIC_STRUCTURE         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      RETFIELD               = 'BUKRS'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    PVALKEY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    DYNPPROG               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    DYNPNR                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    DYNPROFIELD            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    STEPL                  = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      WINDOW_TITLE           = 'Select Company Code'&lt;/P&gt;&lt;P&gt;      VALUE                  = 'S*'&lt;/P&gt;&lt;P&gt;      VALUE_ORG              = 'S'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MULTIPLE_CHOICE        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    DISPLAY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CALLBACK_PROGRAM       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CALLBACK_FORM          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      VALUE_TAB              = inttab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    FIELD_TAB              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      RETURN_TAB             = ret_tab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    DYNPFLD_MAPPING        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    write: / 'Error =', sy-subrc.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    loop at ret_tab.&lt;/P&gt;&lt;P&gt;      write ret_tab-fieldval.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;end of code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 12:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/1374098#M183682</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-05-16T12:08:45Z</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/1374099#M183683</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 the sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_F4HELP                              .

*---Report with selection screen and to display the list of
* possible entries for field 'B' as per the value in field 'A'.


parameters: p_vbeln type vbak-vbeln,
            p_posnr type vbap-posnr.

at selection-screen on value-request for p_posnr.


  data: begin of help_item occurs 0,
          posnr type vbap-posnr,
          matnr type vbap-matnr,
          arktx type vbap-arktx,
        end of help_item.

  data: dynfields type table of dynpread with header line.


  dynfields-fieldname = 'P_VBELN'.
  append dynfields.

  call function 'DYNP_VALUES_READ'
       exporting
            dyname               = sy-cprog
            dynumb               = sy-dynnr
            translate_to_upper   = 'X'
       tables
            dynpfields           = dynfields
       exceptions
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            invalid_parameter    = 7
            undefind_error       = 8
            double_conversion    = 9
            stepl_not_found      = 10
            others               = 11.


  read table dynfields with key fieldname = 'P_VBELN'.

  p_vbeln = dynfields-fieldvalue.


  call function 'CONVERSION_EXIT_ALPHA_INPUT'
       exporting
            input  = p_vbeln
       importing
            output = p_vbeln.

  select posnr matnr arktx into table help_item
                 from vbap
                      where vbeln = p_vbeln.



  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'POSNR'
            dynprofield = 'P_POSNR'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = help_item.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 12:11:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request/m-p/1374099#M183683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T12:11:07Z</dc:date>
    </item>
  </channel>
</rss>

