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

How to create dynamically changing F4 help in selection screen

Hi Dear friends

In my report i have two input flds at selection screen i.e. sales order no and date description.Now based on sales order no the F4 help in the fld date description should change dynamically.eg. if there are two sales document number 001 and 002 and the corresponding date description for 001 are 123 and 234 and for 002 are 987 and 876 .Then if i select 001 the F4 help in date description should contain 123,234 and for 002 it should contain 987,876 before pressing the execute button.How to achieve this. Plz help me. i tried to use AT-SELECTION SCREEN ON VALUE REQUEST event but its not giving any out put as in the SELECT query i putted a WHERE condition where sales document of the database table equals to the sales order inserted in the selection screen. But when i debugg the input sales order parameter shows blank.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 27, 2009 at 06:25 PM

    Use at selection-screen on value request and then do Dynpro read, find code sample below....provide marks if solution works

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_tanum.

    PERFORM get_f4help1. " Getting F4 help for p_tanum

    FORM get_f4help1 .

    ****************************************

    • DYNPRO READ - Start

    ****************************************

    DATA : BEGIN OF it_validation OCCURS 0.

    INCLUDE STRUCTURE dynpread.

    DATA END OF it_validation.

    it_validation-fieldname = 'P_LGNUM'.

    APPEND it_validation.

    CLEAR it_validation.

    *Picking Input value of domain

    CALL FUNCTION 'DYNP_VALUES_READ'

    EXPORTING

    dyname = 'YSDS_SUMMARY_R01'

    dynumb = '1000'

    TABLES

    dynpfields = it_validation.

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    LOOP AT it_validation.

    IF it_validation-fieldname = 'P_LGNUM'.

    p_lgnum = it_validation-fieldvalue.

    EXIT.

    ENDIF.

    ENDLOOP.

    TRANSLATE p_lgnum TO UPPER CASE.

    ****************************************

    • DYNPRO READ - END

    Endform

    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.