Hi Ashish,
Check the logic inside the loop at line number 856. The flags will be cleared depending on the success/failure of query on the table CRMOBJTAB. This table will be updated upon changes to the adapter object MATERIAL (under the tab 'tables/structures within object').
You can add the entry for MARC and MARC_KEY entries in the object MATERIAL if not present. Below is a screen capture of the same
Hope it helps,
~Athreya