<?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: F4 Help. Code Fix Help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042864#M1172483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you read the documentation for F4IF_INT_TABLE_VALUE_REQUEST you will see a section that says:&lt;/P&gt;&lt;P&gt;                                                                     &lt;/P&gt;&lt;P&gt;"DYNPPROG and DYNNR cannot be passed as SY-REPID and SY-DYNNR because they are only analyzed after the function module has been called.    Instead, first copy the SY fields to local variables and then pass  them to the function module."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... however you don't need to set them in your call as it will work it out for you... as for the return field, you probably need to add "-LOW" to your logic...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield        = 'S_ACTION-LOW'  "select-options range
      window_title    = 'Select Action'
      value_org       = 'S'
    tables
      value_tab       = lt_value
      return_tab      = lt_return
    exceptions
      parameter_error = 1
      no_values_found = 2
      others          = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2009 07:49:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-14T07:49:06Z</dc:date>
    <item>
      <title>F4 Help. Code Fix Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042859#M1172478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the code which should display 2 fields in the F4 help through program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing 2 problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Only one field is displayed on F4 popup window&lt;/P&gt;&lt;P&gt;2. When selecting any row, the data is not coming on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is below for your reference..&lt;/P&gt;&lt;P&gt;===============&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  Z_F4_HELP.

TABLES: VDARL.        "Loans


*----------------------------------------------------------------------*
* Selection Screen                                                     *
*----------------------------------------------------------------------*

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-100.
  SELECT-OPTIONS : S_GSART   FOR   VDARL-GSART.     " Product Type
SELECTION-SCREEN END OF BLOCK B1.

*************************************

AT SELECTION-SCREEN ON  VALUE-REQUEST FOR S_GSART-LOW.

  DATA : V_DYNFIELD TYPE HELP_INFO-DYNPROFLD.
  V_DYNFIELD = 'S_GSART' .

  DATA : BEGIN OF IT_HELP OCCURS 0,
          PTYPE LIKE VDARL-GSART,
          TEST(30) TYPE C,
         END OF  IT_HELP.
  DATA : IT_FIELD TYPE STANDARD TABLE OF DFIES .

  DATA : BEGIN OF IT_HELP2 OCCURS 0,
   PTYPE LIKE VDARL-GSART,
   TEST(30) TYPE C,
  END OF  IT_HELP2.




  SELECT GSART FROM TZPAB INTO TABLE IT_HELP WHERE BUKRS = '1000'.
  IF NOT IT_HELP[] IS INITIAL.
    SELECT GSART LTX FROM TZPAT INTO TABLE IT_HELP2 FOR ALL ENTRIES IN IT_HELP WHERE GSART = IT_HELP-PTYPE AND SPRAS = 'E' .
      SORT IT_HELP2 BY TEST.
      DELETE IT_HELP2 WHERE TEST IS INITIAL.
  ENDIF.


*data : ret_field type DFIES-FIELDNAME.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      RETFIELD        = 'S_GSART'
      DYNPPROG        = SY-REPID
      DYNPNR          = SY-DYNNR
      DYNPROFIELD     = V_DYNFIELD
      VALUE_ORG       = 'S'
    TABLES
      VALUE_TAB       = IT_HELP2
    EXCEPTIONS
      PARAMETER_ERROR = 1
      NO_VALUES_FOUND = 2
      OTHERS          = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vijay Babu Dudla on Jan 14, 2009 7:50 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 07:08:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042859#M1172478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T07:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help. Code Fix Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042860#M1172479</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 below code ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
    lt_select_values  LIKE STANDARD TABLE OF ddshretval,
    l_select_values  LIKE  ddshretval.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'VJAHR'
      dynpprog        = sy-repid
      dynpnr          = sy-dynnr
      window_title    = 'Year'                              "#EC NOTEXT
      value_org       = 'S'
    TABLES
      value_tab       = i_year_tab
      return_tab      = lt_select_values
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.
  IF sy-subrc EQ 0.
    CLEAR l_select_values.
    READ TABLE lt_select_values INTO l_select_values INDEX 1.
    IF sy-subrc EQ 0.
      p_year = l_select_values-fieldval.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 07:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042860#M1172479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T07:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help. Code Fix Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042861#M1172480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not working by this as well.&lt;/P&gt;&lt;P&gt;Basically, I am not getting any return value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So nothing is getting assigned to the screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The popup window is also showing single field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 07:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042861#M1172480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T07:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help. Code Fix Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042862#M1172481</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;Please Go through the following Threads you will find you Answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6801147"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6809638"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replay if any Issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 07:20:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042862#M1172481</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-01-14T07:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help. Code Fix Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042863#M1172482</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;I have searched the forum but my problem is not resolved. So I thought of pasting the code.&lt;/P&gt;&lt;P&gt;I guess there is some minor thign which I have missed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyways.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 07:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042863#M1172482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T07:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help. Code Fix Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042864#M1172483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you read the documentation for F4IF_INT_TABLE_VALUE_REQUEST you will see a section that says:&lt;/P&gt;&lt;P&gt;                                                                     &lt;/P&gt;&lt;P&gt;"DYNPPROG and DYNNR cannot be passed as SY-REPID and SY-DYNNR because they are only analyzed after the function module has been called.    Instead, first copy the SY fields to local variables and then pass  them to the function module."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... however you don't need to set them in your call as it will work it out for you... as for the return field, you probably need to add "-LOW" to your logic...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield        = 'S_ACTION-LOW'  "select-options range
      window_title    = 'Select Action'
      value_org       = 'S'
    tables
      value_tab       = lt_value
      return_tab      = lt_return
    exceptions
      parameter_error = 1
      no_values_found = 2
      others          = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 07:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042864#M1172483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T07:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help. Code Fix Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042865#M1172484</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;I will like to add to what the previous post has stated to use S_GSART-LOW in the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your AT SELECTION-SCREEN ON VALUE REQUEST event you have used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_GSART-LOW.
"You have used the screen field S_GSART-LOW and not S_GSART
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So ideally in the F4 help FM you should pass S_GSART-LOW &amp;amp; not S_GSART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'S_GSART-LOW' "--&amp;gt; Do not use 'S_GSART'
* DYNPPROG = SY-REPID "As mentioned you should not use SYST fields directly in the FM
* DYNPNR = SY-DYNNR
DYNPROFIELD = V_DYNFIELD
VALUE_ORG = 'S'
TABLES
VALUE_TAB = IT_HELP2
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 08:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042865#M1172484</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-01-14T08:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help. Code Fix Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042866#M1172485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,  Pranu   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with your following code it is working fine now little change in it,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: vdarl.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-100.
SELECT-OPTIONS : s_gsart FOR vdarl-gsart. " Product Type
SELECTION-SCREEN END OF BLOCK b1.

*************************************

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_gsart-low.
DATA: i_return TYPE ddshretval OCCURS 0 WITH HEADER LINE,
      c TYPE c VALUE 'S'.
  DATA : v_dynfield TYPE help_info-dynprofld.
  v_dynfield = 'S_GSART' .

  DATA : BEGIN OF it_help OCCURS 0,
  ptype LIKE vdarl-gsart,
  test(30) TYPE c,
  END OF it_help.
  DATA : it_field TYPE STANDARD TABLE OF dfies .

  DATA : BEGIN OF it_help2 OCCURS 0,
  ptype LIKE vdarl-gsart,
  test(30) TYPE c,
  END OF it_help2.
*BREAK-POINT .

  SELECT gsart FROM tzpab INTO TABLE it_help WHERE bukrs = '1000'.
  IF it_help[] IS INITIAL.
    SELECT gsart ltx FROM tzpat INTO TABLE it_help2 FOR ALL ENTRIES IN it_help WHERE gsart = it_help-ptype AND spras = 'E' .
    SORT it_help2 BY test.
    DELETE it_help2 WHERE test IS INITIAL.
  ENDIF.

