Skip to Content
0
Former Member
Dec 09, 2011 at 08:24 AM

How to read an interal table with dynamic conditions

55 Views

Dear all,

I have an internal table IN_TAB and I want to read a record of the table with dynamic condition as below.

a) IN_TAB structure : | ColA | Col B | Col C | Col D |

b) Requirement: there are four condtions, and reading data from IN_TAB (not use loop) based on these conditions. If one condition is empty, it'll be ommited.

Ex: | ColA | Col B | Col C | ColD |

-


x1

b

c

d

x1

x2

x3

x1

x2

x3

x4

y1

y2

y3

y4

-


The conditons consist of ColA = ' x1' , ColB = 'x2' , ColC = '', ColD = ''

The result will be:

x1

x2

x3

x1

x2

x3

x4

Could you please help to solve this problem.

Thanks and regards,

Nguyen Huy.