2023 Apr 25 4:23 PM
Hi ,
I have one requirement that in selection screen I have three field batch material and plant in a tabular format and
Material Id will be displayed depending of batch, Material Id and description are automatically displayed. If batch value is empty then no material Id and description is displayed.
How I can achieve this functionality in module pool program?
Hi ,
I have one requirement that in selection screen I have three field batch material and plant in a tabular format and
Material Id will be displayed depending of batch, Material Id and description are automatically displayed. If batch value is empty then no material Id and description is displayed.
How I can achieve this functionality in module pool program?
2023 Apr 25 7:13 PM
I guess you have searched for answers and blog posts in the forum, and you have found an existing search help for material, so please tell us where you're stuck?
2023 Apr 26 10:58 AM
I didn't find that much related on it . Actually without pressing enter or any action it will be display after entering batch number and plant
2023 Apr 27 8:28 AM
IF (and it's a big "if") your batch number is unique (SAP uses both number and material as batches' primary key), you can code something in the AT SELECTION-SCREEN OUTPUT event. Something like
at selection-screen output.
if p_batch is not initial.
select single matnr
from mcha
where charg = @p_batch
into @p_material.Work your way from this hint.
2023 Apr 27 6:19 PM
Many ways to do it. I created a Search Help and it's proposing. I don't get what issue you have in finding answers.

Google:
selection screen search help site:blogs.sap.com
2023 Apr 28 11:19 AM
Thank you for your valuable input. Actually It's not the same. My requirement I have table control in selection screen where three column is there like batch, plant, material. there in batch section If I give batch number then in material section material ID along with material description will be display.
2023 Apr 28 11:23 AM
Material ID along with material description will be display depending upon batch.If we don't enter any batch then no material ID and description will be display.
2023 Apr 28 6:59 PM
You are saying Table Control, so I guess you are talking about a General Screen, not about a Selection Screen. If you say Selection Screen, people will understand that you want to use statements like PARAMETERS or SELECT-OPTIONS to generate the screen dynamically.
You'd better share a screenshot to clarify.
Also, "type-ahead" makes think that you wanted to use the "Type-Ahead Search" feature, but in the end I guess your question is about how to display the material/description in a Dynpro screen right after typing the batch number BUT without pressing Enter or a function key.
It's not possible in Dynpro but you can achieve it via the ALV Grid control by using the delay event.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |