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: 

Display Material Details after selecting Material Number in Module Pool screen.

RohitSingh
Explorer
0 Kudos

Hi, I am a beginner. I am working in a module pool, i have one input field in which i have to select a material number from F4 and accordingly it should display its description in the "Output Only" text field on the screen. What code i have to write in Process On Value Request.

1 ACCEPTED SOLUTION

UweFetzer_se38
Active Contributor

My suggestion would be: don't implement the "Process On Value Request". The F4 help is triggert automatically on material number.

The standard behaviour would be "on enter". If you've selected the material number via F4 and press enter, the material text should be read and displayed in the text field.

PROCESS AFTER INPUT.
FIELD materialnumber MODULE read_material_text ON REQUEST.
3 REPLIES 3

UweFetzer_se38
Active Contributor

My suggestion would be: don't implement the "Process On Value Request". The F4 help is triggert automatically on material number.

The standard behaviour would be "on enter". If you've selected the material number via F4 and press enter, the material text should be read and displayed in the text field.

PROCESS AFTER INPUT.
FIELD materialnumber MODULE read_material_text ON REQUEST.

0 Kudos

So, do i have to use function module in the "read_material_text"?

0 Kudos

You can use a function module or read the database table (hint: it's MAKT) directly, whatever you like more.