BREAK-POINT .
*data : ret_field type DFIES-FIELDNAME.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'PTYPE'
      dynpprog        = sy-repid
      dynpnr          = sy-dynnr
      dynprofield     = 'PTYPE'
      value_org       = c
    TABLES
      value_tab       = it_help2
      return_tab  = i_return
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replay if still there is any Issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 08:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042866#M1172485</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-01-14T08:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help. Code Fix Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042867#M1172486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not working with all the options above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the piece of code working in your system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it got to do with version? I am on ECC6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know bit its not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 10:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042867#M1172486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T10:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help. Code Fix Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042868#M1172487</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;Plz add the code as followa:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      RETFIELD        = 'S_GSART-LOW'
*      DYNPPROG        = SY-REPID
*      DYNPNR          = SY-DYNNR
      DYNPROFIELD     = V_DYNFIELD
      VALUE_ORG       = 'S'
    TABLES
      VALUE_TAB       = IT_HELP2
    EXCEPTIONS
      PARAMETER_ERROR = 1
      NO_VALUES_FOUND = 2
      OTHERS          = 3.

  IF SY-SUBRC = 0.

    READ TABLE IT_HELP2 INDEX 1.
    IF SY-SUBRC = 0.
      S_GSART-LOW =  IT_HELP2-PTYPE.
    ENDIF.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working on my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 10:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042868#M1172487</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-01-14T10:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help. Code Fix Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042869#M1172488</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;You have to use the "field_tab       = int_field" in the function module  'F4IF_INT_TABLE_VALUE_REQUEST'. Here you can decalre the fields which you want to be displayed in the output. YOu can even add some more fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample code:-&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the following code o your program - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : int_field TYPE TABLE OF dfies,&lt;/P&gt;&lt;P&gt;         wa_field  TYPE dfies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_field-fieldname = 'PTYPE'.&lt;/P&gt;&lt;P&gt;  wa_field-leng      = 6.&lt;/P&gt;&lt;P&gt;  wa_field-intlen    = 6.&lt;/P&gt;&lt;P&gt;  wa_field-outputlen = 6.&lt;/P&gt;&lt;P&gt;  wa_field-datatype  = 'CHAR'.&lt;/P&gt;&lt;P&gt;  wa_field-inttype   = 'C'.&lt;/P&gt;&lt;P&gt;  wa_field-scrtext_s = 'PTYPE'.&lt;/P&gt;&lt;P&gt;  wa_field-scrtext_m = 'PTYPE'.&lt;/P&gt;&lt;P&gt;  wa_field-scrtext_l = 'PTYPE'.&lt;/P&gt;&lt;P&gt;  APPEND wa_field TO int_field.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_field.&lt;/P&gt;&lt;P&gt;  wa_field-fieldname = 'TEST'.&lt;/P&gt;&lt;P&gt;  wa_field-offset    = 6.&lt;/P&gt;&lt;P&gt;  wa_field-leng      = 60.&lt;/P&gt;&lt;P&gt;  wa_field-intlen    = 60.&lt;/P&gt;&lt;P&gt;  wa_field-outputlen = 60.&lt;/P&gt;&lt;P&gt;  wa_field-datatype  = 'CHAR'.&lt;/P&gt;&lt;P&gt;  wa_field-inttype   = 'C'.&lt;/P&gt;&lt;P&gt;  wa_field-scrtext_s = 'TEST'.&lt;/P&gt;&lt;P&gt;  wa_field-scrtext_m = 'TEST'.&lt;/P&gt;&lt;P&gt;  wa_field-scrtext_l = 'TEST'.&lt;/P&gt;&lt;P&gt;  APPEND wa_field TO int_field.&lt;/P&gt;&lt;P&gt;  CLEAR  wa_field.&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        = 'PTYPE'&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     = 'PTYPE'&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_help2&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;field_tab       = int_field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      return_tab      = i_return&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;Edited by: Krishna Adabala on Jan 14, 2009 11:56 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 10:54:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042869#M1172488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T10:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help. Code Fix Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042870#M1172489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Pranu  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Just Change as follow,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : BEGIN OF IT_HELP2 OCCURS 0,
PTYPE LIKE VDARL-GSART,
TEST(30) TYPE C,         " Replace this Line with the Bellow Line
END OF IT_HELP2.


DATA : BEGIN OF IT_HELP2 OCCURS 0,
PTYPE LIKE VDARL-GSART,
TEST like tzpat-ltx        " Like This
END OF IT_HELP2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It will solve you problem i have tested,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also Replace the following Fountion line with the Bellow line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;retfield        = 'S_GSART'   "Replace this line

retfield        = 'PTYPE' " With This one&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;Reply if any Problem, I am waiting from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Faisal Altaf on Jan 14, 2009 4:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 11:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-code-fix-help/m-p/5042870#M1172489</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-01-14T11:40:29Z</dc:date>
    </item>
  </channel>
</rss>

