<?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: selection-screen programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758329#M1461230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andhari,&lt;/P&gt;&lt;P&gt;Try this one:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
....

PROCESS AFTER INPUT.
....

PROCESS ON VALUE-REQUEST.
  FIELD P_ABKRS MODULE GET_LINE_ABKRS INPUT.

  MODULE GET_LINE_ABKRS INPUT.
    CALL FUNCTION u2018F4IF_FIELD_VALUE_REQUESTu2019
      EXPORTING
        tabname  = u2018ZTABLEu2019
        fieldname = u2018ABKRS'u2019
*       SEARCHHELP = u2018 u2018
*       SHLPPARAM = u2018 u2018
        dynpprog    = sy-repid
        dynpnr        = sy-dynnr
        dynprofield  = u2018P_ABPKRSu2019
*       STEPL = 0
*       value =    "&amp;lt;--you use this to limit your filter
*       MULTIPLE_CHOICE = u2018 u2018
*       DISPLAY = u2018 u2018
*      SUPPRESS_RECORDLIST = u2018 u2018
*      CALLBACK_PROGRAM = u2018 u2018
*      CALLBACK_FORM = u2018 u2018
*    TABLES
*      RETURN_TAB =
*    EXCEPTIONS
*      FIELD_NOT_FOUND = 1
*      NO_HELP_FOR_FIELD = 2
*      INCONSISTENT_HELP = 3
*      NO_VALUES_FOUND = 4
*     OTHERS = 5
.
IF sy-subrc 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should pop-out a new window for your selection..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Apr 2010 14:49:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-06T14:49:07Z</dc:date>
    <item>
      <title>selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758321#M1461222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to validate the selection-screen  fields p_bukrs(comp. code) / p_abkrs(payroll area) / p_lifnr / p_bkref  such that the fields  p_abkrs / p_lifnr / p_bkref to be fetched from Table (z-table) based on company code ,p_bukrs given at selection-screen levelu2026&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In z-table,  payroll area (p_abkrs) is the only key field&lt;/P&gt;&lt;P&gt;Values in z-table&lt;/P&gt;&lt;P&gt;Payroll area     ccode     vendor     bkref&lt;/P&gt;&lt;P&gt;AB	1000	123       1111&lt;/P&gt;&lt;P&gt;BC   	2000	234        2222&lt;/P&gt;&lt;P&gt;CD	1000	345        3333&lt;/P&gt;&lt;P&gt;DE	3000	456        4444&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen level,  1) if user chose u20182000u2019 p_bukrs and press enter, itu2019s supposed to get all related values i.e u2018BCu2019 u2018234u2019 u20182222u2019 for p_abkrs p_lifnr p_bkref resp.&lt;/P&gt;&lt;P&gt;2) If user chose u20181000u2019, as it is having 2 payroll areas, we come across multiple selection, so again f4 help shud be provided and should accommodate the user to select the one from multiple to be displayed on selection-screen.&lt;/P&gt;&lt;P&gt;So for the first option, itu2019s just providing f4 help and fetching values&lt;/P&gt;&lt;P&gt;But for second one, pls provide the required logic as I met all failure attemptsu2026u2026..&lt;/P&gt;&lt;P&gt;That would be a great help, if provide any inputsu2026u2026u2026u2026..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards&lt;/P&gt;&lt;P&gt;Andhari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 16:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758321#M1461222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-05T16:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758322#M1461223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand your requirement, you need to have a F4 help to return multiple values in an internal table? Try using F4IF_INT_TABLE_VALUE_REQUEST. You will find many threads for the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 16:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758322#M1461223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-05T16:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758323#M1461224</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;Use the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_bukrs is not initial.&lt;/P&gt;&lt;P&gt;select single abkrs lifnr bkref from z-table&lt;/P&gt;&lt;P&gt;into p_abkrs p_lifnr p_bkref where bukrs = p_bukrs.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above will useful only if u have one value. if u have multiple values then use select-options in place of parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that case use the below logic.&lt;/P&gt;&lt;P&gt;AT selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_bukrs is not initial.&lt;/P&gt;&lt;P&gt;select  abkrs lifnr bkref from z-table&lt;/P&gt;&lt;P&gt;into table itab where bukrs = p_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_lifnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;s_lifnr-option = 'eq'.&lt;/P&gt;&lt;P&gt;s_lifnr-low = itab-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append s_lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similarly fill the remaining.&lt;/P&gt;&lt;P&gt;&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;Edited by: subas  Bose on Apr 5, 2010 7:25 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: subas  Bose on Apr 5, 2010 7:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 17:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758323#M1461224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-05T17:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758324#M1461225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andhari,&lt;/P&gt;&lt;P&gt;In your #2, on P_BUKRS, assuming that this is a parameter, so when the user click a pick list, a &lt;STRONG&gt;new screen&lt;/STRONG&gt; should come out to accommodate entries below?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AB 1000 123 1111&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;BC 2000 234 2222&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CD 1000 345 3333&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DE 3000 456 4444&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Yes, then you should indicate the F4/Picklist Help on the POV(Process On Value Event), please see the link: [Input Help|http://help.sap.com/saphelp_NW04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no, and you just simply want to populate your ITAB.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT bukrs abkrs lifnr bkref
  FROM z_table
    INTO CORRESPONDING FIELDS OF ITAB_ZTABLE
