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

Table Control

Former Member
0 Likes
473

Hi all,

i had got a table control with 4 fields,,

orderno item material quantity

when i click the button 'DISPALY' it dispalys all the record from ztable , that is fine , but my requirement is when the user enters say orderno ' 5 ', in the input/output field .

Then it should show only the records of that particular orderno.

how should i approach for this kind of scenario.

this is my select query , it gives me the records of entire ztable..

this should not happen, it should depend on the user.

also tell me how to get the values of that orderno in text button.

when 'DISPLAY'.

select orderno

posnr

matnr

zmeng

into table it_test

from ztest2.

regards,

Pawan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
453

Hello,

I think what you can do is to restrict your SELECT Query based on the Order Number. You can use the WHERE Clause to compare the Order Number and then your Internal Table will be filled with only those fields matching the Input / Output Field Value.

Hope it was clear.

Thanks and Regards,

Venkat Phani Prasad Konduri

3 REPLIES 3
Read only

Former Member
0 Likes
454

Hello,

I think what you can do is to restrict your SELECT Query based on the Order Number. You can use the WHERE Clause to compare the Order Number and then your Internal Table will be filled with only those fields matching the Input / Output Field Value.

Hope it was clear.

Thanks and Regards,

Venkat Phani Prasad Konduri

Read only

0 Likes
453

hi,

this is my select query with where clause

select orderno

posnr

matnr

zmeng

into table it_test

from ztest2

where orderno = ztest2-orderno.

append wa_test to it_test

but it shows me the default order number ie the first record, but i want when the user enters orderno . it shows me the record of that ordernumber in table control.

name of i/o field :- number

regarsd,

Pawan.

Read only

0 Likes
453

This is a very basic question. I don't know if it will help because I think I'm not understanding your problem.

If the i/o field is called "number" the select needs to look like


select orderno
posnr
matnr
zmeng
into table it_test
from ztest2
where orderno = number.