Search help with default value
I have created a table control on a screen in a dialog program.
My table on screen has two columns:
first column - material number(MATNR) and
second column - batch number (CHARG).
The user is going to type the material number in first column and then select the batch number by pressing f4 on the second column (batch number).
I have created a search help with two fields (matnr and charg) for the batch number column of my table control.
I want when a user type a material number in first column and press f4 in the second column the filed matnr on my search help to be filled with this material number (so that the search help results only the batches for the material number typed by the user).
I have used the parameter id MAT but I have the following problem:
If the user type a material number on first row (and first column) then type another material number on second row (first column) and hit f4 for the first row the wrong material number is displayed on mantr of the search help (the second matnr is displayed).
Can anyone help?