Skip to Content
0
Former Member
Feb 18, 2009 at 02:42 PM

Need an IF condition, if Prod No has multiple same STCTS values

18 Views

Hi,

 
I need to write the logic like below : 

loop at t_final into wa_final.

If PRVSY(Product Number) has multiple same STCTS values
 
if wa_final-datab > sydatum. 
   
clear wa_final-stcts.

delete t_final where stcts is initial. 

 endif.
endif.
endloop.   

 For ex: prod number is and STCTS values are 
 
                     1234                                        ABC 
                                                                    ABC
                                                                    ABC
                     1222                                         GH
                                                                     GH
                     1211                                         AS 

My logic should only apply for the product number 1234 and 1222

Can you suggest any If condition or any way to implimet this logic..

Any suggestions will be apprecaited!

Edited by: Kittu on Feb 18, 2009 3:42 PM

Edited by: Kittu on Feb 18, 2009 3:44 PM