Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Search help with default value

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?

replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question