Application Development and Automation 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: 
Read only

Search help with default value

0 Likes
574

Hi,

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?

1 ACCEPTED SOLUTION
Read only

ralf_wenzel_heuristika
Active Participant
0 Likes
530

In POV, where you have coded your F4 Help, you must use GET CURSOR to determine, in which row F4 is used, then read your itab (which is the basis of your table control) with this table index.

1 REPLY 1
Read only

ralf_wenzel_heuristika
Active Participant
0 Likes
531

In POV, where you have coded your F4 Help, you must use GET CURSOR to determine, in which row F4 is used, then read your itab (which is the basis of your table control) with this table index.