<?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 select a specific record from a list! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836426#M1472422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello0o Gentelmen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've create a table with 3 keys ( clint, customer_no, and begin_date ) and 2 other fields called ( credit_used, credit_allowed )..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my program i use FM 'F4IF_INT_TABLE_VALUE_REQUEST' and it works fine with me... but when i select any record from the list, the first field in the table is displayed .. not the selected record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note that ( customer_no ) is my condition to display the whole record into the I/O fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE ok_code.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;      SET SCREEN 0.&lt;/P&gt;&lt;P&gt;    WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;    WHEN 'OK'.&lt;/P&gt;&lt;P&gt;      SELECT SINGLE * FROM ycustomer_t INTO G_TAB_CON_WA&lt;/P&gt;&lt;P&gt;                      WHERE customer_no = F2.     // F2 is the screen field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0 .&lt;/P&gt;&lt;P&gt;        MOVE-CORRESPONDING G_TAB_CON_WA to ycustomer_t.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        MESSAGE 'customer number you entered is not found' type 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR G_TAB_CON_WA-clint.&lt;/P&gt;&lt;P&gt;        CLEAR G_TAB_CON_WA-customer_no.&lt;/P&gt;&lt;P&gt;        CLEAR G_TAB_CON_WA-begin_date.&lt;/P&gt;&lt;P&gt;        CLEAR G_TAB_CON_WA-credit_used.&lt;/P&gt;&lt;P&gt;        CLEAR G_TAB_CON_WA-credit_allowed.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;      MODIFY ycustomer_t FROM G_TAB_CON_WA.&lt;/P&gt;&lt;P&gt;      MESSAGE ' Data has been updated' TYPE 'I'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the FM code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * from ycustomer_t INTo CORRESPONDING FIELDS OF TABLE G_TAB_CON_ITAB.&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        = 'CUSTOMER_NO'  "Key field from ycustomer_t&lt;/P&gt;&lt;P&gt;      dynpprog    = sy-repid           "Program&lt;/P&gt;&lt;P&gt;      dynpnr      = sy-dynnr           "Dynpro number&lt;/P&gt;&lt;P&gt;      dynprofield = 'F2'               "Screen field field&lt;/P&gt;&lt;P&gt;      value_org       = 'S'            "Value return: C: cell by cell, S: structured&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     display         = 'F'            "Override readiness for input&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab       = G_TAB_CON_ITAB&lt;/P&gt;&lt;P&gt;      return_tab      = 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;  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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help!!&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Mar 2010 06:42:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-29T06:42:38Z</dc:date>
    <item>
      <title>select a specific record from a list!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836426#M1472422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello0o Gentelmen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've create a table with 3 keys ( clint, customer_no, and begin_date ) and 2 other fields called ( credit_used, credit_allowed )..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my program i use FM 'F4IF_INT_TABLE_VALUE_REQUEST' and it works fine with me... but when i select any record from the list, the first field in the table is displayed .. not the selected record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note that ( customer_no ) is my condition to display the whole record into the I/O fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE ok_code.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;      SET SCREEN 0.&lt;/P&gt;&lt;P&gt;    WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;    WHEN 'OK'.&lt;/P&gt;&lt;P&gt;      SELECT SINGLE * FROM ycustomer_t INTO G_TAB_CON_WA&lt;/P&gt;&lt;P&gt;                      WHERE customer_no = F2.     // F2 is the screen field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0 .&lt;/P&gt;&lt;P&gt;        MOVE-CORRESPONDING G_TAB_CON_WA to ycustomer_t.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        MESSAGE 'customer number you entered is not found' type 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR G_TAB_CON_WA-clint.&lt;/P&gt;&lt;P&gt;        CLEAR G_TAB_CON_WA-customer_no.&lt;/P&gt;&lt;P&gt;        CLEAR G_TAB_CON_WA-begin_date.&lt;/P&gt;&lt;P&gt;        CLEAR G_TAB_CON_WA-credit_used.&lt;/P&gt;&lt;P&gt;        CLEAR G_TAB_CON_WA-credit_allowed.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;      MODIFY ycustomer_t FROM G_TAB_CON_WA.&lt;/P&gt;&lt;P&gt;      MESSAGE ' Data has been updated' TYPE 'I'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the FM code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * from ycustomer_t INTo CORRESPONDING FIELDS OF TABLE G_TAB_CON_ITAB.&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        = 'CUSTOMER_NO'  "Key field from ycustomer_t&lt;/P&gt;&lt;P&gt;      dynpprog    = sy-repid           "Program&lt;/P&gt;&lt;P&gt;      dynpnr      = sy-dynnr           "Dynpro number&lt;/P&gt;&lt;P&gt;      dynprofield = 'F2'               "Screen field field&lt;/P&gt;&lt;P&gt;      value_org       = 'S'            "Value return: C: cell by cell, S: structured&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     display         = 'F'            "Override readiness for input&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab       = G_TAB_CON_ITAB&lt;/P&gt;&lt;P&gt;      return_tab      = 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;  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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help!!&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 06:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836426#M1472422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T06:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: select a specific record from a list!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836427#M1472423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi White ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check value to the Parameter "dynpro field"  you are passing.  it should be your screen field name. if you have a doubt ,Check the same by pressing F1 on the particular field --&amp;gt; techinical information --&amp;gt; Screen Field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 06:57:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836427#M1472423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T06:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: select a specific record from a list!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836428#M1472424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've checked it, there are no any documentation to that field since it's a customer program and i didn't do any docx to it.&lt;/P&gt;&lt;P&gt;i guess the problem when reading from the select statmenet... it only see the first record in the table... not the selected 1 from the F4 List!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any other suggestions please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again for help&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 07:22:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836428#M1472424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T07:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: select a specific record from a list!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836429#M1472425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi White ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If So Please open that Custom Screen in SE51 and Identify the Field Name. Pass the Field name to Parameter 'Dynprofield' . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After calling the FM ,  Write Code to pass the value of the Selected internal table Field to Screen Field between the Sy-Subrc = 0 If Condition .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e ., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;ScreenField name =  G_TAB_CON_WA-Customer_no&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try out. It will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 07:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836429#M1472425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T07:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: select a specific record from a list!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836430#M1472426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it didn't work :(...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the first code i put, maybe bcoz i have 3 key fields  and in my condition i'm only checking with 1 field which is customer_no??? thats why it's selecting the first record faced!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 07:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836430#M1472426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T07:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: select a specific record from a list!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836431#M1472427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi White ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats the requirement exactly ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM "F4IF_INT_TABLE_VALUE_REQUEST" is used for Displaying F4 help from your ITAB ( when user goes for F4 help for a particular screen field) . From the Displayed records user will select a particlur record. we will mention in the exporting Parameter to which screen Field( DYNPROFIELD ) data to be Displayed. after calling the FM , we will be checking SY-SUBRC value , if its zero we will be assigning ITAB-Field to Screenfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your Code you are selecting single record from internal table. it will select only one record. obviously it will display the same record value in the Screen as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to utilize the FM "F4IF_INT_TABLE_VALUE_REQUEST" ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;populate internal table properly which has to be displayed as a input Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Screen Flow Logic  , Aftter PAI modules , under PROCESS ON VALUE-REQUEST , For your field you need to create a new routine and place your Code ( Only the F4 help Call Function ) and Include the Code (SY-SUBRC = 0 ) which i mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROCESS BEFORE OUTPUT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Module PBO_Module1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROCESS AFTER INPUT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          Module PAI_Module1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROCESS ON VALUE-REQUEST.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD &lt;STRONG&gt;Screen_Field_name&lt;/STRONG&gt; MODULE  &lt;STRONG&gt;module_name&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 08:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836431#M1472427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T08:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: select a specific record from a list!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836432#M1472428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi White ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the below link for more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_NW04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_NW04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 10:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836432#M1472428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T10:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: select a specific record from a list!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836433#M1472429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please see the sample code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;--------------------------------------------------------------------*
