Hi Sunil,
In which field does the # sign occur? Could it be a replacement for a hidden "forbidden" character?
If this is the case, then you will see in the PSA record the # sign which is a placeholder for such a not permitted (illegal) character.
For cleansing of character strings, I suggest to have a look at my cleansing tool. Please refer to my blog Introducing an Add-on for Cleansing Character Strings for more information.
Secondly, you might want to review and implement the following SAP Notes which are applicable to your release/SP level:
- SAP Note 1952888 - Reading of master data/attributes fails for compounded InfoObjects;
- SAP Note 1964665 - CX_SY_DYN_CALL_ILLEGAL_TYPE / CX_SY_DYNAMIC_OSQL_SYNTAX when reading master data;
- SAP Note 2050449 - System throws an exception CX_SY_DYN_CALL_ILLEGAL_TYPE during Master data read.
Best regards,
Sander