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

Restricted F4 help required

Hi,

I have a field AUFK-AUFNR (Order) in my dialog program.

I wanted the F4 help for this field based on the order type(AUART).Means when user press F4 help it should display orders for order type 'PP01'(Just Example).

Please let me know how can I get it.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

9 Answers

  • Posted on Jul 22, 2005 at 06:15 PM

    You can do this by using search help exit. Goto the search help of this field in SE11 and you can find a field for exit. You can get all the documentation of this by pressing F1 on that field.

    Thanks

    Vinod

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 22, 2005 at 06:21 PM

    on value request you can code your own custom logic to get F4 using FM <b>F4_IF_FIELD_VALUE_REQUEST</b>

    check out the links below

    how-to-add-f4-help-on-reports

    implement-f4-value-request-functionality-in-dialog

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

    • the internal which you pass it to the fuction, just pass the filtered values, fro which you have to write a select stt. like what you have specified

      Select aufnr from AUFK into table <itab> where AUART = 'PP01'.

      <itab> is the internal table with just aufnr as a field.

      is my understanding of your question right, or am i missing something

      Regards

      Raja

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2005 at 06:17 AM

    Hi,

    did u check this FM:

    F4IF_INT_TABLE_VALUE_REQUEST -

    Display internal table as search help.

    http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htm

    Also check out:

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap faqs.faq#q-9

    Regards,

    Anjali

    Message was edited by: Anjali Devi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2005 at 07:02 AM

    Hi,

    create a search help with exit and add your piece of code according to your requirements to restrict those values. This will definitely help u to achieve.

    Regs,

    Venkat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2005 at 08:35 AM

    Hi Amandeep,

    As Raja said, use the FM 'F4IF_FIELD_VALUE_REQUEST' in POV event. Fill the internal table with the values of orders based on the order types and pass it to the parameter 'RETURN_TAB' of the same FM.

    Hope it will work.

    Regards,

    Phani

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2005 at 09:01 AM

    Hey Aman,

    What happened. Did u check for search help with user exit ??

    Regs,

    Venkat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 27, 2005 at 07:10 AM

    Hi,

    In flow logic of POH

    Herewith i am sending a psudo logic

    Just Declare one internal table with the field(aufnr) that you want to show in F4help

    write select statement to extract the order numbers where order type = 'PP01'.

    check whether internal table has values or not

    if internal table has records then call below function module as follows

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    RETFIELD = 'AUFNR'

    DYNPPROG = sy-repid

    DYNPNR = sy-dynnr

    DYNPROFIELD = 'AUFNR'

    VALUE_ORG = 'S'

    TABLES

    RETURN_TAB = TL_RETURN_TAB

    VALUE_TAB = Extracted data.

    if find it is useful, Kindly reward me points.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 27, 2005 at 09:13 AM

    Hey,

    Create a elementary search help and attach that search help to the table field. It will work fine.

    Regs,

    Venkat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 27, 2005 at 09:15 AM

    Hi,

    With respect to my above latest answer, while creating the search help create it with user exit and write that query in that user exit. It will solve ur problem.

    Regs,

    Venkat

    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.