WHERE abkrs EQ p_abkrs.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will give your ITAB_ZTABLE 2 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if I can provide mode details on POV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 18:29:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758324#M1461225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-05T18:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758325#M1461226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your analysis is absolutely right and i want to go for 'Yes' option as you said....&lt;/P&gt;&lt;P&gt;pls provide example code on using 'POV', it would be easy if i get an example on my requirement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andhari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 08:56:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758325#M1461226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T08:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758326#M1461227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN SKIP.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_kschli   FOR    nast-kschl.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_kschli-low.&lt;/P&gt;&lt;P&gt;  PERFORM get_value_kschl USING s_kschli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_value_kschl USING p_p_kschli.&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    = 'KSCHL'&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 = 'S_KSCHLI-LOW'&lt;/P&gt;&lt;P&gt;              value_org   = 'S'&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              value_tab   = t_kschl2.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 09:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758326#M1461227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T09:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758327#M1461228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andhari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can select multiple entries by passing MULTIPLE_CHOICE = 'X' to F4IF_INT_TABLE_VALUE_REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to this post for details: &lt;SPAN __jive_macro_name="message" id="8842405"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 09:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758327#M1461228</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-06T09:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758328#M1461229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my requirement, no need to go for u2018multiple optionsu2019, wil explain u the scenario in briefu2026&lt;/P&gt;&lt;P&gt;At selection-screen level, after pressin f4 at ccode field, wil shows u list of ccodes, whose values fetch from ztable (refer to my thread for ztable values) here I did using select single &amp;amp; fm &amp;lt;f4if_int_table_value_request&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In values of ztable, for ccode u20181000u2019, itu2019s having 2 payroll areas i.e u2018ABu2019 and u2018CDu2019, so if user chose u20181000u2019 in list, another f4 shud display showin the related list to accomdate user to select related payroll area and make it displayed on sel-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my code, while chosing u20181000u2019, in the f4 list (having 2 entries), irrespective of my selection itu2019s displaying 2nd entry i.e. u2018CDu2019 u2018345u2019 u20183333u2019u2026u2026hope you understand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is my code reg. selecting '1000' where this multiple selection comes....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;   IF p_bukrs EQ '1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;    SELECT abkrs&lt;/P&gt;&lt;P&gt; &amp;lt;            lifnr&lt;/P&gt;&lt;P&gt; &amp;lt;            bkref&lt;/P&gt;&lt;P&gt; &amp;lt;            FROM ztable&lt;/P&gt;&lt;P&gt; &amp;lt;            INTO TABLE gt_split    u201Csplit holds payroll,lifnr,bkref&lt;/P&gt;&lt;P&gt; &amp;lt;            WHERE bukrs = p_ccode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt; CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;&amp;lt;  EXPORTING&lt;/P&gt;&lt;P&gt;&amp;lt;    retfield               = 'ABRKS'&lt;/P&gt;&lt;P&gt;&amp;lt;   DYNPPROG               = sy-repid&lt;/P&gt;&lt;P&gt;&amp;lt;   DYNPNR                 = sy-dynnr&lt;/P&gt;&lt;P&gt;&amp;lt;   DYNPROFIELD            = 'P_BUKRS'&lt;/P&gt;&lt;P&gt;&amp;lt;   VALUE_ORG              = 'S'&lt;/P&gt;&lt;P&gt;&amp;lt;*   MULTIPLE_CHOICE        = ' '&lt;/P&gt;&lt;P&gt;&amp;lt;*   DISPLAY                = ' '&lt;/P&gt;&lt;P&gt;&amp;lt;*   CALLBACK_PROGRAM       = ' '&lt;/P&gt;&lt;P&gt;&amp;lt;*   CALLBACK_FORM          = ' '&lt;/P&gt;&lt;P&gt;&amp;lt;*   MARK_TAB               =&lt;/P&gt;&lt;P&gt;&amp;lt;* IMPORTING&lt;/P&gt;&lt;P&gt;&amp;lt;*   USER_RESET             =&lt;/P&gt;&lt;P&gt;&amp;lt;  tables&lt;/P&gt;&lt;P&gt;&amp;lt;    value_tab              = gt_split&lt;/P&gt;&lt;P&gt;&amp;lt;*   FIELD_TAB              =&lt;/P&gt;&lt;P&gt;&amp;lt;   RETURN_TAB             = gt_return&lt;/P&gt;&lt;P&gt;&amp;lt;*   DYNPFLD_MAPPING        = fmap&lt;/P&gt;&lt;P&gt;&amp;lt;* EXCEPTIONS&lt;/P&gt;&lt;P&gt;&amp;lt;*   PARAMETER_ERROR        = 1&lt;/P&gt;&lt;P&gt;&amp;lt;*   NO_VALUES_FOUND        = 2&lt;/P&gt;&lt;P&gt;&amp;lt;*   OTHERS                 = 3&lt;/P&gt;&lt;P&gt; &amp;lt;         .&lt;/P&gt;&lt;P&gt;&amp;lt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&amp;lt;* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;&amp;lt;*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;&amp;lt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;     LOOP AT gt_split INTO gs_split.&lt;/P&gt;&lt;P&gt; &amp;lt;       p_payrol = gs_split-abkrs.&lt;/P&gt;&lt;P&gt; &amp;lt;       p_lifnr = gs_split-lifnr.&lt;/P&gt;&lt;P&gt; &amp;lt;       p_bkref = gs_split-bkref.&lt;/P&gt;&lt;P&gt; &amp;lt;     ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;   ENDIF.&lt;/P&gt;&lt;P&gt; &amp;lt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andhari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 13:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758328#M1461229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T13:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758329#M1461230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andhari,&lt;/P&gt;&lt;P&gt;Try this one:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
....

