cancel
Showing results for 
Search instead for 
Did you mean: 

How can i filter in the UR to get some values

former_member218996
Participant
0 Kudos

Hi all,

how can it be the code in the UR to filter some values; what i want is filter for values 101 , 102 in Movetype, i made this code but i want to know if this is the way and correct if the code is ok in the Update rules to do this filter

LOOP AT DATA_PACKAGE.

IF

DATA_PACKAGE-MOVETYPE EQ '101' or

DATA_PACKAGE-MOVETYPE EQ '102' .

MODIFY DATA_PACKAGE.

ENDLOOP.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

If this is coming from the datasource directly then filter the values at transfer rule level.

Incase if you are deriving these values at tranfer rule level, then you can filter them at update rule level.

Hope it helps.

former_member218996
Participant
0 Kudos

The question is, fi the code above is ok, and will it filter for values 102 and 103, there is not left anything else? to put this code and prove

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If you want to get only 101 and 102 for movetype into infoprovider, you can use the following code in UR routine.

delete data_package where movetype <> '101' or movetype <> '102'.

regards,

Rk