<?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: Issue with function module F4IF_INT_TABLE_VALUE_REQUEST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-function-module-f4if-int-table-value-request/m-p/5964408#M1338166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ensure you are typing both fields in IT_TEMP as reference to Dictionary type (i.e data element, table field)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of it_temp occurs 0,
           field1 type char20,                  "no direct type here, only DDIC type 
           field2 type db_table-field,         "same here i.e type as table field
        end of it_temp.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2009 07:30:26 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2009-08-10T07:30:26Z</dc:date>
    <item>
      <title>Issue with function module F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-function-module-f4if-int-table-value-request/m-p/5964405#M1338163</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 wrote the logic as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options: s_lgart FOR pa0015-lgart.&lt;/P&gt;&lt;P&gt;SELECT lgart FROM t512z INTO TABLE it_temp WHERE infty = '0015' AND lgart IN rlgart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT it_temp[] IS INITIAL.&lt;/P&gt;&lt;P&gt;SORT it_temp BY lgart.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM it_temp COMPARING lgart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_temp.&lt;/P&gt;&lt;P&gt;SELECT SINGLE lgtxt FROM t512t INTO it_temp-description&lt;/P&gt;&lt;P&gt;WHERE lgart = it_temp-lgart AND&lt;/P&gt;&lt;P&gt;sprsl = 'EN'.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MODIFY it_temp INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at present in internal table it_temp having following fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5100 Relolump sum&lt;/P&gt;&lt;P&gt;5111 SIP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is : when i press F4 help on wage type in selection screen i am able to see two fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used above function as follows.&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        = 'LGART'&lt;/P&gt;&lt;P&gt;      dynpprog        = sy-repid&lt;/P&gt;&lt;P&gt;      dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;      dynprofield     = 'LGART'&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_temp[]&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  = 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;but it is shwoing first field i.e. wage type but it is not showing wage type description. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anybody can suggest me how to fix this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;maheedhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 06:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-function-module-f4if-int-table-value-request/m-p/5964405#M1338163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T06:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with function module F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-function-module-f4if-int-table-value-request/m-p/5964406#M1338164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@maheedhar&lt;/P&gt;&lt;P&gt;hi! &lt;/P&gt;&lt;P&gt;write this after select-options&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for &amp;lt;tabname-field name&amp;gt;&lt;/P&gt;&lt;P&gt;also,&lt;/P&gt;&lt;P&gt;Try commenting-&lt;/P&gt;&lt;P&gt;*dynpprog = sy-repid&lt;/P&gt;&lt;P&gt;*dynpnr = sy-dynnr&lt;/P&gt;&lt;P&gt;*dynprofield = 'LGART'&lt;/P&gt;&lt;P&gt;in FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sumit Nene on Aug 10, 2009 9:09 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 07:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-function-module-f4if-int-table-value-request/m-p/5964406#M1338164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T07:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with function module F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-function-module-f4if-int-table-value-request/m-p/5964407#M1338165</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;Try this, it works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write this after select-options&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for &amp;lt;the field name in select options&amp;gt;&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;       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;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 07:25:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-function-module-f4if-int-table-value-request/m-p/5964407#M1338165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T07:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with function module F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-function-module-f4if-int-table-value-request/m-p/5964408#M1338166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ensure you are typing both fields in IT_TEMP as reference to Dictionary type (i.e data element, table field)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of it_temp occurs 0,
           field1 type char20,                  "no direct type here, only DDIC type 
           field2 type db_table-field,         "same here i.e type as table field
        end of it_temp.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 07:30:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-function-module-f4if-int-table-value-request/m-p/5964408#M1338166</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-10T07:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with function module F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-function-module-f4if-int-table-value-request/m-p/5964409#M1338167</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;PRE&gt;&lt;CODE&gt;
TABLES pa0015.
SELECT-OPTIONS: s_lgart FOR pa0015-lgart.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_lgart-low.
  PERFORM f_f4help.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_lgart-high.
  PERFORM f_f4help.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f_f4help
*&amp;amp;---------------------------------------------------------------------*
FORM f_f4help .
  DATA : BEGIN OF it_temp OCCURS 0,
         lgart TYPE t512z-lgart,
         description TYPE t512t-lgtxt,
         END OF it_temp.
  SELECT lgart FROM t512z INTO CORRESPONDING FIELDS OF  TABLE it_temp WHERE infty = '0015' AND lgart IN s_lgart.

  IF NOT it_temp[] IS INITIAL.
    SORT it_temp BY lgart.
    DELETE ADJACENT DUPLICATES FROM it_temp COMPARING lgart.

    LOOP AT it_temp.
      SELECT SINGLE lgtxt FROM t512t INTO it_temp-description
      WHERE lgart = it_temp-lgart AND
      sprsl = 'EN'.
      IF sy-subrc = 0.
        MODIFY it_temp INDEX sy-tabix.
      ENDIF.
    ENDLOOP.
  ENDIF.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'LGART'
      dynpprog        = sy-repid
      dynpnr          = sy-dynnr
      dynprofield     = 'LGART'
      value_org       = 'S'
    TABLES
      value_tab       = it_temp[]
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.
  IF sy-subrc = 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDFORM.                                                    " f_f4help
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 07:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-function-module-f4if-int-table-value-request/m-p/5964409#M1338167</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-08-10T07:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with function module F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-function-module-f4if-int-table-value-request/m-p/5964410#M1338168</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;PRE&gt;&lt;CODE&gt;
TABLES pa0015.
SELECT-OPTIONS: s_lgart FOR pa0015-lgart.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_lgart-low.
  PERFORM f_f4help.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_lgart-high.
  PERFORM f_f4help.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f_f4help
*&amp;amp;---------------------------------------------------------------------*
FORM f_f4help .
  DATA : BEGIN OF it_temp OCCURS 0,
         lgart TYPE t512z-lgart,
         description TYPE t512t-lgtxt,
         END OF it_temp.
  SELECT lgart FROM t512z INTO CORRESPONDING FIELDS OF  TABLE it_temp WHERE infty = '0015' AND lgart IN s_lgart.

  IF NOT it_temp[] IS INITIAL.
    SORT it_temp BY lgart.
    DELETE ADJACENT DUPLICATES FROM it_temp COMPARING lgart.

    LOOP AT it_temp.
      SELECT SINGLE lgtxt FROM t512t INTO it_temp-description
      WHERE lgart = it_temp-lgart AND
      sprsl = 'EN'.
      IF sy-subrc = 0.
        MODIFY it_temp INDEX sy-tabix.
      ENDIF.
    ENDLOOP.
  ENDIF.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'LGART'
      dynpprog        = sy-repid
      dynpnr          = sy-dynnr
      dynprofield     = 'LGART'
      value_org       = 'S'
    TABLES
      value_tab       = it_temp[]
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.
  IF sy-subrc = 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDFORM.                                                    " f_f4help
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 07:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-function-module-f4if-int-table-value-request/m-p/5964410#M1338168</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-08-10T07:38:11Z</dc:date>
    </item>
  </channel>
</rss>

