2017 Aug 16 7:34 AM
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.
2017 Aug 16 1:08 PM
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.
2017 Aug 16 1:08 PM
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.
2017 Aug 16 1:29 PM
So, do i have to use function module in the "read_material_text"?
2017 Aug 16 1:33 PM
You can use a function module or read the database table (hint: it's MAKT) directly, whatever you like more.