Skip to Content
0
Jun 12, 2014 at 01:28 PM

Help with Changing Loop logic to Read logic

17 Views

Hi, I am looking to change the following Loop logic to using read logic because it will probably lead to faster performance. Table is Sorted Table with Key MATERIAL DATEFROM DATETO. This code is trying to find a material price record within a price date range table.

Can anyone help with the conversion?

Please let me know if I need to provide additional information.

LOOP AT IT_SRO ASSIGNING <FS_SRO>
WHERE MATERIAL EQ <TRANSACTION>-MATERIAL
AND DATEFROM LE <TRANSACTION>-CALDAY
AND DATETO GE <TRANSACTION>-CALDAY.