The below select statement is causing time_out error.
SELECT vbeln t1vkorg t1kunnr t2~werks
INTO TABLE t_likp
FROM likp AS t1
INNER JOIN t001w AS t2
ON t1kunnr = t2kunnr
WHERE lfart IN s_lfart
AND t1~kunnr IN s_kunnr
AND wadat_ist IN s_budat
AND ( t2~werks = p_werks1
OR t2~werks = p_werks2 ).
There is one more select statement which is selecting kunnr and werks values into table t_t001w.
I think this error can be avoided by using for all entries in t_t001w.If not please correct me.
Please give me your valuable suggestions