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: 

Search help, problem

Former Member
0 Kudos

Hi everybody,

I am having a problem with a search help in a dynpro.

I have a dynpro with 5 fields, the first one has a search help for the rest of the fields. All the fields are marked as import and export in the search help created, but there is a field that it doesn't appear with a blue background when I press the search help in the program and i don't know why. When I press one of the lines only four of the five fields are filled. I think the problem in that field is that the type is PS_INTNR, and it has an internal conversion.

What I need is when I press in one of the lines all the fields must be completed.

Does anybody know where the problem is or how to solve it??

Thanks in advance

8 REPLIES 8

Former Member
0 Kudos

Hi

Go to that search help and check the selection method

i.e Table used for that search help

the types of fields and the data in that fields in that table and why data is not coming into that particular field

If you see the Table and the data you will come to know

Reward points for useful Answers

Regards

Anji

0 Kudos

Thanks Anji, but in the table which is in the selection method has the same type and in the dynpro has also the same type, that is the reason I don't know why it is not working. In everywhere is with the same type and also same name, because of that I thought that maybe it could be the type which need conversion but I am not sure.

0 Kudos

Hi Alejandro,

In the search help, how are you defining the Hit List Position and Dialog Box Position of the Fields?

I don't think the problem could be related with the data element of the field.

The fields you're using are from a Standard SAP Table or from a table you've created?

Regards,

Pedro Gaspar

0 Kudos

Hi Pedro,

the Hit list position and the dialog box position are defined as:

par1 1 1

par2 2 2

par3 3 3

par4 4 4

par5 5 5

should be like this??

Import and export are marked.

And the table is was created.

thanks

0 Kudos

Check Again your screen layout and see if all the fields are correctly named acording to the search help fields returned to your screen.

If you've defined things that way there shouldn't be any problem.

Are you filling the fields directly from the search help or are you using any coding in the screen to do so?

You can always select data from your table to the screen filtered by the key field (or fields) and put it in the screen variable you want to see data...

Regards,

Pedro Gaspar

0 Kudos

Everything have the same name, in the table, in the search help and in the dynpro, so I don't understand why it is not working. I am filling the fields directly from the search help.

I always use this way, I don't know how to do it in another way,

is there any other??

Thanks for your time

0 Kudos

Ok,

Since you're having problems with that, try to select data from the table, for the field you're having problems, before showing it on screen.

For example: If your table name is T_MYTABLE and the screen field you want to see with data is X_MYFIELD, in the before output of the screen select data from table T_MYTABLE (Table with data for the search help) using the key fields from the screen.


SELECT SINGLE <search_help_table-field_you_want_to_see> FROM <search_help_table> 
INTO <the_field_you_want_to_fill> 
WHERE <key_from_the_fields_on_screen>

Hope this helps...

Regards,

Pedro Gaspar

0 Kudos

Thanks Pedro, but what I need is to complete all the fields when the user press one of the registers, but I cannot solve this problem.

Thank you very much for your time