i am developing a simple screen program. in this program when i give a customer no. i/o field (kna1-kunnr) then i should get his relavent order details from vbak table ( in a screen table).
and i want to give the F4 help on kna-kunnr field.
i have gone through the sample programs in abapdocu which he has given for sflight-connid field but i am unable to do it for my program.
when i press the f4 key it gives the following messg.
Error messg:- no active external product for the fuzzy search.
at the domain level for the data element kunnr there is a value table given (kna1).
and one more query. there are two buttoms in my screen program Ok & cancel and the kna1-kunnr is a mandatory field what should be the logic i should follow so that the with out entering the mandatory feild i should get out of the program when i press cancel buttom. can u example this with a simple code.
When you create a file dof name KNA1-KUNNR , system will prompt you to accept the dictionary attributes. If you accept it the serach help will automatically be called from screen. Delete your i/o field , create a new field with name KNA1-KUNNR. Make sure your program has
" Tables : KNA1 ." declared in TOP Include.
For function code "Cancel" in GUI status just mark the function type as "E" . Default is space.
In the SCREEN PAI
MODULE PROG_EXIT AT EXIT COMMAND.
SET SCREEN 0.