<?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: Problem while using F4IF_INT_TABLE_VALUE_REQUEST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990550#M74084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkat,&lt;/P&gt;&lt;P&gt;I created a domain as you had suggested and added in the conversion routine - ALPHA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem still persits, now if i veiw the records in se11/se16 [display mode] the veiw shows me correct values. but if i click on induvidual records... i get some strange numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ranjan  MR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Aug 2005 06:13:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-26T06:13:59Z</dc:date>
    <item>
      <title>Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990540#M74074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I facing a strange problem while using F4IF_INT_TABLE_VALUE_REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me describe my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a database table which has the following,&lt;/P&gt;&lt;P&gt;Column    | DataType |Length |&lt;/P&gt;&lt;P&gt;MANDT     | SY- MANDT| 3     |&lt;/P&gt;&lt;P&gt;HEADER_ID | INT4     | 10    |&lt;/P&gt;&lt;P&gt;TRANS_ID  | INT4     | 10    |&lt;/P&gt;&lt;P&gt;HEAD_NAME | CHAR     | 30    |&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values that are there in the database is&lt;/P&gt;&lt;P&gt;MANDT | HEADER_ID |TRANS_ID  | HEAD_NAME |&lt;/P&gt;&lt;P&gt;100   |       001 |     1000 | Download  |&lt;/P&gt;&lt;P&gt;100   |       002 |     2000 | Upload    |&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Report program, in the event&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_TRAN_ID.&lt;/P&gt;&lt;P&gt;I have used  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should be able to choose 1000 or 2000 as the Trans_ID. but when i use F4, instead of getting 1000 and 2000, I am getting some strange Numbers (10) digits which is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what I am passing is correct ... Please look at the code below that I have written and correct me where am I making the mistake &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_TRAN LIKE ZMPHR-TRANS_ID DEFAULT ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PICK TRANS_ID FROM SELECTION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_TRAN.&lt;/P&gt;&lt;P&gt;  PERFORM F4_HELP_FOR_P_TRAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      PICK TRANS_ID FROM SELECTION&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM F4_HELP_FOR_P_TRAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: VALUE_TAB  LIKE ZMPHR   OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: RETURN_TAB LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA  FIELD_TAB  LIKE STANDARD TABLE OF DFIES WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM ZMPHR INTO TABLE VALUE_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DDIF_FIELDINFO_GET'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     TABNAME   = 'ZMPHR'&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     DFIES_TAB = FIELD_TAB&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     OTHERS    = 3.&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;      DDIC_STRUCTURE  = 'ZMPHR'&lt;/P&gt;&lt;P&gt;      RETFIELD        = 'MAP_PARAM'&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;      FIELD_TAB       = FIELD_TAB&lt;/P&gt;&lt;P&gt;      RETURN_TAB      = RETURN_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;&lt;/P&gt;&lt;P&gt;  P_TRAN = RETURN_TAB-FIELDVAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " F4_HELP_FOR_P_TRAN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 15:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990540#M74074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T15:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990541#M74075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the definition of the TRANS_ID in  your table.  It is a integer of length 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANS_ID | &amp;lt;b&amp;gt;INT4 | 10 |&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the database it is stored as 0000001000.  This is how it will be unless to put a conversion on it.  You will need to put the conversion exit onto the domain of the data element used for the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 15:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990541#M74075</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-25T15:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990542#M74076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MAP_PARAM ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I seem that your table hasn't a field called MAP_PARAM, but TRANS_ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 15:59:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990542#M74076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T15:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990543#M74077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use  "NUMC1" in the conversion routine field of the domain.  Problem should be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 16:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990543#M74077</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-25T16:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990544#M74078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or, you could simply do the conversion directly in your program, right after the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

select * from zmphr into table value_tab.

