Skip to Content
avatar image
Former Member

a simple query

hi frndz,

my query is i have to exclude the data(pernrs) where abkrs = 99.

so for this i have 3 solutions one is using if and check and delete.

any more solutions suggested try to give me asap.

thankikng you,

in regards,

nishika

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jul 24, 2007 at 12:26 PM

    Hi!

    Use IF, if you like structured programming, else use CHECK. (there is no performance difference between them).

    If you want to reduce the size of your internal table also, use delete. It is slower, but after the deletion your abap will use less memory.

    Regards

    Tamá

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 24, 2007 at 12:32 PM

    Hi,

    you can use the LOOP statment

    Loop at ITAB where abkrs <> 99.

    ENDLOOP,

    Regards

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 25, 2007 at 10:09 AM

    Simple - sort it and

    Delete <itab> where abkrs eq 99

    Reward points...thanks

    Add comment
    10|10000 characters needed characters exceeded