<?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 problem with the code some where in select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-code-some-where-in-select-query/m-p/5039446#M1171874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;   I am having a development in this i have created a selection-screen and on this selection screen i am having select-options with F4 help attached once we opt the select option then we will get the desired output based on this in the classical format, it is working fine when i dnt attach F4 help but as soon as i attach F4 it does not go to the next screen after the select-options where i am going to see the result, i think there is problem in itab or sy-dnnr please see it once sample code present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES : ZFISALDT. " LINE-SIZE 400 NO STANDARD PAGE HEADING.

DATA ITAB LIKE ZFISALDT OCCURS 0 WITH HEADER LINE.

SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE ABC.

SELECT-OPTIONS : BILLING FOR ZFISALDT-BILLINGDOCU,
                 SALESDOC FOR  ZFISALDT-SALESDOCU.

SELECTION-SCREEN : END OF BLOCK B1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR BILLING-high.


CALL FUNCTION 'F4_FIELD_ON_VALUE_REQUEST'
  EXPORTING
    TABNAME                   = 'ZFISALDT'
    FIELDNAME                 = 'BILLINGDOCU'
*   SEARCHHELP                = ' '
*   SHLPPARAM                 = ' '
   DYNPPROG                  = SY-repid
   DYNPNR                    = sy-dynnr
*   DYNPROFIELD               = ' '
*   STEPL                     = 0
*   VALUE                     = ' '
*   MULTIPLE_CHOICE           = ' '
*   DISPLAY                   = ' '
*   SUPPRESS_RECORDLIST       = ' '
*   CALLBACK_PROGRAM          = 'sy-cprog'
*   CALLBACK_FORM             = ' '
*   SELECTION_SCREEN          = ' '
*   CALLBACK_SELOPT           =
 TABLES
   RETURN_TAB                = ITAB[]
 EXCEPTIONS
   FIELD_NOT_FOUND           = 1
   NO_HELP_FOR_FIELD         = 2
   INCONSISTENT_HELP         = 3
   NO_VALUES_FOUND           = 4
   OTHERS                    = 5
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

SELECT * FROM ZFISALDT INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE  BILLINGDOCU IN BILLING.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The records are coming in this select query when no F4 function module, But Not coming when F4 module is present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see to this code.&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Jan 20, 2009 11:05 AM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please use code tags&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jan 2009 09:37:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-20T09:37:04Z</dc:date>
    <item>
      <title>problem with the code some where in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-code-some-where-in-select-query/m-p/5039446#M1171874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;   I am having a development in this i have created a selection-screen and on this selection screen i am having select-options with F4 help attached once we opt the select option then we will get the desired output based on this in the classical format, it is working fine when i dnt attach F4 help but as soon as i attach F4 it does not go to the next screen after the select-options where i am going to see the result, i think there is problem in itab or sy-dnnr please see it once sample code present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES : ZFISALDT. " LINE-SIZE 400 NO STANDARD PAGE HEADING.

DATA ITAB LIKE ZFISALDT OCCURS 0 WITH HEADER LINE.

SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE ABC.

SELECT-OPTIONS : BILLING FOR ZFISALDT-BILLINGDOCU,
                 SALESDOC FOR  ZFISALDT-SALESDOCU.

SELECTION-SCREEN : END OF BLOCK B1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR BILLING-high.


CALL FUNCTION 'F4_FIELD_ON_VALUE_REQUEST'
  EXPORTING
    TABNAME                   = 'ZFISALDT'
    FIELDNAME                 = 'BILLINGDOCU'
*   SEARCHHELP                = ' '
*   SHLPPARAM                 = ' '
   DYNPPROG                  = SY-repid
   DYNPNR                    = sy-dynnr
*   DYNPROFIELD               = ' '
*   STEPL                     = 0
*   VALUE                     = ' '
*   MULTIPLE_CHOICE           = ' '
*   DISPLAY                   = ' '
*   SUPPRESS_RECORDLIST       = ' '
*   CALLBACK_PROGRAM          = 'sy-cprog'
*   CALLBACK_FORM             = ' '
*   SELECTION_SCREEN          = ' '
*   CALLBACK_SELOPT           =
 TABLES
   RETURN_TAB                = ITAB[]
 EXCEPTIONS
   FIELD_NOT_FOUND           = 1
   NO_HELP_FOR_FIELD         = 2
   INCONSISTENT_HELP         = 3
   NO_VALUES_FOUND           = 4
   OTHERS                    = 5
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

SELECT * FROM ZFISALDT INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE  BILLINGDOCU IN BILLING.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The records are coming in this select query when no F4 function module, But Not coming when F4 module is present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see to this code.&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Jan 20, 2009 11:05 AM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please use code tags&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 09:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-code-some-where-in-select-query/m-p/5039446#M1171874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T09:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem with the code some where in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-code-some-where-in-select-query/m-p/5039447#M1171875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sumeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are calling the F4 function module, you need to pass some values to the internal table, that would be shown in the selection screen, when the user presses F4. That is not done here.&lt;/P&gt;&lt;P&gt;Also, once the user selects any value from F4, then that will be available in "Return Tab" of the function module. That needs to be READ and returned to the screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly check for the help of F4 help FM. or you can search for F4 function module call in sdn. Once you correct that, your issue would be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 09:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-code-some-where-in-select-query/m-p/5039447#M1171875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T09:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: problem with the code some where in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-code-some-where-in-select-query/m-p/5039448#M1171876</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 ur internal table before passing to the FM 'F4_FIELD_ON_VALUE_REQUEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write ur select query before calling this FM 'F4_FIELD_ON_VALUE_REQUEST'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 09:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-code-some-where-in-select-query/m-p/5039448#M1171876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T09:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem with the code some where in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-code-some-where-in-select-query/m-p/5039449#M1171877</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 missed start-of-selection before select query, write it and check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 09:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-code-some-where-in-select-query/m-p/5039449#M1171877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T09:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: problem with the code some where in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-code-some-where-in-select-query/m-p/5039450#M1171878</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;Give select statement inside if.endif.clause..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vasavi kotha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 09:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-code-some-where-in-select-query/m-p/5039450#M1171878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T09:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: problem with the code some where in select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-code-some-where-in-select-query/m-p/5039451#M1171879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Experts My problem solved was making a silly mistake closing the thread start-of-selection is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 04:22:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-code-some-where-in-select-query/m-p/5039451#M1171879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T04:22:02Z</dc:date>
    </item>
  </channel>
</rss>

