Using PM01, I have enhanced Infotype 8 with a custom amount field. Its very similar to the ansal field in all respects. But when I use the new field in SAP query, it gives a dump.
On analysis of the dump, I found the following discrepancy;
Custom field Z_XXXXXX:
Structure P0008 --- Z_XXXXX --- reference field P0008-ancur
Table PA0008 --- Z_XXXXX -
reference field P0008-ancur
Std. SAP field ANSAL:
Structure P0008 --- ANSAL --- reference field P0008-ancur
Table PA0008 --- ANSAL -
reference field PA0008-ancur
Per SAP help; structure PXXXX for any infotype is used in queries via LDB PNP. When a new query is created it generates and complies the program and uses reference field PA0008-ancur for P0008-Z_XXXXX field. And that's where the problem lies -- the query doesn't like any PA0008 field in it. I have tried regenerating the Infotype via PM01 several times but to no avail. Does anybody know a solution for this? I appreciate all the help.