Skip to Content
author's profile photo Former Member
Former Member

SEARCH Button Option in Table Control .

Hi Gurus,

I'm developing a Module pool screen having Screen fields and also a table control ,

Now I need to create a SEARCH Button in screen,such that refereing to the fields in the screen the values

should appear in table control.

Let me elaborate in..

I have a screen with fields EMPLOYEE_ID, Full Name and Created _on(date) fieilds.

In Table control i have ACTIVITY, DATE,and NO.of hours fields.

when i search as according to employee_ID and CREATED_ON criteria data should be displayed in Tabel Control.

Done a lot of R&D in coding also refered old SCN posts couldn't succeed, Please HELP!!

Regards

Rohan.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 27, 2012 at 06:28 AM

    Hi Rohan,

    Where do you want to search? In database tables?

    Where is the data which you want to search?

    Regards,

    Ibrahim

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Rohan,

      I guess both the tables Employee and Activity has Employee ID as a key field. If its so, then fetch data from both the tables using inner join in an internal table ITAB when you press the button Search. Once you have the data, you can loop through the table ITAB and find out how many records matches with the values given in Employee ID and Created on fields. Move these records in your final table and display in your Table control.

  • Posted on Apr 27, 2012 at 06:57 AM

    Read following thread Former Member give perfect solution .

    http://scn.sap.com/thread/719601

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Krupa,

      I saw that post too before,

      that doesn't satisfy my condition, by the way the scenario and the condition in that is totally different from mine.

      Because in that scenario there was other fields either than the table control.

      but i have both.

      Thanx for the suggestion

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.