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: 

Automatic add of a value in search help

Former Member
0 Kudos
113

Hi everybody,

I work on transaction code VA01.

2 customer fields were added on tab "Additional data B" (Fields: Model and Serial Number).

Each field have a search help.

I want realize this:

When I click on the second search help (of field Serial Number), I want that the value of the first field (Model) appears in a field of the screen of the second search help !

More details :

Tab "Additional data B"::

______________________________________

Model | Mat 235 | [] (SH1)

Serial Number | Blank | [] (SH2)

______________________________________

Then, click on "search help" (SH2) :

Popup "Serial Number" (selection screen) appears with the value of Model in Material field :

______________________________________

Material | Mat 235 |

Serial Number | Blank |

Equipement | Blank |

______________________________________

I found the search help I want modifiy but I don't know how and where I can modify it...

Thanks in advance for your help !

Have a nice day

Edited by: Carl P on Jul 19, 2011 4:58 PM

Edited by: Carl P on Jul 19, 2011 4:59 PM

Edited by: Carl P on Jul 19, 2011 5:00 PM

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos
72

Hi Carl,

First, SH2 should have the material number defined as an importing (at least) parameter.

If so, you should name your screen fields according to a DDic structure (for instance ZSTRUC-MODEL and ZSTRUC-SERIALNR). In the DDic structure, you assign SH2 to SERIALNR, and you assign MODEL to the importing parameter of SH2.

See this example (F4 on CONNID will take into account value from CARRID):


PARAMETERS carrid TYPE sflight-carrid.
DATA g_dummy_connid TYPE sflight-connid.
SELECT-OPTIONS connid FOR g_dummy_connid.

(SFLIGHT DDic table has CONNID field with search help with importing parameter set from CARRID)

BR

Sandra