‎2008 Jul 14 5:56 AM
Hello,
I have created a custom screen in SE51 (Screen painter) with two input fields. I want both these two fields to be of the same type, with a like reference to a field in a custom table. This is required so that the search help for the custom table field can be used for both fields on the screen.
At the attributes for the field in screen painter, on tab Dict, there is a checkbox "From dict.". Checking this gives me the result I require. However the field has to be named according to the table field, i.e. screen field name has to be ZMYTABLE-FIELD1. This works fine for one field. But I need this for both fields. The system won't allow me to name the second field with the same name, so I can't access my search help from the second field. Incidentally, the "Ref. field" box is also grayed out, so I cant define anything there. How can I accomplish this? Help is appreciated. Thanks.
Regards
‎2008 Jul 14 7:12 AM
Hi,
Try the following..
Declare the 2 fields in the Main Program itself referring to the
Dictionary field. Save the program and in the Screen Painter
Choose the fields by selecting the PROGRAM instead of
selecting DICTIONARY reference...
Hope it helps you.
Murthy
‎2008 Jul 14 7:12 AM
Hi,
Try the following..
Declare the 2 fields in the Main Program itself referring to the
Dictionary field. Save the program and in the Screen Painter
Choose the fields by selecting the PROGRAM instead of
selecting DICTIONARY reference...
Hope it helps you.
Murthy
‎2008 Jul 14 8:20 AM
Hi Murthy,
I tried declaring the fields in the program using:
DATA: FIELD1 LIKE ZMYTAB-FIELD1,
FIELD2 LIKE ZMYTAB-FIELD1.
In the screen painter I created a textbox, went to the 'Attributes' windows and named the fields as FIELD1 and FIELD2. Under tab 'Program' there is no option for verifying or assigning fields. I ran the screen after doing this but got two text boxes with default attributes, not picking up search help or anything. Am I doing something wrong? Suggestions appreciated.
Regards
‎2008 Jul 14 10:34 AM
Hi Khan,
You create a search help for the field and assign it in the search help in attributes of the text field.. Use the same name for both the fields
this should help you
regards
padma
‎2008 Jul 14 12:29 PM
Thats the entire problem. The screen painter won't let me create two fields with the same name. Suggestions welcome.
Regards
‎2008 Jul 14 12:36 PM
Hi Khan,
You can do one thing.....
use one Data dictionary element and the other variable declared in program of type data dictionary variable
or else
Declare two different variables with same search help name so that you get the same f4 help for both
this should help you.
regards
padma