Application Development and Automation 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: 
Read only

Selection Screen type-ahead search

0 Likes
2,696

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?

7 REPLIES 7
Read only

Sandra_Rossi
Active Contributor
0 Likes
2,597

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?

Read only

0 Likes
2,597

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

Read only

VXLozano
Active Contributor
0 Likes
2,597

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.

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,597

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

Read only

0 Likes
2,597

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.

Read only

0 Likes
2,597

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.

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,597

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.