loop at  value_tab.

  call function 'CONVERSION_EXIT_NUMC1_OUTPUT'
       exporting
            input  = value_tab-trans_id
       importing
            output = value_tab-trans_id.
  modify value_tab.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 16:06:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990544#M74078</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-25T16:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990545#M74079</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 check with fieldtab.  FIELD_TAB-INTTYPE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first remove the field tab then see what you get, if displays correctly check with field tab values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 16:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990545#M74079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T16:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990546#M74080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the modified code for you. It works. Note the translate statement in there. It is required as the return table has the values for the trans_id in output format, i.e., with comma and dots and that will result in dump, if not removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: p_tran LIKE zmphr-trans_id.

*&amp;amp;-------------------------------------------------------*
* PICK TRANS_ID FROM SELECTION
*&amp;amp;-------------------------------------------------------*
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_tran.
  PERFORM f4_help_for_p_tran.

*&amp;amp;-------------------------------------------------------*
*&amp;amp; PICK TRANS_ID FROM SELECTION
*&amp;amp;-------------------------------------------------------*
FORM f4_help_for_p_tran.

  DATA: value_tab LIKE zmphr OCCURS 0 WITH HEADER LINE.
  DATA: return_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE.

  DATA field_tab LIKE STANDARD TABLE OF dfies WITH HEADER LINE.

  SELECT * FROM zmphr INTO TABLE value_tab.

  CALL FUNCTION 'DDIF_FIELDINFO_GET'
       EXPORTING
            tabname   = 'ZMPHR'
       TABLES
            dfies_tab = field_tab
       EXCEPTIONS
            OTHERS    = 3.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            ddic_structure  = 'ZMPHR'
            retfield        = 'TRANS_ID'
            dynprofield     = 'P_TRAN'
            value_org       = 'S'
       TABLES
            value_tab       = value_tab
            field_tab       = field_tab
            return_tab      = return_tab
       EXCEPTIONS
            parameter_error = 1
            no_values_found = 2
            OTHERS          = 3.
  IF sy-subrc = 0.
    READ TABLE return_tab INDEX 1.
    TRANSLATE: return_tab-fieldval USING ', ',
               return_tab-fieldval USING '. '.
    CONDENSE return_tab-fieldval NO-GAPS.
    p_tran = return_tab-fieldval.
  ENDIF.

ENDFORM. " F4_HELP_FOR_P_TRAN&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2005 16:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990546#M74080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-25T16:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990547#M74081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich, &lt;/P&gt;&lt;P&gt;I tried this logic and still I get the same old results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2005 04:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990547#M74081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-26T04:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990548#M74082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem still persists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2005 04:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990548#M74082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-26T04:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990549#M74083</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 table u create one domain for TRANS_ID with &lt;/P&gt;&lt;P&gt;datatype : int4&lt;/P&gt;&lt;P&gt;lenght : 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output length : 10&lt;/P&gt;&lt;P&gt;Convers. routine : 'ALPHA'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;activate and try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;gv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2005 04:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990549#M74083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-26T04:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990550#M74084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkat,&lt;/P&gt;&lt;P&gt;I created a domain as you had suggested and added in the conversion routine - ALPHA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem still persits, now if i veiw the records in se11/se16 [display mode] the veiw shows me correct values. but if i click on induvidual records... i get some strange numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ranjan  MR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2005 06:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990550#M74084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-26T06:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990551#M74085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While Debugging the function module F4IF_INT_TABLE_VALUE_REQUEST , I discovered some following results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I removed the HEAD_NAME | CHAR | 30 | from the database table and the FM provides me the &amp;lt;b&amp;gt;correct output&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. BUT When I add it back to the database table , it is back to the same old problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Therefore , I added alternatively a field which has Integer Type anc Character Type to make my observations better , the result is whenever you add a field of character datatype inbetween a field Interger datatype, you get this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear. I am still looking forward for a solution from experts .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2005 09:03:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990551#M74085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-26T09:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990552#M74086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sasi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain me in detail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2005 09:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990552#M74086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-26T09:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990553#M74087</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 try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at field_tab.&lt;/P&gt;&lt;P&gt;  if field_tab-fieldname = 'TRANS_ID'.&lt;/P&gt;&lt;P&gt;    field_tab-inttype = 'D'.&lt;/P&gt;&lt;P&gt;    modify field_tab.&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;in the field tab i set inttype as D ( decimal ) it's working fine.  Instead of the above loop you can use read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2005 13:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990553#M74087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-26T13:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990554#M74088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the same table in my system, entered the same two records in my system and used the same code I posted above, and it works for me. I am not sure why it is not working for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain one more time as to what exactly you are seeing? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have the database table defined as you mentioned in your original post. &lt;/P&gt;&lt;P&gt;Then you have two records in there as you gave in the example.&lt;/P&gt;&lt;P&gt;Then you fill an internal table with those two entries. In debugging, do you see the records properly in the internal table at this point?&lt;/P&gt;&lt;P&gt;Now you call the F4 function module. What you see in the pop-up is some strange numbers? Or is it after you select one and move to the parameter it becomes a strange number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some critical information is missing here. Please let us know more about your problem and may be your exact code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2005 15:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990554#M74088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-26T15:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990555#M74089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks srinvias for your response, deeply appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me describe the problem once again.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;1) The database table Defination looks like this  
&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Column   | DataType |Length |&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;
MANDT    |CLNT	    |3	    |
HEADER_ID|INT4	    |10	    |
TRANS_ID |INT4	    |10	    |
HEAD_NAME|CHAR      |30	    |&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2) The Records for this database tables are :- &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;MANDT | HEADER_ID |TRANS_ID | HEAD_NAME |&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;
100   |      001  |    1000 | Download  |
100   |      002  |    2000 | Upload    |&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;3)In  Report program, in the event&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_TRAN_ID.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have used &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; to help the user to select the &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TRANS_ID&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; along with Description.&lt;/P&gt;&lt;P&gt;4.I should be able to choose 1000 or 2000 as the Trans_ID. but when I use F4, instead of getting 1000 and 2000, I am getting some strange Numbers (10) digits [Hexa decimal I suppose]which is wrong.&lt;/P&gt;&lt;P&gt;5. I am not sure what I am passing is correct ... Please look at the code below that I have written and correct me where am I making the mistake &lt;/P&gt;&lt;P&gt;6)As seen from the &amp;lt;u&amp;gt;&amp;lt;b&amp;gt;SE11 screen&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;, I can see the data like shown below&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;MANDT| HEADER_ID|  TRANS_ID |  HEAD_NAME&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;
100|           1 |     &amp;lt;b&amp;gt;1,000&amp;lt;/b&amp;gt; | DOWNLOAD
100|           2 |     &amp;lt;b&amp;gt;2,000&amp;lt;/b&amp;gt; | UPLOAD&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;7)&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;The code that I have written as per your suggestion&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: P_TRAN LIKE ZMPHR-TRANS_ID.

*&amp;amp;-------------------------------------------------------*
* PICK TRANS_ID FROM SELECTION
*&amp;amp;-------------------------------------------------------*
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_TRAN.
  PERFORM F4_HELP_FOR_P_TRAN.

*&amp;amp;-------------------------------------------------------*
*&amp;amp; PICK TRANS_ID FROM SELECTION
*&amp;amp;-------------------------------------------------------*
FORM F4_HELP_FOR_P_TRAN.

DATA: VALUE_TAB LIKE ZMPHR OCCURS 0 WITH HEADER LINE.
DATA: RETURN_TAB LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE.

DATA FIELD_TAB LIKE STANDARD TABLE OF DFIES WITH HEADER LINE.

SELECT * FROM ZMPHR INTO TABLE VALUE_TAB.

