I want to get a check table for input suggestions on a parameter while running this selection screen. Check table for the domain is set correctly and it is shown right in the table maintenance, but in the program I get no suggestion. This is the declaration of that parameter in the selection-screen.
SELECTION-SCREEN BEGIN OF SCREEN 200.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-t02.
Parameters p_empsu TYPE Z0B_SU.
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN END OF SCREEN 200.
Congratulations, you've run into one of the many inconsistencies in ABAP that you'll simply have to accept. Read the documentation carefully - although I get the impression that it's not as clear in the English version. Basically, you need to use a structure or table field reference if you want to get the automatic value help additions, so try
PARAMETERS p_empsu TYPE z0b_Service_unit-service_unit.
Another - often preferable - option is to define a search help and assign it explicitly using MATCHCODE OBJECT
.