Hello Experts
I want to write end routine to load 0COMP_CODE based on calmonth and 0COUNTRY as below.
IF calmonth is between jan 2014 to jun 2014 then it will return company code based on following conditions.
if 0country = AX1, AX2, AX3, AX4, AX5,AX6,GH6,BH6,KU9,BN8,TG9,RT5 ; 0COMP_CODE = C70
if 0country = TG9,RT5 ; 0COMP_CODE = J98
if 0country = GH7,YU9 ; 0COMP_CODE = C68
if 0country = KO8 ; 0COMP_CODE = I98
IF calmonth is between july 2014 to dec 2014 then it will return company code based on following conditions.
if 0country = AX1, AX2, AX3, AX4, AX5,AX6,GH6,BH6,KU9,BN8, ; 0COMP_CODE = C70
if 0country = GH7,YU9 ; 0COMP_CODE = C68
if 0country = KO8 ; 0COMP_CODE = I98
Please help.
Thanks & Regards
Anuja