Hi All,
I solved this issue.
This is a authorization issue with the RFC user. I went to SMW01 and saw the error BDOC for that material. In the error text it is showing "you are not authorized to change the material". As i am a Admin user system is allowing me to change the material data in debugging mode.
Br,
Navn