Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

F4 help in module pool programming

Former Member
0 Likes
646

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.

1 REPLY 1
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
347

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.

Eg:

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

append dynpfld.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

DYNAME = sy-repid

DYNUMB = sy-dynnr

TRANSLATE_TO_UPPER = 'X'

TABLES

DYNPFIELDS = dynpfld.

read table dynpfld INDEX 1.

matnr = dynpfld-fieldvalue.