09-09-2009 9:29 AM
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!
09-09-2009 9:44 AM
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.
09-09-2009 9:32 AM
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
09-09-2009 9:33 AM
09-09-2009 9:34 AM
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
09-09-2009 9:36 AM
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
09-09-2009 9:44 AM
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.
09-09-2009 9:50 AM
Hi,
Sorry for the wrong search help name.
You need to use KOST .
Regards
Ansair
09-09-2009 9:55 AM
Hi
Use Search help KOSTN and assign it to the field in the screen painter
Cheers
Ram
09-09-2009 9:46 AM
Hi,
Just try attaching KOST in the properties of the screen field in search help.