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: 

How to enable F4 functionality for a newly addes field in a "Screen Exit"

Former Member
0 Kudos

Hi all,

I have to include a field "Cost Center" in T.Code VA01/02/03. For this i had used Screen Exit

Prog : SAPMV45A

Scr No : 8459

Now i am successfully able to see the newly added field in the T.code VA01/02/03. However F4 functionality is not working for it. How should i enable it?

Thanks!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Muhammad,

Thanks for your reply.

I picked the field from VBAP-KOSTL (while designing in the layout). As u said against Search Help i included "HTNM_KOSTL". Now atleast i could see the F4 button against the Cost Center Field. But no possible input values appear. Can you provide your suggestions.

8 REPLIES 8

Former Member
0 Kudos

Hi ,

Pls check the data element of the newly added field . If it has a F4 help then it will come directly in the screen.

Else you have to create a search help for the same via SE11 .

Thanks

former_member188827
Active Contributor
0 Kudos

which data element are you using for cost center?

Former Member
0 Kudos

Hi,

Go to the screen. Double clik on the filed.

In the field attributes u have an option to enter the search help.

there trying giving HTNM_KOSTL

Regards

Ansari

Former Member
0 Kudos

hi,

This can be achieved using the Process on Value-request event on the screen in the PAI

so in Process After Input you ahve to add the following:



PROCESS ON VALUE-REQUEST.
field zfield1 module get_f4.

module get_f4 input.
here you need to use some FM to add the search help like below:


CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            RETFIELD        = 'ZFIELD1''
            DYNPPROG        = SY-CPROG
            DYNPNR          = SY-DYNNR
*            VALUE_ORG       = 'S'
       TABLES
            VALUE_TAB       = IT_HELP
            FIELD_TAB       = IT_DFIES
            RETURN_TAB      = IT_DDSHRETVAL
       EXCEPTIONS
            PARAMETER_ERROR = 1
            NO_VALUES_FOUND = 2
            OTHERS          = 3.
  IF SY-SUBRC <> 0.
  ENDIF.

you can search SCN you should be able to get enough help on how to use the FMs

Regards,

HImanshu

Former Member
0 Kudos

Hi Muhammad,

Thanks for your reply.

I picked the field from VBAP-KOSTL (while designing in the layout). As u said against Search Help i included "HTNM_KOSTL". Now atleast i could see the F4 button against the Cost Center Field. But no possible input values appear. Can you provide your suggestions.

0 Kudos

Hi,

Sorry for the wrong search help name.

You need to use KOST .

Regards

Ansair

0 Kudos

Hi

Use Search help KOSTN and assign it to the field in the screen painter

Cheers

Ram

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Just try attaching KOST in the properties of the screen field in search help.