Application Development 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: 

F4 HELP for standard field..

Former Member
0 Kudos
3,051

i want to put F4 help for standard field FERTH in mm01 and mm02 ...

is there any way to put F4 help for this field..

1 ACCEPTED SOLUTION

Former Member
4 REPLIES 4

Former Member

Former Member
0 Kudos
670

Former Member
0 Kudos
670

try this

1. First go to SE11 and create your own search help( if you dont know how to create a search help please feel free to ask me, it is very easy).

2. Now in your module pool program program go to the layout of your screen.

3. Now when you see the attributes of this field in the Dict tab you will find the field Search Help. Now here you can specify the name of the search help you created in SE11.

There is also another mehtod to create the dynamic search help. eg:- in a posted document data get the Document nos related to that company code.

The sample code is like this:-

First of all declare the module below in the flow logic of your screen then create it in your main program.

You declare the module in the PROCESS ON VALUE-REQUEST.

PROCESS ON VALUE-REQUEST.

FIELD TXT_DOCNO MODULE VALUE_BELNR.

You also need to create an internal table where you wil store results of the select query fired below in the module.

here you will get a F4 help on the filed Document Number(TXT_DOCNO) based on the field Company code (TXT_CODCO)

MODULE VALUE_BELNR INPUT.

progname = sy-repid.

dynnum = sy-dynnr.

CLEAR: field_value, dynpro_values.

field_value-fieldname = 'TXT_CODCO'.

APPEND field_value TO dynpro_values.

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

EXPORTING

tabname = 'BKPF'

fieldname = 'BUKRS'

dynpprog = progname

dynpnr = dynnum

dynprofield = 'TXT_CODCO'.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = progname

dynumb = dynnum

translate_to_upper = 'X'

TABLES

dynpfields = dynpro_values.

READ TABLE dynpro_values INDEX 1 INTO field_value.

SELECT BUKRS BELNR

FROM BKPF

INTO CORRESPONDING FIELDS OF TABLE it_doc1

WHERE BUKRS = field_value-fieldvalue.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'BELNR'

dynpprog = progname

dynpnr = dynnum

dynprofield = 'TXT_BELNR'

value_org = 'S'

TABLES

value_tab = it_doc1.

ENDMODULE. " VALUE_BELNR INPUT

Former Member
0 Kudos
670

hi,

I searched in the table for the field.but it does not have any search help, value table or value range.There is no F4 in the standard tables also.Is there any F4 help the standard transaction for this field if yes then u can debug n a find from tht.As far as i no only three standard tables are making use of this field. In any of them it is not a unique key and no F4 help.So tht means u have to use any of these tables for tht..then the values of the field will be repeated but the avalibale values can be displayed(as far zprogram is concerned)...but in standard transaction it is not a feasible requirement...

Otherwise if u maintain list of feasible values in a ztbale u can try out some exits which is triggered while F4.

Edited by: soniya baboo on Jan 21, 2009 7:08 AM