PROCESS AFTER INPUT.
....

PROCESS ON VALUE-REQUEST.
  FIELD P_ABKRS MODULE GET_LINE_ABKRS INPUT.

  MODULE GET_LINE_ABKRS INPUT.
    CALL FUNCTION u2018F4IF_FIELD_VALUE_REQUESTu2019
      EXPORTING
        tabname  = u2018ZTABLEu2019
        fieldname = u2018ABKRS'u2019
*       SEARCHHELP = u2018 u2018
*       SHLPPARAM = u2018 u2018
        dynpprog    = sy-repid
        dynpnr        = sy-dynnr
        dynprofield  = u2018P_ABPKRSu2019
*       STEPL = 0
*       value =    "&amp;lt;--you use this to limit your filter
*       MULTIPLE_CHOICE = u2018 u2018
*       DISPLAY = u2018 u2018
*      SUPPRESS_RECORDLIST = u2018 u2018
*      CALLBACK_PROGRAM = u2018 u2018
*      CALLBACK_FORM = u2018 u2018
*    TABLES
*      RETURN_TAB =
*    EXCEPTIONS
*      FIELD_NOT_FOUND = 1
*      NO_HELP_FOR_FIELD = 2
*      INCONSISTENT_HELP = 3
*      NO_VALUES_FOUND = 4
*     OTHERS = 5
.
IF sy-subrc 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should pop-out a new window for your selection..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 14:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758329#M1461230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T14:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758330#M1461231</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;Problem is solved...and thanks to all &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my code given above, &lt;/P&gt;&lt;P&gt;  in fm &amp;lt;f4if_int_table_value_request&amp;gt;, no need to pass value to the parameter DYNPROFIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the Loop provided for gt_split (in last loop), i written the code like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT  gt_split INTO gs_split.&lt;/P&gt;&lt;P&gt;CLEAR gs_return.&lt;/P&gt;&lt;P&gt;READ TABLE gt_return INTO gs_return WITH KEY FIELDVAL = gs_split-abkrs.&lt;/P&gt;&lt;P&gt;IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt; p_abkrs = gs_split-abkrs.&lt;/P&gt;&lt;P&gt;p_lifnr = gs_split-lifnr.&lt;/P&gt;&lt;P&gt;p_bkref = gs_split-bkref.&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;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andhari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 15:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758330#M1461231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T15:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758331#M1461232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good! adding this code also for your thread / reference.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  zpov.

TABLES: ztable_pov, dfies.
DATA: itab_ztable TYPE STANDARD TABLE OF ztable_pov,
      itab_fields TYPE TABLE OF dfies,
      wa_field    TYPE dfies.

INITIALIZATION.

*move: 'AB'    to ztable_pov-abkrs,
*      '1000'  to ztable_pov-bukrs,
*      '123'   to ztable_pov-bkref,
*      '1111'  to ztable_pov-lifnr.
*INSERT ztable_pov from ztable_pov.
*"DELETE from ztable_pov.
*commit WORK AND WAIT.

  PARAMETERS: p_abkrs LIKE ztable_pov-abkrs,
              p_bkref LIKE ztable_pov-bkref,
              p_bukrs LIKE ztable_pov-bukrs,
              lifnr   LIKE ztable_pov-lifnr.

  SELECT *
    FROM ztable_pov
    INTO TABLE itab_ztable.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
  PERFORM f4_get_bukrs.

START-OF-SELECTION.

END-OF-SELECTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;see the final output screenshot&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[screenshot|http://img697.imageshack.us/img697/8955/f4picklistfromztable.jpg]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code. Your two posts could easily have formatted correctly if you had removed the lines that were commented out,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 6, 2010 1:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 17:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-programming/m-p/6758331#M1461232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T17:10:57Z</dc:date>
    </item>
  </channel>
</rss>

