Skip to Content
author's profile photo Former Member
Former Member

Implement F4 Value-Request Functionality in Dialog Programming

Hi. Apologies in advance if this is the wrong forum.

I'm on R/3 4.6c.

What is the best way to implement this:

AT SELECTION-SCREEN ON VALUE-REQUEST FOR xxxx-low.

in a dialog program?

I have my selection screen defined in my TOP include, but since dialog programs don't support report events I am not sure what to do.

Thank you for any assistance you could provide.

Best Regards,

Brett

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2005 at 05:52 PM

    Forgot to ask. You mentioned "dialog programs don't support report events". If you do a CALL SELECTION-SCREEN, the AT SELECTION-SCREEN events will be executed.

    I have a program that I just completed that displays a regular selection screen, then does a CALL SELECTION-SCREEN, then finishes with a CALL SCREEN and I use the AT SELECTION-SCREEN ON VALUE REQUEST event to invoke an existing FM to do F4 help.

    Maybe you can provide additional detail to help clarify.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Ahhh, yes!

      How to do report events in dialog programming has eluded me for the longest time. In fact, I specifically remember reading in an SAP book that report events were not support in dialog modules.

      You are right, tho. It can be done. I didn't realize that the key is to place the report events in their own include. When I tried to place them in the same include as the screen definition ("top"), I was getting errors.

      This is going to solve so many problems for me. Thank you.

      By the way, I would implement the value request at the dictionary level, but this help feature is very particular to one department. You are right tho.

      Best Regards,

      Brett

  • Posted on Jan 07, 2005 at 05:40 PM

    make a new include like

    include progname_screen_1001. at the top of your program.

    goto include.

    write the code below in your include.

    SELECTION-SCREEN BEGIN OF SCREEN 1001.

    • write here your selection options and parameters.

    also but here the code you want:

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR xxxx-low.

    SELECTION-SCREEN END OF SCREEN 1001.

    call the screen from anywhere:

    call screen 1001.

    if you want the selection-screen as subscreen than write

    SELECTION-SCREEN BEGIN OF SCREEN 1001 as subscreen .

    • write here your selection options and parameters.

    also but here the code you want:

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR xxxx-low.

    SELECTION-SCREEN END OF SCREEN 1001.

    when calling it

    write it to PBO of your screen in which you but an subscreen area named subsel.

    CALL SUBSCREEN SUBSEL INCLUDING 'PROGRAMNAME' '1001'.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2005 at 06:04 PM

    Also forgot to mention example ABAP program DEMO_SELECTION_SCREEN_F4.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2005 at 05:43 PM

    My first reaction is too avoid coding this feature and use the facilities of the dictionary to provide value help. Domain values, check tables, attaching search helps, etc.

    With that said, you can still program the help. I suggest you take a look at program DEMO_DYNPRO_F4_HELP_MODULE which is in my 4.6C system.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.