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

GIVE ME THE ANSWER AS I AM NEW TO ABAP AND I DON'T KNOW ANYTHING

HI,

I AM USING MY OWN SELECTION SCREEN AND I HAVE GIVEN 2 I/P FIELDS.I WANT TO FETCH DATAS ON THE BASIS OF THAT VALUES FROM A TABLE AND I WILL STORE THAT IN MY OWN INTERNAL TABLE.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:00 AM

    enter T-code 'ABAPDOCU' and you can find many examples.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:11 AM

    hi

    you can even try

    Sap.help.com for examples

    regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:14 AM

    Hi,

    select f1 f2 from <table>

    into table itab

    where f1 = s_field1

    and f2= s_field2.

    Here,s_field1 and s_field2 are fields on selection screen.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:16 AM

    select f1 f2 from <table>

    into table itab

    where f1 in s_field1

    and f2 in s_field2.

    use IN operator instead of EQ.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:21 AM

    Hi,

    U can try below.......

    select field1 field2 from <Database table>

    into table itab(internal table)

    where fiels1 = s_field1

    and field2 = s_field2.

    • s_field1 and s_field2 are fields on selection screen.

    Regards,

    Biswanath

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:34 AM

    hey thr,,,,,

    well u can simply do that by

    select col1 col2 from <table>

    into table <internal_table>

    where col1 = field1

    and col2 = field2.

    field1 and field2 are the named selection fields that you have describd.

    and moreover since ur new to the abap technology...

    just try doin some serach on sdn.sap.com searches

    and help.sap is also a very useful site for starters.

    all the best..

    take care...

    do reward points if helpful...

    cheers

    Add a comment
    10|10000 characters needed characters exceeded

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.