<?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: Please give answer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-give-answer/m-p/1986399#M402783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code&lt;/P&gt;&lt;P&gt;Call the program, use F4 to call search help standard window&lt;/P&gt;&lt;P&gt;in debug, look at RETURN TABLE to see values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Please rewind point if it helps **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZTESTTONY1.
TYPE-POOLS: shlp.

DATA: sh TYPE shlp_descr_t.


DATA: lt_f4 LIKE ddshretval OCCURS 0 WITH HEADER LINE.

PARAMETERS: p_plnty TYPE plnty.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_plnty.


DATA: interface LIKE ddshiface OCCURS 0 WITH HEADER LINE.

DATA: v_plnnr TYPE plnnr.
DATA: v_plnal TYPE plnal.


sh-shlpname = 'PLKS'.
sh-shlptype = 'SH'.

CALL FUNCTION 'DD_SHLP_GET_DIALOG_INFO'
CHANGING
shlp = sh.

interface-shlpfield = 'PLNNR'.
interface-valfield = 'V_PLNNR'.
APPEND interface.


interface-shlpfield = 'PLNAL'.
interface-valfield = 'V_PLNAL'.
APPEND interface.

sh-interface[] = interface[].

DATA: t_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.
DATA: v_subrc TYPE sysubrc.

CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = sh
disponly = ' '
IMPORTING
rc = v_subrc
TABLES
return_values = t_return.


BREAK-POINT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Mar 2007 13:37:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-03T13:37:12Z</dc:date>
    <item>
      <title>Please give answer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-give-answer/m-p/1986397#M402781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    In selection-screen one parameter is there But we are not enter any value but We press f4 some window have to diaplay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do that in selction-screen in which event we have to write code and what code we have to write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But we have to do that useing only code,We are not createing any serch help here.Useing only event in selection-screen.&lt;/P&gt;&lt;P&gt;                            Please give me answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2007 13:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-give-answer/m-p/1986397#M402781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-03T13:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Please give answer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-give-answer/m-p/1986398#M402782</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 this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- on this event&lt;/P&gt;&lt;P&gt;At Selection-screen on &amp;lt;parameter-name&amp;gt;. &amp;lt;&amp;lt;&amp;lt;- your parameter name declared in report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample code below..Check the return table T_RETURN..You will get multiple records..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS: shlp.

DATA: sh TYPE shlp_descr_t.


DATA: lt_f4 LIKE ddshretval OCCURS 0 WITH HEADER LINE.

PARAMETERS: p_plnty TYPE plnty.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_plnty.


DATA: interface LIKE ddshiface OCCURS 0 WITH HEADER LINE.

DATA: v_plnnr TYPE plnnr.
DATA: v_plnal TYPE plnal.


sh-shlpname = 'PLKS'.
sh-shlptype = 'SH'.

CALL FUNCTION 'DD_SHLP_GET_DIALOG_INFO'
CHANGING
shlp = sh.

interface-shlpfield = 'PLNNR'.
interface-valfield = 'V_PLNNR'.
APPEND interface.


interface-shlpfield = 'PLNAL'.
interface-valfield = 'V_PLNAL'.
APPEND interface.

sh-interface[] = interface[].



DATA: t_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.
DATA: v_subrc TYPE sysubrc.

CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = sh
disponly = ' '
IMPORTING
rc = v_subrc
TABLES
return_values = t_return.


BREAK-POINT.&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;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- on this event&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;At Selection-screen on &amp;lt;parameter-name&amp;gt;. &amp;lt;&amp;lt;&amp;lt;- your parameter name declared in report

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
  EXPORTING
    tabname = 'PLKO'
    fieldname = 'PLNNR'
    searchhelp = 'PLKS'
  TABLES
    return_tab = lt_f4
  EXCEPTIONS
    field_not_found = 1
    no_help_for_field = 2
    inconsistent_help = 3
    no_values_found = 4
  OTHERS = 5.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please let me know if you are not getting the correct results...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward suitable points, incase it suits your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Atul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2007 13:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-give-answer/m-p/1986398#M402782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-03T13:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Please give answer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-give-answer/m-p/1986399#M402783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code&lt;/P&gt;&lt;P&gt;Call the program, use F4 to call search help standard window&lt;/P&gt;&lt;P&gt;in debug, look at RETURN TABLE to see values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Please rewind point if it helps **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZTESTTONY1.
TYPE-POOLS: shlp.

DATA: sh TYPE shlp_descr_t.


DATA: lt_f4 LIKE ddshretval OCCURS 0 WITH HEADER LINE.

PARAMETERS: p_plnty TYPE plnty.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_plnty.


DATA: interface LIKE ddshiface OCCURS 0 WITH HEADER LINE.

DATA: v_plnnr TYPE plnnr.
DATA: v_plnal TYPE plnal.


sh-shlpname = 'PLKS'.
sh-shlptype = 'SH'.

CALL FUNCTION 'DD_SHLP_GET_DIALOG_INFO'
CHANGING
shlp = sh.

interface-shlpfield = 'PLNNR'.
interface-valfield = 'V_PLNNR'.
APPEND interface.


interface-shlpfield = 'PLNAL'.
interface-valfield = 'V_PLNAL'.
APPEND interface.

sh-interface[] = interface[].

DATA: t_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.
DATA: v_subrc TYPE sysubrc.

CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = sh
disponly = ' '
IMPORTING
rc = v_subrc
TABLES
return_values = t_return.


BREAK-POINT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2007 13:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-give-answer/m-p/1986399#M402783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-03T13:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Please give answer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-give-answer/m-p/1986400#M402784</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;   if you know the screen no/ window and the program name when f4 is pressed you can pass these value in the following function module . try to check this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          tabname                   = 'LTAP'&lt;/P&gt;&lt;P&gt;          fieldname                 = 'KZDIF'&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;    SEARCHHELP                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;    SHLPPARAM                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;         dynpprog                  = 'program name'&lt;/P&gt;&lt;P&gt;         dynpnr                    = '4060'&lt;/P&gt;&lt;P&gt;         dynprofield               = 'LTAP-KZDIF'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    STEPL                     = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    VALUE                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MULTIPLE_CHOICE           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         display                   = 'F'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    SUPPRESS_RECORDLIST       = ''&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CALLBACK_PROGRAM          = ''&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CALLBACK_FORM             = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     SELECTION_SCREEN          = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     USER_RESET                =&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;         return_tab                = lt_myreturn&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     field_not_found           = 1&lt;/P&gt;&lt;P&gt;     no_help_for_field         = 2&lt;/P&gt;&lt;P&gt;     inconsistent_help         = 3&lt;/P&gt;&lt;P&gt;     no_values_found           = 4&lt;/P&gt;&lt;P&gt;     OTHERS                    = 5&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        READ TABLE lt_myreturn INDEX 1 INTO lv_myreturn.&lt;/P&gt;&lt;P&gt;        gv_output-kzdif = lv_myreturn-fieldval.&lt;/P&gt;&lt;P&gt;        ltap-kzdif = lv_myreturn-fieldval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br, &lt;/P&gt;&lt;P&gt;Laxmi&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2007 16:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-give-answer/m-p/1986400#M402784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-03T16:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Please give answer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-give-answer/m-p/1986401#M402785</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 this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/79/34a246d9b511d1950e0000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/79/34a246d9b511d1950e0000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the  DEMO_SELECTION_SCREEN_EVENTS  program in se38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2007 16:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-give-answer/m-p/1986401#M402785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-03T16:26:53Z</dc:date>
    </item>
  </channel>
</rss>

