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

F4 help in module pool programming

Hi Experts,

I have two issues in module pool programming.

1) In my screen 100, I have 3 fields matnr(Material number) and sernr(Serial number) and TestID (Custom value)

I have a table DDIC standard 'Z' with the above fields MATNR,SERNR,TESTID and DATE.

I have created a simple F4 search help to TESTID and have assigned to the parameter in module pool.

My question is I want capture the matnr entered in the screen 100 and automatically assign it to the F4 help screen that pops up automatically when I hit F4 button. While creating the search I help I gave the search parameters as matnr,sernr and date. My issue is I must pass the value entered in the screen 100 to the search help screen automatically.

2) I have created a custom domain location 'ZLOCATION' in its value pair, I have maintained the value for the domain.

(E.G) V - Vendor, O - Other etc. In my module pool, I have one of the fields type as ZLOCATION. And once I press F4 help for this parameter, the value maintained should appear.

3) Is it possible to provide text box(for comments) in module pool programming?. Text box - having multiple rows for input instead of one row.

Awaiting reply experts thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 10, 2011 at 10:08 AM

    For your 1st query,

    make use of FM DYNP_VALUES_READ to read the user entered value in the screen. You should write this business logic inside the search help module for that field written under PROCESS ON VALUE-REQUEST.


    dynpfld-fieldname = 'MATNR'. (Name of the field in the screeen)

    append dynpfld.



    DYNAME = sy-repid

    DYNUMB = sy-dynnr



    DYNPFIELDS = dynpfld.

    read table dynpfld INDEX 1.

    matnr = dynpfld-fieldvalue.

    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.