*     A T  S E L E C T I O N - S C R E E N
*&amp;amp;--------------------------------------------------------------------*

*Selection screen help for material classification
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CLASCN-LOW.
*F4 help for material classification data
  PERFORM F4_HELP_CLASIFC USING S_CLASCN-LOW.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  F4_HELP_CLASIFC
*&amp;amp;---------------------------------------------------------------------*

FORM F4_HELP_CLASIFC  USING    P_S_CLASCN_LOW.

*To fetch the classification data on the sel screen
  SELECT CLINT CLASS FROM KLAH UP TO 500 ROWS
  INTO TABLE IT_KLAH.

  IF SY-SUBRC &amp;lt;&amp;gt; 0 .
    MESSAGE TEXT-006 TYPE 'E'.
  ELSE.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
* DDIC_STRUCTURE = ' '
    RETFIELD = 'CLASS'     "Technical Name of the field whose value needs to be selected
* PVALKEY = ' '
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'p_s_clascn_low'          "Select option low field value

    VALUE_ORG = 'S'

    DISPLAY = ' '

    TABLES
    VALUE_TAB = IT_KLAH.

  ENDIF.
ENDFORM.                    " F4_HELP_CLASIFC

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 11:00:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836433#M1472429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T11:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: select a specific record from a list!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836434#M1472430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand the problem correctly, the record you select from the F4 help does not appear in your field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case, try the following 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 = 'CUSTOMER_NO' "Key field from ycustomer_t
dynpprog = sy-repid "Program
dynpnr = sy-dynnr "Dynpro number
dynprofield = 'F2' "Screen field field
value_org = 'S' "Value return: C: cell by cell, S: structured
* display = 'F' "Override readiness for input
TABLES
value_tab = G_TAB_CON_ITAB
return_tab = return
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.

** start of code**
else.
read table return index 1.
p_customerno = return-fieldval.  "P_customerno is the screen parameter
** end of code**
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps! Do let me know if you need anything else!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shailesh.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Always provide feedback for helpful answers&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 12:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-a-specific-record-from-a-list/m-p/6836434#M1472430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T12:23:33Z</dc:date>
    </item>
  </channel>
</rss>

