Skip to Content
0
Former Member
Dec 01, 2008 at 02:07 PM

Need Logic

17 Views

Hi All,

First scenario

bukrs pblnr matnr tankno deviation quantity outof out

-


De01 10205206 123 1 10 1000 X Blank

De01 10205206 124 1 15 2000 Blank X

De01 10205206 125 1 20 3000 X X

I need to update other internal table based on following conditions.

Internal Table Fields --Bukrs,Pblnr,Traffic lights.

For same tankno,

Traffic Light

Green: The field value for the flag for OutOfNorm and OutOfNormP is blank for all tanks.

Red: For at least 1 tank the field value for the flag OutOfNorm and OutOfNormP is both 'X'.

Orange: All other cases.

Now i need to a record in the internal table

De01 10205206 'Red Light'

*******************************************************************************************************

Second scenario

bukrs pblnr matnr tankno deviation quantity outof out

-


De01 10205206 123 1 10 1000 X Blank

De01 10205206 123 3 15 2000 Blank X

De01 10205206 123 2 20 3000 X X

I need to update other internal table based on following conditions.

Internal Table Fields --Bukrs,Pblnr,Traffic lights.

For Same Material number

Green: The field value for the flag for OutOfNorm and OutOfNormP is off for all tanks.

Red: For at least 1 tank the field value for the flag OutOfNorm and OutOfNormP is both ON.

Orange: All other cases.

Now i need to a record in the internal table

De01 10205206 'Red Light'

Above 2 are 2 different scenarios. Need 2 different logics