CALL FUNCTION 'DDIF_FIELDINFO_GET'
    EXPORTING
      TABNAME   = 'ZMPHR'
    TABLES
      DFIES_TAB = FIELD_TAB
    EXCEPTIONS
      OTHERS    = 3.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      DDIC_STRUCTURE  = 'ZMPHR'
      RETFIELD        = 'TRANS_ID'
      DYNPROFIELD     = 'P_TRAN'
      VALUE_ORG       = 'S'
    TABLES
      VALUE_TAB       = VALUE_TAB
      FIELD_TAB       = FIELD_TAB
      RETURN_TAB      = RETURN_TAB
    EXCEPTIONS
      PARAMETER_ERROR = 1
      NO_VALUES_FOUND = 2
      OTHERS          = 3.
  IF SY-SUBRC = 0.
    READ TABLE RETURN_TAB INDEX 1.
    TRANSLATE: RETURN_TAB-FIELDVAL USING ', ',
               RETURN_TAB-FIELDVAL USING '. '.
    CONDENSE RETURN_TAB-FIELDVAL NO-GAPS.
    P_TRAN = RETURN_TAB-FIELDVAL.
  ENDIF.

ENDFORM. " F4_HELP_FOR_P_TRAN&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; The Values in the &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;DEBUG MODE&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;- for itab -&amp;gt; &amp;lt;b&amp;gt;VALUE_TAB&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;after the select query is &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;100  |         1 |      1000 |DOWNLOAD                                    |
100  |         2 |      2000 |UPLOAD                                      |&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;9) &amp;lt;b&amp;gt;After&amp;lt;/b&amp;gt; Executing F4IF_INT_TABLE_VALUE_REQUEST, in &amp;lt;b&amp;gt;the pop-up is some strange numbers as mentioned&amp;lt;/b&amp;gt; below instead of &amp;lt;b&amp;gt;1000 or 2000&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;MANDT HEADER_ID  TRANS_ID   HEAD_NAME&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;
200	1	&amp;lt;b&amp;gt;1140851688&amp;lt;/b&amp;gt;	DOWNLOAD
200	2	&amp;lt;b&amp;gt;1426065360&amp;lt;/b&amp;gt;	UPLOAD&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In short, the Popup table has some strange values than actual values that should be shown from database.&lt;/P&gt;&lt;P&gt;Hope this is clear. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2005 06:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990555#M74089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-27T06:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990556#M74090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see why you are so perplexed, because I am too. Everything in your code looks perfect (except of course your statement 'AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_TRAN_ID.' which should have been AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_TRAN).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version are you on? Looks like something changed in this function module. I am sure it worked in my 46C system. If something doesn't work for some and works for the others, then blame the version!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why did the client number change between the time it got selected and by the time it got displayed in the pop-up? Not only that the transid changed to some strange code. This is puzzling. Did you try debugging the function module to see where it is getting changed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has this table been changed, either in its structure(adding or deleting fields) or in the types(CHAR instead of a INT4 for a field)? Did you get any warnings or errors while doing that? Have you run the database utility with the option 'Adjust' and 'Save data'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2005 13:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990556#M74090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-27T13:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990557#M74091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, there were some typo errors , thanks for pointing out and i have corrected them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct, I tried the same program in 4.6 c and it works properly. BUT I am working on SAP WAS 6.2 version of our client and its important to fix this code in that machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help. Please let me know how can we correct this bug in SAP WAS 6.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2005 12:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990557#M74091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-28T12:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990558#M74092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be an issue because of unicode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just for test case is it possible to change the data type from int4 to char or numc for header_id and trans_id and see how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check the following oss note.&lt;/P&gt;&lt;P&gt;679120&lt;/P&gt;&lt;P&gt;423869&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my guess is that data type is the issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its a case for OSS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Durairaj Athavan Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2005 13:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990558#M74092</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-08-28T13:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using F4IF_INT_TABLE_VALUE_REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990559#M74093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everybody for your responses to this question&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 10:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-f4if-int-table-value-request/m-p/990559#M74093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T10:49:56Z</dc:date>
    </item>
  </channel>
</rss>

