Skip to Content
0
Nov 19, 2012 at 10:15 AM

How to check previous select value dynamically (from Sorted Internal table)

25 Views

Hi experts,

I have one sorted internal tables (sorted by customer number) . i am selecting the values from that table( using loop). I want check my next select value is same as before value(customer number) or not . I want do some operation based on this.

Order Number

Due Date

Customer Number

Amount

0094046510

  1. 17.04.2012

0000010743

  1. 762693.00

0094046511

  1. 17.04.2012

0000010743

  1. 502152.00

0094046513

  1. 17.04.2012

0000010743

  1. 546543.00

0094046508

  1. 17.04.2012

0000011591

  1. 708278.00

0094046509

  1. 17.04.2012

0000011717

  1. 638478.00

Consider the above example table(sorted by customer no) . In that table my first 3 customer numbers are same.

i am selecting first row. After if i select second row i want check my previous customer number is same as now or not. How can i do this. Please suggest me.

Thanks and Regards,

Linganathan

Moderator Message: Please do more research before posting

Message was edited by: Kesavadas Thekkillath